@pnpm/napi 12.9.1 → 12.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @pnpm/napi
2
2
 
3
+ ## 12.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - `rebuild()` no longer fails with `ERR_PNPM_LOCKFILE_CONFIG_MISMATCH` on a lockfile that records a `pnpmfileChecksum` or was resolved with other settings. Of the settings the lockfile records, `rebuild()` now checks only `patchedDependencies`.
8
+
9
+ ## 12.10.0
10
+
3
11
  ## 12.9.1
4
12
 
5
13
  ## 12.9.0
package/README.md CHANGED
@@ -27,7 +27,7 @@ See [`index.d.ts`](./index.d.ts) for the full typed contract.
27
27
  | Export | Purpose |
28
28
  | --- | --- |
29
29
  | `install(options, onLog?, readPackageHook?, onOutput?)` | Install in-memory importers (single or workspace); `readPackageHook` transforms each resolved dependency manifest (must be synchronous). Pass `options.readPackageHookChecksum` so installs reuse the lockfile while the hook is unchanged. Returns `{ stats, depsRequiringBuild?, storeDir }`. |
30
- | `rebuild(options, onLog?, selectedNames?, onOutput?)` | Re-run dependency build scripts against a materialized install (frozen path). |
30
+ | `rebuild(options, onLog?, selectedNames?, onOutput?)` | Re-run dependency build scripts against a materialized install (frozen path). Of the settings the lockfile records, only the patches have to match the options; nothing is resolved. |
31
31
  | `resolveDependency(wanted, options)` | Resolve an npm-registry specifier to `{ id, manifest, resolvedVia, … }`. |
32
32
  | `pack(options, onLog?)` | Build a publishable `.tgz` from a project directory. |
33
33
  | `parseBareSpecifier(spec, alias?)` | Split/validate a dependency specifier; `null` when unparsable. |
package/index.d.ts CHANGED
@@ -381,6 +381,11 @@ export function install(
381
381
  /**
382
382
  * Rebuild dependency build scripts against the already-materialized
383
383
  * `node_modules` (frozen path). Takes the same options shape as `install`.
384
+ * Nothing is resolved, so of the settings the lockfile records only the
385
+ * patches have to match the options, as in pnpm v11's `rebuild`: a lockfile
386
+ * resolved with other `readPackage` hooks or overrides is still rebuilt. The
387
+ * projects' manifests still have to match the lockfile, unless
388
+ * `ignorePackageManifest` is set.
384
389
  * @param selectedNames restrict the rebuild to these package names / build
385
390
  * keys; omit (or pass an empty array) to rebuild every build-needing package.
386
391
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/napi",
3
- "version": "12.9.1",
3
+ "version": "12.10.1",
4
4
  "description": "Node.js addon bindings for the pnpm v12 Rust engine (pacquet)",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -28,20 +28,20 @@
28
28
  "THIRD-PARTY-NOTICES.md"
29
29
  ],
30
30
  "optionalDependencies": {
31
- "@pnpm/napi.win32-x64": "12.9.1",
32
- "@pnpm/napi.win32-arm64": "12.9.1",
33
- "@pnpm/napi.darwin-x64": "12.9.1",
34
- "@pnpm/napi.darwin-arm64": "12.9.1",
35
- "@pnpm/napi.linux-x64": "12.9.1",
36
- "@pnpm/napi.linux-arm64": "12.9.1",
37
- "@pnpm/napi.linux-riscv64": "12.9.1",
38
- "@pnpm/napi.linux-ppc64": "12.9.1",
39
- "@pnpm/napi.linux-s390x": "12.9.1",
40
- "@pnpm/napi.linux-x64-musl": "12.9.1",
41
- "@pnpm/napi.linux-arm64-musl": "12.9.1",
42
- "@pnpm/napi.freebsd-x64": "12.9.1",
43
- "@pnpm/napi.android-arm64": "12.9.1",
44
- "@pnpm/napi.android-x64": "12.9.1"
31
+ "@pnpm/napi.win32-x64": "12.10.1",
32
+ "@pnpm/napi.win32-arm64": "12.10.1",
33
+ "@pnpm/napi.darwin-x64": "12.10.1",
34
+ "@pnpm/napi.darwin-arm64": "12.10.1",
35
+ "@pnpm/napi.linux-x64": "12.10.1",
36
+ "@pnpm/napi.linux-arm64": "12.10.1",
37
+ "@pnpm/napi.linux-riscv64": "12.10.1",
38
+ "@pnpm/napi.linux-ppc64": "12.10.1",
39
+ "@pnpm/napi.linux-s390x": "12.10.1",
40
+ "@pnpm/napi.linux-x64-musl": "12.10.1",
41
+ "@pnpm/napi.linux-arm64-musl": "12.10.1",
42
+ "@pnpm/napi.freebsd-x64": "12.10.1",
43
+ "@pnpm/napi.android-arm64": "12.10.1",
44
+ "@pnpm/napi.android-x64": "12.10.1"
45
45
  },
46
46
  "scripts": {
47
47
  "generate-packages": "node scripts/generate-packages.mjs"