Commit Graph

266 Commits

Author SHA1 Message Date
fryorcraken.eth 6b2accbb28
chore: use prettierignore to select files to format 2022-10-31 09:32:46 +11:00
fryorcraken.eth 2cef9d43ea
chore: move size-limit to root 2022-10-31 09:32:46 +11:00
fryorcraken.eth 7cc7439ed6
chore: setup workspace scripts 2022-10-30 21:16:02 +11:00
fryorcraken.eth dc4089a1dd
chore: setup husky/lint-staged at root 2022-10-30 21:12:01 +11:00
fryorcraken.eth 4e340eb045
chore: install lerna 2022-10-30 21:02:12 +11:00
fryorcraken.eth b975943e90
chore: move js-waku to ./core 2022-10-30 17:57:15 +11:00
dependabot[bot] baf2ff0386
build(deps-dev): bump p-timeout from 4.1.0 to 6.0.0
Bumps [p-timeout](https://github.com/sindresorhus/p-timeout) from 4.1.0 to 6.0.0.
- [Release notes](https://github.com/sindresorhus/p-timeout/releases)
- [Commits](https://github.com/sindresorhus/p-timeout/compare/v4.1.0...v6.0.0)

---
updated-dependencies:
- dependency-name: p-timeout
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-28 15:59:08 +11:00
fryorcraken.eth a502d153e5
Release 0.30.0 2022-10-28 10:49:28 +11:00
fryorcraken.eth 1508a9169a
Release 0.29.0 2022-09-21 16:41:02 +10:00
Dan Bamikiya fc0ff3acc8
chore: upgrade typescript version to 4.6.3 2022-09-21 11:05:09 +10:00
fryorcraken.eth dc639370bc
chore: ensure size-limit conf file is formatted 2022-09-21 10:58:20 +10:00
fryorcraken.eth c0c4965e28
feat: use a content topic only decoder for first pass decoding 2022-09-21 10:57:53 +10:00
fryorcraken.eth b2c7e4185f
feat: make message encoding more generic 2022-09-20 12:23:01 +10:00
fryorcraken.eth d891c35f86
chore: release 0.28.1
### Added

- `WakuRelay.addObserver` now returns a function to delete the observer.

### Changed

- `queryCallbackOnPromise`'s return value has been simplified to
  `Promise<void>`.
- doc: clarified behaviour of `WakuStore` query functions.
2022-09-20 11:42:02 +10:00
fryorcraken.eth 3874843e7b
Release 0.28.0 2022-09-16 12:45:14 +10:00
fryorcraken.eth 0906125834
Release 0.27.0 2022-09-13 22:55:22 +10:00
fryorcraken.eth 69a1e9988b
Revert "fix: downgrade @libp2p/mplex"
This reverts commit 4755f28969.
2022-09-13 13:14:24 +10:00
fryorcraken.eth 4755f28969
fix: downgrade @libp2p/mplex
Ref: https://github.com/libp2p/js-libp2p-mplex/issues/215
2022-09-13 12:03:19 +10:00
fryorcraken.eth 9a50e5e65c
Revert "fix: util polyfill not needed"
This reverts commit cf6eafdff3.
2022-09-13 10:05:27 +10:00
fryorcraken.eth cf6eafdff3
fix: util polyfill not needed
Ref: https://github.com/libp2p/js-libp2p-mplex/pull/213#issuecomment-1243219007
2022-09-12 14:57:10 +10:00
Jakub Sokołowski fa43c0ce05
ci: update site domain to js.waku.org
Resolves: https://github.com/waku-org/js-waku/issues/943

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-09-11 00:38:11 +10:00
fryorcraken.eth 9fc16143fa
feat: createLightNode and createPrivacyNode helpers 2022-09-08 18:35:20 +10:00
fryorcraken.eth f56f6e2e83
feat: define `Waku` interface 2022-09-08 18:35:20 +10:00
fryorcraken.eth a54494dbbf
build: run `make update` before building nwaku 2022-09-08 18:35:13 +10:00
fryorcraken.eth f9abc79297
Release 0.26.0 2022-09-08 15:08:53 +10:00
fryorcraken.eth c201cbd3dd
chore: remove examples folder 2022-09-07 16:47:22 +10:00
fryorcraken.eth d2ac62c708
Release 0.25.0 2022-09-05 15:36:57 +10:00
fryorcraken.eth bfeaf6c14e
fix: it-length-prefixed now returns Uint8ArrayList 2022-09-05 15:02:23 +10:00
fryorcraken.eth ab76063f33
chore(deps): bump protons to 5.10, protons-runtime to 3.1.0 2022-09-05 14:39:55 +10:00
fryorcraken.eth 4d4c4430f4
refactor: rename proto enum `Error` to `HistoryError`
As this creates a conflict with the new protons version.
2022-09-05 14:37:54 +10:00
fryorcraken.eth d8bb0c7759
chore(deps): bump it-length-prefixed to 8.0.2 2022-09-05 12:23:46 +10:00
fryorcraken.eth c23e504d0e
chore(deps): bump @multiformats/multiaddr to 10.4.0 2022-09-05 10:57:01 +10:00
fryorcraken.eth 6127d566c6
chore(deps): bump @libp2p/websocket to 3.0.3 2022-09-05 10:54:52 +10:00
fryorcraken.eth 574a5ad58f
chore(deps): bump @libp2p/mplex to 5.1.1 2022-09-05 10:49:22 +10:00
fryorcraken.eth 185bf8dd56
chore(deps): bump @libp2p/crypto to 1.0.4 2022-09-05 10:46:47 +10:00
fryorcraken.eth ef891bc585
chore(deps): bump @chainsafe/libp2p-noise to 8.0.1 2022-09-05 10:43:33 +10:00
fryorcraken.eth 34a82105fb
chore(deps): bump @chainsafe/libp2p-gossipsub to 4.1.1 2022-09-05 10:36:39 +10:00
fryorcraken.eth ece1ca53c7
chore(deps): bump libp2p to 0.38.0 2022-09-05 10:34:49 +10:00
fryorcraken.eth 2108e56dfa
fix: export wait_for_remote_peer in exports map
This module will just consume a generate Waku and Waku Relay interfaces
so we already we want to extract it.

It is also one opinionated to handle connection management, other ways
might come with https://github.com/status-im/js-waku/issues/914.
2022-09-01 14:42:21 +10:00
dependabot[bot] 91a9512573
chore(deps-dev): bump lint-staged from 12.3.6 to 13.0.3
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 12.3.6 to 13.0.3.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v12.3.6...v13.0.3)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-30 01:08:43 +00:00
fryorcraken.eth 3eb9c80041
ci: generate & check doc 2022-08-25 15:54:05 +10:00
fryorcraken.eth 0d34c44a02
doc: remove no-inherit
It is not needed anymore, Waku Relay doc does ot automatically include
the GossipSub doc.
2022-08-25 15:54:05 +10:00
dependabot[bot] 3181d8497c
chore(deps-dev): bump typedoc from 0.22.12 to 0.23.10
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.22.12 to 0.23.10.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.22.12...v0.23.10)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-25 15:54:05 +10:00
fryorcraken.eth cfece62e2a
misc: enable lint-staged for config cjs files 2022-08-24 16:14:43 +10:00
fryorcraken.eth 931028e0ac
build: bump ts-node to 10.9.1 and ts-loader to 9.3.1 2022-08-24 15:25:37 +10:00
fryorcraken.eth 771d515b6f
ci: rename nim-waku to nwaku and upgrade to v0.11 2022-08-20 01:04:19 +10:00
fryorcraken.eth b0b2880746
fix: export predefined bootstrap nodes 2022-08-19 23:05:03 +10:00
status-bors-ng[bot] d7181da98b
Merge #892
892: fix: type export via `typesVersions` r=fryorcraken a=filoozom

## Problem

Importing anything from TypeScript in `js-waku/lib/` (`v0.25.0-rc.0`) does not work. It can't find the types despite the `exports.*.types` in `package.json`.

## Solution

This solution was inspired by `libp2p` ([example in ``@libp2p/interfaces`](https://github.com/libp2p/js-libp2p-interfaces/blob/master/packages/interfaces/package.json#L24-L39)),` and just adds `typesVersions` to `package.json`.

Documentation: https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#folder-redirects-using-

## Notes

- See https://github.com/status-im/js-waku/issues/891#issuecomment-1217388556


Co-authored-by: Philippe Schommers <philippe@schommers.be>
2022-08-19 04:52:27 +00:00
Philippe Schommers 5137f28cbf
fix: type export via `typesVersions` 2022-08-19 12:41:49 +10:00
fryorcraken.eth 9cad6d5d72
fix: add peer_discovery_static_list to exports map
Needed to access `PeerDiscoveryStaticPeers`.
2022-08-17 23:29:23 +10:00