Commit Graph

229 Commits

Author SHA1 Message Date
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
fryorcraken.eth 1c2df434e0
fix(deps): freeze @libp2p/interface-connection 2022-08-16 15:24:11 +10:00
fryorcraken.eth 38e39e71be
fix(deps): free uint8arraylist
Some issue with transient dependencies.
2022-08-16 15:06:11 +10:00
fryorcraken.eth 574e99c768
chore(deps): upgrade it-pipe 2022-08-16 14:48:31 +10:00
fryorcraken.eth b866c650bb
chore(deps): install used transient dep 2022-08-16 14:47:16 +10:00
fryorcraken.eth d560f8ce0e
fix: bundling with exports map 2022-08-07 12:03:05 +10:00
fryorcraken.eth 731318fa66
feat: export create_waku 2022-08-07 12:03:04 +10:00
fryorcraken.eth bcbf40ee10
chore: rename test scripts
both tests are `unit`, also script name shouldn't change
if a different framework (karma) is used.
2022-08-06 01:02:15 +10:00
fryorcraken.eth 187287a28c
feat: all buffer dependencies have been removed 2022-08-05 21:31:41 +10:00
fryorcraken.eth 334e331090
fix: remove nyc
Not used.
2022-08-05 16:43:05 +10:00
fryorcraken.eth bf47803631
fix: size-limit by setting buffer false in webpack 2022-08-03 16:46:53 +10:00
fryorcraken.eth 69b3595d6f
chore: bump size-limit to 8.0.0 2022-08-03 16:46:53 +10:00
fryorcraken.eth b67848d2d5
style: lint cjs files 2022-08-03 16:05:36 +10:00
Franck Royer 8126e96f33
chore: remove multiformats (unused) 2022-08-03 09:30:40 +10:00
Franck Royer 2004bf193e
chore: remove @types/varint (unused) 2022-08-03 09:30:40 +10:00
Franck Royer 9297ad6021
chore: remove @types/secp256k1 (unused) 2022-08-03 09:30:40 +10:00
Franck Royer 157b5bd3c2
chore: remove webpack-cli 2022-08-03 09:30:40 +10:00
Franck Royer 3b93583848
fix: size-limit 2022-08-03 09:30:40 +10:00
Franck Royer c3991a2987
fix: fix tsc incremental build feature
dist folder is deleted automatically but not tsbuildinfo file so nothing
is built as it is assumed already built by tsc.
2022-08-03 09:30:39 +10:00
Franck Royer 8b350f4272
feat: remove node polyfilling
Does not seem necessary.
2022-08-03 09:30:39 +10:00
Franck Royer 94a21bc75e
feat! remove esm package folder 2022-08-03 09:30:39 +10:00
Franck Royer 785a220dff
fix: remove unused stream-browserify 2022-08-03 09:30:39 +10:00
Franck Royer 50890b5206
feat: remove umd build, minimize esm bundle 2022-08-03 09:30:39 +10:00
Franck Royer 338e3c9964
feat: add esm bundling 2022-08-03 09:30:38 +10:00
Franck Royer d2703d081e
feat!: remove cjs build 2022-08-03 09:30:38 +10:00
Franck Royer ee12ec0ab5
chore: bump dns-query to 0.11.2 2022-08-03 09:30:37 +10:00
Franck Royer 9965ba9059
chore: bump @libp2p/mplex to 4.0.1 2022-08-03 09:30:37 +10:00
Franck Royer d7b08f7e24
fix: Wait for remote peer for Waku Relay
The promise resolves only if a remote peer is added to the gossipsub
mesh.
2022-08-03 09:30:37 +10:00
Franck Royer da9b7b31f5
chore: bump @chainsafe/libp2p-gossipsub to 3.4.0 2022-08-03 09:30:36 +10:00
Franck Royer 4eeca93d47
chore: bump libp2p to next (0.38.0 rc) 2022-08-03 09:30:36 +10:00
Franck Royer c346361940
chore: bump @libp2p/mplex to 4.0.0 2022-08-03 09:30:36 +10:00
Franck Royer 4669c4d149
chore: upgrade @chainsafe/libp2p-gossipsub to 3.3.0 2022-08-03 09:30:36 +10:00
Franck Royer 61e6ec8ed4
chore: upgrade rollup-plugin-polyfill-node 2022-08-03 09:30:36 +10:00
Franck Royer 1f9a12cddb
chore: upgrade libp2p-gossipsub and libp2p-noise 2022-08-03 09:30:36 +10:00
Franck Royer f768686e51
fix: fix pipe usage 2022-08-03 09:30:33 +10:00
Franck Royer 51d5bc19a2
fix: removed usage of buffer in streams 2022-07-20 12:45:14 +10:00
Franck Royer 157e42e148
fix: Do not use `names` import 2022-07-20 12:44:47 +10:00
Franck Royer 9e27a0082e
Sort out ENR key generation, upgrade to @libp2p/crypto 2022-07-20 12:44:44 +10:00