For the complete documentation index, see llms.txt
Compact.js
Compact.js provides a TypeScript-based execution environment for smart contracts compiled with the Compact compiler. When a Compact smart contract is compiled, the output includes a JavaScript file and a TypeScript declaration file.
Compact.js uses these files at runtime to execute the circuits. The circuit execution results are then used by higher-level tools and frameworks (such as Midnight.js) to create and submit transactions to the Midnight blockchain.
For more information, see the Compact language documentation.
Release 3.0.2LATEST
2026-11-17
Artifacts
Summary
Patch release in the 1.1 patch: builds the ledger 9 era against the final ledger 9.1.0.2 packages, used by Midnight.js 5.0.1.
- Declares
@midnightntwrk/ledger-v9^1.0.2and@midnightntwrk/onchain-runtime-v4^4.0.2. - No source changes; Compact runtime stays at 0.21.0 and the ledger 8 era is unchanged.
- Compact.js 3.0.1, released the same day against release candidates, is superseded; use 3.0.2.