mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-29 21:55:21 +00:00
Merge pull request #1100 from waku-org/fix/invalid-export
This commit is contained in:
commit
11cb7b2d88
8
package-lock.json
generated
8
package-lock.json
generated
@ -27215,6 +27215,8 @@
|
||||
"@libp2p/interface-transport": "^2.0.1",
|
||||
"@libp2p/mplex": "^7.0.0",
|
||||
"@libp2p/websockets": "^5.0.0",
|
||||
"@waku/core": "*",
|
||||
"@waku/peer-exchange": "*",
|
||||
"interface-datastore": "^7.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -27223,6 +27225,7 @@
|
||||
"@rollup/plugin-node-resolve": "^13.3.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.8.1",
|
||||
"@typescript-eslint/parser": "^5.8.1",
|
||||
"@waku/interfaces": "*",
|
||||
"cspell": "^6.17.0",
|
||||
"eslint": "^8.6.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
@ -27394,6 +27397,7 @@
|
||||
"@waku/byte-utils": "*",
|
||||
"@waku/core": "*",
|
||||
"@waku/interfaces": "*",
|
||||
"@waku/proto": "*",
|
||||
"js-sha3": "^0.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -31299,6 +31303,9 @@
|
||||
"@rollup/plugin-node-resolve": "^13.3.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.8.1",
|
||||
"@typescript-eslint/parser": "^5.8.1",
|
||||
"@waku/core": "*",
|
||||
"@waku/interfaces": "*",
|
||||
"@waku/peer-exchange": "*",
|
||||
"cspell": "^6.17.0",
|
||||
"eslint": "^8.6.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
@ -31443,6 +31450,7 @@
|
||||
"@waku/byte-utils": "*",
|
||||
"@waku/core": "*",
|
||||
"@waku/interfaces": "*",
|
||||
"@waku/proto": "*",
|
||||
"chai": "^4.3.6",
|
||||
"cspell": "^6.17.0",
|
||||
"eslint": "^8.6.0",
|
||||
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Fixed
|
||||
|
||||
- Missing dependency declarations.
|
||||
- Invalid re-export.
|
||||
|
||||
## [@waku/core@0.0.7] - 2022-12-15
|
||||
|
||||
|
@ -14,11 +14,7 @@ export * as waku_filter from "./lib/filter/index.js";
|
||||
export { wakuFilter } from "./lib/filter/index.js";
|
||||
|
||||
export * as waku_light_push from "./lib/light_push/index.js";
|
||||
export {
|
||||
wakuLightPush,
|
||||
LightPushCodec,
|
||||
PushResponse,
|
||||
} from "./lib/light_push/index.js";
|
||||
export { wakuLightPush, LightPushCodec } from "./lib/light_push/index.js";
|
||||
|
||||
export * as waku_relay from "./lib/relay/index.js";
|
||||
export { wakuRelay } from "./lib/relay/index.js";
|
||||
|
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
|
||||
- Missing dependency declarations.
|
||||
|
||||
## [0.0.5] - 2022-12-15
|
||||
|
||||
### Changed
|
||||
|
@ -67,6 +67,8 @@
|
||||
"@libp2p/interface-transport": "^2.0.1",
|
||||
"@libp2p/mplex": "^7.0.0",
|
||||
"@libp2p/websockets": "^5.0.0",
|
||||
"@waku/core": "*",
|
||||
"@waku/peer-exchange": "*",
|
||||
"interface-datastore": "^7.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -75,6 +77,7 @@
|
||||
"@rollup/plugin-node-resolve": "^13.3.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.8.1",
|
||||
"@typescript-eslint/parser": "^5.8.1",
|
||||
"@waku/interfaces": "*",
|
||||
"cspell": "^6.17.0",
|
||||
"eslint": "^8.6.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
|
@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Fixed
|
||||
|
||||
- Type resolution when using `moduleResolution: node`.
|
||||
- Incorrect `proto` import.
|
||||
|
||||
## [0.0.5] - 2022-12-15
|
||||
|
||||
|
@ -75,12 +75,12 @@
|
||||
"dependencies": {
|
||||
"@noble/secp256k1": "^1.3.4",
|
||||
"@waku/byte-utils": "*",
|
||||
"@waku/core": "*",
|
||||
"@waku/interfaces": "*",
|
||||
"js-sha3": "^0.8.0",
|
||||
"@waku/core": "*"
|
||||
"@waku/proto": "*",
|
||||
"js-sha3": "^0.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"fast-check": "^2.14.0",
|
||||
"@rollup/plugin-commonjs": "^22.0.0",
|
||||
"@rollup/plugin-json": "^4.1.0",
|
||||
"@rollup/plugin-node-resolve": "^13.3.0",
|
||||
@ -94,6 +94,7 @@
|
||||
"eslint-plugin-functional": "^4.0.2",
|
||||
"eslint-plugin-import": "^2.25.3",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"fast-check": "^2.14.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"prettier": "^2.1.1",
|
||||
"rollup": "^2.75.0",
|
||||
|
@ -1,10 +1,11 @@
|
||||
import { Decoder as DecoderV0, proto } from "@waku/core/lib/message/version_0";
|
||||
import { Decoder as DecoderV0 } from "@waku/core/lib/message/version_0";
|
||||
import type {
|
||||
IDecoder,
|
||||
IEncoder,
|
||||
IMessage,
|
||||
IProtoMessage,
|
||||
} from "@waku/interfaces";
|
||||
import { WakuMessage } from "@waku/proto";
|
||||
import debug from "debug";
|
||||
|
||||
import {
|
||||
@ -38,7 +39,7 @@ class Encoder implements IEncoder {
|
||||
const protoMessage = await this.toProtoObj(message);
|
||||
if (!protoMessage) return;
|
||||
|
||||
return proto.WakuMessage.encode(protoMessage);
|
||||
return WakuMessage.encode(protoMessage);
|
||||
}
|
||||
|
||||
async toProtoObj(message: IMessage): Promise<IProtoMessage | undefined> {
|
||||
|
@ -1,10 +1,11 @@
|
||||
import { Decoder as DecoderV0, proto } from "@waku/core/lib/message/version_0";
|
||||
import { Decoder as DecoderV0 } from "@waku/core/lib/message/version_0";
|
||||
import type {
|
||||
IDecoder,
|
||||
IEncoder,
|
||||
IMessage,
|
||||
IProtoMessage,
|
||||
} from "@waku/interfaces";
|
||||
import { WakuMessage } from "@waku/proto";
|
||||
import debug from "debug";
|
||||
|
||||
import {
|
||||
@ -37,7 +38,7 @@ class Encoder implements IEncoder {
|
||||
const protoMessage = await this.toProtoObj(message);
|
||||
if (!protoMessage) return;
|
||||
|
||||
return proto.WakuMessage.encode(protoMessage);
|
||||
return WakuMessage.encode(protoMessage);
|
||||
}
|
||||
|
||||
async toProtoObj(message: IMessage): Promise<IProtoMessage | undefined> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user