@waku/core 0.0.16 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/bundle/{browser-2f1afe46.js → browser-bde977a3.js} +12 -9
  3. package/bundle/index.js +4417 -34898
  4. package/bundle/lib/base_protocol.js +4 -1
  5. package/bundle/lib/message/version_0.js +2 -3
  6. package/bundle/{peer_exchange-1229c8b0.js → version_0-c6b47311.js} +172 -45
  7. package/dist/index.d.ts +1 -3
  8. package/dist/index.js +1 -3
  9. package/dist/index.js.map +1 -1
  10. package/dist/lib/base_protocol.js +3 -0
  11. package/dist/lib/base_protocol.js.map +1 -1
  12. package/dist/lib/connection_manager.d.ts +1 -0
  13. package/dist/lib/connection_manager.js +33 -25
  14. package/dist/lib/connection_manager.js.map +1 -1
  15. package/dist/lib/filter/filter_rpc.js +1 -0
  16. package/dist/lib/filter/filter_rpc.js.map +1 -1
  17. package/dist/lib/filter/index.js +11 -4
  18. package/dist/lib/filter/index.js.map +1 -1
  19. package/dist/lib/keep_alive_manager.d.ts +1 -0
  20. package/dist/lib/keep_alive_manager.js +5 -1
  21. package/dist/lib/keep_alive_manager.js.map +1 -1
  22. package/dist/lib/light_push/index.d.ts +1 -1
  23. package/dist/lib/light_push/index.js +28 -8
  24. package/dist/lib/light_push/index.js.map +1 -1
  25. package/dist/lib/light_push/push_rpc.js +1 -0
  26. package/dist/lib/light_push/push_rpc.js.map +1 -1
  27. package/dist/lib/message/index.d.ts +0 -1
  28. package/dist/lib/message/index.js +0 -1
  29. package/dist/lib/message/index.js.map +1 -1
  30. package/dist/lib/message/version_0.d.ts +1 -2
  31. package/dist/lib/message/version_0.js +12 -0
  32. package/dist/lib/message/version_0.js.map +1 -1
  33. package/dist/lib/store/history_rpc.js +1 -0
  34. package/dist/lib/store/history_rpc.js.map +1 -1
  35. package/dist/lib/store/index.js +3 -1
  36. package/dist/lib/store/index.js.map +1 -1
  37. package/dist/lib/waku.d.ts +2 -2
  38. package/dist/lib/waku.js +14 -2
  39. package/dist/lib/waku.js.map +1 -1
  40. package/package.json +14 -23
  41. package/src/index.ts +1 -9
  42. package/src/lib/connection_manager.ts +13 -4
  43. package/src/lib/filter/index.ts +14 -5
  44. package/src/lib/keep_alive_manager.ts +1 -2
  45. package/src/lib/light_push/index.ts +28 -11
  46. package/src/lib/message/index.ts +0 -1
  47. package/src/lib/message/version_0.ts +11 -3
  48. package/src/lib/store/index.ts +2 -2
  49. package/src/lib/waku.ts +13 -4
  50. package/bundle/lib/message/topic_only_message.js +0 -3
  51. package/bundle/topic_only_message-e8406994.js +0 -43
  52. package/bundle/version_0-e9a6cfb0.js +0 -143
  53. package/dist/lib/group_by.d.ts +0 -3
  54. package/dist/lib/group_by.js +0 -13
  55. package/dist/lib/group_by.js.map +0 -1
  56. package/dist/lib/message/topic_only_message.d.ts +0 -18
  57. package/dist/lib/message/topic_only_message.js +0 -35
  58. package/dist/lib/message/topic_only_message.js.map +0 -1
  59. package/dist/lib/relay/constants.d.ts +0 -63
  60. package/dist/lib/relay/constants.js +0 -64
  61. package/dist/lib/relay/constants.js.map +0 -1
  62. package/dist/lib/relay/index.d.ts +0 -11
  63. package/dist/lib/relay/index.js +0 -175
  64. package/dist/lib/relay/index.js.map +0 -1
  65. package/dist/lib/relay/message_validator.d.ts +0 -4
  66. package/dist/lib/relay/message_validator.js +0 -25
  67. package/dist/lib/relay/message_validator.js.map +0 -1
  68. package/src/lib/group_by.ts +0 -14
  69. package/src/lib/message/topic_only_message.ts +0 -51
  70. package/src/lib/relay/constants.ts +0 -74
  71. package/src/lib/relay/index.ts +0 -282
  72. package/src/lib/relay/message_validator.ts +0 -35
