@waku/core 0.0.17 → 0.0.19

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 (84) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/bundle/{browser-2f1afe46.js → browser-bde977a3.js} +12 -9
  3. package/bundle/index.js +911 -32802
  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-9c941081.js} +569 -63
  7. package/dist/index.d.ts +5 -5
  8. package/dist/index.js +5 -5
  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.d.ts → v1/filter_rpc.d.ts} +1 -3
  16. package/dist/lib/filter/{filter_rpc.js → v1/filter_rpc.js} +1 -0
  17. package/dist/lib/filter/v1/filter_rpc.js.map +1 -0
  18. package/dist/lib/filter/{index.d.ts → v1/index.d.ts} +0 -2
  19. package/dist/lib/filter/{index.js → v1/index.js} +7 -4
  20. package/dist/lib/filter/v1/index.js.map +1 -0
  21. package/dist/lib/filter/v2/filter_rpc.d.ts +40 -0
  22. package/dist/lib/filter/v2/filter_rpc.js +109 -0
  23. package/dist/lib/filter/v2/filter_rpc.js.map +1 -0
  24. package/dist/lib/filter/v2/index.d.ts +3 -0
  25. package/dist/lib/filter/v2/index.js +235 -0
  26. package/dist/lib/filter/v2/index.js.map +1 -0
  27. package/dist/lib/keep_alive_manager.d.ts +1 -0
  28. package/dist/lib/keep_alive_manager.js +5 -1
  29. package/dist/lib/keep_alive_manager.js.map +1 -1
  30. package/dist/lib/light_push/index.d.ts +1 -1
  31. package/dist/lib/light_push/index.js +27 -7
  32. package/dist/lib/light_push/index.js.map +1 -1
  33. package/dist/lib/light_push/push_rpc.js +1 -0
  34. package/dist/lib/light_push/push_rpc.js.map +1 -1
  35. package/dist/lib/message/index.d.ts +0 -1
  36. package/dist/lib/message/index.js +0 -1
  37. package/dist/lib/message/index.js.map +1 -1
  38. package/dist/lib/message/version_0.d.ts +1 -2
  39. package/dist/lib/message/version_0.js +6 -0
  40. package/dist/lib/message/version_0.js.map +1 -1
  41. package/dist/lib/store/history_rpc.js +1 -0
  42. package/dist/lib/store/history_rpc.js.map +1 -1
  43. package/dist/lib/store/index.js +2 -0
  44. package/dist/lib/store/index.js.map +1 -1
  45. package/dist/lib/waku.d.ts +5 -5
  46. package/dist/lib/waku.js +6 -0
  47. package/dist/lib/waku.js.map +1 -1
  48. package/package.json +9 -13
  49. package/src/index.ts +6 -11
  50. package/src/lib/connection_manager.ts +13 -4
  51. package/src/lib/filter/{filter_rpc.ts → v1/filter_rpc.ts} +1 -4
  52. package/src/lib/filter/{index.ts → v1/index.ts} +6 -7
  53. package/src/lib/filter/v2/filter_rpc.ts +131 -0
  54. package/src/lib/filter/v2/index.ts +413 -0
  55. package/src/lib/keep_alive_manager.ts +1 -2
  56. package/src/lib/light_push/index.ts +26 -9
  57. package/src/lib/message/index.ts +0 -1
  58. package/src/lib/message/version_0.ts +1 -1
  59. package/src/lib/waku.ts +5 -7
  60. package/bundle/lib/message/topic_only_message.js +0 -3
  61. package/bundle/topic_only_message-e8406994.js +0 -43
  62. package/bundle/version_0-5a4becbc.js +0 -149
  63. package/dist/lib/filter/filter_rpc.js.map +0 -1
  64. package/dist/lib/filter/index.js.map +0 -1
  65. package/dist/lib/group_by.d.ts +0 -3
  66. package/dist/lib/group_by.js +0 -13
  67. package/dist/lib/group_by.js.map +0 -1
  68. package/dist/lib/message/topic_only_message.d.ts +0 -18
  69. package/dist/lib/message/topic_only_message.js +0 -35
  70. package/dist/lib/message/topic_only_message.js.map +0 -1
  71. package/dist/lib/relay/constants.d.ts +0 -63
  72. package/dist/lib/relay/constants.js +0 -64
  73. package/dist/lib/relay/constants.js.map +0 -1
  74. package/dist/lib/relay/index.d.ts +0 -11
  75. package/dist/lib/relay/index.js +0 -181
  76. package/dist/lib/relay/index.js.map +0 -1
  77. package/dist/lib/relay/message_validator.d.ts +0 -4
  78. package/dist/lib/relay/message_validator.js +0 -25
  79. package/dist/lib/relay/message_validator.js.map +0 -1
  80. package/src/lib/group_by.ts +0 -14
  81. package/src/lib/message/topic_only_message.ts +0 -51
  82. package/src/lib/relay/constants.ts +0 -74
  83. package/src/lib/relay/index.ts +0 -294
  84. package/src/lib/relay/message_validator.ts +0 -35
package/CHANGELOG.md CHANGED
@@ -5,6 +5,51 @@ 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.19](https://github.com/waku-org/js-waku/compare/core-v0.0.18...core-v0.0.19) (2023-05-26)
9
+
10
+
11
+ ### ⚠ BREAKING CHANGES
12
+
13
+ * filter v2 ([#1332](https://github.com/waku-org/js-waku/issues/1332))
14
+
15
+ ### Features
16
+
17
+ * Filter v2 ([#1332](https://github.com/waku-org/js-waku/issues/1332)) ([8d0e647](https://github.com/waku-org/js-waku/commit/8d0e64796695fbafad0a033552eb4412bdff3d78))
18
+
19
+
20
+ ### Dependencies
21
+
22
+ * The following workspace dependencies were updated
23
+ * dependencies
24
+ * @waku/interfaces bumped from 0.0.13 to 0.0.14
25
+ * @waku/proto bumped from * to 0.0.5
26
+ * @waku/utils bumped from 0.0.6 to 0.0.7
27
+
28
+ ## [0.0.18](https://github.com/waku-org/js-waku/compare/core-v0.0.17...core-v0.0.18) (2023-05-18)
29
+
30
+
31
+ ### ⚠ BREAKING CHANGES
32
+
33
+ * @waku/relay ([#1316](https://github.com/waku-org/js-waku/issues/1316))
34
+
35
+ ### Features
36
+
37
+ * @waku/relay ([#1316](https://github.com/waku-org/js-waku/issues/1316)) ([50c2c25](https://github.com/waku-org/js-waku/commit/50c2c2540f3c5ff78d93f3fea646da0eee246e17))
38
+ * 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))
39
+
40
+
41
+ ### Bug Fixes
42
+
43
+ * 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))
44
+
45
+
46
+ ### Dependencies
47
+
48
+ * The following workspace dependencies were updated
49
+ * dependencies
50
+ * @waku/interfaces bumped from * to 0.0.13
51
+ * @waku/utils bumped from * to 0.0.6
52
+
8
53
  ## [0.0.17](https://github.com/waku-org/js-waku/compare/core-v0.0.16...core-v0.0.17) (2023-05-09)
9
54
 
10
55
 
@@ -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 };