# Compact.js 2.5.0 release notes

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

* **Version**: 2.5.0
* **Date**: 2026-03-20
* **Environment**: Preprod, Preview, Mainnet

***

## High-level summary[​](#high-level-summary "Direct link to High-level summary")

Compact.js provides a TypeScript-based execution environment for smart contracts compiled with the [Compact](https://docs.midnight.network/compact.md) language.

This release keeps the same core architecture as previous versions and introduces targeted improvements in command behavior and runtime compatibility.

***

## Audience[​](#audience "Direct link to Audience")

This release is relevant for developers who build tools or frameworks that deploy and interact with contracts on the Midnight blockchain.

***

## New features[​](#new-features "Direct link to New features")

This release introduces no new features.

***

## Improvements[​](#improvements "Direct link to Improvements")

The `circuit` command in `@midnight-ntwrk/compact-js-command` now accepts an optional `--input-ledger-params` flag.

This flag accepts a file path to a binary-serialized `LedgerParameters` value. When omitted, Compact.js defaults to initial ledger parameters provided by the network.

***

## Deprecations[​](#deprecations "Direct link to Deprecations")

No deprecations in this release.

***

## Breaking changes[​](#breaking-changes "Direct link to Breaking changes")

This version of Compact.js is built against `@midnight-ntwrk/compact-runtime` `0.15.0`, which requires Compact Toolchain v0.30.0.

**Required action**: Recompile contracts against these dependency versions.

***

## Important notes[​](#important-notes "Direct link to Important notes")

This release is primarily a compatibility and tooling update. If your build or deployment workflows pin older `compact-runtime` or `compact-compiler` versions, plan a coordinated upgrade to avoid runtime mismatches.

***

## Links and references[​](#links-and-references "Direct link to Links and references")

* **GitHub repository**: [Compact.js](https://github.com/midnightntwrk/midnight-sdk/tree/main/compact-js)
* **NPM package**: [`@midnight-ntwrk/compact-js`](https://www.npmjs.com/package/@midnight-ntwrk/compact-js/v/2.5.0)
* **Compact docs**: [Compact reference](https://docs.midnight.network/compact.md)
