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@stacks/clarinet-sdk 414 changes
Breaking changes 6
The check checker is removed.
The command is removed.
The devnet package command is removed.
The hosted devnet coordinator is removed.
mineBlock() behaves like mainnet.
The API is removed.
Deprecations 1
This Clarinet.toml setting warns when used.
New APIs and options 2
Simnet adds a mempool admission layer.
Adds an API to broadcast raw transactions.
Behavior and default changes 3
Waits for bitcoind mempool load instead of verificationprogress.
Simnet uses Clarity transaction framing from stacks-core.
The default devnet bitcoin node changes to bitcoin/bitcoin 31.1.
Tooling 2
The call-checker moves to lints.
New projects use vitest 5 and clarinet-sdk 4.
@stacks/clarinet-sdk 3140 changes
Breaking changes 10
The environment variable’s behavior is inverted, changing how hints are disabled.
Defaults now use epoch 4.0 and Clarity 6.
Upgrade to the Clarity 6 preview, which may affect contract execution behavior.
Clarinet now defaults to Clarity 5.
Style lints are enabled at Level::Note by default.
Lints are enabled by default.
call_checker is now always enabled.
The default epoch is now 3.3, which may affect Clarity behavior.
Changes the default epoch used in deployments.
Clarinet projects need to migrate to vitest-environment-clarinet@3.0.1 instead of vitest-environement-clarinet@2.x.
Security 1
The SDK suggests using encrypted mnemonics in testnet and mainnet TOML files.
New APIs and options 19
The contract rm command accepts --force (or -f) to force removal.
Event observer configuration supports keyed events.
Simnet adds support for post-conditions.
Adds an include/exclude filter for linting.
Adds the IncorrectContractHeight error type.
Adds logger hook filters with all, project-only, and none choices.
Adds Pox-5 capabilities to devnet.
New epoch and clarity types are available.
The SDK now supports override_boot_contract.
POX-5 is optionally available in simnet.
Adds a command option to show details about lints and lint groups.
Adds a strength option for key derivation when using encrypted mnemonics.
Adds static cost analysis.
Adds
--output=<format>to emit JSON or other formats.Lints in this group can ignore identifiers using a naming convention.
The SDK can generate a deployment plan.
Support for encrypted mnemonics was added.
Lint groups can be used to enable or disable multiple lints.
Adds full support for Epoch 3.3 and Clarity 4; the defaults remain Epoch 3.2 and Clarity 3.
Performance 8
The lookup algorithm now runs in O(log n).
Formatting UTF-8 strings and @format-ignore blocks no longer incurs O(n²) handling.
Caches wallet key derivation.
Replaces the curl shellout with worker-thread synchronous HTTP in Node WASM.
Contract ASTs are cached, and only changed files are re-parsed.
Removes an unnecessary Session::new() call, saving about 70ms per run.
Reduces temporary
Stringallocations, with a 15% performance improvement.Linux performance improves by using jemalloc instead of the default allocator.
Behavior and default changes 22
Definition-only REPL snippets now receive their own contract name.
The table form of a devnet event observer now defaults events_keys.
Genesis sBTC balances are credited directly instead of replaying a deposit per wallet.
Mainnet boot-contract addresses are remapped to testnet addresses in simnet.
Simnet now tracks account nonces.
Contracts are deployed and sBTC is funded when devnet boots from a snapshot.
Prices epoch 4.0 with costs-5.
Updates the start height used for Stacks mainnet 4.0.
Static-cost analysis now supports resolving external traits.
Static-cost analysis now warns about and resolves local traits.
Code marked with #[env(simnet)] is stripped out of on-chain deployments.
Changes how simnet annotations are dimmed.
The command output now includes styling and active lints.
Devnet now uses
Environment::OnChain.Clarinet now defaults to epoch 3.4.
Logs more when starting devnet without the dashboard.
Stops running the linter on external requirements.
Changes the defaults for
cargo check.Improves the transaction structure of deployment plans.
The matcher now supports hex strings.
Clarinet can parse new tenure extends.
Devnet now implements graceful shutdown for SIGTERM signals.
Tooling 37
Adds a session cache for LSP didsave.
Adds a lint for the with-stacking deprecation, helping developers identify deprecated usage.
Overrides boot contracts coverage in LCOV.
Updates syntax support with new Clarity 6 functions.
LSP diagnostics now include suggestion text.
The linter flattens variadic functions.
Adds the unnecessary_tuple lint to flag unnecessary tuples.
Diagnostic messages now include the lint name.
Adds the case_data_var lint.
Adds the case_fn lint.
Adds the case_map lint.
Adds the case_token lint.
Adds the case_trait lint.
Adds a latest-version check for the CLI.
Enhances codelens configuration.
Dims code annotated with env(simnet) using DiagnosticTag::Unnecessary.
Adds linting for at-block.
Adds the case_binding lint.
Runs diagnostics with and without env(simnet) code.
Adds static code analysis through CodeLens.
Groups Docker containers in devnet.
Runs diagnostics with and without env(simnet) code.
Adds a lint for unnecessary
as_max_lenusage.Some unused lints suggest suffixing the item name with
_.Adds the error_const lint.
Adds the unnecessary_public lint.
Allows multiple lints inside a single #[allow(...)] annotation.
Adds the case_const lint.
Adds the unused_binding lint.
Adds the unused_trait lint.
The linter adds an unused_token lint.
A lint for unused private functions was added.
Adds the unused_const lint.
Adds the unused_data_var lint.
Adds the unused_map lint.
Adds a JSON Schema for Clarinet.toml.
Clarinet projects need to use the SDK package published under the @stacks organization instead of @stacks/clarinet-sdk@3.x.
Fixes and other changes 43
Fixes five bugs in define-trait formatting.
Fixes seven comment and tuple formatting bugs.
Simnet now remaps boot-contract addresses in requirements.
Coverage now counts syntax-only lines in multi-line expressions.
The dependency detector no longer fails on invalid Clarity code.
The formatter now properly handles escaped characters in strings.
Restores the pox-5 testnet admin rewrite.
The linter suppresses unnecessary tuple warnings in print.
Fixes epoch 4 snapshotting in devnet.
Fixes sBTC funding in devnet.
Updated testnet heights.
Updated the testnet sBTC contract address.
Fixed Vitest-helper path derivation.
Boot contracts now deploy during the correct epoch.
Fixes LCOV asserts and BRDA numbering.
Avoids a capacity overflow bug in static cost.
Fixes getContractAST in the Remote_data fetch flow.
Errors from getContractAST are surfaced as JsError with descriptive messages.
The linter no longer warns on private functions inside #[env(simnet)] blocks.
Makes static costs deterministic.
Clarinet now properly passes DOCKER_HOST for Docker commands.
Linter output for a single file now matches project output.
Checks client capabilities before running cost analysis.
Ignores env(simnet) annotations that are at the end of a line.
Fixes traversal of Clarity 4's as-contract?.
Starts the API container when it is ready.
Fixes devnet timing.
The noop lint finds more no-ops.
Fixes false positives from the lint.
The lint highlights the binding name instead of the expression.
Editing Clarinet.toml now preserves user settings, key ordering, and comments.
deploy_contract now respects cost tracking.
Fixes encode_error failures in certain environments.
Fixes formatting of commented-out function parameters.
Encrypted mnemonic output can be pasted into TOML without editing.
Encrypted mnemonics are decrypted immediately when loading NetworkManifest.
List spacing is made consistent.
The linter no longer generates noop diagnostics on single op arithmetic functions.
Fixes formatting of empty traits.
Fixes formatting of string escapes.
Fixes indexing when updating service status.
Fixes the broken Tx helper deployContract.
Fixes requirements fetching.