Skip to content

Commit 735a4c2

Browse files
committed
Bump to 1.0
1 parent 29240ae commit 735a4c2

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"typecheck": "tsc -b tsconfig.project.json -verbose"
2323
},
2424
"devDependencies": {
25-
"@napi-rs/cli": "^1.0.0-alpha.13",
25+
"@napi-rs/cli": "^1.0.0",
2626
"@typescript-eslint/eslint-plugin": "^4.11.1",
2727
"@typescript-eslint/parser": "^4.11.1",
2828
"ava": "^3.14.0",

packages/bcrypt/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ crate-type = ["cdylib"]
1010
[dependencies]
1111
blowfish = {version = "0.7", features = ["bcrypt"]}
1212
byteorder = "1"
13-
napi = "1.0.0-alpha.10"
14-
napi-derive = "1.0.0-alpha.0"
13+
napi = "1.0.0"
14+
napi-derive = "1"
1515
phf = {version = "0.8", features = ["macros"]}
1616
radix64 = "0.6"
1717
rand = "0.8"
@@ -26,4 +26,4 @@ mimalloc = {version = "0.1"}
2626
quickcheck = "0.9"
2727

2828
[build-dependencies]
29-
napi-build = "1.0.0-alpha.0"
29+
napi-build = "1"

packages/crc32/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ crate-type = ["cdylib"]
99

1010
[dependencies]
1111
crc32fast = "1.2"
12-
napi = "1.0.0-alpha.10"
13-
napi-derive = "1.0.0-alpha.0"
12+
napi = "1.0.0"
13+
napi-derive = "1"
1414

1515
[target.'cfg(all(unix, not(target_env = "musl"), not(target_arch = "aarch64")))'.dependencies]
1616
jemallocator = {version = "0.3", features = ["disable_initial_exec_tls"]}
@@ -19,4 +19,4 @@ jemallocator = {version = "0.3", features = ["disable_initial_exec_tls"]}
1919
mimalloc = {version = "0.1"}
2020

2121
[build-dependencies]
22-
napi-build = "1.0.0-alpha.0"
22+
napi-build = "1"

packages/deno-lint/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ crate-type = ["cdylib"]
1010
[dependencies]
1111
deno_lint = "=0.2.14"
1212
ignore = "0.4"
13-
napi = "1.0.0-alpha.10"
14-
napi-derive = "1.0.0-alpha.0"
13+
napi = "1.0.0"
14+
napi-derive = "1"
1515
serde = "1"
1616
serde_json = "1"
1717
swc_ecmascript = {version = "=0.16.1", features = ["parser", "transforms", "utils", "visit"]}
@@ -24,4 +24,4 @@ jemallocator = {version = "0.3", features = ["disable_initial_exec_tls"]}
2424
mimalloc = {version = "0.1"}
2525

2626
[build-dependencies]
27-
napi-build = "1.0.0-alpha.0"
27+
napi-build = "1"

packages/jieba/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ crate-type = ["cdylib"]
99

1010
[dependencies]
1111
jieba-rs = {version = "0.6", features = ["default-dict", "tfidf", "textrank"]}
12-
napi = "1.0.0-alpha.10"
13-
napi-derive = "1.0.0-alpha.0"
12+
napi = "1.0.0"
13+
napi-derive = "1"
1414
once_cell = "1.5"
1515

1616
[target.'cfg(all(unix, not(target_env = "musl"), not(target_arch = "aarch64")))'.dependencies]
@@ -20,4 +20,4 @@ jemallocator = {version = "0.3", features = ["disable_initial_exec_tls"]}
2020
mimalloc = {version = "0.1"}
2121

2222
[build-dependencies]
23-
napi-build = "1.0.0-alpha.0"
23+
napi-build = "1"

packages/jieba/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ fn extract(ctx: CallContext) -> Result<JsObject> {
157157

158158
let keyword_extractor = TFIDF::new_with_jieba(&jieba);
159159

160-
let topn: usize = topn.try_into()?;
160+
let topn: u32 = topn.try_into()?;
161161

162162
let tags = keyword_extractor.extract_tags(
163163
str::from_utf8(&sentence).map_err(|_| Error::from_status(Status::InvalidArg))?,
164-
topn,
164+
topn as usize,
165165
allowed_pos,
166166
);
167167
let mut js_tags = ctx.env.create_array_with_length(tags.len())?;

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -982,10 +982,10 @@
982982
call-me-maybe "^1.0.1"
983983
glob-to-regexp "^0.3.0"
984984

985-
"@napi-rs/cli@^1.0.0-alpha.13":
986-
version "1.0.0-alpha.14"
987-
resolved "https://registry.yarnpkg.com/@napi-rs/cli/-/cli-1.0.0-alpha.14.tgz#c5174e58bff4bb7fbaa117b796a9b0ee3d9e1c5d"
988-
integrity sha512-rxFj1JEx/dQ1iU5nHOabkvoA2ajWTj95KRLGINOZkuaY+kgmsFpTFUkohZmZCPFI1dGxRFOgZrQqW8iSmGDveA==
985+
"@napi-rs/cli@^1.0.0":
986+
version "1.0.0"
987+
resolved "https://registry.npmjs.org/@napi-rs/cli/-/cli-1.0.0.tgz#b9139570016ec4c2087a9079b72c1cdc04b46581"
988+
integrity sha512-hWOkP1swphh+tll7s8sY87gyyJSdYpLkkhBEUuzKlTQkGXHm0nUSPqzhnrxR5dMPLQ9T1dUQVP5Zxq0IVofDhQ==
989989
dependencies:
990990
"@octokit/rest" "^18.0.12"
991991
chalk "^4.1.0"

0 commit comments

Comments
 (0)