Skip to content

Latest commit

 

History

History
616 lines (354 loc) · 20.8 KB

CHANGELOG.md

File metadata and controls

616 lines (354 loc) · 20.8 KB

Changelog

2.1.3

Patch Changes

2.1.2

Patch Changes

2.1.1

Patch Changes

2.1.0

Minor Changes

  • ff20390: chore: update chainspecs
  • f6cef04: chore: update changesets

Patch Changes

  • 7ee9c18: chore: update smoldot to 2.0.34
  • 20eea99: chore: update smoldot
  • Updated dependencies [ff20390]
  • Updated dependencies [f6cef04]

2.0.1

Patch Changes

2.0.0

Major Changes

  • e2a5cef: ## Breaking Changes

    • Modified addChain and addWellKnownChain methods:
      • Now accept a single options object parameter instead of separate jsonRpcCallback and databaseContent parameters
      • The jsonRpcCallback is now passed as options.jsonRpcCallback
      • The databaseContent is now passed as options.databaseContent
    • Removed JsonRpcCallback type export. Use the callback type from the options parameter of addChain and addWellKnownChain 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 response
      • jsonRpcResponses: 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 and addWellKnownChain, and adapt to the removed JsonRpcCallback 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.

Patch Changes

1.3.1

Patch Changes

1.3.0

Minor Changes

  • 198b375: chore: catalog and upgrade papi dependencies

Patch Changes

1.2.1

Patch Changes

  • d0316d7: update docs
  • Updated dependencies [972af65]
  • Updated dependencies [b2c7737]

1.2.0

Minor Changes

  • b476e7e: update build system to tshy worker is now exported under "browser" conditional export instead of node. "node" conditional export removed.

Patch Changes

1.1.3

Patch Changes

  • Updated dependencies [0bd81c2]
  • Updated dependencies [076439e]
  • Updated dependencies [bc9fe42]

1.1.2

Patch Changes

  • 0b3053e: chore(deps-dev): bump vitest from 1.6.0 to 2.0.5

    Bumps vitest from 1.6.0 to 2.0.5.


    updated-dependencies:

    • dependency-name: vitest dependency-type: direct:development update-type: version-update:semver-major ...

    Signed-off-by: dependabot[bot] [email protected]

  • Updated dependencies [1049be1]

1.1.1

Patch Changes

  • 80187a0: docs(substrate-connect): add polkadotjs example
  • e8fef4e: update docs
  • Updated dependencies [897f553]
  • Updated dependencies [e8fef4e]
  • Updated dependencies [0ce9864]
  • Updated dependencies [4a45295]
  • Updated dependencies [4a45295]

1.1.0

Minor Changes

  • e35a0e8: add paseo testnet

Patch Changes

  • cef7d50: update chainspecs
  • Updated dependencies [e35a0e8]
  • Updated dependencies [cef7d50]
  • Updated dependencies [188bf5b]
  • Updated dependencies [4123a5e]

1.0.9

Patch Changes

1.0.8

Patch Changes

1.0.7

Patch Changes

  • Updated dependencies [c358405]
  • Updated dependencies [bdd728d]

1.0.6

Patch Changes

1.0.5

Patch Changes

  • 796c168: chore: update polkadot-api packages
  • Updated dependencies [c69adf0]

1.0.4 - 2024-07-02

Patch Changes

Changed

1.0.3 - 2024-06-27

  • Update internal usage of discovery protocol to use @substrate/smoldot-discovery instead of @substrate/connect-discovery
  • Bump light client extension helpers

1.0.2 - 2024-06-17

  • Bump light client extension helpers

1.0.1 - 2024-06-17

  • Version bump

1.0.0 - 2024-07-26

Breaking

  • Drop support for lightClient:requestProvider events #2221

Changed

  • Add support for @substrate/discovery protocol #2221

0.8.11 - 2024-05-24

  • Update @substrate/light-client-extension-helpers to v0.1.0
  • Update @substrate/connect-known-chains to v1.1.5

Changed

0.8.10 - 2024-04-12

  • Update @substrate/light-client-extension-helpers to v0.0.5
  • Update @substrate/connect-known-chains to v1.1.4

0.8.9 - 2024-04-10

Changed

  • Update @polkadot-api/json-rpc-provider-proxy to v0.0.1 #2072
  • Update @polkadot-api/substrate-client to v0.0.1 #2072

0.8.8 - 2024-03-12

Changed

0.8.7 - 2024-02-23

Changed

  • Update @substrate/light-client-extension-helpers to v0.0.3 #1875

0.8.6 - 2024-02-21

Changed

0.8.5 - 2024-01-18

Changed

0.8.4 - 2024-01-02

