From 87f7fa1075fee75eacfb20ed10a7bdf358b9943e Mon Sep 17 00:00:00 2001 From: LongYinan Date: Wed, 22 Dec 2021 15:20:15 +0800 Subject: [PATCH] 1.7.0 --- CHANGELOG.md | 9 +++++++ npm/android-arm-eabi/package.json | 16 +++++++++---- npm/android-arm64/package.json | 16 +++++++++---- npm/darwin-arm64/package.json | 16 +++++++++---- npm/darwin-x64/package.json | 16 +++++++++---- npm/freebsd-x64/package.json | 16 +++++++++---- npm/linux-arm-gnueabihf/package.json | 16 +++++++++---- npm/linux-arm64-gnu/package.json | 16 +++++++++---- npm/linux-arm64-musl/package.json | 16 +++++++++---- npm/linux-x64-gnu/package.json | 16 +++++++++---- npm/linux-x64-musl/package.json | 16 +++++++++---- npm/win32-arm64-msvc/package.json | 16 +++++++++---- npm/win32-ia32-msvc/package.json | 16 +++++++++---- npm/win32-x64-msvc/package.json | 16 +++++++++---- package.json | 36 +++++++++++++++++++++------- 15 files changed, 180 insertions(+), 73 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6e38b3..9287e6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +# [1.7.0](https://github.com/Brooooooklyn/pinyin/compare/v1.6.2...v1.7.0) (2021-12-22) + + +### Features + +* upgrade to napi2 ([be1854d](https://github.com/Brooooooklyn/pinyin/commit/be1854d547acb26b1a26aff3de0d84852a682189)) + + + ## [1.6.2](https://github.com/Brooooooklyn/pinyin/compare/v1.6.1...v1.6.2) (2021-07-22) ### Bug Fixes diff --git a/npm/android-arm-eabi/package.json b/npm/android-arm-eabi/package.json index 6758bcd..05e0758 100644 --- a/npm/android-arm-eabi/package.json +++ b/npm/android-arm-eabi/package.json @@ -1,10 +1,16 @@ { "name": "@napi-rs/pinyin-android-arm-eabi", - "version": "1.6.2", - "os": ["android"], - "cpu": ["arm"], + "version": "1.7.0", + "os": [ + "android" + ], + "cpu": [ + "arm" + ], "main": "pinyin.android-arm-eabi.node", - "files": ["pinyin.android-arm-eabi.node"], + "files": [ + "pinyin.android-arm-eabi.node" + ], "description": "Fastest Chinese words to pinyin library", "keywords": [ "napi-rs", @@ -29,4 +35,4 @@ "access": "public" }, "repository": "git@github.com:Brooooooklyn/pinyin.git" -} +} \ No newline at end of file diff --git a/npm/android-arm64/package.json b/npm/android-arm64/package.json index 8fbe2a1..5eca955 100644 --- a/npm/android-arm64/package.json +++ b/npm/android-arm64/package.json @@ -1,10 +1,16 @@ { "name": "@napi-rs/pinyin-android-arm64", - "version": "1.6.2", - "os": ["android"], - "cpu": ["arm64"], + "version": "1.7.0", + "os": [ + "android" + ], + "cpu": [ + "arm64" + ], "main": "pinyin.android-arm64.node", - "files": ["pinyin.android-arm64.node"], + "files": [ + "pinyin.android-arm64.node" + ], "description": "Fastest Chinese words to pinyin library", "keywords": [ "napi-rs", @@ -29,4 +35,4 @@ "access": "public" }, "repository": "git@github.com:Brooooooklyn/pinyin.git" -} +} \ No newline at end of file diff --git a/npm/darwin-arm64/package.json b/npm/darwin-arm64/package.json index 59ffd2b..ae8409c 100644 --- a/npm/darwin-arm64/package.json +++ b/npm/darwin-arm64/package.json @@ -1,10 +1,16 @@ { "name": "@napi-rs/pinyin-darwin-arm64", - "version": "1.6.2", - "os": ["darwin"], - "cpu": ["arm64"], + "version": "1.7.0", + "os": [ + "darwin" + ], + "cpu": [ + "arm64" + ], "main": "pinyin.darwin-arm64.node", - "files": ["pinyin.darwin-arm64.node"], + "files": [ + "pinyin.darwin-arm64.node" + ], "description": "Fastest Chinese words to pinyin library", "keywords": [ "napi-rs", @@ -29,4 +35,4 @@ "access": "public" }, "repository": "git@github.com:Brooooooklyn/pinyin.git" -} +} \ No newline at end of file diff --git a/npm/darwin-x64/package.json b/npm/darwin-x64/package.json index 8ccc51e..d214bf0 100644 --- a/npm/darwin-x64/package.json +++ b/npm/darwin-x64/package.json @@ -1,10 +1,16 @@ { "name": "@napi-rs/pinyin-darwin-x64", - "version": "1.6.2", - "os": ["darwin"], - "cpu": ["x64"], + "version": "1.7.0", + "os": [ + "darwin" + ], + "cpu": [ + "x64" + ], "main": "pinyin.darwin-x64.node", - "files": ["pinyin.darwin-x64.node"], + "files": [ + "pinyin.darwin-x64.node" + ], "description": "Fastest Chinese words to pinyin library", "keywords": [ "napi-rs", @@ -29,4 +35,4 @@ "access": "public" }, "repository": "git@github.com:Brooooooklyn/pinyin.git" -} +} \ No newline at end of file diff --git a/npm/freebsd-x64/package.json b/npm/freebsd-x64/package.json index 5a19296..5e6ffb4 100644 --- a/npm/freebsd-x64/package.json +++ b/npm/freebsd-x64/package.json @@ -1,10 +1,16 @@ { "name": "@napi-rs/pinyin-freebsd-x64", - "version": "1.6.2", - "os": ["freebsd"], - "cpu": ["x64"], + "version": "1.7.0", + "os": [ + "freebsd" + ], + "cpu": [ + "x64" + ], "main": "pinyin.freebsd-x64.node", - "files": ["pinyin.freebsd-x64.node"], + "files": [ + "pinyin.freebsd-x64.node" + ], "description": "Fastest Chinese words to pinyin library", "keywords": [ "napi-rs", @@ -29,4 +35,4 @@ "access": "public" }, "repository": "git@github.com:Brooooooklyn/pinyin.git" -} +} \ No newline at end of file diff --git a/npm/linux-arm-gnueabihf/package.json b/npm/linux-arm-gnueabihf/package.json index 089ad21..ce61a41 100644 --- a/npm/linux-arm-gnueabihf/package.json +++ b/npm/linux-arm-gnueabihf/package.json @@ -1,10 +1,16 @@ { "name": "@napi-rs/pinyin-linux-arm-gnueabihf", - "version": "1.6.2", - "os": ["linux"], - "cpu": ["arm"], + "version": "1.7.0", + "os": [ + "linux" + ], + "cpu": [ + "arm" + ], "main": "pinyin.linux-arm-gnueabihf.node", - "files": ["pinyin.linux-arm-gnueabihf.node"], + "files": [ + "pinyin.linux-arm-gnueabihf.node" + ], "description": "Fastest Chinese words to pinyin library", "keywords": [ "napi-rs", @@ -29,4 +35,4 @@ "access": "public" }, "repository": "git@github.com:Brooooooklyn/pinyin.git" -} +} \ No newline at end of file diff --git a/npm/linux-arm64-gnu/package.json b/npm/linux-arm64-gnu/package.json index 14bd44e..7ca6303 100644 --- a/npm/linux-arm64-gnu/package.json +++ b/npm/linux-arm64-gnu/package.json @@ -1,10 +1,16 @@ { "name": "@napi-rs/pinyin-linux-arm64-gnu", - "version": "1.6.2", - "os": ["linux"], - "cpu": ["arm64"], + "version": "1.7.0", + "os": [ + "linux" + ], + "cpu": [ + "arm64" + ], "main": "pinyin.linux-arm64-gnu.node", - "files": ["pinyin.linux-arm64-gnu.node"], + "files": [ + "pinyin.linux-arm64-gnu.node" + ], "description": "Fastest Chinese words to pinyin library", "keywords": [ "napi-rs", @@ -29,4 +35,4 @@ "access": "public" }, "repository": "git@github.com:Brooooooklyn/pinyin.git" -} +} \ No newline at end of file diff --git a/npm/linux-arm64-musl/package.json b/npm/linux-arm64-musl/package.json index 950f30a..0dc7960 100644 --- a/npm/linux-arm64-musl/package.json +++ b/npm/linux-arm64-musl/package.json @@ -1,10 +1,16 @@ { "name": "@napi-rs/pinyin-linux-arm64-musl", - "version": "1.6.2", - "os": ["linux"], - "cpu": ["arm64"], + "version": "1.7.0", + "os": [ + "linux" + ], + "cpu": [ + "arm64" + ], "main": "pinyin.linux-arm64-musl.node", - "files": ["pinyin.linux-arm64-musl.node"], + "files": [ + "pinyin.linux-arm64-musl.node" + ], "description": "Fastest Chinese words to pinyin library", "keywords": [ "napi-rs", @@ -29,4 +35,4 @@ "access": "public" }, "repository": "git@github.com:Brooooooklyn/pinyin.git" -} +} \ No newline at end of file diff --git a/npm/linux-x64-gnu/package.json b/npm/linux-x64-gnu/package.json index 0e164c2..2324c9c 100644 --- a/npm/linux-x64-gnu/package.json +++ b/npm/linux-x64-gnu/package.json @@ -1,10 +1,16 @@ { "name": "@napi-rs/pinyin-linux-x64-gnu", - "version": "1.6.2", - "os": ["linux"], - "cpu": ["x64"], + "version": "1.7.0", + "os": [ + "linux" + ], + "cpu": [ + "x64" + ], "main": "pinyin.linux-x64-gnu.node", - "files": ["pinyin.linux-x64-gnu.node"], + "files": [ + "pinyin.linux-x64-gnu.node" + ], "description": "Fastest Chinese words to pinyin library", "keywords": [ "napi-rs", @@ -29,4 +35,4 @@ "access": "public" }, "repository": "git@github.com:Brooooooklyn/pinyin.git" -} +} \ No newline at end of file diff --git a/npm/linux-x64-musl/package.json b/npm/linux-x64-musl/package.json index d25a5e3..24f39c2 100644 --- a/npm/linux-x64-musl/package.json +++ b/npm/linux-x64-musl/package.json @@ -1,10 +1,16 @@ { "name": "@napi-rs/pinyin-linux-x64-musl", - "version": "1.6.2", - "os": ["linux"], - "cpu": ["x64"], + "version": "1.7.0", + "os": [ + "linux" + ], + "cpu": [ + "x64" + ], "main": "pinyin.linux-x64-musl.node", - "files": ["pinyin.linux-x64-musl.node"], + "files": [ + "pinyin.linux-x64-musl.node" + ], "description": "Fastest Chinese words to pinyin library", "keywords": [ "napi-rs", @@ -29,4 +35,4 @@ "access": "public" }, "repository": "git@github.com:Brooooooklyn/pinyin.git" -} +} \ No newline at end of file diff --git a/npm/win32-arm64-msvc/package.json b/npm/win32-arm64-msvc/package.json index 7a5cc40..5e9692b 100644 --- a/npm/win32-arm64-msvc/package.json +++ b/npm/win32-arm64-msvc/package.json @@ -1,10 +1,16 @@ { "name": "@napi-rs/pinyin-win32-arm64-msvc", - "version": "1.6.2", - "os": ["win32"], - "cpu": ["arm64"], + "version": "1.7.0", + "os": [ + "win32" + ], + "cpu": [ + "arm64" + ], "main": "pinyin.win32-arm64-msvc.node", - "files": ["pinyin.win32-arm64-msvc.node"], + "files": [ + "pinyin.win32-arm64-msvc.node" + ], "description": "Fastest Chinese words to pinyin library", "keywords": [ "napi-rs", @@ -29,4 +35,4 @@ "access": "public" }, "repository": "git@github.com:Brooooooklyn/pinyin.git" -} +} \ No newline at end of file diff --git a/npm/win32-ia32-msvc/package.json b/npm/win32-ia32-msvc/package.json index 04fc4b7..9be66de 100644 --- a/npm/win32-ia32-msvc/package.json +++ b/npm/win32-ia32-msvc/package.json @@ -1,10 +1,16 @@ { "name": "@napi-rs/pinyin-win32-ia32-msvc", - "version": "1.6.2", - "os": ["win32"], - "cpu": ["ia32"], + "version": "1.7.0", + "os": [ + "win32" + ], + "cpu": [ + "ia32" + ], "main": "pinyin.win32-ia32-msvc.node", - "files": ["pinyin.win32-ia32-msvc.node"], + "files": [ + "pinyin.win32-ia32-msvc.node" + ], "description": "Fastest Chinese words to pinyin library", "keywords": [ "napi-rs", @@ -29,4 +35,4 @@ "access": "public" }, "repository": "git@github.com:Brooooooklyn/pinyin.git" -} +} \ No newline at end of file diff --git a/npm/win32-x64-msvc/package.json b/npm/win32-x64-msvc/package.json index f4ca7fd..c639b90 100644 --- a/npm/win32-x64-msvc/package.json +++ b/npm/win32-x64-msvc/package.json @@ -1,10 +1,16 @@ { "name": "@napi-rs/pinyin-win32-x64-msvc", - "version": "1.6.2", - "os": ["win32"], - "cpu": ["x64"], + "version": "1.7.0", + "os": [ + "win32" + ], + "cpu": [ + "x64" + ], "main": "pinyin.win32-x64-msvc.node", - "files": ["pinyin.win32-x64-msvc.node"], + "files": [ + "pinyin.win32-x64-msvc.node" + ], "description": "Fastest Chinese words to pinyin library", "keywords": [ "napi-rs", @@ -29,4 +35,4 @@ "access": "public" }, "repository": "git@github.com:Brooooooklyn/pinyin.git" -} +} \ No newline at end of file diff --git a/package.json b/package.json index a2d4cbb..9172a3a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@napi-rs/pinyin", - "version": "1.6.2", + "version": "1.7.0", "description": "Fastest Chinese words to pinyin library", "main": "index.js", "repository": "git@github.com:Brooooooklyn/pinyin.git", @@ -19,7 +19,14 @@ "汉字", "中文" ], - "files": ["index.d.ts", "index.js", "src/**", "build.rs", "Cargo.toml", "postinstall.js"], + "files": [ + "index.d.ts", + "index.js", + "src/**", + "build.rs", + "Cargo.toml", + "postinstall.js" + ], "napi": { "name": "pinyin", "triples": { @@ -89,14 +96,27 @@ "typescript": "^4.5.4" }, "lint-staged": { - "*.@(js|ts|tsx)": ["prettier --write", "eslint -c .eslintrc.yml --fix"], - "*.@(yml|yaml)": ["prettier --parser yaml --write"], - "*.md": ["prettier --parser markdown --write"], - "*.json": ["prettier --parser json --write"] + "*.@(js|ts|tsx)": [ + "prettier --write", + "eslint -c .eslintrc.yml --fix" + ], + "*.@(yml|yaml)": [ + "prettier --parser yaml --write" + ], + "*.md": [ + "prettier --parser markdown --write" + ], + "*.json": [ + "prettier --parser json --write" + ] }, "ava": { - "require": ["ts-node/register/transpile-only"], - "extensions": ["ts"], + "require": [ + "ts-node/register/transpile-only" + ], + "extensions": [ + "ts" + ], "timeout": "1m", "environmentVariables": { "TS_NODE_PROJECT": "./tsconfig.json"