From 7891549cd8478ed109f924fda8229d48515b7002 Mon Sep 17 00:00:00 2001 From: JianChao Date: Mon, 23 Sep 2024 17:52:53 +0800 Subject: [PATCH 1/2] fix: todo list template --- .../todo-list-example/api/src/index.ts | 2 +- .../todo-list-example/api/src/libs/auth.ts | 2 +- .../todo-list-example/api/src/routes/index.ts | 1 + .../api/src/routes/todo-list/$get.ts | 31 ++++++----- .../api/src/routes/todo-list/$put.ts | 12 +++-- .../api/src/routes/todo-list/index.ts | 1 + .../templates/todo-list-example/package.json | 54 +++++++++---------- .../templates/todo-list-example/src/app.tsx | 5 +- .../src/contexts/session.tsx | 2 +- .../src/pages/required-login.tsx | 1 + .../todo-list-example/src/pages/todo-list.tsx | 22 +++++--- 11 files changed, 78 insertions(+), 55 deletions(-) diff --git a/packages/create-app/templates/todo-list-example/api/src/index.ts b/packages/create-app/templates/todo-list-example/api/src/index.ts index 9a72f7db..610f2f6a 100644 --- a/packages/create-app/templates/todo-list-example/api/src/index.ts +++ b/packages/create-app/templates/todo-list-example/api/src/index.ts @@ -2,11 +2,11 @@ import 'express-async-errors'; import path from 'path'; +import fallback from '@blocklet/sdk/lib/middlewares/fallback'; import cookieParser from 'cookie-parser'; import cors from 'cors'; import dotenv from 'dotenv-flow'; import express, { ErrorRequestHandler } from 'express'; -import fallback from '@blocklet/sdk/lib/middlewares/fallback'; import logger from './libs/logger'; import routes from './routes'; diff --git a/packages/create-app/templates/todo-list-example/api/src/libs/auth.ts b/packages/create-app/templates/todo-list-example/api/src/libs/auth.ts index eca1f7fb..e787165e 100644 --- a/packages/create-app/templates/todo-list-example/api/src/libs/auth.ts +++ b/packages/create-app/templates/todo-list-example/api/src/libs/auth.ts @@ -1,11 +1,11 @@ import path from 'path'; import AuthStorage from '@arcblock/did-auth-storage-nedb'; +import { AuthService } from '@blocklet/sdk'; import getWallet from '@blocklet/sdk/lib/wallet'; import WalletAuthenticator from '@blocklet/sdk/lib/wallet-authenticator'; import WalletHandler from '@blocklet/sdk/lib/wallet-handler'; -import { AuthService } from '@blocklet/sdk'; import env from './env'; export const wallet = getWallet(); diff --git a/packages/create-app/templates/todo-list-example/api/src/routes/index.ts b/packages/create-app/templates/todo-list-example/api/src/routes/index.ts index 70662247..90968791 100644 --- a/packages/create-app/templates/todo-list-example/api/src/routes/index.ts +++ b/packages/create-app/templates/todo-list-example/api/src/routes/index.ts @@ -1,5 +1,6 @@ import middleware from '@blocklet/sdk/lib/middlewares'; import { Router } from 'express'; + import todoListRouter from './todo-list'; const router = Router(); 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 18eb8f74..775521d9 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,6 +1,7 @@ -import type { Request, Response } from 'express'; import { GetObjectCommand, SpaceClient } from '@did-space/client'; import { streamToString } from '@did-space/core'; +import type { Request, Response } from 'express'; + import { authService, wallet } from '../../libs/auth'; export default async function $get(req: Request, res: Response) { @@ -14,18 +15,20 @@ export default async function $get(req: Request, res: Response) { // @ts-ignore endpoint: user.didSpace.endpoint, }); - try { - const { data } = await spaceClient.send( - new GetObjectCommand({ - key: 'todo-list.json', - }), - ); - return res.json({ todoList: JSON.parse(await streamToString(data)) }); - } catch (error) { - if (error.message.includes('404')) { - return res.json({ todoList: [] }); - } - console.error(error); - return res.status(400).send(error.message); + + const output = await spaceClient.send( + new GetObjectCommand({ + key: 'todo-list.json', + }), + ); + + if (output.statusCode === 200) { + return res.json({ todoList: JSON.parse(await streamToString(output.data)) }); + } + + if (output.statusCode === 404) { + return res.json({ todoList: [] }); } + + return res.status(output.statusCode).send(output.statusMessage); } 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 3e3c0e7b..c6883edc 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,14 +1,15 @@ import { PutObjectCommand, SpaceClient } from '@did-space/client'; import type { Request, Response } from 'express'; import isArray from 'lodash/isArray'; + import { authService, wallet } from '../../libs/auth'; export default async function $put(req: Request, res: Response) { if (!isArray(req.body.todoList)) { - throw new Error('TodoList must be an array'); + return res.status(400).send('TodoList must be an array'); } - const { user } = await authService.getUser(req.user?.did as string); + const { user } = await authService.getUser(req.user!.did as string); if (!user?.didSpace?.endpoint) { return res.status(404).send('DID Spaces endpoint does not exist. Log in again to complete the authorization'); } @@ -18,12 +19,17 @@ export default async function $put(req: Request, res: Response) { // @ts-ignore endpoint: user.didSpace.endpoint, }); - await spaceClient.send( + + const output = await spaceClient.send( new PutObjectCommand({ key: 'todo-list.json', data: JSON.stringify(req.body.todoList), }), ); + if (output.statusCode !== 200) { + return res.status(output.statusCode).send(output.statusMessage); + } + return res.send(); } diff --git a/packages/create-app/templates/todo-list-example/api/src/routes/todo-list/index.ts b/packages/create-app/templates/todo-list-example/api/src/routes/todo-list/index.ts index 5c1db21d..5767bd51 100644 --- a/packages/create-app/templates/todo-list-example/api/src/routes/todo-list/index.ts +++ b/packages/create-app/templates/todo-list-example/api/src/routes/todo-list/index.ts @@ -1,5 +1,6 @@ import middleware from '@blocklet/sdk/lib/middlewares'; import { Router } from 'express'; + import $get from './$get'; import $put from './$put'; diff --git a/packages/create-app/templates/todo-list-example/package.json b/packages/create-app/templates/todo-list-example/package.json index 8e51f0e0..122143c8 100644 --- a/packages/create-app/templates/todo-list-example/package.json +++ b/packages/create-app/templates/todo-list-example/package.json @@ -40,64 +40,64 @@ "dependencies": { "@arcblock/did-auth": "^1.18.135", "@arcblock/did-auth-storage-nedb": "^1.7.1", - "@blocklet/sdk": "^1.16.30", - "@did-space/client": "^0.5.11", - "@did-space/core": "^0.5.11", + "@blocklet/sdk": "^1.16.31", + "@did-space/client": "^0.5.44", + "@did-space/core": "^0.5.44", "@ocap/client": "^1.18.135", "@ocap/mcrypto": "^1.18.135", "@ocap/wallet": "^1.18.135", - "axios": "^1.7.2", + "axios": "^1.7.7", "cookie-parser": "^1.4.6", "cors": "^2.8.5", "dotenv-flow": "^4.1.0", - "express": "^4.19.2", + "express": "^4.21.0", "express-async-errors": "^3.1.1", "lodash": "^4.17.21", "nanoid": "^5.0.7" }, "devDependencies": { - "@arcblock/did-connect": "^2.10.26", + "@arcblock/did-connect": "^2.10.33", "@arcblock/eslint-config": "^0.3.2", "@arcblock/eslint-config-ts": "^0.3.2", - "@arcblock/ux": "^2.10.26", - "@blocklet/js-sdk": "^1.16.30", - "@blocklet/ui-react": "^2.10.26", - "@emotion/react": "^11.13.0", + "@arcblock/ux": "^2.10.33", + "@blocklet/js-sdk": "^1.16.31", + "@blocklet/ui-react": "^2.10.33", + "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", - "@mui/icons-material": "^5.15.21", - "@mui/material": "^5.15.21", + "@mui/icons-material": "^5.16.7", + "@mui/material": "^5.16.7", "@types/cookie-parser": "^1.4.7", "@types/cors": "^2.8.17", "@types/dotenv-flow": "^3.3.3", "@types/express": "^4.17.21", "@types/lodash": "^4.17.7", - "@types/node": "^20.14.13", - "@types/react": "^18.3.3", + "@types/node": "^20.16.5", + "@types/react": "^18.3.8", "@types/react-dom": "^18.3.0", "@types/react-toastify": "^4.1.0", "@vitejs/plugin-react": "^4.3.1", - "bumpp": "^9.4.1", + "bumpp": "^9.5.2", "cross-env": "^7.0.3", - "eslint": "^8.57.0", + "eslint": "^8.57.1", "eslint-plugin-prettier": "^5.2.1", "import-sort-style-module": "^6.0.0", - "lint-staged": "^15.2.7", - "nodemon": "^3.1.4", + "lint-staged": "^15.2.10", + "nodemon": "^3.1.7", "prettier": "^3.3.3", "prettier-plugin-import-sort": "^0.0.7", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "react-icons": "^5.2.1", - "react-router-dom": "^6.24.0", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "react-icons": "^5.3.0", + "react-router-dom": "^6.26.2", "react-toastify": "^10.0.5", - "rimraf": "^5.0.7", + "rimraf": "^5.0.10", "simple-git-hooks": "^2.11.1", "ts-node": "^10.9.2", - "typescript": "^5.5.2", - "vite": "^5.3.5", + "typescript": "^5.6.2", + "vite": "^5.4.7", "vite-plugin-blocklet": "^0.9.4", "vite-plugin-svgr": "^4.2.0", - "zx": "^8.1.4" + "zx": "^8.1.8" }, "importSort": { ".js, .jsx, .mjs": { @@ -112,4 +112,4 @@ "simple-git-hooks": { "pre-commit": "npx lint-staged" } -} +} \ No newline at end of file diff --git a/packages/create-app/templates/todo-list-example/src/app.tsx b/packages/create-app/templates/todo-list-example/src/app.tsx index 271c7611..45ddd5af 100644 --- a/packages/create-app/templates/todo-list-example/src/app.tsx +++ b/packages/create-app/templates/todo-list-example/src/app.tsx @@ -1,8 +1,9 @@ -import { Route, BrowserRouter as Router, Routes } from 'react-router-dom'; import { LocaleProvider } from '@arcblock/ux/lib/Locale/context'; -import TodoList from './pages/todo-list'; +import { Route, BrowserRouter as Router, Routes } from 'react-router-dom'; + import Layout from './components/layout'; import { SessionProvider } from './contexts/session'; +import TodoList from './pages/todo-list'; function App() { return ( diff --git a/packages/create-app/templates/todo-list-example/src/contexts/session.tsx b/packages/create-app/templates/todo-list-example/src/contexts/session.tsx index 90a5b3a0..0526232e 100644 --- a/packages/create-app/templates/todo-list-example/src/contexts/session.tsx +++ b/packages/create-app/templates/todo-list-example/src/contexts/session.tsx @@ -1,5 +1,5 @@ -import { useContext } from 'react'; import { createAuthServiceSessionContext } from '@arcblock/did-connect/lib/Session'; +import { useContext } from 'react'; const { SessionProvider, SessionContext, SessionConsumer, withSession } = createAuthServiceSessionContext(); diff --git a/packages/create-app/templates/todo-list-example/src/pages/required-login.tsx b/packages/create-app/templates/todo-list-example/src/pages/required-login.tsx index 835b1da7..aeb08e3e 100644 --- a/packages/create-app/templates/todo-list-example/src/pages/required-login.tsx +++ b/packages/create-app/templates/todo-list-example/src/pages/required-login.tsx @@ -1,6 +1,7 @@ import { Alert, Button, Grid } from '@mui/material'; import { useEffect } from 'react'; import { useNavigate } from 'react-router-dom'; + import { useSessionContext } from '../contexts/session'; type RequiredLoginProps = { diff --git a/packages/create-app/templates/todo-list-example/src/pages/todo-list.tsx b/packages/create-app/templates/todo-list-example/src/pages/todo-list.tsx index 4607c2bd..7bf091fc 100644 --- a/packages/create-app/templates/todo-list-example/src/pages/todo-list.tsx +++ b/packages/create-app/templates/todo-list-example/src/pages/todo-list.tsx @@ -1,14 +1,16 @@ -import { useState, useEffect } from 'react'; -import { ToastContainer, toast } from 'react-toastify'; import 'react-toastify/dist/ReactToastify.css'; -import { nanoid } from 'nanoid'; -import isEmpty from 'lodash/isEmpty'; -import type { AxiosResponse } from 'axios'; import './todo-list.css'; + +import type { AxiosResponse } from 'axios'; +import isEmpty from 'lodash/isEmpty'; +import { nanoid } from 'nanoid'; +import { useEffect, useState } from 'react'; +import { ToastContainer, toast } from 'react-toastify'; + import { useSessionContext } from '../contexts/session'; -import RequiredLogin from './required-login'; import axios from '../libs/api'; +import RequiredLogin from './required-login'; type Todo = { id: string; @@ -30,11 +32,18 @@ function TodoList() { const fetchTodoList = async () => { try { setLoading(true); + + if (!session.user) { + setTodoList([]); + return; + } + const response: AxiosResponse<{ todoList: [] }, any> = await axios.get('/api/todo-list'); setTodoList(response.data.todoList); } catch (error) { console.error(error); setTodoList([]); + toast.error(error.message); } finally { setLoading(false); } @@ -42,6 +51,7 @@ function TodoList() { useEffect(() => { fetchTodoList(); + // eslint-disable-next-line react-hooks/exhaustive-deps }, []); // Step 4: write data to DID Spaces From 4a09c93998ebe364435d924333850da3df8a8484 Mon Sep 17 00:00:00 2001 From: JianChao Date: Mon, 23 Sep 2024 17:53:33 +0800 Subject: [PATCH 2/2] chore: bump version --- CHANGELOG.md | 4 ++++ package.json | 2 +- packages/create-app/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 +- 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 +- 22 files changed, 26 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fee8bef5..912a82b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.9.5 (2024-9-23) + +- fix: todo list template + ## 0.9.4 (2024-8-29) - fix(vite-plugin-blocklet): fix blockletPrefix without trailingSlash cause vite error diff --git a/package.json b/package.json index ba7464c9..33832ecb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "create-blocklet", "private": true, - "version": "0.9.4", + "version": "0.9.5", "description": "", "keywords": [], "author": "", diff --git a/packages/create-app/package.json b/packages/create-app/package.json index 04239efb..6d4deaf7 100644 --- a/packages/create-app/package.json +++ b/packages/create-app/package.json @@ -1,6 +1,6 @@ { "name": "create-blocklet", - "version": "0.9.4", + "version": "0.9.5", "exports": "./index.js", "type": "module", "repository": "git@github.com:blocklet/create-blocklet.git", diff --git a/packages/create-app/templates/react-dapp-ts/package.json b/packages/create-app/templates/react-dapp-ts/package.json index 648a8b53..d676d2d9 100644 --- a/packages/create-app/templates/react-dapp-ts/package.json +++ b/packages/create-app/templates/react-dapp-ts/package.json @@ -80,7 +80,7 @@ "ts-node": "^10.9.2", "typescript": "^5.5.2", "vite": "^5.3.5", - "vite-plugin-blocklet": "^0.9.4", + "vite-plugin-blocklet": "^0.9.5", "vite-plugin-svgr": "^4.2.0", "zx": "^8.1.4" }, diff --git a/packages/create-app/templates/react-dapp/package.json b/packages/create-app/templates/react-dapp/package.json index 64f71f7b..1ad3f6a9 100644 --- a/packages/create-app/templates/react-dapp/package.json +++ b/packages/create-app/templates/react-dapp/package.json @@ -70,7 +70,7 @@ "rimraf": "^5.0.7", "simple-git-hooks": "^2.11.1", "vite": "^5.3.5", - "vite-plugin-blocklet": "^0.9.4", + "vite-plugin-blocklet": "^0.9.5", "vite-plugin-svgr": "^4.2.0", "zx": "^8.1.4" }, diff --git a/packages/create-app/templates/react-gun-dapp/package.json b/packages/create-app/templates/react-gun-dapp/package.json index eb7f0f7c..1873c05e 100644 --- a/packages/create-app/templates/react-gun-dapp/package.json +++ b/packages/create-app/templates/react-gun-dapp/package.json @@ -70,7 +70,7 @@ "rimraf": "^5.0.7", "simple-git-hooks": "^2.11.1", "vite": "^5.3.5", - "vite-plugin-blocklet": "^0.9.4", + "vite-plugin-blocklet": "^0.9.5", "vite-plugin-svgr": "^4.2.0", "zx": "^8.1.4" }, diff --git a/packages/create-app/templates/react-static/package.json b/packages/create-app/templates/react-static/package.json index e7f46cc1..fb84449d 100644 --- a/packages/create-app/templates/react-static/package.json +++ b/packages/create-app/templates/react-static/package.json @@ -51,7 +51,7 @@ "rimraf": "^5.0.7", "simple-git-hooks": "^2.11.1", "vite": "^5.3.5", - "vite-plugin-blocklet": "^0.9.4", + "vite-plugin-blocklet": "^0.9.5", "vite-plugin-svgr": "^4.2.0", "zx": "^8.1.4" }, diff --git a/packages/create-app/templates/solidjs-dapp/package.json b/packages/create-app/templates/solidjs-dapp/package.json index 12df7054..8edb8748 100644 --- a/packages/create-app/templates/solidjs-dapp/package.json +++ b/packages/create-app/templates/solidjs-dapp/package.json @@ -35,7 +35,7 @@ "rimraf": "^5.0.7", "simple-git-hooks": "^2.11.1", "vite": "^5.3.5", - "vite-plugin-blocklet": "^0.9.4", + "vite-plugin-blocklet": "^0.9.5", "vite-plugin-solid": "^2.10.2", "zx": "^8.1.4" }, diff --git a/packages/create-app/templates/solidjs-static/package.json b/packages/create-app/templates/solidjs-static/package.json index 30cb13be..11276601 100644 --- a/packages/create-app/templates/solidjs-static/package.json +++ b/packages/create-app/templates/solidjs-static/package.json @@ -31,7 +31,7 @@ "simple-git-hooks": "^2.11.1", "solid-js": "^1.8.18", "vite": "^5.3.5", - "vite-plugin-blocklet": "^0.9.4", + "vite-plugin-blocklet": "^0.9.5", "vite-plugin-solid": "^2.10.2", "zx": "^8.1.4" }, diff --git a/packages/create-app/templates/svelte-dapp/package.json b/packages/create-app/templates/svelte-dapp/package.json index 3fe030de..4cb2dd98 100644 --- a/packages/create-app/templates/svelte-dapp/package.json +++ b/packages/create-app/templates/svelte-dapp/package.json @@ -43,7 +43,7 @@ "simple-git-hooks": "^2.11.1", "svelte": "^4.2.18", "vite": "^5.3.5", - "vite-plugin-blocklet": "^0.9.4", + "vite-plugin-blocklet": "^0.9.5", "zx": "^8.1.4" }, "lint-staged": { diff --git a/packages/create-app/templates/svelte-static/package.json b/packages/create-app/templates/svelte-static/package.json index 86f85a85..edb34158 100644 --- a/packages/create-app/templates/svelte-static/package.json +++ b/packages/create-app/templates/svelte-static/package.json @@ -24,7 +24,7 @@ "simple-git-hooks": "^2.11.1", "svelte": "^4.2.18", "vite": "^5.3.5", - "vite-plugin-blocklet": "^0.9.4", + "vite-plugin-blocklet": "^0.9.5", "zx": "^8.1.4" }, "lint-staged": { diff --git a/packages/create-app/templates/todo-list-example/package.json b/packages/create-app/templates/todo-list-example/package.json index 122143c8..c55607d9 100644 --- a/packages/create-app/templates/todo-list-example/package.json +++ b/packages/create-app/templates/todo-list-example/package.json @@ -95,7 +95,7 @@ "ts-node": "^10.9.2", "typescript": "^5.6.2", "vite": "^5.4.7", - "vite-plugin-blocklet": "^0.9.4", + "vite-plugin-blocklet": "^0.9.5", "vite-plugin-svgr": "^4.2.0", "zx": "^8.1.8" }, @@ -112,4 +112,4 @@ "simple-git-hooks": { "pre-commit": "npx lint-staged" } -} \ No newline at end of file +} diff --git a/packages/create-app/templates/vue-dapp/package.json b/packages/create-app/templates/vue-dapp/package.json index aa70fa1f..249c457d 100644 --- a/packages/create-app/templates/vue-dapp/package.json +++ b/packages/create-app/templates/vue-dapp/package.json @@ -48,7 +48,7 @@ "rimraf": "^5.0.7", "simple-git-hooks": "^2.11.1", "vite": "^5.3.5", - "vite-plugin-blocklet": "^0.9.4", + "vite-plugin-blocklet": "^0.9.5", "vue": "^3.4.31", "zx": "^8.1.4" }, diff --git a/packages/create-app/templates/vue-static/package.json b/packages/create-app/templates/vue-static/package.json index c6d1a848..c477f6b5 100644 --- a/packages/create-app/templates/vue-static/package.json +++ b/packages/create-app/templates/vue-static/package.json @@ -29,7 +29,7 @@ "rimraf": "^5.0.7", "simple-git-hooks": "^2.11.1", "vite": "^5.3.5", - "vite-plugin-blocklet": "^0.9.4", + "vite-plugin-blocklet": "^0.9.5", "vue": "^3.4.31", "zx": "^8.1.4" }, diff --git a/packages/create-app/templates/vue-ts-static/package.json b/packages/create-app/templates/vue-ts-static/package.json index 2731a40b..86d116ca 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.3", "typescript": "^5.5.4", "vite": "^5.3.5", - "vite-plugin-blocklet": "^0.9.4", + "vite-plugin-blocklet": "^0.9.5", "vue-tsc": "^2.0.29", "zx": "^8.1.4" }, diff --git a/packages/create-app/templates/vue2-dapp/package.json b/packages/create-app/templates/vue2-dapp/package.json index edab7367..c5d305ac 100644 --- a/packages/create-app/templates/vue2-dapp/package.json +++ b/packages/create-app/templates/vue2-dapp/package.json @@ -47,7 +47,7 @@ "rimraf": "^5.0.7", "simple-git-hooks": "^2.11.1", "vite": "^5.3.5", - "vite-plugin-blocklet": "^0.9.4", + "vite-plugin-blocklet": "^0.9.5", "vue": "^2.7.16", "zx": "^8.1.4" }, diff --git a/packages/create-app/templates/vue2-static/package.json b/packages/create-app/templates/vue2-static/package.json index feb3d940..3eae5278 100644 --- a/packages/create-app/templates/vue2-static/package.json +++ b/packages/create-app/templates/vue2-static/package.json @@ -29,7 +29,7 @@ "rimraf": "^5.0.7", "simple-git-hooks": "^2.11.1", "vite": "^5.3.5", - "vite-plugin-blocklet": "^0.9.4", + "vite-plugin-blocklet": "^0.9.5", "vue": "^2.7.16", "zx": "^8.1.4" }, diff --git a/plugins/vite-plugin-blocklet/package.json b/plugins/vite-plugin-blocklet/package.json index ec10b15c..a9f87187 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.4", + "version": "0.9.5", "description": "", "main": "index.js", "files": [ diff --git a/plugins/vite-plugin-wss-hmr/package.json b/plugins/vite-plugin-wss-hmr/package.json index 9c0af28b..76ac0953 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.4", + "version": "0.9.5", "description": "", "main": "index.js", "exports": { diff --git a/version b/version index 2bd77c74..03834411 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.9.4 \ No newline at end of file +0.9.5 \ No newline at end of file diff --git a/website/docs/blocklet.yml b/website/docs/blocklet.yml index 6a017973..cf741abd 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.4 +version: 0.9.5 logo: logo.png files: - logo.png diff --git a/website/pages/blocklet.yml b/website/pages/blocklet.yml index edd40514..4d12b07a 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.4 +version: 0.9.5 logo: logo.png files: - logo.png