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

feat!: rename package from @waku/create to @waku/sdk #1386

Merged
merged 9 commits into from
Jun 5, 2023
1 change: 0 additions & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@
"packages/core": "0.0.19",
"packages/dns-discovery": "0.0.13",
"packages/message-encryption": "0.0.17",
"packages/create": "0.0.15",
"packages/relay": "0.0.2"
}
9 changes: 4 additions & 5 deletions .size-limit.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ module.exports = [
import: "{ WakuNode }",
},
{
name: "Waku default setup",
path: ["packages/create/bundle/index.js", "packages/core/bundle/index.js"],
name: "Waku Simple Light Node",
path: ["packages/sdk/bundle/index.js", "packages/core/bundle/index.js"],
import: {
"packages/create/bundle/index.js": "{ createLightNode }",
"packages/core/bundle/index.js":
"{ waitForRemotePeer, createEncoder, createDecoder }",
"packages/sdk/bundle/index.js":
"{ createLightNode, waitForRemotePeer, createEncoder, createDecoder, bytesToUtf8, utf8ToBytes, Decoder, Encoder, DecodedMessage, WakuNode }",
},
},
{
Expand Down
246 changes: 165 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"packages/peer-exchange",
"packages/dns-discovery",
"packages/message-encryption",
"packages/create",
"packages/sdk",
"packages/tests",
"packages/build-utils"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/lib/wait_for_remote_peer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const log = debug("waku:wait-for-remote-peer");
* Wait for a remote peer to be ready given the passed protocols.
* Must be used after attempting to connect to nodes, using
* {@link @waku/core.WakuNode.dial} or a bootstrap method with
* {@link @waku/create.createLightNode}.
* {@link @waku/sdk.createLightNode}.
*
* If the passed protocols is a GossipSub protocol, then it resolves only once
* a peer is in a mesh, to help ensure that other peers will send and receive
Expand Down
File renamed without changes.
File renamed without changes.
9 changes: 5 additions & 4 deletions packages/create/package.json → packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@waku/create",
"version": "0.0.15",
"description": "Easily create a Waku node",
"name": "@waku/sdk",
"version": "0.0.16",
"description": "A unified SDK for easy creation and management of js-waku nodes.",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"exports": {
Expand All @@ -12,7 +12,7 @@
},
"type": "module",
"author": "Waku Team",
"homepage": "https://github.com/waku-org/js-waku/tree/master/packages/create#readme",
"homepage": "https://github.com/waku-org/js-waku/tree/master/packages/sdk#readme",
"repository": {
"type": "git",
"url": "https://github.com/waku-org/js-waku.git"
Expand Down Expand Up @@ -51,6 +51,7 @@
"@chainsafe/libp2p-noise": "^11.0.0",
"@libp2p/mplex": "^7.1.1",
"@libp2p/websockets": "^5.0.3",
"@waku/utils": "*",
"@waku/relay": "0.0.2",
"@waku/core": "0.0.19",
"@waku/dns-discovery": "0.0.13",
Expand Down
File renamed without changes.
File renamed without changes.
Loading