Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore!: remove @waku/message-hash and use @waku/core #1810

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .size-limit.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,5 @@ module.exports = [
name: "History retrieval protocols",
path: "packages/core/bundle/index.js",
import: "{ wakuStore }",
},
{
name: "Deterministic Message Hashing",
path: "packages/message-hash/bundle/index.js",
import: "{ messageHash }",
},
}
];
28,393 changes: 4,780 additions & 23,613 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"workspaces": [
"packages/interfaces",
"packages/utils",
"packages/message-hash",
"packages/proto",
"packages/enr",
"packages/core",
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ export { KeepAliveManager } from "./lib/keep_alive_manager.js";
export { StreamManager } from "./lib/stream_manager.js";

export { MetadataCodec, wakuMetadata } from "./lib/metadata/index.js";

export * from "./lib/message_hash.js";
weboko marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion packages/core/src/lib/filter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import type {
Unsubscribe
} from "@waku/interfaces";
import { DefaultPubsubTopic } from "@waku/interfaces";
import { messageHashStr } from "@waku/message-hash";
import { WakuMessage } from "@waku/proto";
import {
ensurePubsubTopicIsConfigured,
Expand All @@ -31,6 +30,7 @@ import * as lp from "it-length-prefixed";
import { pipe } from "it-pipe";

import { BaseProtocol } from "../base_protocol.js";
import { messageHashStr } from "../message_hash.js";

import {
FilterPushRpc,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { IProtoMessage } from "@waku/interfaces";
import { bytesToHex, hexToBytes } from "@waku/utils/bytes";
import { expect } from "chai";

import { messageHash } from "./index.js";
import { messageHash } from "./message_hash.js";

// https://rfc.vac.dev/spec/14/#test-vectors
describe("RFC Test Vectors", () => {
Expand Down
6 changes: 0 additions & 6 deletions packages/message-hash/.eslintrc.cjs

This file was deleted.

6 changes: 0 additions & 6 deletions packages/message-hash/.mocha.reporters.json

This file was deleted.

26 changes: 0 additions & 26 deletions packages/message-hash/.mocharc.cjs

This file was deleted.

5 changes: 0 additions & 5 deletions packages/message-hash/.prettierignore

This file was deleted.

122 changes: 0 additions & 122 deletions packages/message-hash/CHANGELOG.md

This file was deleted.

26 changes: 0 additions & 26 deletions packages/message-hash/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions packages/message-hash/karma.conf.cjs

This file was deleted.

86 changes: 0 additions & 86 deletions packages/message-hash/package.json

This file was deleted.

24 changes: 0 additions & 24 deletions packages/message-hash/rollup.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/message-hash/tsconfig.dev.json

This file was deleted.

10 changes: 0 additions & 10 deletions packages/message-hash/tsconfig.json

This file was deleted.

4 changes: 0 additions & 4 deletions packages/message-hash/typedoc.json

This file was deleted.

Loading
Loading