Skip to content

Release v4.1.1

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Jun 07:30
· 21 commits to main since this release
v4.1.1
5f8a5d1

⚠ BREAKING CHANGES

  • midnight-js: IndexerFormattedError.cause is renamed to .errors.

The ES2022 Error.cause slot is contractually a single underlying error,
not a peer collection of GraphQL errors. Shadowing it broke Node's
util.inspect causal chain, Sentry grouping, and structured loggers.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

  • refactor(midnight-js): extract correlateDeployTxId for cast-free tests

Pulls the contract-action / identifier correlation into a small pure
helper that takes narrow structural types. Eliminates the
'as unknown as RegularTransaction' fixture cast that violated the
project rule, and shrinks the public API: toFinalizedDeployTxData is
now a file-local const, with only the focused helper exported for tests.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

  • refactor(midnight-js): replace non-null assertions on contractAction with type predicate

Lines 410 and 449 used Rx.filter + ! assertions to satisfy the type

Features

  • testkit-js: parameterize compose image versions + nightly e2e matrix (#917) (1621524)
  • testkit-js: support qanet via NIGHT/dust faucet flow (73a3fd5)

Bug Fixes

  • midnight-js: apply full password policy to export operations (#922) (c6f43dd), closes #819
  • midnight-js: emit contract state for blockHeight/blockHash configs (#911) (f8d2e48), closes #805
  • midnight-js: harden error handling in indexer-public-data-provider (#937) (28c840a), closes #823 #822 #821 #821
  • midnight-js: validate signing key value on import (#926) (9fa41f4), closes #824
  • midnight-js: warn on plain http/ws for non-loopback provider URLs (#920) (dc6a3c6), closes #818
  • testkit-js: derive waitForFunds address from keystore (f1b980b)

Documentation

Code Refactoring

  • co-locate contracts governance code under src/governance/ (#909) (0199119)

Tests

  • testkit-js-e2e: add regression test for shielded segment routing (#876) (#903) (3e93cc5)

Continuous Integration

  • bump pinned GitHub Actions to latest versions (#927) (150ecd4)
  • testkit-js: scope concurrency group by docker env (#935) (af794ca)

Improvements

  • deps: bump @midnight-ntwrk/wallet-sdk to 1.1.0 (#919) (0c59c4b)
  • deps: bump dependencies to address security advisories (#925) (36d5aee), closes #134
  • deps: bump testcontainers from 11.13.0 to 12.0.0 (#928) (ec14840)
  • deps: declare missing dependencies and enforce via ESLint (#913) (75cbc75)
  • deps: enforce consistent dependency versions via Yarn Constraints (#914) (75085d3)
  • deps: remove unused root devDependencies, scope build-time deps to packages (#916) (b24283f)