unstale

npm / @stacks/clarinet-sdk

@stacks/clarinet-sdk

What changed in @stacks/clarinet-sdk 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

16 breaking1 security1 deprecations21 new APIs and options8 performance25 behavior and defaults39 tooling43 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

@stacks/clarinet-sdk 414 changes

Breaking changes 6

Deprecations 1

New APIs and options 2

Behavior and default changes 3

  • Waits for bitcoind mempool load instead of verificationprogress.

    4.0.0release notes

  • Simnet uses Clarity transaction framing from stacks-core.

    4.0.0release notes

  • The default devnet bitcoin node changes to bitcoin/bitcoin 31.1.

    4.0.0release notes

Tooling 2

@stacks/clarinet-sdk 3140 changes

Breaking changes 10

  • The environment variable’s behavior is inverted, changing how hints are disabled.

    3.25.0release notes

  • Defaults now use epoch 4.0 and Clarity 6.

    3.23.0release notes

  • Upgrade to the Clarity 6 preview, which may affect contract execution behavior.

    3.18.0release notes

  • Clarinet now defaults to Clarity 5.

    3.16.0release notes

  • Style lints are enabled at Level::Note by default.

    3.16.0release notes

  • Lints are enabled by default.

    3.13.0release notes

  • call_checker is now always enabled.

    3.12.0release notes

  • The default epoch is now 3.3, which may affect Clarity behavior.

    3.10.0release notes

  • Changes the default epoch used in deployments.

    3.9.2release notes

  • Clarinet projects need to migrate to vitest-environment-clarinet@3.0.1 instead of vitest-environement-clarinet@2.x.

    3.9.0release notes

Security 1

  • The SDK suggests using encrypted mnemonics in testnet and mainnet TOML files.

    3.12.0release notes

New APIs and options 19

  • The contract rm command accepts --force (or -f) to force removal.

    3.26.0release notes

  • Event observer configuration supports keyed events.

    3.24.0release notes

  • Simnet adds support for post-conditions.

    3.24.0release notes

  • Adds an include/exclude filter for linting.

    3.22.0release notes

  • Adds the IncorrectContractHeight error type.

    3.22.0release notes

  • Adds logger hook filters with all, project-only, and none choices.

    3.21.0release notes

  • Adds Pox-5 capabilities to devnet.

    3.21.0release notes

  • New epoch and clarity types are available.

    3.20.0release notes

  • The SDK now supports override_boot_contract.

    3.19.0release notes

  • POX-5 is optionally available in simnet.

    3.19.0release notes

  • Adds a command option to show details about lints and lint groups.

    3.15.1release notes

  • Adds a strength option for key derivation when using encrypted mnemonics.

    3.15.1release notes

  • Adds static cost analysis.

    3.15.0release notes

  • Adds --output=<format> to emit JSON or other formats.

    3.14.1release notes

  • Lints in this group can ignore identifiers using a naming convention.

    3.13.0release notes

  • The SDK can generate a deployment plan.

    3.12.0release notes

  • Support for encrypted mnemonics was added.

    3.11.0release notes

  • Lint groups can be used to enable or disable multiple lints.

    3.11.0release notes

  • Adds full support for Epoch 3.3 and Clarity 4; the defaults remain Epoch 3.2 and Clarity 3.

    3.9.0release notes

Performance 8

  • The lookup algorithm now runs in O(log n).

    3.25.0release notes

  • Formatting UTF-8 strings and @format-ignore blocks no longer incurs O(n²) handling.

    3.25.0release notes

  • Caches wallet key derivation.

    3.24.1release notes

  • Replaces the curl shellout with worker-thread synchronous HTTP in Node WASM.

    3.21.0release notes

  • Contract ASTs are cached, and only changed files are re-parsed.

    3.18.0release notes

  • Removes an unnecessary Session::new() call, saving about 70ms per run.

    3.17.0release notes

  • Reduces temporary String allocations, with a 15% performance improvement.

    3.14.1release notes

  • Linux performance improves by using jemalloc instead of the default allocator.

    3.14.0release notes

