Releases: waku-org/js-waku
Releases · waku-org/js-waku
Release 0.19.1
Added
- When using
Waku.create,bootstrap.peersnow accepts an array ofMultiaddr. - Exports
Protocolsfor easy usage withwaitForRemotePeer.
Release 0.19.0
Added
- New
pubsub_topicfield on thecursorof Waku Store queries (#585).
Changed
- Add
exportstopackage.jsonfor NodeJS usage (not officially supported but helpful for experiments).
Fixed
- Handle errors thrown by
bytesToUtf8. WakuMessage.timestampfield must use nanoseconds (was using microseconds).
Removed
- Removed
ecies-gethdependency.
Release 0.18.0
Changed
- Replaced
rlpdependency with@ethersproject/rlp. - Breaking:
staticNoiseKeychanged fromBuffertoUint8Array. - Implement Waku Store 2.0.0-beta4. The
WakuMessage.timestampfield now stores nanoseconds over the wire. - Breaking:
HistoryRPC.createQuerytakesDateinstead ofnumberforstartTimeandendTime.
Removed
base64urlandbigint-bufferdependencies.
Release 0.17.0
Changed
- Breaking: Upgrade
libp2pto0.36.2&libp2p-gossipsubto0.13.0. Some APIs are now async. - docs: Various improvements.
- Ran
npm audit fix. Waku.dialaccepts protocols expected from the peer. Defaults to Waku Relay only.- Deprecated
hexToBuf&bufToHexin favour ofhexToBytes&bytesToHexto move towards removing thebufferpolyfill. - Breaking: Replaced
getNodesFromHostedJsonwithgetPredefinedBootstrapNodes. Now, it uses a hardcoded list of nodes.
Removed
- axios dependency in favour of fetch.
Release 0.16.0
Changed
- Test: Upgrade nim-waku node to v0.7.
- Doc: Renamed "DappConnect" to "Waku Connect".
- Docs: API Docs are now available at https://js-waku.wakuconnect.dev/.
- Breaking: Replace
waitForConnectedPeerwithwaitForRemotePeer; the new method checks that the peer is ready before resolving the promise.
Release 0.15.0
Added
- Implement DNS Discovery as per EIP-1459,
with ENR records as defined in 31/WAKU2-ENR;
Available by passing{ bootstrap: { enrUrl: enrtree://... } }toWaku.create. - When using
addDecryptionKey,
it is now possible to specify the decryption method and the content topics of the messages to decrypt;
this is to reduce the number of decryption attempt done and improve performance.
Changed
- Test: Upgrade nim-waku node to v0.6.
- Breaking: Renamed
getBootstrapNodestogetNodesFromHostedJson. - Minimum node version changed to 16.
- Breaking: Changed
Waku.createbootstrap option from{ bootstrap: boolean }to{ bootstrap: BootstrapOptions }.
Replace{ boostrap: true }with{ boostrap: { default: true } }to retain same behaviour. - Breaking:
WakuMessage.decodeandWakuMessage.decodeProtonow accepts method and content topics for the decryption key.
WakuMessage.decode(bytes, [key])becomesWakuMessage.decode(bytes, [{key: key}]).
Fixed
- Doc: Some broken links.
Release 0.14.2
Changed
- Examples: JS examples uses local ESM folder to replicate behaviour of js-waku publish package.
Fixed
TypeErrorissue related to constructors using js-waku in a JS project
(#323).
Release 0.14.1
Fixed
- Issue when importing the
utilsmodule.
Release 0.14.0
Added
- If the
callbackfunction passed toWakuStore.queryHistoryreturnstrue, then no further pages are retrieved from the store. - Use webpack to build UMD bundle of the library, see README for usage.
Changed
- Breaking: Renamed
WakuStore.QueryOptions'sdirectiontopageDirection(and its type) as it only affects the page ordering,
not the ordering of messages with the page.
Fixed
- Docs: Ensure that
WakuStore'sQueryOptionsdocumentation is available online.
Release 0.13.1
Fixed
Error: Bootstrap requires a list of peer addresseserror when usingbootstrap: trueinWaku.create.