@pnpm/napi 12.0.0-beta.3 → 12.0.0-rc.0
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 +12 -0
- package/index.d.ts +24 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @pnpm/napi
|
|
2
2
|
|
|
3
|
+
## 12.0.0-rc.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- `install` accepts `enableGlobalVirtualStore`, `globalVirtualStoreDir`, `packageExtensions` and `patchedDependencies`, and `readConfig` reports `enableGlobalVirtualStore`, `globalVirtualStoreDir`, `virtualStoreDir` and `effectiveVirtualStoreDir`. Hosts embedding the engine can now use the global virtual store, declare dependencies a package failed to declare, patch a package, and locate the virtual store instead of assuming `node_modules/.pnpm`.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Fixed `resolveDependency({ fullMetadata: true })` returning a manifest stripped down to the abbreviated npm field set. Registry-custom fields on the version object (such as Bit's `componentId`) are now preserved.
|
|
12
|
+
|
|
13
|
+
## 12.0.0-beta.4
|
|
14
|
+
|
|
3
15
|
## 12.0.0-beta.3
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/index.d.ts
CHANGED
|
@@ -104,6 +104,14 @@ export interface SharedEngineOptions {
|
|
|
104
104
|
cacheDir?: string
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
/** Manifest fields to add to a matching package. */
|
|
108
|
+
export interface PackageExtension {
|
|
109
|
+
dependencies?: Record<string, string>
|
|
110
|
+
optionalDependencies?: Record<string, string>
|
|
111
|
+
peerDependencies?: Record<string, string>
|
|
112
|
+
peerDependenciesMeta?: Record<string, { optional?: boolean }>
|
|
113
|
+
}
|
|
114
|
+
|
|
107
115
|
export interface InstallOptions extends SharedEngineOptions {
|
|
108
116
|
/** Lockfile / workspace root directory. */
|
|
109
117
|
dir: string
|
|
@@ -132,6 +140,14 @@ export interface InstallOptions extends SharedEngineOptions {
|
|
|
132
140
|
preferOffline?: boolean
|
|
133
141
|
offline?: boolean
|
|
134
142
|
virtualStoreDirMaxLength?: number
|
|
143
|
+
/** Whether to use the shared global virtual store for dependency slots. */
|
|
144
|
+
enableGlobalVirtualStore?: boolean
|
|
145
|
+
/** Overrides the global virtual store directory. */
|
|
146
|
+
globalVirtualStoreDir?: string
|
|
147
|
+
/** Manifest fields to add to packages selected by name or version range. */
|
|
148
|
+
packageExtensions?: Record<string, PackageExtension>
|
|
149
|
+
/** Patch paths keyed by package selector. Relative paths resolve from `dir`. */
|
|
150
|
+
patchedDependencies?: Record<string, string>
|
|
135
151
|
peersSuffixMaxLength?: number
|
|
136
152
|
dedupePeerDependents?: boolean
|
|
137
153
|
/**
|
|
@@ -386,6 +402,14 @@ export interface ResolvedConfig {
|
|
|
386
402
|
storeDir: string
|
|
387
403
|
cacheDir: string
|
|
388
404
|
virtualStoreDirMaxLength: number
|
|
405
|
+
/** Whether the resolved configuration uses the global virtual store. */
|
|
406
|
+
enableGlobalVirtualStore: boolean
|
|
407
|
+
/** Shared virtual-store root. */
|
|
408
|
+
globalVirtualStoreDir: string
|
|
409
|
+
/** Project-local virtual-store directory. */
|
|
410
|
+
virtualStoreDir: string
|
|
411
|
+
/** Virtual-store directory used by this configuration and recorded in `.modules.yaml`. */
|
|
412
|
+
effectiveVirtualStoreDir: string
|
|
389
413
|
networkConcurrency: number
|
|
390
414
|
maxSockets?: number
|
|
391
415
|
fetchRetries: number
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/napi",
|
|
3
|
-
"version": "12.0.0-
|
|
3
|
+
"version": "12.0.0-rc.0",
|
|
4
4
|
"description": "Node.js addon bindings for the pnpm v12 Rust engine (pacquet)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"README.md"
|
|
28
28
|
],
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"@pnpm/napi.win32-x64": "12.0.0-
|
|
31
|
-
"@pnpm/napi.win32-arm64": "12.0.0-
|
|
32
|
-
"@pnpm/napi.darwin-x64": "12.0.0-
|
|
33
|
-
"@pnpm/napi.darwin-arm64": "12.0.0-
|
|
34
|
-
"@pnpm/napi.linux-x64": "12.0.0-
|
|
35
|
-
"@pnpm/napi.linux-arm64": "12.0.0-
|
|
36
|
-
"@pnpm/napi.linux-x64-musl": "12.0.0-
|
|
37
|
-
"@pnpm/napi.linux-arm64-musl": "12.0.0-
|
|
30
|
+
"@pnpm/napi.win32-x64": "12.0.0-rc.0",
|
|
31
|
+
"@pnpm/napi.win32-arm64": "12.0.0-rc.0",
|
|
32
|
+
"@pnpm/napi.darwin-x64": "12.0.0-rc.0",
|
|
33
|
+
"@pnpm/napi.darwin-arm64": "12.0.0-rc.0",
|
|
34
|
+
"@pnpm/napi.linux-x64": "12.0.0-rc.0",
|
|
35
|
+
"@pnpm/napi.linux-arm64": "12.0.0-rc.0",
|
|
36
|
+
"@pnpm/napi.linux-x64-musl": "12.0.0-rc.0",
|
|
37
|
+
"@pnpm/napi.linux-arm64-musl": "12.0.0-rc.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"generate-packages": "node scripts/generate-packages.mjs"
|