package/CHANGELOG.md CHANGED
@@ -5,6 +5,54 @@ All notable changes to this project will be documented in this file.
5
5
  The file is maintained by [Release Please](https://github.com/googleapis/release-please) based on [Conventional Commits](https://www.conventionalcommits.org) specification,
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.0.18](https://github.com/waku-org/js-waku/compare/core-v0.0.17...core-v0.0.18) (2023-05-18)
9
+
10
+
11
+ ### ⚠ BREAKING CHANGES
12
+
13
+ * @waku/relay ([#1316](https://github.com/waku-org/js-waku/issues/1316))
14
+
15
+ ### Features
16
+
17
+ * @waku/relay ([#1316](https://github.com/waku-org/js-waku/issues/1316)) ([50c2c25](https://github.com/waku-org/js-waku/commit/50c2c2540f3c5ff78d93f3fea646da0eee246e17))
18
+ * Add 1MB restriction to LightPush and Relay ([#1351](https://github.com/waku-org/js-waku/issues/1351)) ([72f97d4](https://github.com/waku-org/js-waku/commit/72f97d4545512f92936b1a9b50fa0b53f8603f9d))
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * Improve logging for connection manager ([#1303](https://github.com/waku-org/js-waku/issues/1303)) ([f4e3101](https://github.com/waku-org/js-waku/commit/f4e31019e115de0fffef01bb51a8f8e22c6cc8af))
24
+
25
+
26
+ ### Dependencies
27
+
28
+ * The following workspace dependencies were updated
29
+ * dependencies
30
+ * @waku/interfaces bumped from * to 0.0.13
31
+ * @waku/utils bumped from * to 0.0.6
32
+
33
+ ## [0.0.17](https://github.com/waku-org/js-waku/compare/core-v0.0.16...core-v0.0.17) (2023-05-09)
34
+
35
+
36
+ ### Features
37
+
38
+ * Add mapping function to multiaddr of peerid ([#1306](https://github.com/waku-org/js-waku/issues/1306)) ([763dc01](https://github.com/waku-org/js-waku/commit/763dc0125dae8a675aa25e9116831f15748c2f9d))
39
+ * Ensure content topic is defined ([bd9d073](https://github.com/waku-org/js-waku/commit/bd9d07394fc2dcad573dd7f3b44ee692d0ea93e8))
40
+ * ToSubscriptionIterator impl for IReceiver ([#1307](https://github.com/waku-org/js-waku/issues/1307)) ([7daa9d0](https://github.com/waku-org/js-waku/commit/7daa9d05bf44b33296b56df214f5d5901887a129))
41
+ * Use nwaku/go-waku docker images instead of building binaries ([#1259](https://github.com/waku-org/js-waku/issues/1259)) ([dc3774c](https://github.com/waku-org/js-waku/commit/dc3774c0ede6c76956fb02fda4dbe9f9fb218e91))
42
+
43
+
44
+ ### Bug Fixes
45
+
46
+ * Enum used from this dependency ([c9e7af4](https://github.com/waku-org/js-waku/commit/c9e7af470dfb92fc3e5b02935b243ce350153641))
47
+
48
+
49
+ ### Dependencies
50
+
51
+ * The following workspace dependencies were updated
52
+ * dependencies
53
+ * @waku/interfaces bumped from 0.0.11 to 0.0.12
54
+ * @waku/utils bumped from 0.0.4 to 0.0.5
55
+
8
56
  ## [0.0.16](https://github.com/waku-org/js-waku/compare/core-v0.0.15...core-v0.0.16) (2023-04-03)
9
57
 
10
58
 
@@ -1,8 +1,10 @@
1
- var browserExports = {};
2
- var browser = {
3
- get exports(){ return browserExports; },
4
- set exports(v){ browserExports = v; },
5
- };
1
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
+
3
+ function getDefaultExportFromCjs (x) {
4
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
5
+ }
6
+
7
+ var browser = {exports: {}};
6
8
 
7
9
  /**
8
10
  * Helpers.
@@ -718,9 +720,10 @@ var common = setup;
718
720
  } catch (error) {
719
721
  return '[UnexpectedJSONParseError]: ' + error.message;
720
722
  }
721
- };
722
- } (browser, browserExports));
723
+ };
724
+ } (browser, browser.exports));
723
725
 
724
- var debug = browserExports;
726
+ var browserExports = browser.exports;
727
+ var debug = /*@__PURE__*/getDefaultExportFromCjs(browserExports);
725
728
 
726
- export { debug as d };
729
+ export { commonjsGlobal as c, debug as d, getDefaultExportFromCjs as g };