From c0c056a9b030f7ca11cfc01c6a9c0ba1eefd663d Mon Sep 17 00:00:00 2001 From: JounQin Date: Sat, 29 Mar 2025 12:16:44 +0800 Subject: [PATCH 1/4] test: add nested package json case (#40) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- .github/actions/pnpm/action.yml | 9 +++++- fixtures/misc/nested-package-json/.gitignore | 6 ++++ fixtures/misc/nested-package-json/.yarnrc.yml | 3 ++ .../misc/nested-package-json/package.json | 7 +++++ .../package/nested/package.json | 4 +++ .../package/output/index.d.ts | 0 .../package/output/index.js | 0 .../package/output/nested.d.ts | 0 .../package/output/nested.js | 0 .../nested-package-json/package/package.json | 6 ++++ fixtures/misc/nested-package-json/yarn.lock | 20 ++++++++++++ fixtures/pnp/package.json | 2 +- justfile | 1 + pnpm-lock.yaml | 31 +++++++++++++++++++ pnpm-workspace.yaml | 2 ++ src/tests/resolve.rs | 17 ++++++++++ 16 files changed, 106 insertions(+), 2 deletions(-) create mode 100644 fixtures/misc/nested-package-json/.gitignore create mode 100644 fixtures/misc/nested-package-json/.yarnrc.yml create mode 100644 fixtures/misc/nested-package-json/package.json create mode 100644 fixtures/misc/nested-package-json/package/nested/package.json create mode 100644 fixtures/misc/nested-package-json/package/output/index.d.ts create mode 100644 fixtures/misc/nested-package-json/package/output/index.js create mode 100644 fixtures/misc/nested-package-json/package/output/nested.d.ts create mode 100644 fixtures/misc/nested-package-json/package/output/nested.js create mode 100644 fixtures/misc/nested-package-json/package/package.json create mode 100644 fixtures/misc/nested-package-json/yarn.lock diff --git a/.github/actions/pnpm/action.yml b/.github/actions/pnpm/action.yml index 3fbc55a4..566c3096 100644 --- a/.github/actions/pnpm/action.yml +++ b/.github/actions/pnpm/action.yml @@ -28,9 +28,16 @@ runs: corepack enable pnpm install - - name: yarn + - name: yarn pnp shell: bash run: | cd fixtures/pnp corepack enable yarn install + + - name: nested-package-json + shell: bash + run: | + cd fixtures/misc/nested-package-json + corepack enable + yarn install diff --git a/fixtures/misc/nested-package-json/.gitignore b/fixtures/misc/nested-package-json/.gitignore new file mode 100644 index 00000000..ab2197f6 --- /dev/null +++ b/fixtures/misc/nested-package-json/.gitignore @@ -0,0 +1,6 @@ +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions diff --git a/fixtures/misc/nested-package-json/.yarnrc.yml b/fixtures/misc/nested-package-json/.yarnrc.yml new file mode 100644 index 00000000..4553d9d5 --- /dev/null +++ b/fixtures/misc/nested-package-json/.yarnrc.yml @@ -0,0 +1,3 @@ +enableTelemetry: false + +nodeLinker: node-modules diff --git a/fixtures/misc/nested-package-json/package.json b/fixtures/misc/nested-package-json/package.json new file mode 100644 index 00000000..eefad5e2 --- /dev/null +++ b/fixtures/misc/nested-package-json/package.json @@ -0,0 +1,7 @@ +{ + "name": "nested-test", + "packageManager": "yarn@4.8.0", + "dependencies": { + "@root/package": "link:./package" + } +} diff --git a/fixtures/misc/nested-package-json/package/nested/package.json b/fixtures/misc/nested-package-json/package/nested/package.json new file mode 100644 index 00000000..6433e5d8 --- /dev/null +++ b/fixtures/misc/nested-package-json/package/nested/package.json @@ -0,0 +1,4 @@ +{ + "main": "../output/nested.js", + "types": "../output/nested.d.ts" +} diff --git a/fixtures/misc/nested-package-json/package/output/index.d.ts b/fixtures/misc/nested-package-json/package/output/index.d.ts new file mode 100644 index 00000000..e69de29b diff --git a/fixtures/misc/nested-package-json/package/output/index.js b/fixtures/misc/nested-package-json/package/output/index.js new file mode 100644 index 00000000..e69de29b diff --git a/fixtures/misc/nested-package-json/package/output/nested.d.ts b/fixtures/misc/nested-package-json/package/output/nested.d.ts new file mode 100644 index 00000000..e69de29b diff --git a/fixtures/misc/nested-package-json/package/output/nested.js b/fixtures/misc/nested-package-json/package/output/nested.js new file mode 100644 index 00000000..e69de29b diff --git a/fixtures/misc/nested-package-json/package/package.json b/fixtures/misc/nested-package-json/package/package.json new file mode 100644 index 00000000..34016d1c --- /dev/null +++ b/fixtures/misc/nested-package-json/package/package.json @@ -0,0 +1,6 @@ +{ + "name": "@root/package", + "version": "0.0.1", + "main": "./output/index.js", + "types": "./output/index.d.ts" +} diff --git a/fixtures/misc/nested-package-json/yarn.lock b/fixtures/misc/nested-package-json/yarn.lock new file mode 100644 index 00000000..13a497c2 --- /dev/null +++ b/fixtures/misc/nested-package-json/yarn.lock @@ -0,0 +1,20 @@ +# This file is generated by running "yarn install" inside your project. +# Manual changes might be lost - proceed with caution! + +__metadata: + version: 8 + cacheKey: 10c0 + +"@root/package@link:./package::locator=nested-test%40workspace%3A.": + version: 0.0.0-use.local + resolution: "@root/package@link:./package::locator=nested-test%40workspace%3A." + languageName: node + linkType: soft + +"nested-test@workspace:.": + version: 0.0.0-use.local + resolution: "nested-test@workspace:." + dependencies: + "@root/package": "link:./package" + languageName: unknown + linkType: soft diff --git a/fixtures/pnp/package.json b/fixtures/pnp/package.json index 556be923..fb808bd3 100644 --- a/fixtures/pnp/package.json +++ b/fixtures/pnp/package.json @@ -1,6 +1,6 @@ { "name": "pnp", - "packageManager": "yarn@4.7.0", + "packageManager": "yarn@4.8.0", "dependencies": { "beachball": "^2.51.0", "is-even": "^1.0.0", diff --git a/justfile b/justfile index 64da352c..e4bd7d38 100644 --- a/justfile +++ b/justfile @@ -15,6 +15,7 @@ init: install: pnpm install cd fixtures/pnp && yarn + cd fixtures/misc/nested-package-json && yarn # When ready, run the same CI commands ready: diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8890ede9..3a737128 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -449,42 +449,49 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] '@napi-rs/lzma-linux-arm64-musl@1.4.1': resolution: {integrity: sha512-9d09tYS0/rBwIk1QTcO2hMZEB/ZpsG2+uFW5am1RHElSWMclObirB1An7b6AMDJcRvcomkOg2GZ9COzrvHKwEA==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [musl] '@napi-rs/lzma-linux-ppc64-gnu@1.4.1': resolution: {integrity: sha512-UzEkmsgoJ3IOGIRb6kBzNiw+ThUpiighop7dVYfSqlF5juGzwf7YewC57RGn4FoJCvadOCrSm5VikAcgrwVgAw==} engines: {node: '>= 10'} cpu: [ppc64] os: [linux] + libc: [glibc] '@napi-rs/lzma-linux-riscv64-gnu@1.4.1': resolution: {integrity: sha512-9dUKlZ1PdwxTaFF+j3oc+xjlk9nqFwo1NWWOH30uwjl4Rm5Gkv+Fx0pHrzu4kR/iVA+oyQqa9/2uDYnGSTijBA==} engines: {node: '>= 10'} cpu: [riscv64] os: [linux] + libc: [glibc] '@napi-rs/lzma-linux-s390x-gnu@1.4.1': resolution: {integrity: sha512-MOVXUWJSLLCJDCCAlGa39sh7nv9XjvXzCf7QJus7rD8Ciz0mpXNXF9mg0ji7/MZ7pZlKPlXjXDnpVCfFdSEaFQ==} engines: {node: '>= 10'} cpu: [s390x] os: [linux] + libc: [glibc] '@napi-rs/lzma-linux-x64-gnu@1.4.1': resolution: {integrity: sha512-Sxu7aJxU1sDbUTqjqLVDV3DCOAlbsFKvmuCN/S5uXBJd1IF2wJ9jK3NbFzfqTAo5Hudx8Y7kOb6+3K+fYPI1KQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] '@napi-rs/lzma-linux-x64-musl@1.4.1': resolution: {integrity: sha512-4I3BeKBQJSE5gF2/VTEv7wCLLjhapeutbCGpZPmDiLHZ74rm9edmNXAlKpdjADQ4YDLJ2GIBzttvwLXkJ9U+cw==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] '@napi-rs/lzma-wasm32-wasi@1.4.1': resolution: {integrity: sha512-s32HdKqQWbohf6DGWpG9YMODaBdbKJ++JpNr6Ii7821sKf4h/o+p8IRFTOaWdmdJdllEWlRirnd5crA29VivJQ==} @@ -554,36 +561,42 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] '@napi-rs/tar-linux-arm64-musl@0.1.4': resolution: {integrity: sha512-UFBvKpYmuQRbgmXuSSPb8mRjq4JRZLYJhqwrWWnlfQP13xK2WB7mL2GhewBgynSH4YKDm6biKhK6U5RrSWEDgw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [musl] '@napi-rs/tar-linux-ppc64-gnu@0.1.4': resolution: {integrity: sha512-HT+h6Wv51SKXqks8UBF+KVuNJ09fM1GyO+SvCnDB5MF66tGiI2C6/MSX69zf1ZeqjACds1K/UwKiZCmE76/j9A==} engines: {node: '>= 10'} cpu: [ppc64] os: [linux] + libc: [glibc] '@napi-rs/tar-linux-s390x-gnu@0.1.4': resolution: {integrity: sha512-SJ+HSr281Y6cgJrQ4nkYbXaTHAmTLv/FZm5k9ZRA6Khml//ZoWi7CiT8dnPeD4QxYwCzAFA4aYMUOQJM/mk2/w==} engines: {node: '>= 10'} cpu: [s390x] os: [linux] + libc: [glibc] '@napi-rs/tar-linux-x64-gnu@0.1.4': resolution: {integrity: sha512-LrF0lRFiFOkO40jfgTdF8dRTvYOLV52fdZ/YnJuBodNcxqEl9rChO3v5Uag//sy0me85FjqtobQNRQP8Nd80dA==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] '@napi-rs/tar-linux-x64-musl@0.1.4': resolution: {integrity: sha512-etGUWbs+Tk1PtzgyWrVzXa2fQrHNKSc/whHm+4x1Num8Oz+wGdjCDTUktYxAVy33PKZhdblVxxE83QXxkgjneQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] '@napi-rs/tar-wasm32-wasi@0.1.4': resolution: {integrity: sha512-mANkm93AKy+OspkOBAC5WI64SopXT0VawdTjpeGW1OgyUSJWdUB5rhs3I7B/HW1bi5tsUoZOZQe3rVgYdfzA6g==} @@ -650,24 +663,28 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] '@napi-rs/wasm-tools-linux-arm64-musl@0.0.3': resolution: {integrity: sha512-XN+sPgEwFw3P47wDvtcQyOoZNghIL8gaiRjEGzprB+kE9N21GkuMbk3kdjiBBJkjqKF25f4fbOvNAY0jQEAO3A==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [musl] '@napi-rs/wasm-tools-linux-x64-gnu@0.0.3': resolution: {integrity: sha512-mfMvMEqn33YtEjIyLPguZ6yDsNtF5zV7mqc99620YDyj2SLa0aI35TNTc7Dm+/hlgqHRKhdudsWGfYc4dBND2Q==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] '@napi-rs/wasm-tools-linux-x64-musl@0.0.3': resolution: {integrity: sha512-KXMsXWGELoN5xgPCoRHbgt5TScSx8BK2GcCHKJ9OPZ2HMfsXbLgS/SNi6vz1CbLMZMLPBY2G6HAk0gzLGyS0mQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] '@napi-rs/wasm-tools-wasm32-wasi@0.0.3': resolution: {integrity: sha512-v3iMHnAfMteogpbqHTFeLXPeAzL5AhpDJLvZvLXbuRiMsMRL0dn8CbcEnYja2P/Ui6Xlyky6PcaUsepOUTNb7A==} @@ -772,21 +789,25 @@ packages: resolution: {integrity: sha512-l/0pWoQM5kVmJLg4frQ1mKZOXgi0ex/hzvFt8E4WK2ifXr5JgKFUokxsb/oat7f5YzdJJh5r9p+qS/t3dA26Aw==} cpu: [arm64] os: [linux] + libc: [glibc] '@oxc-resolver/binding-linux-arm64-musl@5.0.0': resolution: {integrity: sha512-bx0oz/oaAW4FGYqpIIxJCnmgb906YfMhTEWCJvYkxjpEI8VKLJEL3PQevYiqDq36SA0yRLJ/sQK2fqry8AFBfA==} cpu: [arm64] os: [linux] + libc: [musl] '@oxc-resolver/binding-linux-x64-gnu@5.0.0': resolution: {integrity: sha512-4PH++qbSIhlRsFYdN1P9neDov4OGhTGo5nbQ1D7AL6gWFLo3gdZTc00FM2y8JjeTcPWEXkViZuwpuc0w5i6qHg==} cpu: [x64] os: [linux] + libc: [glibc] '@oxc-resolver/binding-linux-x64-musl@5.0.0': resolution: {integrity: sha512-mLfQFpX3/5y9oWi0b+9FbWDkL2hM0Y29653beCHiHxAdGyVgb2DsJbK74WkMTwtSz9by8vyBh8jGPZcg1yLZbQ==} cpu: [x64] os: [linux] + libc: [musl] '@oxc-resolver/binding-wasm32-wasi@5.0.0': resolution: {integrity: sha512-uEhsAZSo65qsRi6+IfBTEUUFbjg7T2yruJeLYpFfEATpm3ory5Mgo5vx3L0c2/Cz1OUZXBgp3A8x6VMUB2jT2A==} @@ -840,51 +861,61 @@ packages: resolution: {integrity: sha512-bvXVU42mOVcF4le6XSjscdXjqx8okv4n5vmwgzcmtvFdifQ5U4dXFYaCB87namDRKlUL9ybVtLQ9ztnawaSzvg==} cpu: [arm] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm-musleabihf@4.36.0': resolution: {integrity: sha512-JFIQrDJYrxOnyDQGYkqnNBtjDwTgbasdbUiQvcU8JmGDfValfH1lNpng+4FWlhaVIR4KPkeddYjsVVbmJYvDcg==} cpu: [arm] os: [linux] + libc: [musl] '@rollup/rollup-linux-arm64-gnu@4.36.0': resolution: {integrity: sha512-KqjYVh3oM1bj//5X7k79PSCZ6CvaVzb7Qs7VMWS+SlWB5M8p3FqufLP9VNp4CazJ0CsPDLwVD9r3vX7Ci4J56A==} cpu: [arm64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm64-musl@4.36.0': resolution: {integrity: sha512-QiGnhScND+mAAtfHqeT+cB1S9yFnNQ/EwCg5yE3MzoaZZnIV0RV9O5alJAoJKX/sBONVKeZdMfO8QSaWEygMhw==} cpu: [arm64] os: [linux] + libc: [musl] '@rollup/rollup-linux-loongarch64-gnu@4.36.0': resolution: {integrity: sha512-1ZPyEDWF8phd4FQtTzMh8FQwqzvIjLsl6/84gzUxnMNFBtExBtpL51H67mV9xipuxl1AEAerRBgBwFNpkw8+Lg==} cpu: [loong64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-powerpc64le-gnu@4.36.0': resolution: {integrity: sha512-VMPMEIUpPFKpPI9GZMhJrtu8rxnp6mJR3ZzQPykq4xc2GmdHj3Q4cA+7avMyegXy4n1v+Qynr9fR88BmyO74tg==} cpu: [ppc64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-riscv64-gnu@4.36.0': resolution: {integrity: sha512-ttE6ayb/kHwNRJGYLpuAvB7SMtOeQnVXEIpMtAvx3kepFQeowVED0n1K9nAdraHUPJ5hydEMxBpIR7o4nrm8uA==} cpu: [riscv64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-s390x-gnu@4.36.0': resolution: {integrity: sha512-4a5gf2jpS0AIe7uBjxDeUMNcFmaRTbNv7NxI5xOCs4lhzsVyGR/0qBXduPnoWf6dGC365saTiwag8hP1imTgag==} cpu: [s390x] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-gnu@4.36.0': resolution: {integrity: sha512-5KtoW8UWmwFKQ96aQL3LlRXX16IMwyzMq/jSSVIIyAANiE1doaQsx/KRyhAvpHlPjPiSU/AYX/8m+lQ9VToxFQ==} cpu: [x64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-musl@4.36.0': resolution: {integrity: sha512-sycrYZPrv2ag4OCvaN5js+f01eoZ2U+RmT5as8vhxiFz+kxwlHrsxOwKPSA8WyS+Wc6Epid9QeI/IkQ9NkgYyQ==} cpu: [x64] os: [linux] + libc: [musl] '@rollup/rollup-win32-arm64-msvc@4.36.0': resolution: {integrity: sha512-qbqt4N7tokFwwSVlWDsjfoHgviS3n/vZ8LK0h1uLG9TYIRuUTJC88E1xb3LM2iqZ/WTqNQjYrtmtGmrmmawB6A==} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 72c76da5..b81c5161 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -3,3 +3,5 @@ packages: - napi - fixtures/pnpm - fixtures/pnpm-workspace/** +ignoredBuiltDependencies: + - esbuild diff --git a/src/tests/resolve.rs b/src/tests/resolve.rs index 17ea7852..8dbc3b81 100644 --- a/src/tests/resolve.rs +++ b/src/tests/resolve.rs @@ -118,6 +118,23 @@ fn resolve_hash_as_module() { assert_eq!(resolution, Err(ResolveError::NotFound("#a".into()))); } +#[test] +fn resolve_nested_dir_with_package_json() { + let f = super::fixture_root().join("misc/nested-package-json"); + let resolver = Resolver::new(ResolveOptions::default()); + + #[rustfmt::skip] + let data = [ + ("normal entry", f.clone(), "@root/package", f.join("package/output/index.js")), + ("nested entry", f.clone(), "@root/package/nested", f.join("package/output/nested.js")), + ]; + + for (comment, path, request, expected) in data { + let resolved_path = resolver.resolve(&path, request).map(|r| r.full_path()); + assert_eq!(resolved_path, Ok(expected), "{comment} {path:?} {request}"); + } +} + #[cfg(windows)] #[test] fn resolve_normalized_on_windows() { From a2662baac87ba84407bb487c753d697803cd9c5f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 29 Mar 2025 17:44:54 +0000 Subject: [PATCH 2/4] chore(deps): update all dependencies (#43) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- .github/workflows/release-napi.yml | 2 +- .github/workflows/release-plz.yml | 2 +- .github/workflows/zizmor.yml | 2 +- package.json | 2 +- pnpm-lock.yaml | 31 ------------------------------ 6 files changed, 5 insertions(+), 36 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 154e7ff9..b460c033 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: components: clippy rust-docs - run: cargo clippy --all-features --all-targets -- -D warnings - run: RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --all-features - - uses: crate-ci/typos@d08e4083f112e684fb88f6babd9ae60a1f1cd84f # v1 + - uses: crate-ci/typos@718c4ff697435edabd4f1c52c3775521adbb33a3 # v1 with: files: . diff --git a/.github/workflows/release-napi.yml b/.github/workflows/release-napi.yml index 7119f257..db4a5e4f 100644 --- a/.github/workflows/release-napi.yml +++ b/.github/workflows/release-napi.yml @@ -110,7 +110,7 @@ jobs: version: 0.13.0 - name: Install cargo-zigbuild - uses: taiki-e/install-action@5651179950649c44da31d346537e20c0534f0f25 # v2 + uses: taiki-e/install-action@1c861c252bd329898ca0817dc2913d5963834965 # v2 if: ${{ contains(matrix.target, 'musl') }} env: GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index 7402d6cb..a64b2b60 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -25,7 +25,7 @@ jobs: - name: Run release-plz id: release-plz - uses: MarcoIeni/release-plz-action@4cd77ee4d22f0cdb1a461e6eb3591cddc5e1f665 # v0.5 + uses: MarcoIeni/release-plz-action@8e91c71a60327f76b30233d17e3cabb316522e8f # v0.5 env: GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }} CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 9221471e..c74f37e5 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -28,7 +28,7 @@ jobs: steps: - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1 - - uses: taiki-e/install-action@5651179950649c44da31d346537e20c0534f0f25 # v2 + - uses: taiki-e/install-action@1c861c252bd329898ca0817dc2913d5963834965 # v2 with: tool: zizmor diff --git a/package.json b/package.json index b63df44e..783b9581 100644 --- a/package.json +++ b/package.json @@ -23,5 +23,5 @@ "typescript": "^5.8.2", "vitest": "^3.0.9" }, - "packageManager": "pnpm@10.6.5" + "packageManager": "pnpm@10.7.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3a737128..8890ede9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -449,49 +449,42 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] - libc: [glibc] '@napi-rs/lzma-linux-arm64-musl@1.4.1': resolution: {integrity: sha512-9d09tYS0/rBwIk1QTcO2hMZEB/ZpsG2+uFW5am1RHElSWMclObirB1An7b6AMDJcRvcomkOg2GZ9COzrvHKwEA==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - libc: [musl] '@napi-rs/lzma-linux-ppc64-gnu@1.4.1': resolution: {integrity: sha512-UzEkmsgoJ3IOGIRb6kBzNiw+ThUpiighop7dVYfSqlF5juGzwf7YewC57RGn4FoJCvadOCrSm5VikAcgrwVgAw==} engines: {node: '>= 10'} cpu: [ppc64] os: [linux] - libc: [glibc] '@napi-rs/lzma-linux-riscv64-gnu@1.4.1': resolution: {integrity: sha512-9dUKlZ1PdwxTaFF+j3oc+xjlk9nqFwo1NWWOH30uwjl4Rm5Gkv+Fx0pHrzu4kR/iVA+oyQqa9/2uDYnGSTijBA==} engines: {node: '>= 10'} cpu: [riscv64] os: [linux] - libc: [glibc] '@napi-rs/lzma-linux-s390x-gnu@1.4.1': resolution: {integrity: sha512-MOVXUWJSLLCJDCCAlGa39sh7nv9XjvXzCf7QJus7rD8Ciz0mpXNXF9mg0ji7/MZ7pZlKPlXjXDnpVCfFdSEaFQ==} engines: {node: '>= 10'} cpu: [s390x] os: [linux] - libc: [glibc] '@napi-rs/lzma-linux-x64-gnu@1.4.1': resolution: {integrity: sha512-Sxu7aJxU1sDbUTqjqLVDV3DCOAlbsFKvmuCN/S5uXBJd1IF2wJ9jK3NbFzfqTAo5Hudx8Y7kOb6+3K+fYPI1KQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - libc: [glibc] '@napi-rs/lzma-linux-x64-musl@1.4.1': resolution: {integrity: sha512-4I3BeKBQJSE5gF2/VTEv7wCLLjhapeutbCGpZPmDiLHZ74rm9edmNXAlKpdjADQ4YDLJ2GIBzttvwLXkJ9U+cw==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - libc: [musl] '@napi-rs/lzma-wasm32-wasi@1.4.1': resolution: {integrity: sha512-s32HdKqQWbohf6DGWpG9YMODaBdbKJ++JpNr6Ii7821sKf4h/o+p8IRFTOaWdmdJdllEWlRirnd5crA29VivJQ==} @@ -561,42 +554,36 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] - libc: [glibc] '@napi-rs/tar-linux-arm64-musl@0.1.4': resolution: {integrity: sha512-UFBvKpYmuQRbgmXuSSPb8mRjq4JRZLYJhqwrWWnlfQP13xK2WB7mL2GhewBgynSH4YKDm6biKhK6U5RrSWEDgw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - libc: [musl] '@napi-rs/tar-linux-ppc64-gnu@0.1.4': resolution: {integrity: sha512-HT+h6Wv51SKXqks8UBF+KVuNJ09fM1GyO+SvCnDB5MF66tGiI2C6/MSX69zf1ZeqjACds1K/UwKiZCmE76/j9A==} engines: {node: '>= 10'} cpu: [ppc64] os: [linux] - libc: [glibc] '@napi-rs/tar-linux-s390x-gnu@0.1.4': resolution: {integrity: sha512-SJ+HSr281Y6cgJrQ4nkYbXaTHAmTLv/FZm5k9ZRA6Khml//ZoWi7CiT8dnPeD4QxYwCzAFA4aYMUOQJM/mk2/w==} engines: {node: '>= 10'} cpu: [s390x] os: [linux] - libc: [glibc] '@napi-rs/tar-linux-x64-gnu@0.1.4': resolution: {integrity: sha512-LrF0lRFiFOkO40jfgTdF8dRTvYOLV52fdZ/YnJuBodNcxqEl9rChO3v5Uag//sy0me85FjqtobQNRQP8Nd80dA==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - libc: [glibc] '@napi-rs/tar-linux-x64-musl@0.1.4': resolution: {integrity: sha512-etGUWbs+Tk1PtzgyWrVzXa2fQrHNKSc/whHm+4x1Num8Oz+wGdjCDTUktYxAVy33PKZhdblVxxE83QXxkgjneQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - libc: [musl] '@napi-rs/tar-wasm32-wasi@0.1.4': resolution: {integrity: sha512-mANkm93AKy+OspkOBAC5WI64SopXT0VawdTjpeGW1OgyUSJWdUB5rhs3I7B/HW1bi5tsUoZOZQe3rVgYdfzA6g==} @@ -663,28 +650,24 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] - libc: [glibc] '@napi-rs/wasm-tools-linux-arm64-musl@0.0.3': resolution: {integrity: sha512-XN+sPgEwFw3P47wDvtcQyOoZNghIL8gaiRjEGzprB+kE9N21GkuMbk3kdjiBBJkjqKF25f4fbOvNAY0jQEAO3A==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - libc: [musl] '@napi-rs/wasm-tools-linux-x64-gnu@0.0.3': resolution: {integrity: sha512-mfMvMEqn33YtEjIyLPguZ6yDsNtF5zV7mqc99620YDyj2SLa0aI35TNTc7Dm+/hlgqHRKhdudsWGfYc4dBND2Q==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - libc: [glibc] '@napi-rs/wasm-tools-linux-x64-musl@0.0.3': resolution: {integrity: sha512-KXMsXWGELoN5xgPCoRHbgt5TScSx8BK2GcCHKJ9OPZ2HMfsXbLgS/SNi6vz1CbLMZMLPBY2G6HAk0gzLGyS0mQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - libc: [musl] '@napi-rs/wasm-tools-wasm32-wasi@0.0.3': resolution: {integrity: sha512-v3iMHnAfMteogpbqHTFeLXPeAzL5AhpDJLvZvLXbuRiMsMRL0dn8CbcEnYja2P/Ui6Xlyky6PcaUsepOUTNb7A==} @@ -789,25 +772,21 @@ packages: resolution: {integrity: sha512-l/0pWoQM5kVmJLg4frQ1mKZOXgi0ex/hzvFt8E4WK2ifXr5JgKFUokxsb/oat7f5YzdJJh5r9p+qS/t3dA26Aw==} cpu: [arm64] os: [linux] - libc: [glibc] '@oxc-resolver/binding-linux-arm64-musl@5.0.0': resolution: {integrity: sha512-bx0oz/oaAW4FGYqpIIxJCnmgb906YfMhTEWCJvYkxjpEI8VKLJEL3PQevYiqDq36SA0yRLJ/sQK2fqry8AFBfA==} cpu: [arm64] os: [linux] - libc: [musl] '@oxc-resolver/binding-linux-x64-gnu@5.0.0': resolution: {integrity: sha512-4PH++qbSIhlRsFYdN1P9neDov4OGhTGo5nbQ1D7AL6gWFLo3gdZTc00FM2y8JjeTcPWEXkViZuwpuc0w5i6qHg==} cpu: [x64] os: [linux] - libc: [glibc] '@oxc-resolver/binding-linux-x64-musl@5.0.0': resolution: {integrity: sha512-mLfQFpX3/5y9oWi0b+9FbWDkL2hM0Y29653beCHiHxAdGyVgb2DsJbK74WkMTwtSz9by8vyBh8jGPZcg1yLZbQ==} cpu: [x64] os: [linux] - libc: [musl] '@oxc-resolver/binding-wasm32-wasi@5.0.0': resolution: {integrity: sha512-uEhsAZSo65qsRi6+IfBTEUUFbjg7T2yruJeLYpFfEATpm3ory5Mgo5vx3L0c2/Cz1OUZXBgp3A8x6VMUB2jT2A==} @@ -861,61 +840,51 @@ packages: resolution: {integrity: sha512-bvXVU42mOVcF4le6XSjscdXjqx8okv4n5vmwgzcmtvFdifQ5U4dXFYaCB87namDRKlUL9ybVtLQ9ztnawaSzvg==} cpu: [arm] os: [linux] - libc: [glibc] '@rollup/rollup-linux-arm-musleabihf@4.36.0': resolution: {integrity: sha512-JFIQrDJYrxOnyDQGYkqnNBtjDwTgbasdbUiQvcU8JmGDfValfH1lNpng+4FWlhaVIR4KPkeddYjsVVbmJYvDcg==} cpu: [arm] os: [linux] - libc: [musl] '@rollup/rollup-linux-arm64-gnu@4.36.0': resolution: {integrity: sha512-KqjYVh3oM1bj//5X7k79PSCZ6CvaVzb7Qs7VMWS+SlWB5M8p3FqufLP9VNp4CazJ0CsPDLwVD9r3vX7Ci4J56A==} cpu: [arm64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-arm64-musl@4.36.0': resolution: {integrity: sha512-QiGnhScND+mAAtfHqeT+cB1S9yFnNQ/EwCg5yE3MzoaZZnIV0RV9O5alJAoJKX/sBONVKeZdMfO8QSaWEygMhw==} cpu: [arm64] os: [linux] - libc: [musl] '@rollup/rollup-linux-loongarch64-gnu@4.36.0': resolution: {integrity: sha512-1ZPyEDWF8phd4FQtTzMh8FQwqzvIjLsl6/84gzUxnMNFBtExBtpL51H67mV9xipuxl1AEAerRBgBwFNpkw8+Lg==} cpu: [loong64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-powerpc64le-gnu@4.36.0': resolution: {integrity: sha512-VMPMEIUpPFKpPI9GZMhJrtu8rxnp6mJR3ZzQPykq4xc2GmdHj3Q4cA+7avMyegXy4n1v+Qynr9fR88BmyO74tg==} cpu: [ppc64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-riscv64-gnu@4.36.0': resolution: {integrity: sha512-ttE6ayb/kHwNRJGYLpuAvB7SMtOeQnVXEIpMtAvx3kepFQeowVED0n1K9nAdraHUPJ5hydEMxBpIR7o4nrm8uA==} cpu: [riscv64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-s390x-gnu@4.36.0': resolution: {integrity: sha512-4a5gf2jpS0AIe7uBjxDeUMNcFmaRTbNv7NxI5xOCs4lhzsVyGR/0qBXduPnoWf6dGC365saTiwag8hP1imTgag==} cpu: [s390x] os: [linux] - libc: [glibc] '@rollup/rollup-linux-x64-gnu@4.36.0': resolution: {integrity: sha512-5KtoW8UWmwFKQ96aQL3LlRXX16IMwyzMq/jSSVIIyAANiE1doaQsx/KRyhAvpHlPjPiSU/AYX/8m+lQ9VToxFQ==} cpu: [x64] os: [linux] - libc: [glibc] '@rollup/rollup-linux-x64-musl@4.36.0': resolution: {integrity: sha512-sycrYZPrv2ag4OCvaN5js+f01eoZ2U+RmT5as8vhxiFz+kxwlHrsxOwKPSA8WyS+Wc6Epid9QeI/IkQ9NkgYyQ==} cpu: [x64] os: [linux] - libc: [musl] '@rollup/rollup-win32-arm64-msvc@4.36.0': resolution: {integrity: sha512-qbqt4N7tokFwwSVlWDsjfoHgviS3n/vZ8LK0h1uLG9TYIRuUTJC88E1xb3LM2iqZ/WTqNQjYrtmtGmrmmawB6A==} From a34acae99b98d2f54f44cbe6afd4f9b3d5e6d4c6 Mon Sep 17 00:00:00 2001 From: JounQin Date: Sun, 30 Mar 2025 01:59:02 +0800 Subject: [PATCH 3/4] build: remove `--strip` flag (#44) --- package.json | 8 +-- pnpm-lock.yaml | 170 ++++++++++++++++++++++++------------------------- 2 files changed, 89 insertions(+), 89 deletions(-) diff --git a/package.json b/package.json index 783b9581..739c5ace 100644 --- a/package.json +++ b/package.json @@ -10,16 +10,16 @@ "url": "https://github.com/sponsors/JounQin" }, "scripts": { - "build": "napi build --platform --release --strip --package-json-path npm/package.json --manifest-path napi/Cargo.toml", - "build:debug": "napi build --platform --strip --package-json-path npm/package.json --manifest-path napi/Cargo.toml", + "build": "napi build --platform --release --package-json-path npm/package.json --manifest-path napi/Cargo.toml", + "build:debug": "napi build --platform --package-json-path npm/package.json --manifest-path napi/Cargo.toml", "prepublishOnly": "napi pre-publish -t npm", "test": "vitest run -r ./napi" }, "devDependencies": { "@napi-rs/cli": "3.0.0-alpha.76", "@napi-rs/wasm-runtime": "^0.2.7", - "@types/node": "^22.13.10", - "emnapi": "^1.3.1", + "@types/node": "^22.13.14", + "emnapi": "^1.4.0", "typescript": "^5.8.2", "vitest": "^3.0.9" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8890ede9..2dd4cd5e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,22 +10,22 @@ importers: devDependencies: '@napi-rs/cli': specifier: 3.0.0-alpha.76 - version: 3.0.0-alpha.76(@emnapi/runtime@1.3.1)(@types/node@22.13.10)(emnapi@1.3.1) + version: 3.0.0-alpha.76(@emnapi/runtime@1.3.1)(@types/node@22.13.14)(emnapi@1.4.0) '@napi-rs/wasm-runtime': specifier: ^0.2.7 version: 0.2.7 '@types/node': - specifier: ^22.13.10 - version: 22.13.10 + specifier: ^22.13.14 + version: 22.13.14 emnapi: - specifier: ^1.3.1 - version: 1.3.1 + specifier: ^1.4.0 + version: 1.4.0 typescript: specifier: ^5.8.2 version: 5.8.2 vitest: specifier: ^3.0.9 - version: 3.0.9(@types/node@22.13.10) + version: 3.0.9(@types/node@22.13.14) fixtures/pnpm: devDependencies: @@ -907,8 +907,8 @@ packages: '@types/estree@1.0.6': resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==} - '@types/node@22.13.10': - resolution: {integrity: sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==} + '@types/node@22.13.14': + resolution: {integrity: sha512-Zs/Ollc1SJ8nKUAgc7ivOEdIBM8JAKgrqqUYi2J997JuKO7/tpQC+WCetQ1sypiKCQWHdvdg9wBNpUPEWZae7w==} '@types/stylis@4.2.5': resolution: {integrity: sha512-1Xve+NMN7FWjY14vLoY5tL3BVEQ/n42YLwaqJIPYhotZ9uBHt87VceMwWQpzmdEt2TNXIorIFG+YeCUUW7RInw==} @@ -1052,8 +1052,8 @@ packages: resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} engines: {node: '>= 0.4'} - emnapi@1.3.1: - resolution: {integrity: sha512-8rnw2VLJmHAXBSyhtrL9O5aW1VdbXA1ovRslp0IyTwnM62Fz83jQIo+VaIObgzdo6r1A98J9AHEq4KTqIR67Aw==} + emnapi@1.4.0: + resolution: {integrity: sha512-lFEJ8CYuJd6+L8GIqfI9VosM2n4ADuw0mUDq3m6ePfSJBh/1F14lWpyikZLuMHKeM3KXxBhWJLvw8yPIkzd8Ew==} peerDependencies: node-addon-api: '>= 6.1.0' peerDependenciesMeta: @@ -1568,27 +1568,27 @@ snapshots: '@esbuild/win32-x64@0.25.1': optional: true - '@inquirer/checkbox@4.1.4(@types/node@22.13.10)': + '@inquirer/checkbox@4.1.4(@types/node@22.13.14)': dependencies: - '@inquirer/core': 10.1.9(@types/node@22.13.10) + '@inquirer/core': 10.1.9(@types/node@22.13.14) '@inquirer/figures': 1.0.11 - '@inquirer/type': 3.0.5(@types/node@22.13.10) + '@inquirer/type': 3.0.5(@types/node@22.13.14) ansi-escapes: 4.3.2 yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 22.13.10 + '@types/node': 22.13.14 - '@inquirer/confirm@5.1.8(@types/node@22.13.10)': + '@inquirer/confirm@5.1.8(@types/node@22.13.14)': dependencies: - '@inquirer/core': 10.1.9(@types/node@22.13.10) - '@inquirer/type': 3.0.5(@types/node@22.13.10) + '@inquirer/core': 10.1.9(@types/node@22.13.14) + '@inquirer/type': 3.0.5(@types/node@22.13.14) optionalDependencies: - '@types/node': 22.13.10 + '@types/node': 22.13.14 - '@inquirer/core@10.1.9(@types/node@22.13.10)': + '@inquirer/core@10.1.9(@types/node@22.13.14)': dependencies: '@inquirer/figures': 1.0.11 - '@inquirer/type': 3.0.5(@types/node@22.13.10) + '@inquirer/type': 3.0.5(@types/node@22.13.14) ansi-escapes: 4.3.2 cli-width: 4.1.0 mute-stream: 2.0.0 @@ -1596,99 +1596,99 @@ snapshots: wrap-ansi: 6.2.0 yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 22.13.10 + '@types/node': 22.13.14 - '@inquirer/editor@4.2.9(@types/node@22.13.10)': + '@inquirer/editor@4.2.9(@types/node@22.13.14)': dependencies: - '@inquirer/core': 10.1.9(@types/node@22.13.10) - '@inquirer/type': 3.0.5(@types/node@22.13.10) + '@inquirer/core': 10.1.9(@types/node@22.13.14) + '@inquirer/type': 3.0.5(@types/node@22.13.14) external-editor: 3.1.0 optionalDependencies: - '@types/node': 22.13.10 + '@types/node': 22.13.14 - '@inquirer/expand@4.0.11(@types/node@22.13.10)': + '@inquirer/expand@4.0.11(@types/node@22.13.14)': dependencies: - '@inquirer/core': 10.1.9(@types/node@22.13.10) - '@inquirer/type': 3.0.5(@types/node@22.13.10) + '@inquirer/core': 10.1.9(@types/node@22.13.14) + '@inquirer/type': 3.0.5(@types/node@22.13.14) yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 22.13.10 + '@types/node': 22.13.14 '@inquirer/figures@1.0.11': {} - '@inquirer/input@4.1.8(@types/node@22.13.10)': + '@inquirer/input@4.1.8(@types/node@22.13.14)': dependencies: - '@inquirer/core': 10.1.9(@types/node@22.13.10) - '@inquirer/type': 3.0.5(@types/node@22.13.10) + '@inquirer/core': 10.1.9(@types/node@22.13.14) + '@inquirer/type': 3.0.5(@types/node@22.13.14) optionalDependencies: - '@types/node': 22.13.10 + '@types/node': 22.13.14 - '@inquirer/number@3.0.11(@types/node@22.13.10)': + '@inquirer/number@3.0.11(@types/node@22.13.14)': dependencies: - '@inquirer/core': 10.1.9(@types/node@22.13.10) - '@inquirer/type': 3.0.5(@types/node@22.13.10) + '@inquirer/core': 10.1.9(@types/node@22.13.14) + '@inquirer/type': 3.0.5(@types/node@22.13.14) optionalDependencies: - '@types/node': 22.13.10 + '@types/node': 22.13.14 - '@inquirer/password@4.0.11(@types/node@22.13.10)': + '@inquirer/password@4.0.11(@types/node@22.13.14)': dependencies: - '@inquirer/core': 10.1.9(@types/node@22.13.10) - '@inquirer/type': 3.0.5(@types/node@22.13.10) + '@inquirer/core': 10.1.9(@types/node@22.13.14) + '@inquirer/type': 3.0.5(@types/node@22.13.14) ansi-escapes: 4.3.2 optionalDependencies: - '@types/node': 22.13.10 - - '@inquirer/prompts@7.4.0(@types/node@22.13.10)': - dependencies: - '@inquirer/checkbox': 4.1.4(@types/node@22.13.10) - '@inquirer/confirm': 5.1.8(@types/node@22.13.10) - '@inquirer/editor': 4.2.9(@types/node@22.13.10) - '@inquirer/expand': 4.0.11(@types/node@22.13.10) - '@inquirer/input': 4.1.8(@types/node@22.13.10) - '@inquirer/number': 3.0.11(@types/node@22.13.10) - '@inquirer/password': 4.0.11(@types/node@22.13.10) - '@inquirer/rawlist': 4.0.11(@types/node@22.13.10) - '@inquirer/search': 3.0.11(@types/node@22.13.10) - '@inquirer/select': 4.1.0(@types/node@22.13.10) + '@types/node': 22.13.14 + + '@inquirer/prompts@7.4.0(@types/node@22.13.14)': + dependencies: + '@inquirer/checkbox': 4.1.4(@types/node@22.13.14) + '@inquirer/confirm': 5.1.8(@types/node@22.13.14) + '@inquirer/editor': 4.2.9(@types/node@22.13.14) + '@inquirer/expand': 4.0.11(@types/node@22.13.14) + '@inquirer/input': 4.1.8(@types/node@22.13.14) + '@inquirer/number': 3.0.11(@types/node@22.13.14) + '@inquirer/password': 4.0.11(@types/node@22.13.14) + '@inquirer/rawlist': 4.0.11(@types/node@22.13.14) + '@inquirer/search': 3.0.11(@types/node@22.13.14) + '@inquirer/select': 4.1.0(@types/node@22.13.14) optionalDependencies: - '@types/node': 22.13.10 + '@types/node': 22.13.14 - '@inquirer/rawlist@4.0.11(@types/node@22.13.10)': + '@inquirer/rawlist@4.0.11(@types/node@22.13.14)': dependencies: - '@inquirer/core': 10.1.9(@types/node@22.13.10) - '@inquirer/type': 3.0.5(@types/node@22.13.10) + '@inquirer/core': 10.1.9(@types/node@22.13.14) + '@inquirer/type': 3.0.5(@types/node@22.13.14) yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 22.13.10 + '@types/node': 22.13.14 - '@inquirer/search@3.0.11(@types/node@22.13.10)': + '@inquirer/search@3.0.11(@types/node@22.13.14)': dependencies: - '@inquirer/core': 10.1.9(@types/node@22.13.10) + '@inquirer/core': 10.1.9(@types/node@22.13.14) '@inquirer/figures': 1.0.11 - '@inquirer/type': 3.0.5(@types/node@22.13.10) + '@inquirer/type': 3.0.5(@types/node@22.13.14) yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 22.13.10 + '@types/node': 22.13.14 - '@inquirer/select@4.1.0(@types/node@22.13.10)': + '@inquirer/select@4.1.0(@types/node@22.13.14)': dependencies: - '@inquirer/core': 10.1.9(@types/node@22.13.10) + '@inquirer/core': 10.1.9(@types/node@22.13.14) '@inquirer/figures': 1.0.11 - '@inquirer/type': 3.0.5(@types/node@22.13.10) + '@inquirer/type': 3.0.5(@types/node@22.13.14) ansi-escapes: 4.3.2 yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 22.13.10 + '@types/node': 22.13.14 - '@inquirer/type@3.0.5(@types/node@22.13.10)': + '@inquirer/type@3.0.5(@types/node@22.13.14)': optionalDependencies: - '@types/node': 22.13.10 + '@types/node': 22.13.14 '@jridgewell/sourcemap-codec@1.5.0': {} - '@napi-rs/cli@3.0.0-alpha.76(@emnapi/runtime@1.3.1)(@types/node@22.13.10)(emnapi@1.3.1)': + '@napi-rs/cli@3.0.0-alpha.76(@emnapi/runtime@1.3.1)(@types/node@22.13.14)(emnapi@1.4.0)': dependencies: - '@inquirer/prompts': 7.4.0(@types/node@22.13.10) + '@inquirer/prompts': 7.4.0(@types/node@22.13.14) '@napi-rs/cross-toolchain': 0.0.19 '@napi-rs/wasm-tools': 0.0.3 '@octokit/rest': 21.1.1 @@ -1703,7 +1703,7 @@ snapshots: wasm-sjlj: 1.0.6 optionalDependencies: '@emnapi/runtime': 1.3.1 - emnapi: 1.3.1 + emnapi: 1.4.0 transitivePeerDependencies: - '@napi-rs/cross-toolchain-arm64-target-aarch64' - '@napi-rs/cross-toolchain-arm64-target-armv7' @@ -2089,7 +2089,7 @@ snapshots: '@types/estree@1.0.6': {} - '@types/node@22.13.10': + '@types/node@22.13.14': dependencies: undici-types: 6.20.0 @@ -2102,13 +2102,13 @@ snapshots: chai: 5.2.0 tinyrainbow: 2.0.0 - '@vitest/mocker@3.0.9(vite@6.2.2(@types/node@22.13.10))': + '@vitest/mocker@3.0.9(vite@6.2.2(@types/node@22.13.14))': dependencies: '@vitest/spy': 3.0.9 estree-walker: 3.0.3 magic-string: 0.30.17 optionalDependencies: - vite: 6.2.2(@types/node@22.13.10) + vite: 6.2.2(@types/node@22.13.14) '@vitest/pretty-format@3.0.9': dependencies: @@ -2228,7 +2228,7 @@ snapshots: es-errors: 1.3.0 gopd: 1.2.0 - emnapi@1.3.1: {} + emnapi@1.4.0: {} emoji-regex@8.0.0: {} @@ -2548,13 +2548,13 @@ snapshots: universal-user-agent@7.0.2: {} - vite-node@3.0.9(@types/node@22.13.10): + vite-node@3.0.9(@types/node@22.13.14): dependencies: cac: 6.7.14 debug: 4.4.0 es-module-lexer: 1.6.0 pathe: 2.0.3 - vite: 6.2.2(@types/node@22.13.10) + vite: 6.2.2(@types/node@22.13.14) transitivePeerDependencies: - '@types/node' - jiti @@ -2569,19 +2569,19 @@ snapshots: - tsx - yaml - vite@6.2.2(@types/node@22.13.10): + vite@6.2.2(@types/node@22.13.14): dependencies: esbuild: 0.25.1 postcss: 8.5.3 rollup: 4.36.0 optionalDependencies: - '@types/node': 22.13.10 + '@types/node': 22.13.14 fsevents: 2.3.3 - vitest@3.0.9(@types/node@22.13.10): + vitest@3.0.9(@types/node@22.13.14): dependencies: '@vitest/expect': 3.0.9 - '@vitest/mocker': 3.0.9(vite@6.2.2(@types/node@22.13.10)) + '@vitest/mocker': 3.0.9(vite@6.2.2(@types/node@22.13.14)) '@vitest/pretty-format': 3.0.9 '@vitest/runner': 3.0.9 '@vitest/snapshot': 3.0.9 @@ -2597,11 +2597,11 @@ snapshots: tinyexec: 0.3.2 tinypool: 1.0.2 tinyrainbow: 2.0.0 - vite: 6.2.2(@types/node@22.13.10) - vite-node: 3.0.9(@types/node@22.13.10) + vite: 6.2.2(@types/node@22.13.14) + vite-node: 3.0.9(@types/node@22.13.14) why-is-node-running: 2.3.0 optionalDependencies: - '@types/node': 22.13.10 + '@types/node': 22.13.14 transitivePeerDependencies: - jiti - less From 2dd876b653b1cbc38076d839f6dce354157f682e Mon Sep 17 00:00:00 2001 From: JounQin Date: Sun, 30 Mar 2025 02:10:20 +0800 Subject: [PATCH 4/4] chore: release v1.3.3 (#45) --- CHANGELOG.md | 10 ++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- npm/package.json | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 992dd18c..68954ce6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.3.3](https://github.com/unrs/unrs-resolver/compare/v1.3.2...v1.3.3) - 2025-03-29 + +### Build + +- build: remove `--strip` flag ([#44](https://github.com/unrs/unrs-resolver/pull/44)) + +### Testing + +- add nested package json case ([#40](https://github.com/unrs/unrs-resolver/pull/40)) + ## [1.3.2](https://github.com/unrs/unrs-resolver/compare/unrs_resolver-v1.3.1...v1.3.2) - 2025-03-26 ### Bug Fixes diff --git a/Cargo.lock b/Cargo.lock index bc335591..3702a679 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1190,7 +1190,7 @@ checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" [[package]] name = "unrs_resolver" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cfg-if", "criterion2", diff --git a/Cargo.toml b/Cargo.toml index 2fb9230c..6e2bd916 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ resolver = "2" [package] name = "unrs_resolver" -version = "1.3.2" +version = "1.3.3" authors = ["UnRS"] categories = ["development-tools"] edition = "2024" diff --git a/npm/package.json b/npm/package.json index 3b8403bf..e8321921 100644 --- a/npm/package.json +++ b/npm/package.json @@ -1,6 +1,6 @@ { "name": "unrs-resolver", - "version": "1.3.2", + "version": "1.3.3", "description": "Oxc Resolver Node API with PNP support", "main": "index.js", "browser": "browser.js", pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy