5.7 KiB
@bizinikiwi/smoldot-discovery
2.0.2
Patch Changes
-
92316c0: chore(deps-dev): bump vitest in the npm_and_yarn group
Bumps the npm_and_yarn group with 1 update: vitest.
Updates
vitestfrom 2.1.4 to 2.1.9
updated-dependencies:
- dependency-name: vitest dependency-type: direct:development dependency-group: npm_and_yarn ...
Signed-off-by: dependabot[bot] support@github.com
-
Updated dependencies [92316c0]
- @bizinikiwi/discovery@0.2.2
2.0.1
Patch Changes
-
09f1c22: chore(deps-dev): bump vitest from 2.0.5 to 2.1.4
Bumps vitest from 2.0.5 to 2.1.4.
updated-dependencies:
- dependency-name: vitest dependency-type: direct:development update-type: version-update:semver-minor ...
Signed-off-by: dependabot[bot] support@github.com
-
Updated dependencies [09f1c22]
- @bizinikiwi/discovery@0.2.1
2.0.0
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
@bizinikiwi/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
@bizinikiwi/smoldot-discoveryas a peer dependency. - Modified
1.2.0
Minor Changes
- 198b375: chore: catalog and upgrade papi dependencies
Patch Changes
- Updated dependencies [198b375]
- @bizinikiwi/discovery@0.2.0
1.1.0
Minor Changes
- b476e7e: update build system to tshy
Patch Changes
- Updated dependencies [b476e7e]
- @bizinikiwi/discovery@0.1.0
1.0.1
Patch Changes
- e8fef4e: update docs
- 0ce9864: simplify isSmoldotExtension
- Updated dependencies [e8fef4e]
- @bizinikiwi/discovery@0.0.2
1.0.0
Major Changes
-
4123a5e: ## Breaking Changes
Change Summary
- Removes the connector function and extracts its into a different package.
- Remove
@bizinikiwi/light-client-extension-helpersdependency. - Re-export
@bizinikiwi/discoverytypes
Motivation
@bizinikiwi/smoldot-discoveryis intended for dapp consumption only. However by having a connector function that was used by extensions, we forced dapps to have a dependency on@bizinikiwi/light-client-extension-helpers. This is unacceptable since@bizinikiwi/light-client-extension-helpersshould be used by extensions only. As a result, the connector function has been extracted into a separate package and the dependency onbizinikiwi/light-client-extension-helpershas been removed.How to Update
Dapps
No code changes are required. Simply update the package and remove the
@bizinikiwi/light-client-extension-helperspeer dependency.Extensions
Extensions must install the
@bizinikiwi/smoldot-discovery-connectorpackage.Then the connector can be consumed as follows:
import { getLightClientProvider } from "@bizinikiwi/light-client-extension-helpers/web-page" import { make as makeSmoldotDiscoveryConnector, SmoldotExtensionProviderDetail, } from "@bizinikiwi/smoldot-discovery-connector" const CHANNEL_ID = "YOUR_CHANNEL_ID" const lightClientProvider = getLightClientProvider(CHANNEL_ID) // #region Smoldot Discovery Provider { const provider = lightClientProvider.then(makeSmoldotDiscoveryConnector) const detail: SmoldotExtensionProviderDetail = Object.freeze({ kind: "smoldot-v1", info: PROVIDER_INFO, provider, }) window.addEventListener( "bizinikiwiDiscovery:requestProvider", ({ detail: { onProvider } }) => onProvider(detail), ) window.dispatchEvent( new CustomEvent("bizinikiwiDiscovery:announceProvider", { detail, }), ) } // #endregionAdditional Notes
- The connector
makefunction now accepts two parameters instead of one. ThelightClientProvideris now the first parameter.
Minor Changes
- e35a0e8: add paseo testnet
Patch Changes
- cef7d50: update chainspecs
0.0.9
Patch Changes
- 444503f: chore: update READMEs across repo
0.0.8
Patch Changes
- c358405: fix(smoldot-discovery): peer dependencies constraint
- bdd728d: fix: re-export missing types from light client ext helpers webpage
0.0.7
Patch Changes
- 78ca884: chore: add smoldot discovery connector