You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Modified `addChain` and `addWellKnownChain` methods:
10
+
- Now accept a single `options` object parameter instead of separate `jsonRpcCallback` and `databaseContent` parameters
11
+
- The `jsonRpcCallback` is now passed as `options.jsonRpcCallback`
12
+
- The `databaseContent` is now passed as `options.databaseContent`
13
+
14
+
- Removed `JsonRpcCallback` type export. Use the callback type from the `options` parameter of `addChain` and `addWellKnownChain` instead.
15
+
16
+
- Updated peer dependency for `@substrate/smoldot-discovery` to "^3"
17
+
18
+
## New Features
19
+
20
+
- Added new methods to the Chain interface to conform with smoldot's interface:
21
+
-`nextJsonRpcResponse`: Returns a promise that resolves with the next JSON-RPC response
22
+
-`jsonRpcResponses`: Returns an async iterable of JSON-RPC responses
23
+
24
+
## Other Changes
25
+
26
+
- Updated internal implementation to use Effect for streaming JSON RPC responses in a Queue.
27
+
- Updated error handling to include `QueueFullError`.
28
+
29
+
## Migration Guide
30
+
31
+
Users of this package will need to update their code to use the new method signatures for `addChain` and `addWellKnownChain`, and adapt to the removed `JsonRpcCallback` type export. Please refer to the updated documentation for the new usage patterns.
32
+
33
+
When upgrading, ensure you're using version 3 or higher of `@substrate/smoldot-discovery` as a peer dependency.
0 commit comments