Commit Graph
1234 Commits
Author SHA1 Message Date
LongYinan 56c64a1f87 chore(release): publish
- @node-rs/argon2@2.2.1
 - @node-rs/bcrypt@1.10.9
 - @node-rs/crc32@1.10.8
 - @node-rs/helper@1.6.2
 - @node-rs/jieba@2.0.3
 - @node-rs/jsonwebtoken@0.5.11
 - @node-rs/xxhash@1.7.8
@node-rs/jsonwebtoken@0.5.11 @node-rs/argon2@2.2.1 @node-rs/crc32@1.10.8 @node-rs/helper@1.6.2 @node-rs/jieba@2.0.3 @node-rs/bcrypt@1.10.9 @node-rs/xxhash@1.7.8
2026-09-10 13:41:17 +08:00
LongYinan f8d6b3eb8c fix: record and lock Rust release dependencies (#1206)
* fix: record and lock Rust release dependencies

* chore: group Cargo lockfile maintenance
2026-09-10 12:02:39 +08:00
LongYinan b8b4faeb15 fix: remove forced SSE4.2 from x64 builds (#1205) 2026-09-10 11:21:42 +08:00
LongYinan 7769109534 fix: disable mimalloc arch optimizations on Linux ARM64 (#1204) 2026-09-10 10:57:29 +08:00
renovate[bot] bb467e8512 chore(deps): lock file maintenance (#1202)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-09 23:09:16 +08:00
renovate[bot] e692dfad3f chore(deps): update dependency oxfmt to ^0.67.0 (#1203)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-07 22:23:26 +00:00
renovate[bot] 784f4c3727 chore(deps): update rust to v1.98.1 (#1201)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-03 22:15:28 +00:00
renovate[bot] 1f53bf3ffb chore(deps): update dependency oxfmt to ^0.66.0 (#1198)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-01 16:44:17 +00:00
renovate[bot] cb6b2b2482 chore(deps): lock file maintenance (#1197) 2026-08-31 21:16:30 +08:00
LongYinan fa136aca9e chore(release): publish
- @node-rs/argon2@2.2.0
@node-rs/argon2@2.2.0
2026-08-30 01:19:02 +08:00
LongYinan 227a5bfb13 feat(argon2): add parseOptions to read parameters from hash string (#1195)
* feat(argon2): add parseOptions to read parameters from hash string

* feat(argon2): bound parseOptions input and expose saltLen

* fix(argon2): raise parseOptions input bound to 1 MiB

* docs(argon2): document parseOptions 1 MiB cap

* fix(argon2): drop parseOptions-only encoded length cap
2026-08-30 01:12:59 +08:00
renovate[bot] 5451c0246f chore(deps): update cross-platform-actions/action action to v1.5.0 (#1196)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-28 20:37:49 +00:00
renovate[bot] fa77f2849e chore(deps): update dependency oxfmt to ^0.65.0 (#1194)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-25 04:34:43 +00:00
renovate[bot] 15632e42f3 chore(deps): lock file maintenance (#1193)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-25 12:25:11 +08:00
renovate[bot] 7dba1f54ef chore(deps): update rust to v1.98.0 (#1192)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-20 18:00:34 +00:00
renovate[bot] 635e750eb0 chore(deps): update dependency oxfmt to ^0.64.0 (#1191)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-18 16:20:03 +00:00
renovate[bot] af63ac2992 chore(deps): lock file maintenance (#1190) 2026-08-17 15:30:28 +08:00
LongYinan 3b2896520f chore(release): publish
- @node-rs/argon2@2.1.0
 - @node-rs/bcrypt@1.10.8
 - @node-rs/crc32@1.10.7
 - @node-rs/helper@1.6.1
 - @node-rs/jieba@2.0.2
 - @node-rs/jsonwebtoken@0.5.10
 - @node-rs/xxhash@1.7.7
@node-rs/helper@1.6.1 @node-rs/argon2@2.1.0 @node-rs/bcrypt@1.10.8 @node-rs/crc32@1.10.7 @node-rs/jieba@2.0.2 @node-rs/jsonwebtoken@0.5.10 @node-rs/xxhash@1.7.7
2026-08-13 18:09:40 +08:00
renovate[bot] 64b9227bc4 chore(deps): lock file maintenance (#1182)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-13 17:13:29 +08:00
LongYinan b0ea4a01b8 perf(argon2): simdutf8, crate PHC decode, argon2-rust 1.1 (#1189)
* perf(argon2): validate UTF-8 with simdutf8 before owning the string

Check the JS byte slice with simdutf8, then build String via
from_utf8_unchecked so from_utf8 does not walk the bytes again.

* perf(argon2): decode PHC Base64 with a LUT instead of the engine

Salt and tag fields are tens of bytes. A 256-entry table plus leftover-bit
checks beats the generic base64 crate, and on aarch64 argon2-rust's SIMD
would not even run for a 16-byte salt.

* perf(argon2): decode PHC fields with argon2-rust SIMD Base64

Use the new encode_base64/decode_base64 entry points. decode_phc still
owns param order and data=. Temporarily depends on the local
argon2-rust tree until 1.1.0 is on crates.io.

* feat(argon2): consume argon2-rust 1.1 PHC APIs

Drop the local PHC parser, encoder, and compare. Hash and verify go
through hash_encoded_with_ad, decode_phc, and verify_with_ad.
Require argon2-rust 1.1 from crates.io; the sibling path dep is gone.
2026-08-13 16:30:24 +08:00
LongYinan 2b8b617be0 feat(argon2): switch backend to argon2-rust (#1188)
* feat(argon2): switch backend to argon2-rust

Replace RustCrypto argon2 with argon2-rust 1.0.0 from crates.io.
Keep the public JS API. Verify accepts node-argon2 PHC param order
and associatedData. The bench pins the same raw params, salt, and
tag across implementations.

* fix(argon2): keep Node 22 tests and bound verify threads

Skip the node:crypto.argon2Sync comparison on runtimes that lack it.
Cap worker threads at available parallelism so a PHC p= value cannot
spawn one OS thread per lane. Allocate tag buffers with try_reserve
instead of vec! so a huge outputLen is a JS error, not a process abort.

* fix(argon2): skip node-argon2 interop when its native addon is missing

node-argon2 0.45 has no darwin-x64 prebuild. Intel macOS CI runs x64
Node on an ARM host, so a static import crashed the whole spec file.

* test(argon2): compare against node:crypto argon2

Drop the node-argon2 native addon from tests. Interop uses the
builtin KDF, which is available on every CI host that has it.
2026-08-13 11:01:01 +08:00
renovate[bot]andLongYinan 05156db802 chore(deps): update rust crate jsonwebtoken to v11 (#1177)
* chore(deps): update rust crate jsonwebtoken to v11

* fix(jsonwebtoken): handle non-exhaustive Algorithm in v11

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
2026-08-13 00:23:31 +08:00
LongYinan 1933745e96 chore: upgrade all npm deps (#1187)
* chore: upgrade all npm deps

* fix: update tsconfig for TypeScript 7

Remove deprecated downlevelIteration and importsNotUsedAsValues options,
and explicitly include node types required by TypeScript 7.

* fix: download test artifacts into package dirs

@napi-rs/cli 3.8 requires all configured targets when running
napi artifacts. Test jobs only have one platform, so download
bindings directly into the workspace like the package template.

* fix: download bindings into packages/ for tests

upload-artifact uses packages/ as the common root, so the artifact
contains argon2/*.node not packages/argon2/*.node. Download into
packages/ so binaries land where the loaders expect them.

* fix: add WASI .d.cts files required by @napi-rs/cli 3.8

napi artifacts now requires a complete WASI loader set including
*.wasi.d.cts. Also upload the full WASI support files from the wasm
build job for the publish path.

* fix: upload only wasm artifacts from WASI builds

WASI loaders and types stay committed in the repo and updated with
the codegen; CI only needs the built .wasm binaries.
2026-08-12 23:51:31 +08:00
renovate[bot] 317e00e86d chore(deps): update cross-platform-actions/action action to v1.4.0 (#1185)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-10 17:52:23 +00:00
renovate[bot] 284ee7075c chore(deps): update dependency oxfmt to ^0.63.0 (#1186)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-10 15:44:44 +00:00
renovate[bot] 54d5564d81 chore(deps): update dependency oxfmt to ^0.62.0 (#1183)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-03 13:20:02 +00:00
renovate[bot] 23aad38c4d chore(deps): update yarn to v4.18.0 (#1180)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-29 11:06:25 +00:00
renovate[bot] 626c853e56 chore(deps): lock file maintenance (#1178) 2026-07-28 16:55:47 +08:00
renovate[bot] bf48de0466 chore(deps): update dependency oxfmt to ^0.61.0 (#1179)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-27 19:11:14 +00:00
renovate[bot] d13e2cd20d chore(deps): lock file maintenance (#1173) 2026-07-25 10:43:41 +08:00
renovate[bot] f94ebe901b chore(deps): update rust crate base64 to 0.23 (#1176)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-23 18:41:54 +00:00
renovate[bot] 07c7d14dd3 chore(deps): update dependency oxfmt to ^0.60.0 (#1174)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-21 23:56:06 +00:00
renovate[bot] 14750503ca chore(deps): update dependency argon2 to ^0.45.0 (#1172)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-19 01:47:41 +00:00
renovate[bot] 19a11c6682 chore(deps): update rust to v1.97.1 (#1171)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-17 01:06:56 +00:00
renovate[bot] 3ac4a59eaa chore(deps): lock file maintenance (#1168)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-16 10:33:25 +08:00
renovate[bot] 936a27c649 chore(deps): update actions/setup-node action to v7 (#1169)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-16 10:33:04 +08:00
renovate[bot] 3c9ac9a5d4 chore(deps): update dependency oxfmt to ^0.59.0 (#1170)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-14 08:52:08 +00:00
renovate[bot] b231d44ca5 fix(deps): update rust crate deno_ast to v0.53.3 (#1167)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-09 19:23:07 +00:00
renovate[bot] 93b9bb41dd chore(deps): update rust to v1.97.0 (#1166)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-09 15:12:35 +00:00
renovate[bot] be829c4f6e chore(deps): update yarn to v4.17.1 (#1164)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-08 20:21:34 +00:00
renovate[bot] 84a2950255 chore(deps): update dependency oxfmt to ^0.58.0 (#1163)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-07 03:59:29 +00:00
renovate[bot] c51bb75564 chore(deps): lock file maintenance (#1162)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-06 11:37:06 +08:00
renovate[bot] e66cbf2aa4 chore(deps): update rust to v1.96.1 (#1161)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-30 17:04:56 +00:00
renovate[bot] dd24692e2a chore(deps): update actions/checkout action to v7 (#1155)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-30 12:41:25 +08:00
renovate[bot] 6e73d7269c chore(deps): update actions/cache action to v6 (#1159)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-30 12:40:41 +08:00
LongYinan d469a181e1 fix: yarn npmPreapprovedPackages 2026-06-30 12:11:53 +08:00
renovate[bot] 595e0d34e6 chore(deps): lock file maintenance (#1156)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-30 12:08:48 +08:00
renovate[bot] 6bf7127185 chore(deps): update dependency oxfmt to ^0.57.0 (#1160)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-30 03:39:02 +00:00
renovate[bot] 0d6a3fb329 chore(deps): update cross-platform-actions/action action to v1.3.0 (#1158)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-22 23:31:20 +00:00
renovate[bot] c971c7d04f chore(deps): update dependency oxfmt to ^0.56.0 (#1157)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-22 18:17:37 +00:00