From 6a58ab849cd30020a517c209e73d54f58a2988e0 Mon Sep 17 00:00:00 2001 From: Qijia Liu Date: Thu, 18 Jul 2024 09:29:13 +0800 Subject: [PATCH] 0.3.1 (#1) --- .github/workflows/build.yml | 3 +- OpenCC | 2 +- package.json | 60 ++++++++++++++++++------------------- patch | 19 ++++++++++-- 4 files changed, 49 insertions(+), 35 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f4d60e..9f9b34f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: run: | pnpm run build - name: Upload artifact - if: ${{ github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest' }} + if: ${{ matrix.os == 'ubuntu-latest' }} uses: actions/upload-artifact@v3 with: name: dist @@ -78,6 +78,7 @@ jobs: run: | pnpm run test - name: Release + if: ${{ github.ref == 'refs/heads/master' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | diff --git a/OpenCC b/OpenCC index 200d01f..8f3a5b4 160000 --- a/OpenCC +++ b/OpenCC @@ -1 +1 @@ -Subproject commit 200d01f065805b5f2f20baace4ade59a8a132daf +Subproject commit 8f3a5b4b201f091713cb4e2b1b5883a4b12d10b2 diff --git a/package.json b/package.json index 4b33cfd..90b5894 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@libreservice/my-opencc", - "version": "0.3.0", + "version": "0.3.1", "files": [ "dist" ], @@ -26,39 +26,39 @@ "preview": "vite preview --host" }, "devDependencies": { - "@libreservice/lazy-cache": "^0.1.0", + "@libreservice/lazy-cache": "^0.1.2", "@libreservice/my-widget": "^0.1.4", - "@libreservice/my-worker": "^0.4.0", - "@playwright/test": "^1.35.0", - "@rollup/plugin-json": "^6.0.0", - "@rollup/plugin-node-resolve": "^15.1.0", - "@rollup/plugin-replace": "^5.0.2", - "@types/lodash": "^4.14.195", - "@typescript-eslint/eslint-plugin": "^5.59.11", - "@typescript-eslint/parser": "^5.59.11", + "@libreservice/my-worker": "^0.4.2", + "@playwright/test": "^1.45.2", + "@rollup/plugin-json": "^6.1.0", + "@rollup/plugin-node-resolve": "^15.2.3", + "@rollup/plugin-replace": "^5.0.7", + "@types/lodash": "^4.17.7", + "@typescript-eslint/eslint-plugin": "^7.16.1", + "@typescript-eslint/parser": "^7.16.1", "@vicons/fa": "^0.12.0", "@vicons/material": "^0.12.0", - "@vitejs/plugin-vue": "^4.2.3", - "client-zip": "^2.4.4", - "esbuild": "^0.18.1", - "eslint": "^8.42.0", + "@vitejs/plugin-vue": "^5.0.5", + "client-zip": "^2.4.5", + "esbuild": "^0.23.0", + "eslint": "^8.57.0", "eslint-config-standard": "^17.1.0", - "eslint-plugin-import": "^2.27.5", - "eslint-plugin-n": "^16.0.0", - "eslint-plugin-promise": "^6.1.1", - "eslint-plugin-vue": "^9.14.1", - "idb": "^7.1.1", + "eslint-plugin-import": "^2.29.1", + "eslint-plugin-n": "^17.9.0", + "eslint-plugin-promise": "^6.4.0", + "eslint-plugin-vue": "^9.27.0", + "idb": "^8.0.0", "lodash": "^4.17.21", - "naive-ui": "^2.34.4", - "rollup": "^3.25.1", - "rollup-plugin-esbuild": "^5.0.0", - "tslib": "^2.5.3", - "typescript": "^5.1.3", - "vite": "^4.3.9", - "vite-plugin-pwa": "^0.16.4", - "vite-plugin-run": "^0.4.1", - "vue": "^3.3.4", - "vue-router": "^4.2.2", - "vue-tsc": "^1.6.5" + "naive-ui": "^2.39.0", + "rollup": "^4.18.1", + "rollup-plugin-esbuild": "^6.1.1", + "tslib": "^2.6.3", + "typescript": "^5.5.3", + "vite": "^5.3.4", + "vite-plugin-pwa": "^0.20.0", + "vite-plugin-run": "0.4.1", + "vue": "^3.4.32", + "vue-router": "^4.4.0", + "vue-tsc": "^2.0.26" } } diff --git a/patch b/patch index 25feb51..260be32 100644 --- a/patch +++ b/patch @@ -1,8 +1,8 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt -index 9b3b15d..a939f2b 100644 +index d7c3edc..a855025 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -132,7 +132,9 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") +@@ -157,7 +157,9 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") -std=c++14 -Wall ) @@ -13,7 +13,7 @@ index 9b3b15d..a939f2b 100644 if (CMAKE_BUILD_TYPE MATCHES Debug) add_definitions(-O0 -g3) endif () -@@ -196,9 +198,11 @@ endif() +@@ -221,9 +223,11 @@ endif() ######## Subdirectories add_subdirectory(src) @@ -48,3 +48,16 @@ index ffcdc5b..0de4c63 100644 //#define MARISA_WORD_SIZE (sizeof(void *) * 8) +diff --git a/deps/rapidjson-1.1.0/rapidjson/document.h b/deps/rapidjson-1.1.0/rapidjson/document.h +index e3e20df..ad362a6 100644 +--- a/deps/rapidjson-1.1.0/rapidjson/document.h ++++ b/deps/rapidjson-1.1.0/rapidjson/document.h +@@ -322,7 +322,7 @@ struct GenericStringRef { + operator const Ch *() const { return s; } + + const Ch* const s; //!< plain CharType pointer +- const SizeType length; //!< length of the string (excluding the trailing NULL terminator) ++ SizeType length; //!< length of the string (excluding the trailing NULL terminator) + + private: + //! Disallow construction from non-const array