Releases: paritytech/substrate-connect
Releases · paritytech/substrate-connect
@substrate/[email protected]
Minor Changes
- 198b375: chore: catalog and upgrade papi dependencies
@substrate/[email protected]
Major Changes
-
e2a5cef: ## Breaking Changes
- Modified
addChainandaddWellKnownChainmethods:- Now accept a single
optionsobject parameter instead of separatejsonRpcCallbackanddatabaseContentparameters - The
jsonRpcCallbackis now passed asoptions.jsonRpcCallback - The
databaseContentis now passed asoptions.databaseContent
- Now accept a single
- Removed
JsonRpcCallbacktype export. Use the callback type from theoptionsparameter ofaddChainandaddWellKnownChaininstead. - Updated peer dependency for
@substrate/smoldot-discoveryto "^2"
New Features
- Added new methods to the Chain interface to conform with smoldot's interface:
nextJsonRpcResponse: Returns a promise that resolves with the next JSON-RPC responsejsonRpcResponses: Returns an async iterable of JSON-RPC responses
Other Changes
- Updated internal implementation to use Effect for streaming JSON RPC responses in a Queue.
- Updated error handling to include
QueueFullError.
Migration Guide
Users of this package will need to update their code to use the new method signatures for
addChainandaddWellKnownChain, and adapt to the removedJsonRpcCallbacktype export. Please refer to the updated documentation for the new usage patterns.When upgrading, ensure you're using version 3 or higher of
@substrate/smoldot-discoveryas a peer dependency. - Modified
Patch Changes
- Updated dependencies [e2a5cef]
- @substrate/[email protected]
@substrate/[email protected]
Minor Changes
- a1a7412: chore: update changesets
@substrate/[email protected]
Minor Changes
- 198b375: chore: catalog and upgrade papi dependencies
@substrate/[email protected]
Minor Changes
- 198b375: chore: catalog and upgrade papi dependencies
Patch Changes
- Updated dependencies [198b375]
- @substrate/[email protected]