🚀 Midnight-js-2.10 Released

:rocket: Midnight-js-2.1.0 has now been released and open-sourced, introducing block time for Midnight smart contracts utilising Compact.

:key: Key Changes and Highlights

  • Block Time Access: Added secondsSinceLastEpoch value to QueryContext in Compact programs to retrieve current block time within contracts

  • E2E Test Documentation: Comprehensive README for end-to-end testing setup and usage

  • Enhanced Testing Framework: New block time API tests and improved contract testing capabilities

  • Import Sorting: ESLint configuration now includes automatic import sorting for better code organization

To use the newly released midnight-js 2.1.0 version, please ensure you update the necessary components using the version details in the compatibility matrix below.

:laptop: Please ensure you update the necessary components using the version details in the compatibility matrix: https://docs.midnight.network/relnotes/comp-matrix

:laptop: Link to Midnight.js open sourced repo: https://github.com/midnightntwrk/midnight-js

:laptop: Release details available here: https://github.com/midnightntwrk/midnight-js/releases/tag/v2.1.0

2 Likes

Hi!

I couldn’t find the packages via NPM. Are the packages available on NPM similar to 2.0.2 or a different registry?