Appendix E: Version History

This page mirrors the Midnight Support Matrix for quick reference. The authoritative source is the Midnight docs β€” always check there if you hit a compatibility issue.

Last synced: July 2026

Current Supported Versions

From the official matrix:

This matrix only reflects the latest tested versions. Earlier versions may still work, but we do not guarantee compatibility or provide support for them.

Runtime & Contracts

These versions are the same across Preview, Preprod, and Mainnet:

ComponentVersionPurpose
Compact devtools (compact)0.5.1Installs compilers, compiles contracts
Compact toolchain (compact compile)0.31.1Contract compiler for Midnight
Compact runtime0.16.0Runtime library for contracts
Compact JS2.5.1TypeScript execution environment for compiled contracts
Platform JS2.2.4Core abstractions and types
On-chain runtime3.0.0On-chain runtime support (v3)

SDKs & APIs

Also the same across all three networks:

ComponentVersionPurpose
Wallet SDK1.2.0SDK for building wallet integrations
Midnight.js4.1.1DApp framework: contracts, types, providers
testkit-js4.1.1E2E testing framework
DApp Connector API4.0.1Interface between DApps and wallets

Network & Infrastructure

These components differ by network:

ComponentPreviewPreprodMainnetNotes
Node (Midnight)1.0.01.0.00.22.5Network node
Midnight Indexer4.3.34.3.34.0.1Blockchain indexer
Proof server8.1.08.1.08.0.3ZKP proof generation

Language Version Pragma

The Compact language version (used in pragma language_version) is distinct from the compiler version above. Toolchain 0.31.1 implements language version 0.23 (check yours with compact compile --language-version). This book’s runnable examples target:

pragma language_version >= 0.16;

Any compiler from the 0.16 language line onward β€” including the current 0.23 line β€” accepts these programs. See Chapter 2: Pragma and Imports for the full range of pragma forms.

Compatibility Note

If your installed toolchain doesn’t match what’s listed here, run compact update to pull the latest, or consult the Midnight Support Matrix for the current state of the world.