Skip to content

Releases: waku-org/js-waku

Release 0.28.0

16 Sep 03:26
3874843

Choose a tag to compare

Changed

  • Correct options type for createFullNode & createPrivacy to enable passing gossipsub options.
  • WakuStore now provides several APIs: queryGenerator, queryCallbackOnPromise, queryOrderedCallback;
    each provides different guarantees and performance.

Release 0.27.0

13 Sep 12:56
0906125

Choose a tag to compare

Added

  • createLightNode to create a Waku node for resource restricted environment with Light Push, Filter and Relay.
  • createPrivacyNode to create a Waku node for privacy preserving usage with Relay only.
  • createFullNode to create a Waku node for with all protocols, for testing purposes only.

Changed

  • Waku is now defined as an interface with WakuNode an implementation of it.
  • createWaku is deprecated in favour of createLightNode and createPrivacyNode.
  • waitForRemotePeer can throw, default behaviour has changed.
  • addPeerToAddressBook is now async.
  • API Docs moved to https://js.waku.org/
  • test: fix typing for nwaku JSON RPC responses.

Release 0.26.0

08 Sep 07:31
f9abc79

Choose a tag to compare

Added

  • Simple connection management that selects the most recent connection for store, light push and filter requests.

Changed

Fixed

  • doc: add missing modules.

Release 0.25.0

05 Sep 05:50
d2ac62c

Choose a tag to compare

None-exhaustive list of changes.

See github.com/waku-org/js-waku-examples for examples in using the new API.

Changed

  • Published files moved from build to dist/.
  • Migrate from ts-proto to protons;
    the latter does not bring Buffer/Long deps, is ESM compatible and remove the need for bufbuild and protoc.
  • Move package to "type": "module", it is now a pure ESM package.
  • Use ESM code in Mocha and Karma tests.
  • Upgrade dns-query dependency, breaking change on DnsNodeDiscovery API.
  • Bump many libp2p libraries to their latest version (which usually are pure ESM).
  • Replace webpack with parcel for bundling
  • Examples: Updated store-js and relay-js to demonstrate usage of ESM bundle in <script> tag.
  • Remove need to polyfill buffer.
  • breaking: Various API changes. Refer to tests to check proper usage of the new API.
  • breaking: createWaku is in separate exports path.
  • breaking: Bootstrap class split: dns discovery, static list.
  • breaking: bundled files are now under bundle/.

Fixed

  • size-limit config to test several usages of Waku.
  • buffer is not needed in the browser.

Removed

  • terser minification and gzip compressions have been removed.

Release 0.24.0

27 May 04:30
1a53a35

Choose a tag to compare

Added

  • waitForRemotePeer now accepts a timeoutMs parameter that rejects the promise if it is reached. By default, no timeout is applied.
  • Experimental support for the Waku Filter protocol (client side) added, currently only works in NodeJS.

Changed

  • waitForRemotePeer waits for a Relay peer by default instead of Relay and Store.
  • Breaking: Removed dupe secp256k1 code, removed some unused APIs.

Release 0.23.0

19 May 05:54
7d9406b

Choose a tag to compare

Added

  • Some dependencies that were used but not declared (often transient).

Changed

  • Replaced deprecated multihashes with multiformats.

Removed

  • No more assert usage.

Release 0.22.0

10 May 07:45
920668c

Choose a tag to compare

Changed

  • Replaced secp256k1 and hence elliptic dependencies with @noble/secp256k1,
    reducing package size, number of dependency and removing need for crypto-browserify polyfill.

Release 0.21.0

05 May 06:57
fd15b19

Choose a tag to compare

[0.21.0] - 2022-05-5

Added

  • Support of the waku2 ENR key: When using DNS Discovery, wanted node capabilities (e.g. relay, store) must be passed.

Changed

  • Prefer the use of BigInt over integer literal (n postfix) to facilitate the use of a polyfill.

Fixed

  • Declare it-pipe dependency.

Release 0.20.0

29 Mar 23:27
929f059

Choose a tag to compare

Changed

  • Examples: Add Relay JavaScript example.
  • Breaking: Moved utf-8 conversion functions to utils.
  • Froze libp2p-gossipsub to 0.13.0 as new patch version bring breaking changes.

Release 0.19.2

21 Mar 00:06
483b117

Choose a tag to compare

Fixed

  • Enable usage in NodeJS by fixing exports field and usage of the crypto module.