Releases: waku-org/js-waku
Releases · waku-org/js-waku
Release 0.28.0
Changed
- Correct options type for
createFullNode&createPrivacyto enable passing gossipsub options. WakuStorenow provides several APIs:queryGenerator,queryCallbackOnPromise,queryOrderedCallback;
each provides different guarantees and performance.
Release 0.27.0
Added
createLightNodeto create a Waku node for resource restricted environment with Light Push, Filter and Relay.createPrivacyNodeto create a Waku node for privacy preserving usage with Relay only.createFullNodeto create a Waku node for with all protocols, for testing purposes only.
Changed
Wakuis now defined as an interface withWakuNodean implementation of it.createWakuis deprecated in favour ofcreateLightNodeandcreatePrivacyNode.waitForRemotePeercan throw, default behaviour has changed.addPeerToAddressBookis now async.- API Docs moved to https://js.waku.org/
- test: fix typing for nwaku JSON RPC responses.
Release 0.26.0
Added
- Simple connection management that selects the most recent connection for store, light push and filter requests.
Changed
- breaking:
DecryptionParamsmay be passed when usingqueryHistoryinstead of just keys. - Examples have been moved to https://github.com/waku-org/js-waku-examples.
Fixed
- doc: add missing modules.
Release 0.25.0
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
buildtodist/. - 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-querydependency, breaking change onDnsNodeDiscoveryAPI. - 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:
createWakuis 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.
bufferis not needed in the browser.
Removed
terserminification andgzipcompressions have been removed.
Release 0.24.0
Added
waitForRemotePeernow accepts atimeoutMsparameter 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
waitForRemotePeerwaits for a Relay peer by default instead of Relay and Store.- Breaking: Removed dupe secp256k1 code, removed some unused APIs.
Release 0.23.0
Added
- Some dependencies that were used but not declared (often transient).
Changed
- Replaced deprecated
multihasheswithmultiformats.
Removed
- No more
assertusage.
Release 0.22.0
Changed
- Replaced
secp256k1and henceellipticdependencies with@noble/secp256k1,
reducing package size, number of dependency and removing need forcrypto-browserifypolyfill.
Release 0.21.0
[0.21.0] - 2022-05-5
Added
- Support of the
waku2ENR key: When using DNS Discovery, wanted node capabilities (e.g. relay, store) must be passed.
Changed
- Prefer the use of
BigIntover integer literal (npostfix) to facilitate the use of a polyfill.
Fixed
- Declare
it-pipedependency.
Release 0.20.0
Changed
- Examples: Add Relay JavaScript example.
- Breaking: Moved utf-8 conversion functions to
utils. - Froze
libp2p-gossipsubto0.13.0as new patch version bring breaking changes.
Release 0.19.2
Fixed
- Enable usage in NodeJS by fixing
exportsfield and usage of thecryptomodule.