@pnpm/napi 12.0.0-alpha.8 → 12.0.0-beta.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 +33 -0
- package/README.md +4 -1
- package/index.d.ts +16 -5
- package/package.json +9 -9
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @pnpm/napi
|
|
2
|
+
|
|
3
|
+
## 12.0.0-beta.0
|
|
4
|
+
|
|
5
|
+
## 12.0.0-alpha.21
|
|
6
|
+
|
|
7
|
+
## 12.0.0-alpha.20
|
|
8
|
+
|
|
9
|
+
## 12.0.0-alpha.19
|
|
10
|
+
|
|
11
|
+
## 12.0.0-alpha.18
|
|
12
|
+
|
|
13
|
+
## 12.0.0-alpha.17
|
|
14
|
+
|
|
15
|
+
## 12.0.0-alpha.16
|
|
16
|
+
|
|
17
|
+
## 12.0.0-alpha.15
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- Added `pnpm licenses` command to the Rust pacquet port to list package licenses in a tabular or JSON format.
|
|
22
|
+
|
|
23
|
+
## 12.0.0-alpha.14
|
|
24
|
+
|
|
25
|
+
## 12.0.0-alpha.13
|
|
26
|
+
|
|
27
|
+
## 12.0.0-alpha.12
|
|
28
|
+
|
|
29
|
+
## 12.0.0-alpha.11
|
|
30
|
+
|
|
31
|
+
## 12.0.0-alpha.10
|
|
32
|
+
|
|
33
|
+
## 12.0.0-alpha.9
|
package/README.md
CHANGED
|
@@ -30,7 +30,10 @@ structured envelope.
|
|
|
30
30
|
|
|
31
31
|
Auth: pass `authHeaderByUri` — a map of nerf-darted registry URI → `Authorization`
|
|
32
32
|
header value (with `""` for the default registry). The host resolves these from
|
|
33
|
-
its `.npmrc` credentials; the engine applies them as-is.
|
|
33
|
+
its `.npmrc` credentials; the engine applies them as-is. The `""` entry is
|
|
34
|
+
pinned to the `registry` / `registries.default` passed alongside it (npmjs when
|
|
35
|
+
neither is given), so a `registry=` in the project's own `.npmrc` cannot
|
|
36
|
+
redirect that credential to another host.
|
|
34
37
|
|
|
35
38
|
## Distribution
|
|
36
39
|
|
package/index.d.ts
CHANGED
|
@@ -59,8 +59,16 @@ export interface NetworkConfig {
|
|
|
59
59
|
userAgent?: string
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
/**
|
|
63
|
-
|
|
62
|
+
/**
|
|
63
|
+
* A synchronous `readPackage` hook applied to resolved dependency manifests.
|
|
64
|
+
*
|
|
65
|
+
* `resolvedDir` is set when the manifest came from a directory resolution (an
|
|
66
|
+
* injected workspace project or a `file:` dependency); it is the directory
|
|
67
|
+
* recorded in the lockfile, relative to the lockfile root. Hosts use it to
|
|
68
|
+
* recognize a workspace project's dependency instance and substitute the
|
|
69
|
+
* project's raw manifest.
|
|
70
|
+
*/
|
|
71
|
+
export type ReadPackageHook = (manifest: PackageManifest, resolvedDir?: string) => PackageManifest
|
|
64
72
|
|
|
65
73
|
/**
|
|
66
74
|
* Receives engine log events. The event stream is wire-compatible with
|
|
@@ -77,6 +85,9 @@ export interface SharedEngineOptions {
|
|
|
77
85
|
* URI (`//host/path/`), plus `''` for the default registry — e.g.
|
|
78
86
|
* `{ '': 'Bearer abc', '//npm.example.com/': 'Basic <base64(user:pass)>' }`. The
|
|
79
87
|
* host resolves these from its `authConfig`; the engine applies them as-is.
|
|
88
|
+
* The `''` entry is pinned to the `registry` / `registries.default` passed
|
|
89
|
+
* alongside it (npmjs when neither is given), so a `registry=` in the
|
|
90
|
+
* project's own `.npmrc` cannot redirect that credential to another host.
|
|
80
91
|
*/
|
|
81
92
|
authHeaderByUri?: Record<string, string>
|
|
82
93
|
proxyConfig?: ProxyConfig
|
|
@@ -190,9 +201,9 @@ export interface InstallResult {
|
|
|
190
201
|
|
|
191
202
|
/**
|
|
192
203
|
* @param onLog receives wire-compatible pnpm log events.
|
|
193
|
-
* @param readPackageHook a **synchronous** `(manifest) => manifest`
|
|
194
|
-
* applied to every resolved dependency manifest during resolution
|
|
195
|
-
* `readPackage` hook). Must return the manifest object, not a promise.
|
|
204
|
+
* @param readPackageHook a **synchronous** `(manifest, resolvedDir?) => manifest`
|
|
205
|
+
* transform applied to every resolved dependency manifest during resolution
|
|
206
|
+
* (the `readPackage` hook). Must return the manifest object, not a promise.
|
|
196
207
|
*/
|
|
197
208
|
export function install(
|
|
198
209
|
options: InstallOptions,
|
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-beta.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-beta.0",
|
|
31
|
+
"@pnpm/napi.win32-arm64": "12.0.0-beta.0",
|
|
32
|
+
"@pnpm/napi.darwin-x64": "12.0.0-beta.0",
|
|
33
|
+
"@pnpm/napi.darwin-arm64": "12.0.0-beta.0",
|
|
34
|
+
"@pnpm/napi.linux-x64": "12.0.0-beta.0",
|
|
35
|
+
"@pnpm/napi.linux-arm64": "12.0.0-beta.0",
|
|
36
|
+
"@pnpm/napi.linux-x64-musl": "12.0.0-beta.0",
|
|
37
|
+
"@pnpm/napi.linux-arm64-musl": "12.0.0-beta.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"generate-packages": "node scripts/generate-packages.mjs"
|