Releases: paritytech/substrate-connect
Releases · paritytech/substrate-connect
@substrate/light-client-extension-helpers@2.5.1
Patch Changes
- Updated dependencies [a1a7412]
- @substrate/connect-known-chains@1.6.0
@substrate/extension@0.11.1
Patch Changes
-
d183f3d: chore(deps): bump the npm_and_yarn group with 2 updates
Bumps the npm_and_yarn group with 2 updates: vite and rollup.
Updates
vite
from 5.3.4 to 5.3.6Updates
rollup
from 4.18.0 to 4.20.0
updated-dependencies:
- dependency-name: vite
dependency-type: direct:development
dependency-group: npm_and_yarn - dependency-name: rollup
dependency-type: indirect
dependency-group: npm_and_yarn
...
Signed-off-by: dependabot[bot] support@github.com
- dependency-name: vite
-
Updated dependencies [e2a5cef]
- @substrate/smoldot-discovery-connector@0.3.0
@substrate/discovery@0.2.0
Minor Changes
- 198b375: chore: catalog and upgrade papi dependencies
@substrate/connect@2.0.0
Major Changes
-
e2a5cef: ## Breaking Changes
- Modified
addChain
andaddWellKnownChain
methods:- Now accept a single
options
object parameter instead of separatejsonRpcCallback
anddatabaseContent
parameters - The
jsonRpcCallback
is now passed asoptions.jsonRpcCallback
- The
databaseContent
is now passed asoptions.databaseContent
- Now accept a single
- Removed
JsonRpcCallback
type export. Use the callback type from theoptions
parameter ofaddChain
andaddWellKnownChain
instead. - Updated peer dependency for
@substrate/smoldot-discovery
to "^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
addChain
andaddWellKnownChain
, and adapt to the removedJsonRpcCallback
type 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-discovery
as a peer dependency. - Modified
Patch Changes
- Updated dependencies [e2a5cef]
- @substrate/smoldot-discovery@2.0.0
@substrate/connect-known-chains@1.6.0
Minor Changes
- a1a7412: chore: update changesets
@substrate/connect-extension-protocol@2.2.0
Minor Changes
- 198b375: chore: catalog and upgrade papi dependencies