Skip to content

Commit

Permalink
feat!: rename package from @waku/create to @waku/sdk (#1386)
Browse files Browse the repository at this point in the history
* feat!(@waku/sdk): rename package from @waku/create to @waku/sdk

* feat: proxy @waku/core and @waku/utils through @waku/sdk

* address comments

* update package-lock

* Update .size-limit.cjs

Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>

* integrate to release please

---------

Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
Co-authored-by: Sasha <oleksandr@status.im>
  • Loading branch information
4 people authored Jun 5, 2023
1 parent 259b39f commit 951ebda
Show file tree
Hide file tree
Showing 28 changed files with 209 additions and 107 deletions.
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

0 comments on commit 951ebda

Please sign in to comment.