From 70bd341ced02a8140515cc584c6e77f07a3a9f20 Mon Sep 17 00:00:00 2001 From: droak Date: Sun, 8 Dec 2024 20:29:13 +0900 Subject: [PATCH] chore: release v0.4.0-0 --- examples/canvas/package.json | 36 ++++----- examples/chat/package.json | 38 ++++----- examples/grid/package.json | 36 ++++----- examples/local-bootstrap/package.json | 34 ++++---- package.json | 109 +++++++++++++------------- packages/blueprints/package.json | 61 +++++++------- packages/logger/package.json | 55 +++++++------ packages/network/package.json | 103 ++++++++++++------------ packages/node/package.json | 89 +++++++++++---------- packages/object/package.json | 69 ++++++++-------- 10 files changed, 329 insertions(+), 301 deletions(-) diff --git a/examples/canvas/package.json b/examples/canvas/package.json index 8a40fda8..35f28641 100644 --- a/examples/canvas/package.json +++ b/examples/canvas/package.json @@ -1,20 +1,20 @@ { - "name": "ts-drp-examples-canvas", - "version": "0.3.1", - "license": "MIT", - "scripts": { - "build": "vite build", - "clean": "rm -rf dist/ node_modules/", - "dev": "vite serve" - }, - "dependencies": { - "@ts-drp/node": "0.3.1", - "@ts-drp/object": "0.3.1" - }, - "devDependencies": { - "@types/node": "^22.5.4", - "typescript": "^5.5.4", - "vite": "^6.0.2", - "vite-plugin-node-polyfills": "^0.22.0" - } + "name": "ts-drp-examples-canvas", + "version": "0.4.0-0", + "license": "MIT", + "scripts": { + "build": "vite build", + "clean": "rm -rf dist/ node_modules/", + "dev": "vite serve" + }, + "dependencies": { + "@ts-drp/node": "0.4.0-0", + "@ts-drp/object": "0.4.0-0" + }, + "devDependencies": { + "@types/node": "^22.5.4", + "typescript": "^5.5.4", + "vite": "^6.0.2", + "vite-plugin-node-polyfills": "^0.22.0" + } } diff --git a/examples/chat/package.json b/examples/chat/package.json index d47e7f76..59402fc6 100644 --- a/examples/chat/package.json +++ b/examples/chat/package.json @@ -1,21 +1,21 @@ { - "name": "ts-drp-example-chat", - "version": "0.3.1", - "license": "MIT", - "scripts": { - "build": "vite build", - "clean": "rm -rf dist/ node_modules/", - "dev": "vite serve", - "start": "ts-node ./src/index.ts" - }, - "dependencies": { - "@ts-drp/node": "0.3.1", - "@ts-drp/object": "0.3.1" - }, - "devDependencies": { - "@types/node": "^22.5.4", - "typescript": "^5.5.4", - "vite": "^6.0.2", - "vite-plugin-node-polyfills": "^0.22.0" - } + "name": "ts-drp-example-chat", + "version": "0.4.0-0", + "license": "MIT", + "scripts": { + "build": "vite build", + "clean": "rm -rf dist/ node_modules/", + "dev": "vite serve", + "start": "ts-node ./src/index.ts" + }, + "dependencies": { + "@ts-drp/node": "0.4.0-0", + "@ts-drp/object": "0.4.0-0" + }, + "devDependencies": { + "@types/node": "^22.5.4", + "typescript": "^5.5.4", + "vite": "^6.0.2", + "vite-plugin-node-polyfills": "^0.22.0" + } } diff --git a/examples/grid/package.json b/examples/grid/package.json index 17f34c19..d5d10d60 100644 --- a/examples/grid/package.json +++ b/examples/grid/package.json @@ -1,20 +1,20 @@ { - "name": "ts-drp-example-grid", - "version": "0.3.1", - "license": "MIT", - "scripts": { - "build": "vite build", - "clean": "rm -rf dist/ node_modules/", - "dev": "vite serve" - }, - "dependencies": { - "@ts-drp/node": "0.3.1", - "@ts-drp/object": "0.3.1" - }, - "devDependencies": { - "@types/node": "^22.5.4", - "typescript": "^5.5.4", - "vite": "^6.0.2", - "vite-plugin-node-polyfills": "^0.22.0" - } + "name": "ts-drp-example-grid", + "version": "0.4.0-0", + "license": "MIT", + "scripts": { + "build": "vite build", + "clean": "rm -rf dist/ node_modules/", + "dev": "vite serve" + }, + "dependencies": { + "@ts-drp/node": "0.4.0-0", + "@ts-drp/object": "0.4.0-0" + }, + "devDependencies": { + "@types/node": "^22.5.4", + "typescript": "^5.5.4", + "vite": "^6.0.2", + "vite-plugin-node-polyfills": "^0.22.0" + } } diff --git a/examples/local-bootstrap/package.json b/examples/local-bootstrap/package.json index c25d8bfb..4bc5190b 100644 --- a/examples/local-bootstrap/package.json +++ b/examples/local-bootstrap/package.json @@ -1,19 +1,19 @@ { - "name": "ts-drp-example-localdev", - "version": "0.3.1", - "license": "MIT", - "scripts": { - "build": "vite build", - "clean": "rm -rf dist/ node_modules/", - "dev": "vite serve" - }, - "dependencies": { - "@ts-drp/node": "0.3.1" - }, - "devDependencies": { - "@types/node": "^22.5.4", - "typescript": "^5.5.4", - "vite": "^6.0.2", - "vite-plugin-node-polyfills": "^0.22.0" - } + "name": "ts-drp-example-localdev", + "version": "0.4.0-0", + "license": "MIT", + "scripts": { + "build": "vite build", + "clean": "rm -rf dist/ node_modules/", + "dev": "vite serve" + }, + "dependencies": { + "@ts-drp/node": "0.4.0-0" + }, + "devDependencies": { + "@types/node": "^22.5.4", + "typescript": "^5.5.4", + "vite": "^6.0.2", + "vite-plugin-node-polyfills": "^0.22.0" + } } diff --git a/package.json b/package.json index e2c2fd7f..39281edc 100644 --- a/package.json +++ b/package.json @@ -1,55 +1,58 @@ { - "name": "ts-drp", - "description": "The official TypeScript implementation of DRP protocol", - "version": "0.3.1", - "license": "MIT", - "homepage": "https://topology.gg/", - "repository": { - "type": "git", - "url": "git+https://github.com/topology-foundation/ts-drp.git" - }, - "bugs": { - "url": "https://github.com/topology-foundation/ts-drp/issues" - }, - "workspaces": ["packages/*", "examples/*"], - "scripts": { - "bench": "vitest bench", - "biome-check": "biome check", - "clean": "pnpm --filter '@ts-drp/*' clean && rm -r node_modules/ docs/", - "docs": "typedoc", - "postinstall": "pnpm --filter '@ts-drp/*' build", - "proto-gen": "pnpm proto-gen:object && pnpm proto-gen:network", - "proto-gen:object": "buf generate packages/object/src/proto -o packages/object/src/proto", - "proto-gen:network": "buf generate packages/network/src/proto -o packages/network/src/proto", - "release": "release-it", - "test": "vitest" - }, - "devDependencies": { - "@biomejs/biome": "^1.8.3", - "@release-it-plugins/workspaces": "^4.2.0", - "@types/node": "^22.5.4", - "assemblyscript": "^0.27.29", - "release-it": "^17.6.0", - "ts-proto": "^2.2.4", - "typedoc": "^0.26.6", - "typescript": "^5.5.4", - "vite": "^6.0.2", - "vite-tsconfig-paths": "^5.0.1", - "vitest": "^2.1.1" - }, - "private": true, - "release-it": { - "plugins": { - "@release-it-plugins/workspaces": { - "publish": false - } - }, - "npm": false, - "git": { - "commitMessage": "chore: release v${version}" - }, - "github": { - "release": true - } - } + "name": "ts-drp", + "description": "The official TypeScript implementation of DRP protocol", + "version": "0.4.0-0", + "license": "MIT", + "homepage": "https://topology.gg/", + "repository": { + "type": "git", + "url": "git+https://github.com/topology-foundation/ts-drp.git" + }, + "bugs": { + "url": "https://github.com/topology-foundation/ts-drp/issues" + }, + "workspaces": [ + "packages/*", + "examples/*" + ], + "scripts": { + "bench": "vitest bench", + "biome-check": "biome check", + "clean": "pnpm --filter '@ts-drp/*' clean && rm -r node_modules/ docs/", + "docs": "typedoc", + "postinstall": "pnpm --filter '@ts-drp/*' build", + "proto-gen": "pnpm proto-gen:object && pnpm proto-gen:network", + "proto-gen:object": "buf generate packages/object/src/proto -o packages/object/src/proto", + "proto-gen:network": "buf generate packages/network/src/proto -o packages/network/src/proto", + "release": "release-it", + "test": "vitest" + }, + "devDependencies": { + "@biomejs/biome": "^1.8.3", + "@release-it-plugins/workspaces": "^4.2.0", + "@types/node": "^22.5.4", + "assemblyscript": "^0.27.29", + "release-it": "^17.6.0", + "ts-proto": "^2.2.4", + "typedoc": "^0.26.6", + "typescript": "^5.5.4", + "vite": "^6.0.2", + "vite-tsconfig-paths": "^5.0.1", + "vitest": "^2.1.1" + }, + "private": true, + "release-it": { + "plugins": { + "@release-it-plugins/workspaces": { + "publish": false + } + }, + "npm": false, + "git": { + "commitMessage": "chore: release v${version}" + }, + "github": { + "release": true + } + } } diff --git a/packages/blueprints/package.json b/packages/blueprints/package.json index 42f36bee..b8bc5a67 100644 --- a/packages/blueprints/package.json +++ b/packages/blueprints/package.json @@ -1,30 +1,35 @@ { - "name": "@ts-drp/blueprints", - "version": "0.3.1", - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/topology-foundation/ts-drp.git" - }, - "type": "module", - "types": "./dist/src/index.d.ts", - "files": ["src", "dist", "!dist/test", "!**/*.tsbuildinfo"], - "exports": { - ".": { - "types": "./dist/src/index.d.ts", - "import": "./dist/src/index.js" - } - }, - "scripts": { - "build": "tsc -b", - "clean": "rm -rf dist/ node_modules/", - "prepack": "tsc -b", - "test": "vitest" - }, - "devDependencies": { - "@ts-drp/object": "0.3.1" - }, - "dependencies": { - "@thi.ng/random": "^4.1.0" - } + "name": "@ts-drp/blueprints", + "version": "0.4.0-0", + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/topology-foundation/ts-drp.git" + }, + "type": "module", + "types": "./dist/src/index.d.ts", + "files": [ + "src", + "dist", + "!dist/test", + "!**/*.tsbuildinfo" + ], + "exports": { + ".": { + "types": "./dist/src/index.d.ts", + "import": "./dist/src/index.js" + } + }, + "scripts": { + "build": "tsc -b", + "clean": "rm -rf dist/ node_modules/", + "prepack": "tsc -b", + "test": "vitest" + }, + "devDependencies": { + "@ts-drp/object": "0.4.0-0" + }, + "dependencies": { + "@thi.ng/random": "^4.1.0" + } } diff --git a/packages/logger/package.json b/packages/logger/package.json index dcc7c9a7..12f7f807 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -1,27 +1,32 @@ { - "name": "@ts-drp/logger", - "version": "0.3.1", - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/topology-foundation/ts-drp.git" - }, - "type": "module", - "types": "./dist/src/index.d.ts", - "files": ["src", "dist", "!dist/test", "!**/*.tsbuildinfo"], - "exports": { - ".": { - "types": "./dist/src/index.d.ts", - "import": "./dist/src/index.js" - } - }, - "scripts": { - "build": "tsc -b", - "clean": "rm -rf dist/ node_modules/", - "prepack": "tsc -b" - }, - "dependencies": { - "loglevel": "^1.9.2", - "loglevel-plugin-prefix": "^0.8.4" - } + "name": "@ts-drp/logger", + "version": "0.4.0-0", + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/topology-foundation/ts-drp.git" + }, + "type": "module", + "types": "./dist/src/index.d.ts", + "files": [ + "src", + "dist", + "!dist/test", + "!**/*.tsbuildinfo" + ], + "exports": { + ".": { + "types": "./dist/src/index.d.ts", + "import": "./dist/src/index.js" + } + }, + "scripts": { + "build": "tsc -b", + "clean": "rm -rf dist/ node_modules/", + "prepack": "tsc -b" + }, + "dependencies": { + "loglevel": "^1.9.2", + "loglevel-plugin-prefix": "^0.8.4" + } } diff --git a/packages/network/package.json b/packages/network/package.json index d7b6a036..fea5b828 100644 --- a/packages/network/package.json +++ b/packages/network/package.json @@ -1,51 +1,56 @@ { - "name": "@ts-drp/network", - "version": "0.3.1", - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/topology-foundation/ts-drp.git" - }, - "type": "module", - "types": "./dist/src/index.d.ts", - "files": ["src", "dist", "!dist/test", "!**/*.tsbuildinfo"], - "exports": { - ".": { - "types": "./dist/src/index.d.ts", - "import": "./dist/src/index.js" - } - }, - "scripts": { - "build": "tsc -b", - "clean": "rm -rf dist/ node_modules/", - "prepack": "tsc -b", - "test": "vitest" - }, - "devDependencies": { - "@libp2p/interface": "^2.1.3" - }, - "dependencies": { - "@bufbuild/protobuf": "^2.0.0", - "@chainsafe/libp2p-gossipsub": "^14.1.0", - "@chainsafe/libp2p-noise": "^16.0.0", - "@chainsafe/libp2p-yamux": "^7.0.1", - "@libp2p/autonat": "^2.0.6", - "@libp2p/bootstrap": "^11.0.6", - "@libp2p/circuit-relay-v2": "^2.1.2", - "@libp2p/crypto": "^5.0.5", - "@libp2p/dcutr": "^2.0.6", - "@libp2p/devtools-metrics": "^1.1.5", - "@libp2p/identify": "^3.0.6", - "@libp2p/pubsub-peer-discovery": "^11.0.0", - "@libp2p/webrtc": "^5.0.9", - "@libp2p/websockets": "^9.0.7", - "@libp2p/webtransport": "^5.0.9", - "@multiformats/multiaddr": "^12.3.1", - "@ts-drp/logger": "^0.3.1", - "it-length-prefixed": "^9.1.0", - "it-map": "^3.1.1", - "it-pipe": "^3.0.1", - "libp2p": "^2.1.6", - "uint8arrays": "^5.1.0" - } + "name": "@ts-drp/network", + "version": "0.4.0-0", + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/topology-foundation/ts-drp.git" + }, + "type": "module", + "types": "./dist/src/index.d.ts", + "files": [ + "src", + "dist", + "!dist/test", + "!**/*.tsbuildinfo" + ], + "exports": { + ".": { + "types": "./dist/src/index.d.ts", + "import": "./dist/src/index.js" + } + }, + "scripts": { + "build": "tsc -b", + "clean": "rm -rf dist/ node_modules/", + "prepack": "tsc -b", + "test": "vitest" + }, + "devDependencies": { + "@libp2p/interface": "^2.1.3" + }, + "dependencies": { + "@bufbuild/protobuf": "^2.0.0", + "@chainsafe/libp2p-gossipsub": "^14.1.0", + "@chainsafe/libp2p-noise": "^16.0.0", + "@chainsafe/libp2p-yamux": "^7.0.1", + "@libp2p/autonat": "^2.0.6", + "@libp2p/bootstrap": "^11.0.6", + "@libp2p/circuit-relay-v2": "^2.1.2", + "@libp2p/crypto": "^5.0.5", + "@libp2p/dcutr": "^2.0.6", + "@libp2p/devtools-metrics": "^1.1.5", + "@libp2p/identify": "^3.0.6", + "@libp2p/pubsub-peer-discovery": "^11.0.0", + "@libp2p/webrtc": "^5.0.9", + "@libp2p/websockets": "^9.0.7", + "@libp2p/webtransport": "^5.0.9", + "@multiformats/multiaddr": "^12.3.1", + "@ts-drp/logger": "^0.4.0-0", + "it-length-prefixed": "^9.1.0", + "it-map": "^3.1.1", + "it-pipe": "^3.0.1", + "libp2p": "^2.1.6", + "uint8arrays": "^5.1.0" + } } diff --git a/packages/node/package.json b/packages/node/package.json index 3a85360a..e2d004c0 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -1,44 +1,49 @@ { - "name": "@ts-drp/node", - "version": "0.3.1", - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/topology-foundation/ts-drp.git" - }, - "type": "module", - "types": "./dist/src/index.d.ts", - "files": ["src", "dist", "!dist/test", "!**/*.tsbuildinfo"], - "exports": { - ".": { - "types": "./dist/src/index.d.ts", - "import": "./dist/src/index.js" - } - }, - "scripts": { - "build": "tsc -b", - "clean": "rm -rf dist/ node_modules/", - "cli": "tsx ./src/run.ts", - "prebuild": "node -p \"'export const VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts", - "prepack": "tsc -b", - "test": "vitest" - }, - "devDependencies": { - "@bufbuild/protobuf": "^2.0.0", - "@types/node": "^22.5.4", - "tsx": "4.19.1", - "typescript": "^5.5.4", - "vitest": "^2.1.1" - }, - "dependencies": { - "@chainsafe/libp2p-gossipsub": "^14.1.0", - "@grpc/grpc-js": "^1.12.2", - "@libp2p/interface": "^2.1.3", - "dotenv": "^16.4.5", - "@ts-drp/blueprints": "0.3.1", - "@ts-drp/network": "0.3.1", - "@ts-drp/object": "0.3.1", - "@ts-drp/logger": "0.3.1", - "commander": "^12.1.0" - } + "name": "@ts-drp/node", + "version": "0.4.0-0", + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/topology-foundation/ts-drp.git" + }, + "type": "module", + "types": "./dist/src/index.d.ts", + "files": [ + "src", + "dist", + "!dist/test", + "!**/*.tsbuildinfo" + ], + "exports": { + ".": { + "types": "./dist/src/index.d.ts", + "import": "./dist/src/index.js" + } + }, + "scripts": { + "build": "tsc -b", + "clean": "rm -rf dist/ node_modules/", + "cli": "tsx ./src/run.ts", + "prebuild": "node -p \"'export const VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts", + "prepack": "tsc -b", + "test": "vitest" + }, + "devDependencies": { + "@bufbuild/protobuf": "^2.0.0", + "@types/node": "^22.5.4", + "tsx": "4.19.1", + "typescript": "^5.5.4", + "vitest": "^2.1.1" + }, + "dependencies": { + "@chainsafe/libp2p-gossipsub": "^14.1.0", + "@grpc/grpc-js": "^1.12.2", + "@libp2p/interface": "^2.1.3", + "dotenv": "^16.4.5", + "@ts-drp/blueprints": "0.4.0-0", + "@ts-drp/network": "0.4.0-0", + "@ts-drp/object": "0.4.0-0", + "@ts-drp/logger": "0.4.0-0", + "commander": "^12.1.0" + } } diff --git a/packages/object/package.json b/packages/object/package.json index c9990b67..ddf20c3d 100644 --- a/packages/object/package.json +++ b/packages/object/package.json @@ -1,34 +1,39 @@ { - "name": "@ts-drp/object", - "version": "0.3.1", - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/topology-foundation/ts-drp.git" - }, - "type": "module", - "types": "./dist/src/index.d.ts", - "files": ["src", "dist", "!dist/test", "!**/*.tsbuildinfo"], - "main": "./dist/src/index.js", - "exports": { - ".": { - "types": "./dist/src/index.d.ts", - "import": "./dist/src/index.js" - } - }, - "scripts": { - "build": "tsc -b", - "clean": "rm -rf dist/ node_modules/", - "prepack": "tsc -b", - "test": "vitest", - "benchmark": "tsx tests/hashgraph.bench.ts | tee benchmark-output.txt" - }, - "devDependencies": { - "@bufbuild/protobuf": "^2.0.0", - "benchmark": "^2.1.4", - "tsx": "4.19.1" - }, - "dependencies": { - "@ts-drp/logger": "^0.3.1" - } + "name": "@ts-drp/object", + "version": "0.4.0-0", + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/topology-foundation/ts-drp.git" + }, + "type": "module", + "types": "./dist/src/index.d.ts", + "files": [ + "src", + "dist", + "!dist/test", + "!**/*.tsbuildinfo" + ], + "main": "./dist/src/index.js", + "exports": { + ".": { + "types": "./dist/src/index.d.ts", + "import": "./dist/src/index.js" + } + }, + "scripts": { + "build": "tsc -b", + "clean": "rm -rf dist/ node_modules/", + "prepack": "tsc -b", + "test": "vitest", + "benchmark": "tsx tests/hashgraph.bench.ts | tee benchmark-output.txt" + }, + "devDependencies": { + "@bufbuild/protobuf": "^2.0.0", + "benchmark": "^2.1.4", + "tsx": "4.19.1" + }, + "dependencies": { + "@ts-drp/logger": "^0.4.0-0" + } }