Compact.js 2.4.0 release notes
- Version: 2.4.0
- Date: 2026-01-28
- Environment: Preprod, Preview
High-level summaryβ
Compact.js provides a TypeScript-based execution environment for smart contracts compiled with the Compact language. This release is the initial release of Compact.js and is used internally by Midnight.js and the Node Toolkit.
Compact.js provides a core library for tool and framework developers, as well as a command package that encapsulates the library-provided capabilities as commands that can be integrated into command-line applications built with Effect's CLI.
Audienceβ
This release is relevant for developers who build tools or frameworks that deploy and interact with contracts on the Midnight blockchain.
New featuresβ
Here are the new features in this release:
Core libraryβ
@midnight-ntwrk/compact-js provides the core capabilities to build CompiledContract
instances from the compiled assets produced by the Compact compiler. These can then be transformed
into ContractExecutable instances, which are used to initialize and run contract instances.
Commandingβ
@midnight-ntwrk/compact-js-command provides commands that consume a TypeScript-based configuration
defining a CompiledContract and expose it via a command-line interface.
Deprecationsβ
N/A
Breaking changesβ
N/A
Important notesβ
While developers can use Compact.js to interact with Compact-compiled contracts at runtime,
this release is primarily intended for internal use by the Midnight.js contracts package
(@midnight-ntwrk/midnight-js-contracts) to deploy contracts and invoke their circuits.
DApp developers are encouraged to continue using Midnight.js for these capabilities.
Known issuesβ
N/A
Links and referencesβ
- GitHub repository: Compact.js
- NPM package: @midnight-ntwrk/compact-js
- Midnight.js documentation: Wallet developer guide