Contents
Your subscription could not be saved. Please try again.
Thanks for subscribing.
The JavaScript packages under the stacks.js umbrella continue to improve and today we are excited to share details about a major version bump to version 2, which includes breaking changes. Read on for details on breaking change upgrades, how to use new TypeScript magic, and info about the new wallet SDK!
The broadcastTransaction function in @stacks/transactions now returns a more consistent response whether it succeeds or fails:
For developers with existing integrations who would like to make use of all the updates and fixes of the version 2 release (see changelog below), here is a short but complete code sample of the changes required to comply with the latest version:
As part of the rollout of end-to-end support for microblocks, the transaction builder in @stacks/transactions no longer sets a default anchormode.
You need to provide the appropriate mode based on your preference. Read more about microblocks and the anchor mode option.
You can now specify Clarity value types when deserializing or reading data out of an otherwise opaque ClarityValue object.
This new package allows developers to:
→ Give it a try and let us know what you think!
These were just the highlights. Read the full changelog for v2.0.1 to learn about other fixes: https://github.com/blockstack/stacks.js/blob/master/CHANGELOG.md