Changed

  • Update smoldot@version 2.0.16 #1708
  • Use @polkadot-api/light-client-extension-helpers@0.0.1-4bc9bd71f8f37f800fec7a42775f403271903870.1.0 (#1709)

0.8.3 - 2023-12-07

Changed

  • Use @polkadot-api/light-client-extension-helpers/web-page (#1603)

0.8.2 - 2023-12-06

Changed

  • Update @substrate/connect-known-chains@^1.0.2

0.8.1 - 2023-11-30

Changed

  • Use chain specifications from @substrate/connect-known-chains (#1647)

0.8.0 - 2023-11-28

Breaking

  • Add chain.addChain(...) to substrate connect API (#1604)

Changed

0.7.35 - 2023-11-12

Changed

0.7.34 - 2023-10-18

Changed

0.7.33 - 2023-09-26

Changed

  • Use dynamic imports for well known chain (#1560)

0.7.32 - 2023-09-14

Changed

0.7.31 - 2023-07-25

Changed

0.7.30 - 2023-07-10

Changed

0.7.28 - 2023-06-11

Fixed

  • Publish src folder.

0.7.27 - 2023-06-11

Changed

Fixed

  • Avoid importing json files (#1437)

0.7.26 - 2023-05-04

Changed

0.7.25 - 2023-05-01

Changed

0.7.24 - 2023-04-20

Changed

Fixed

  • Fix broken link in docs (#1417)

0.7.23 - 2023-04-04

Changed

0.7.22 - 2023-03-21

Changed

  • Stop using dynamic imports in order to import the "well-known" specs, due to the fact that not all bundlers are able to handle dynamic imports gracefully on package's code.

0.7.21 - 2023-03-16

0.7.20 - 2023-02-17

0.7.19 - 2023-01-13

  • Update checkpoints in chain specification, in order to correct the breaking of substrate-connect that occurred due to an operational issue on the Westend validators(execution of a sudo initializer.forceApprove operation at block #14192316 to recover consensus). (#1377)

0.7.18 - 2022-12-13

Changed

0.7.17 - 2022-11-18

Changed

0.7.16 - 2022-10-31

Changed

0.7.15 - 2022-10-17

Changed

0.7.14 - 2022-09-21

Changed

0.7.13 - 2022-09-14

Changed

0.7.12 - 2022-09-12

Changed

0.7.11 - 2022-08-18

Changed

0.7.10 - 2022-08-01

Changed

0.7.9 - 2022-07-19

Changed

  • Alter configuration for supporting both ESM and CommonJS (CJS) (#1160)
  • Update @substrate/smoldot-light to version 0.6.25. (#1160)

0.7.8 - 2022-07-11

Changed

0.7.7 - 2022-06-17

Changed

  • Update the Rococo chain specification to start after a forced authorities change. (#1107)

0.7.6 - 2022-06-16

Changed

Fixed

  • Fixed race condition causing failure to detect when the chain initialization fails when the extension is present (#1093).

0.7.5 - 2022-05-17

Added

  • Added an optional configuration to createScClient that allows forcing the use of the embedded client, and customizing the maximum log level to use while the embedded client client is in use, allowing for better debuggability. (#1027, #1044)

Changed

0.7.4 - 2022-05-05

Changed

  • Debug logs are no longer printed in the console. This should considerably decrease the number of messages being printed. (#1027)

0.7.3 - 2022-05-02

Changed

  • Replace the rococo_v2_1 well-known chain with rococo_v2_2 (#1010)
  • The reason why the extension rejects a chain is now explained in the exception being thrown. (#968)

0.7.2 - 2022-04-07

Changed

0.7.0 - 2022-04-06

Breaking

  • Removed createPolkadotJsScClient from the API, as the ScProvider has been upstreamed to @polkadot/rpc-provider. (#909)

Fixed

  • Fixed an issue when calling chain.remove() where it would throw an AlreadyDestroyedError.

Changed

  • Update @substrate/smoldot-light to version 0.6.13 (#919)
  • The smoldot background worker will now bound its CPU usage to 50% of one CPU on average. (#900)

0.6.4, 0.6.5 - 2022-03-25

Changed

0.6.3 - 2022-03-23

Added

  • The isExtensionPresent constant indicates whether the substrate-connect extension has been detected. (#869)

Changed

  • Update @substrate/smoldot-light to version 0.6.8 (#890)
  • Replace the rococo_v2 well-known chain with rococo_v2_1 (#879)
  • The inline client ("SmoldotProvider") no longer tries to connect to non-WebSocket addresses. This was previously the case when using the library from within NodeJS. This change ensures consistency in terms of blockchain connectivity between browsers and NodeJS. (#863)
  • The error message when passing an invalid well-known chain name to addWellKnownChain is no longer confusing. (#873)

Fixed

  • Fixed wrong unsubscription JSON-RPC methods being used when calling ProviderInterface.disconnect() (#842).