diff --git a/examples/canvas/package.json b/examples/canvas/package.json index b29bf671..989ce7ce 100644 --- a/examples/canvas/package.json +++ b/examples/canvas/package.json @@ -9,7 +9,7 @@ "start": "ts-node ./src/index.ts" }, "dependencies": { - "@topology-foundation/crdt": "0.1.1", + "@topology-foundation/blueprints": "0.1.1", "@topology-foundation/network": "0.1.1", "@topology-foundation/node": "0.1.1", "@topology-foundation/object": "0.1.1", diff --git a/examples/chat/asconfig.json b/examples/chat/asconfig.json index 6ba1bbb0..46e620da 100644 --- a/examples/chat/asconfig.json +++ b/examples/chat/asconfig.json @@ -20,7 +20,7 @@ "options": { "lib": { "@topology-foundation/crdt": [ - "../node_modules/@topology-foundation/crdt/src/index.asc.ts" + "./node_modules/@topology-foundation/blueprints/src/index.asc.ts" ] } } diff --git a/examples/chat/package.json b/examples/chat/package.json index 9fd78ed9..55b77e06 100644 --- a/examples/chat/package.json +++ b/examples/chat/package.json @@ -1,7 +1,7 @@ { "name": "topology-example-chat", "version": "0.1.1", - "description": "Topology Protocol Chat Exmaple", + "description": "Topology Protocol Chat Example", "main": "src/index.ts", "repository": "https://github.com/topology-foundation/ts-topology.git", "license": "MIT", @@ -13,7 +13,7 @@ "start": "ts-node ./src/index.ts" }, "dependencies": { - "@topology-foundation/crdt": "0.1.1", + "@topology-foundation/blueprints": "0.1.1", "@topology-foundation/network": "0.1.1", "@topology-foundation/node": "0.1.1", "@topology-foundation/object": "0.1.1", diff --git a/packages/blueprints/README.md b/packages/blueprints/README.md index f0512d57..96cf49e9 100644 --- a/packages/blueprints/README.md +++ b/packages/blueprints/README.md @@ -1,6 +1,6 @@ -# Conflict-free Replicated Data Types (CRDTs) +# Topology Blueprints -This package contains the CRDT implementations intended to use as builtins for the Topology Protocol. +This package contains the CRO blueprints intended to be used by other CROs. ## Usage @@ -8,10 +8,10 @@ This package is intended to be used as a dependency for the Topology Protocol. H ```bash # yarn -yarn add @topology-foundation/crdt +yarn add @topology-foundation/blueprints # npm -npm install @topology-foundation/crdt +npm install @topology-foundation/blueprints ``` ### Build @@ -29,9 +29,3 @@ To run the tests, you can run: ```bash yarn test ``` - -## CRDTs Implementations -- [x] G-Counter -- [x] PN-Counter -- [x] G-Set -- [x] 2P-Set diff --git a/packages/object/asconfig.json b/packages/object/asconfig.json index e349ea74..ccd4289b 100644 --- a/packages/object/asconfig.json +++ b/packages/object/asconfig.json @@ -17,7 +17,7 @@ }, "options": { "lib": { - "@topology-foundation/crdt": ["../crdt/src/index.asc.ts"] + "@topology-foundation/blueprints": ["../blueprints/src/index.asc.ts"] } } } diff --git a/packages/object/src/wasm/compiler.ts b/packages/object/src/wasm/compiler.ts index fd02b3b3..d8482a2b 100644 --- a/packages/object/src/wasm/compiler.ts +++ b/packages/object/src/wasm/compiler.ts @@ -15,8 +15,8 @@ export async function compileWasm(path: string) { return fs .readFileSync(filename, "utf8") .replace( - "@topology-foundation/crdt", - "@topology-foundation/crdt/src/index.asc", + "@topology-foundation/blueprints", + "@topology-foundation/blueprints/src/index.asc", ); }, writeFile: (