Behavior and default changes 22

  • Definition-only REPL snippets now receive their own contract name.

    3.25.0release notes

  • The table form of a devnet event observer now defaults events_keys.

    3.25.0release notes

  • Genesis sBTC balances are credited directly instead of replaying a deposit per wallet.

    3.24.1release notes

  • Mainnet boot-contract addresses are remapped to testnet addresses in simnet.

    3.24.1release notes

  • Simnet now tracks account nonces.

    3.24.0release notes

  • Contracts are deployed and sBTC is funded when devnet boots from a snapshot.

    3.24.0release notes

  • Prices epoch 4.0 with costs-5.

    3.23.2release notes

  • Updates the start height used for Stacks mainnet 4.0.

    3.23.0release notes

  • Static-cost analysis now supports resolving external traits.

    3.18.0release notes

  • Static-cost analysis now warns about and resolves local traits.

    3.18.0release notes

  • Code marked with #[env(simnet)] is stripped out of on-chain deployments.

    3.17.0release notes

  • Changes how simnet annotations are dimmed.

    3.17.0release notes

  • The command output now includes styling and active lints.

    3.16.0release notes

  • Devnet now uses Environment::OnChain.

    3.16.0release notes

  • Clarinet now defaults to epoch 3.4.

    3.16.0release notes

  • Logs more when starting devnet without the dashboard.

    3.15.0release notes

  • Stops running the linter on external requirements.

    3.15.0release notes

  • Changes the defaults for cargo check.

    3.14.1release notes

  • Improves the transaction structure of deployment plans.

    3.14.0release notes

  • The matcher now supports hex strings.

    3.14.0release notes

  • Clarinet can parse new tenure extends.

    3.12.0release notes

  • Devnet now implements graceful shutdown for SIGTERM signals.

    3.9.0release notes

Tooling 37

Fixes and other changes 43

  • Fixes five bugs in define-trait formatting.

    3.26.0release notes

  • Fixes seven comment and tuple formatting bugs.

    3.26.0release notes

  • Simnet now remaps boot-contract addresses in requirements.

    3.25.0release notes

  • Coverage now counts syntax-only lines in multi-line expressions.

    3.25.0release notes

  • The dependency detector no longer fails on invalid Clarity code.

    3.25.0release notes

  • The formatter now properly handles escaped characters in strings.

    3.25.0release notes

  • Restores the pox-5 testnet admin rewrite.

    3.24.1release notes

  • The linter suppresses unnecessary tuple warnings in print.

    3.24.1release notes

  • Fixes epoch 4 snapshotting in devnet.

    3.24.0release notes

  • Fixes sBTC funding in devnet.

    3.24.0release notes

  • Updated testnet heights.

    3.23.2release notes

  • Updated the testnet sBTC contract address.

    3.23.2release notes

  • Fixed Vitest-helper path derivation.

    3.23.2release notes

  • Boot contracts now deploy during the correct epoch.

    3.22.0release notes

  • Fixes LCOV asserts and BRDA numbering.

    3.21.0release notes

  • Avoids a capacity overflow bug in static cost.

    3.21.0release notes

  • Fixes getContractAST in the Remote_data fetch flow.

    3.20.0release notes

  • Errors from getContractAST are surfaced as JsError with descriptive messages.

    3.20.0release notes

  • The linter no longer warns on private functions inside #[env(simnet)] blocks.

    3.17.0release notes

  • Makes static costs deterministic.

    3.17.0release notes

  • Clarinet now properly passes DOCKER_HOST for Docker commands.

    3.16.0release notes

  • Linter output for a single file now matches project output.

    3.16.0release notes

  • Checks client capabilities before running cost analysis.

    3.15.1release notes

  • Ignores env(simnet) annotations that are at the end of a line.

    3.15.1release notes

  • Fixes traversal of Clarity 4's as-contract?.

    3.15.0release notes

  • Starts the API container when it is ready.

    3.14.1release notes

  • Fixes devnet timing.

    3.14.1release notes

  • The noop lint finds more no-ops.

    3.14.1release notes

  • Fixes false positives from the lint.

    3.14.1release notes

  • The lint highlights the binding name instead of the expression.

    3.14.1release notes

  • Editing Clarinet.toml now preserves user settings, key ordering, and comments.

    3.14.0release notes

  • deploy_contract now respects cost tracking.

    3.14.0release notes

  • Fixes encode_error failures in certain environments.

    3.14.0release notes

  • Fixes formatting of commented-out function parameters.

    3.14.0release notes

  • Encrypted mnemonic output can be pasted into TOML without editing.

    3.12.0release notes

  • Encrypted mnemonics are decrypted immediately when loading NetworkManifest.

    3.12.0release notes

  • List spacing is made consistent.

    3.12.0release notes

  • The linter no longer generates noop diagnostics on single op arithmetic functions.

    3.12.0release notes

  • Fixes formatting of empty traits.

    3.9.2release notes

  • Fixes formatting of string escapes.

    3.9.2release notes

  • Fixes indexing when updating service status.

    3.9.2release notes

  • Fixes the broken Tx helper deployContract.

    3.9.0release notes

  • Fixes requirements fetching.

    3.9.0release notes