From fe043107ed0ea06239f5a7dbaf9e9b4b366d4722 Mon Sep 17 00:00:00 2001 From: JianChao Ye Date: Thu, 31 Oct 2024 21:23:35 +0800 Subject: [PATCH] refactor: rename @did-space/client to @blocklet/did-space-js (#369) --- CHANGELOG.md | 4 ++++ package.json | 2 +- packages/create-app/package.json | 2 +- packages/create-app/templates/did-connect-dapp/package.json | 2 +- packages/create-app/templates/did-wallet-dapp/package.json | 2 +- packages/create-app/templates/react-dapp-ts/package.json | 2 +- packages/create-app/templates/react-dapp/package.json | 2 +- packages/create-app/templates/react-gun-dapp/package.json | 2 +- packages/create-app/templates/react-static/package.json | 2 +- packages/create-app/templates/solidjs-dapp/package.json | 2 +- packages/create-app/templates/solidjs-static/package.json | 2 +- packages/create-app/templates/svelte-dapp/package.json | 2 +- packages/create-app/templates/svelte-static/package.json | 2 +- .../todo-list-example/api/src/routes/todo-list/$get.ts | 2 +- .../todo-list-example/api/src/routes/todo-list/$put.ts | 2 +- packages/create-app/templates/todo-list-example/package.json | 4 ++-- packages/create-app/templates/vue-dapp/package.json | 2 +- packages/create-app/templates/vue-static/package.json | 2 +- packages/create-app/templates/vue-ts-static/package.json | 2 +- packages/create-app/templates/vue2-dapp/package.json | 2 +- packages/create-app/templates/vue2-static/package.json | 2 +- plugins/vite-plugin-blocklet/package.json | 2 +- plugins/vite-plugin-wss-hmr/package.json | 2 +- version | 2 +- website/docs/blocklet.yml | 2 +- website/pages/blocklet.yml | 2 +- 26 files changed, 30 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd179484..68570d6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.9.12 (2024-10-31) + +- refactor: rename @did-space/client to @blocklet/did-space-js + ## 0.9.11 (2024-9-30) - chore(deps): update deps diff --git a/package.json b/package.json index 2522b7b6..6e495e0e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "create-blocklet", "private": true, - "version": "0.9.11", + "version": "0.9.12", "description": "", "keywords": [], "author": "", diff --git a/packages/create-app/package.json b/packages/create-app/package.json index c8bb2ed8..ff09cee6 100644 --- a/packages/create-app/package.json +++ b/packages/create-app/package.json @@ -1,6 +1,6 @@ { "name": "create-blocklet", - "version": "0.9.11", + "version": "0.9.12", "exports": "./index.js", "type": "module", "repository": "git@github.com:blocklet/create-blocklet.git", diff --git a/packages/create-app/templates/did-connect-dapp/package.json b/packages/create-app/templates/did-connect-dapp/package.json index ad6761ae..ce3eb6e2 100644 --- a/packages/create-app/templates/did-connect-dapp/package.json +++ b/packages/create-app/templates/did-connect-dapp/package.json @@ -77,7 +77,7 @@ "rimraf": "^5.0.10", "simple-git-hooks": "^2.11.1", "vite": "^5.4.8", - "vite-plugin-blocklet": "^0.9.11", + "vite-plugin-blocklet": "^0.9.12", "vite-plugin-svgr": "^4.2.0", "zx": "^8.1.8" }, diff --git a/packages/create-app/templates/did-wallet-dapp/package.json b/packages/create-app/templates/did-wallet-dapp/package.json index 85db4d80..ee99568a 100644 --- a/packages/create-app/templates/did-wallet-dapp/package.json +++ b/packages/create-app/templates/did-wallet-dapp/package.json @@ -52,7 +52,7 @@ "simple-git-hooks": "^2.11.1", "vite": "^5.4.8", "vite-node": "^2.1.1", - "vite-plugin-blocklet": "^0.9.11", + "vite-plugin-blocklet": "^0.9.12", "vite-plugin-require": "^1.2.14", "vite-plugin-svgr": "^4.2.0", "zx": "^8.1.8" diff --git a/packages/create-app/templates/react-dapp-ts/package.json b/packages/create-app/templates/react-dapp-ts/package.json index 8bbdd9fd..2665f397 100644 --- a/packages/create-app/templates/react-dapp-ts/package.json +++ b/packages/create-app/templates/react-dapp-ts/package.json @@ -81,7 +81,7 @@ "ts-node": "^10.9.2", "typescript": "^5.6.2", "vite": "^5.4.8", - "vite-plugin-blocklet": "^0.9.11", + "vite-plugin-blocklet": "^0.9.12", "vite-plugin-svgr": "^4.2.0", "zx": "^8.1.8" }, diff --git a/packages/create-app/templates/react-dapp/package.json b/packages/create-app/templates/react-dapp/package.json index 5bc436c3..1831c2d7 100644 --- a/packages/create-app/templates/react-dapp/package.json +++ b/packages/create-app/templates/react-dapp/package.json @@ -71,7 +71,7 @@ "rimraf": "^5.0.10", "simple-git-hooks": "^2.11.1", "vite": "^5.4.8", - "vite-plugin-blocklet": "^0.9.11", + "vite-plugin-blocklet": "^0.9.12", "vite-plugin-svgr": "^4.2.0", "zx": "^8.1.8" }, diff --git a/packages/create-app/templates/react-gun-dapp/package.json b/packages/create-app/templates/react-gun-dapp/package.json index e21552a9..64feb888 100644 --- a/packages/create-app/templates/react-gun-dapp/package.json +++ b/packages/create-app/templates/react-gun-dapp/package.json @@ -71,7 +71,7 @@ "rimraf": "^5.0.10", "simple-git-hooks": "^2.11.1", "vite": "^5.4.8", - "vite-plugin-blocklet": "^0.9.11", + "vite-plugin-blocklet": "^0.9.12", "vite-plugin-svgr": "^4.2.0", "zx": "^8.1.8" }, diff --git a/packages/create-app/templates/react-static/package.json b/packages/create-app/templates/react-static/package.json index c744c0ca..a17bcb8e 100644 --- a/packages/create-app/templates/react-static/package.json +++ b/packages/create-app/templates/react-static/package.json @@ -52,7 +52,7 @@ "rimraf": "^5.0.10", "simple-git-hooks": "^2.11.1", "vite": "^5.4.8", - "vite-plugin-blocklet": "^0.9.11", + "vite-plugin-blocklet": "^0.9.12", "vite-plugin-svgr": "^4.2.0", "zx": "^8.1.8" }, diff --git a/packages/create-app/templates/solidjs-dapp/package.json b/packages/create-app/templates/solidjs-dapp/package.json index 6d0560e7..6e60b0dd 100644 --- a/packages/create-app/templates/solidjs-dapp/package.json +++ b/packages/create-app/templates/solidjs-dapp/package.json @@ -36,7 +36,7 @@ "rimraf": "^5.0.10", "simple-git-hooks": "^2.11.1", "vite": "^5.4.8", - "vite-plugin-blocklet": "^0.9.11", + "vite-plugin-blocklet": "^0.9.12", "vite-plugin-solid": "^2.10.2", "zx": "^8.1.8" }, diff --git a/packages/create-app/templates/solidjs-static/package.json b/packages/create-app/templates/solidjs-static/package.json index 39e7a072..6e12a1fd 100644 --- a/packages/create-app/templates/solidjs-static/package.json +++ b/packages/create-app/templates/solidjs-static/package.json @@ -32,7 +32,7 @@ "simple-git-hooks": "^2.11.1", "solid-js": "^1.9.1", "vite": "^5.4.8", - "vite-plugin-blocklet": "^0.9.11", + "vite-plugin-blocklet": "^0.9.12", "vite-plugin-solid": "^2.10.2", "zx": "^8.1.8" }, diff --git a/packages/create-app/templates/svelte-dapp/package.json b/packages/create-app/templates/svelte-dapp/package.json index 40147ea0..9a41f0e9 100644 --- a/packages/create-app/templates/svelte-dapp/package.json +++ b/packages/create-app/templates/svelte-dapp/package.json @@ -44,7 +44,7 @@ "simple-git-hooks": "^2.11.1", "svelte": "^4.2.19", "vite": "^5.4.8", - "vite-plugin-blocklet": "^0.9.11", + "vite-plugin-blocklet": "^0.9.12", "zx": "^8.1.8" }, "lint-staged": { diff --git a/packages/create-app/templates/svelte-static/package.json b/packages/create-app/templates/svelte-static/package.json index d38a3eaa..0680df0f 100644 --- a/packages/create-app/templates/svelte-static/package.json +++ b/packages/create-app/templates/svelte-static/package.json @@ -25,7 +25,7 @@ "simple-git-hooks": "^2.11.1", "svelte": "^4.2.19", "vite": "^5.4.8", - "vite-plugin-blocklet": "^0.9.11", + "vite-plugin-blocklet": "^0.9.12", "zx": "^8.1.8" }, "lint-staged": { diff --git a/packages/create-app/templates/todo-list-example/api/src/routes/todo-list/$get.ts b/packages/create-app/templates/todo-list-example/api/src/routes/todo-list/$get.ts index 775521d9..cb6c9945 100644 --- a/packages/create-app/templates/todo-list-example/api/src/routes/todo-list/$get.ts +++ b/packages/create-app/templates/todo-list-example/api/src/routes/todo-list/$get.ts @@ -1,4 +1,4 @@ -import { GetObjectCommand, SpaceClient } from '@did-space/client'; +import { GetObjectCommand, SpaceClient } from '@blocklet/did-space-js'; import { streamToString } from '@did-space/core'; import type { Request, Response } from 'express'; diff --git a/packages/create-app/templates/todo-list-example/api/src/routes/todo-list/$put.ts b/packages/create-app/templates/todo-list-example/api/src/routes/todo-list/$put.ts index c6883edc..ac152649 100644 --- a/packages/create-app/templates/todo-list-example/api/src/routes/todo-list/$put.ts +++ b/packages/create-app/templates/todo-list-example/api/src/routes/todo-list/$put.ts @@ -1,4 +1,4 @@ -import { PutObjectCommand, SpaceClient } from '@did-space/client'; +import { PutObjectCommand, SpaceClient } from '@blocklet/did-space-js'; import type { Request, Response } from 'express'; import isArray from 'lodash/isArray'; diff --git a/packages/create-app/templates/todo-list-example/package.json b/packages/create-app/templates/todo-list-example/package.json index 526caab8..2cd2cb6c 100644 --- a/packages/create-app/templates/todo-list-example/package.json +++ b/packages/create-app/templates/todo-list-example/package.json @@ -41,7 +41,7 @@ "@arcblock/did-auth": "^1.18.135", "@arcblock/did-auth-storage-nedb": "^1.7.1", "@blocklet/sdk": "^1.16.32", - "@did-space/client": "^0.5.47", + "@blocklet/did-space-js": "^0.5.58", "@did-space/core": "^0.5.47", "@ocap/client": "^1.18.135", "@ocap/mcrypto": "^1.18.135", @@ -96,7 +96,7 @@ "ts-node": "^10.9.2", "typescript": "^5.6.2", "vite": "^5.4.8", - "vite-plugin-blocklet": "^0.9.11", + "vite-plugin-blocklet": "^0.9.12", "vite-plugin-svgr": "^4.2.0", "zx": "^8.1.8" }, diff --git a/packages/create-app/templates/vue-dapp/package.json b/packages/create-app/templates/vue-dapp/package.json index 6604e290..0b524862 100644 --- a/packages/create-app/templates/vue-dapp/package.json +++ b/packages/create-app/templates/vue-dapp/package.json @@ -49,7 +49,7 @@ "rimraf": "^5.0.10", "simple-git-hooks": "^2.11.1", "vite": "^5.4.8", - "vite-plugin-blocklet": "^0.9.11", + "vite-plugin-blocklet": "^0.9.12", "vue": "^3.5.10", "zx": "^8.1.8" }, diff --git a/packages/create-app/templates/vue-static/package.json b/packages/create-app/templates/vue-static/package.json index e49103de..b6c5f742 100644 --- a/packages/create-app/templates/vue-static/package.json +++ b/packages/create-app/templates/vue-static/package.json @@ -30,7 +30,7 @@ "rimraf": "^5.0.10", "simple-git-hooks": "^2.11.1", "vite": "^5.4.8", - "vite-plugin-blocklet": "^0.9.11", + "vite-plugin-blocklet": "^0.9.12", "vue": "^3.5.10", "zx": "^8.1.8" }, diff --git a/packages/create-app/templates/vue-ts-static/package.json b/packages/create-app/templates/vue-ts-static/package.json index 8c75bd9e..2550981b 100644 --- a/packages/create-app/templates/vue-ts-static/package.json +++ b/packages/create-app/templates/vue-ts-static/package.json @@ -39,7 +39,7 @@ "taze": "^0.16.9", "typescript": "^5.6.2", "vite": "^5.4.8", - "vite-plugin-blocklet": "^0.9.11", + "vite-plugin-blocklet": "^0.9.12", "vue-tsc": "^2.1.6", "zx": "^8.1.8" }, diff --git a/packages/create-app/templates/vue2-dapp/package.json b/packages/create-app/templates/vue2-dapp/package.json index 50494f66..69410ef3 100644 --- a/packages/create-app/templates/vue2-dapp/package.json +++ b/packages/create-app/templates/vue2-dapp/package.json @@ -48,7 +48,7 @@ "rimraf": "^5.0.10", "simple-git-hooks": "^2.11.1", "vite": "^5.4.8", - "vite-plugin-blocklet": "^0.9.11", + "vite-plugin-blocklet": "^0.9.12", "vue": "^2.7.16", "zx": "^8.1.8" }, diff --git a/packages/create-app/templates/vue2-static/package.json b/packages/create-app/templates/vue2-static/package.json index a3ef423c..6f3ae90a 100644 --- a/packages/create-app/templates/vue2-static/package.json +++ b/packages/create-app/templates/vue2-static/package.json @@ -30,7 +30,7 @@ "rimraf": "^5.0.10", "simple-git-hooks": "^2.11.1", "vite": "^5.4.8", - "vite-plugin-blocklet": "^0.9.11", + "vite-plugin-blocklet": "^0.9.12", "vue": "^2.7.16", "zx": "^8.1.8" }, diff --git a/plugins/vite-plugin-blocklet/package.json b/plugins/vite-plugin-blocklet/package.json index cc334b17..07effb11 100644 --- a/plugins/vite-plugin-blocklet/package.json +++ b/plugins/vite-plugin-blocklet/package.json @@ -1,7 +1,7 @@ { "name": "vite-plugin-blocklet", "type": "module", - "version": "0.9.11", + "version": "0.9.12", "description": "", "main": "index.js", "files": [ diff --git a/plugins/vite-plugin-wss-hmr/package.json b/plugins/vite-plugin-wss-hmr/package.json index 64a97fd1..5680d746 100644 --- a/plugins/vite-plugin-wss-hmr/package.json +++ b/plugins/vite-plugin-wss-hmr/package.json @@ -1,7 +1,7 @@ { "name": "vite-plugin-wss-hmr", "type": "module", - "version": "0.9.11", + "version": "0.9.12", "description": "", "main": "index.js", "exports": { diff --git a/version b/version index 6889a311..bf1ba0c1 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.9.11 \ No newline at end of file +0.9.12 \ No newline at end of file diff --git a/website/docs/blocklet.yml b/website/docs/blocklet.yml index 61107a16..75ee04b9 100644 --- a/website/docs/blocklet.yml +++ b/website/docs/blocklet.yml @@ -13,7 +13,7 @@ repository: type: git url: git+https://github.com/blocklet/create-blocklet.git specVersion: 1.2.8 -version: 0.9.11 +version: 0.9.12 logo: logo.png files: - logo.png diff --git a/website/pages/blocklet.yml b/website/pages/blocklet.yml index 5fd4f735..846aaa6d 100644 --- a/website/pages/blocklet.yml +++ b/website/pages/blocklet.yml @@ -13,7 +13,7 @@ repository: type: git url: git+https://github.com/blocklet/create-blocklet.git specVersion: 1.2.8 -version: 0.9.11 +version: 0.9.12 logo: logo.png files: - logo.png