# Compact.js 2.4.0 release notes

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

* **Version**: 2.4.0
* **Date**: 2026-01-28
* **Environment**: Preprod, Preview

***

## 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 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](https://github.com/Effect-TS/effect/blob/v3/packages/cli/README.md).

***

## 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")

Here are the new features in this release:

### Core library[​](#core-library "Direct link to 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.

### Command package[​](#command-package "Direct link to Command package")

`@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[​](#deprecations "Direct link to Deprecations")

N/A

***

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

N/A

***

## Important notes[​](#important-notes "Direct link to 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[​](#known-issues "Direct link to Known issues")

N/A

***

## 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.4.0)
* **API reference**: [Midnight.js API reference](https://docs.midnight.network/api-reference/midnight-js.md)
