@dotenvx/dotenvx 3.0.0-beta.1 → 3.0.0-beta.2
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/README.md +30 -18
- package/index.cjs +2 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -113,8 +113,15 @@ runs, even if the npm dependency is pinned.
|
|
|
113
113
|
|
|
114
114
|
Optionally, `DOTENVX_CLI` selects an explicit executable path ahead of PATH
|
|
115
115
|
discovery. No override is needed for Armor or custom builds on PATH. This setting
|
|
116
|
-
selects the npm CLI executable
|
|
117
|
-
|
|
116
|
+
selects both the npm CLI executable and the SDK's delegated custody executable.
|
|
117
|
+
SDK custody uses the same standalone-binary discovery and packaged fallback as
|
|
118
|
+
the launcher, so it also works without a global CLI on PATH.
|
|
119
|
+
|
|
120
|
+
Decryption first checks matching environment private keys, then configured local
|
|
121
|
+
key files (including `.env.keys`), then the custodian named in the public-key
|
|
122
|
+
header. `armor pull` leaves the Armor custody metadata in place, but the pulled
|
|
123
|
+
matching local key can decrypt without a remote lookup. `armor down` additionally
|
|
124
|
+
removes remote custody and updates the header; local fallback does neither.
|
|
118
125
|
|
|
119
126
|
## Migrating from 2.x
|
|
120
127
|
|
|
@@ -163,12 +170,14 @@ Substitute the current platform package and version. A direct local directory
|
|
|
163
170
|
install alone does not assemble optional packages for the consuming project.
|
|
164
171
|
|
|
165
172
|
`.github/workflows/nodejs.yml` builds and tests all eight native targets.
|
|
166
|
-
|
|
167
|
-
`next
|
|
168
|
-
|
|
169
|
-
|
|
173
|
+
Pushing a matching `nodejs-v<version>` tag publishes the eight platform packages
|
|
174
|
+
under `next`, waits for npm to serve all eight exact versions, then prepares and
|
|
175
|
+
tests the core `@dotenvx/dotenvx` wrapper across all eight platforms before
|
|
176
|
+
publishing it under `next`. **Existing `latest` tags stay unchanged.** The source
|
|
177
|
+
core package stays private; only the validated staged wrapper is publishable.
|
|
178
|
+
Stable, RC, and other non-beta versions are rejected.
|
|
170
179
|
|
|
171
|
-
From a clean working tree, prepare the next
|
|
180
|
+
From a clean working tree, prepare the next Node.js beta with:
|
|
172
181
|
|
|
173
182
|
```sh
|
|
174
183
|
npm run version:nodejs patch
|
|
@@ -188,12 +197,12 @@ git push --atomic origin HEAD refs/tags/nodejs-v3.0.0-beta.1
|
|
|
188
197
|
```
|
|
189
198
|
|
|
190
199
|
Pushing the commit alone does not release anything; pushing the matching tag
|
|
191
|
-
triggers the platform-
|
|
200
|
+
triggers the full platform-and-core beta release. Manual workflow runs build only unless
|
|
192
201
|
`publish` is enabled, and publication requires running from the matching beta
|
|
193
202
|
tag. Existing `latest` tags remain untouched. To retry a release, run the
|
|
194
203
|
workflow from its tag with `publish` enabled. Already published versions are
|
|
195
|
-
reused only when tarball integrity matches.
|
|
196
|
-
|
|
204
|
+
reused only when tarball integrity matches. A platform publication or core test
|
|
205
|
+
failure stops the release before core publication. Stable and RC publication are disabled.
|
|
197
206
|
|
|
198
207
|
Before the first release, configure npm trusted publishing for
|
|
199
208
|
every platform package: repository `dotenvx/forge`, workflow `nodejs.yml`,
|
|
@@ -206,16 +215,18 @@ workflow now uses trusted publishing only and does not read an `NPM_TOKEN`
|
|
|
206
215
|
secret. No credentials are needed for build-only runs. Platform manifests also
|
|
207
216
|
set `publishConfig.tag` to `next`, and artifact validation rejects any other tag.
|
|
208
217
|
|
|
209
|
-
Forge owns the new 3.x beta platform
|
|
210
|
-
|
|
211
|
-
remain unchanged.
|
|
218
|
+
Forge owns the new 3.x beta platform packages and core wrapper releases.
|
|
219
|
+
Existing 2.x versions remain unchanged.
|
|
212
220
|
|
|
213
221
|
|
|
214
222
|
## Core beta publication from Forge
|
|
215
223
|
|
|
216
|
-
Core publication
|
|
217
|
-
|
|
218
|
-
|
|
224
|
+
Core publication follows successful platform publication automatically in
|
|
225
|
+
`nodejs.yml` tag releases. Preparation waits for npm's processing delay, then the
|
|
226
|
+
core test matrix must pass on all eight platforms. A separate `core-beta` manual
|
|
227
|
+
mode remains available to test or retry only the wrapper. It uses the
|
|
228
|
+
already-published, exact-version platform packages. It never rebuilds or
|
|
229
|
+
republishes the CLI or native addons and never copies code to
|
|
219
230
|
the legacy dotenvx repository.
|
|
220
231
|
|
|
221
232
|
The source `package.json` stays private. Preparation creates a staged tarball
|
|
@@ -241,11 +252,12 @@ The core test matrix installs the existing npm binaries and tests the actual
|
|
|
241
252
|
staged tarball, SDK imports, preload entry points, CLI dispatch, encryption, and
|
|
242
253
|
decryption. No Rust toolchain or native rebuild is used in core mode.
|
|
243
254
|
|
|
244
|
-
|
|
255
|
+
To publish or retry only the core beta, manually dispatch `nodejs.yml` from
|
|
245
256
|
`main`, choose `target=core-beta`, enable `publish`, and enter the exact version
|
|
246
257
|
from `dotenvx-nodejs/package.json` in the `version` input. Missing or mismatched
|
|
247
258
|
versions are rejected. Publication waits for the full core test matrix and uses
|
|
248
|
-
the `release` environment and GitHub OIDC
|
|
259
|
+
the `release` environment and GitHub OIDC, as do automatic tag releases.
|
|
260
|
+
The core package must trust
|
|
249
261
|
`dotenvx/forge`, workflow `nodejs.yml`, environment `release` on npm.
|
|
250
262
|
|
|
251
263
|
Only the validated `@dotenvx/dotenvx` tarball is published, with an explicit
|
package/index.cjs
CHANGED
|
@@ -3,6 +3,7 @@ const { fileURLToPath } = require('node:url')
|
|
|
3
3
|
const native = require('./native.cjs')
|
|
4
4
|
const { applyRedaction } = require('./lib/redaction.cjs')
|
|
5
5
|
const { validateOptions } = require('./lib/validateOptions.cjs')
|
|
6
|
+
const { resolveCli } = require('./lib/cli.cjs')
|
|
6
7
|
|
|
7
8
|
function environment (value) {
|
|
8
9
|
const result = Object.create(null)
|
|
@@ -59,6 +60,7 @@ function optionsFor (options = {}, method = 'config') {
|
|
|
59
60
|
no_bitwarden: options.noBitwarden === true
|
|
60
61
|
}
|
|
61
62
|
if (keyFiles !== undefined) input.key_files = (Array.isArray(keyFiles) ? keyFiles : [keyFiles]).map(filePath)
|
|
63
|
+
if (method !== 'parse') input.custody_cli = resolveCli({ env })
|
|
62
64
|
return { input, options, target, env }
|
|
63
65
|
}
|
|
64
66
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotenvx/dotenvx",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.2",
|
|
4
4
|
"description": "a secure dotenv—from the creator of dotenv",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"homepage": "https://dotenvx.com",
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
"provenance": false
|
|
61
61
|
},
|
|
62
62
|
"optionalDependencies": {
|
|
63
|
-
"@dotenvx/dotenvx-darwin-arm64": "3.0.0-beta.
|
|
64
|
-
"@dotenvx/dotenvx-darwin-x86_64": "3.0.0-beta.
|
|
65
|
-
"@dotenvx/dotenvx-linux-x86_64": "3.0.0-beta.
|
|
66
|
-
"@dotenvx/dotenvx-linux-arm64": "3.0.0-beta.
|
|
67
|
-
"@dotenvx/dotenvx-linux-x86_64-musl": "3.0.0-beta.
|
|
68
|
-
"@dotenvx/dotenvx-linux-arm64-musl": "3.0.0-beta.
|
|
69
|
-
"@dotenvx/dotenvx-windows-x86_64": "3.0.0-beta.
|
|
70
|
-
"@dotenvx/dotenvx-windows-arm64": "3.0.0-beta.
|
|
63
|
+
"@dotenvx/dotenvx-darwin-arm64": "3.0.0-beta.2",
|
|
64
|
+
"@dotenvx/dotenvx-darwin-x86_64": "3.0.0-beta.2",
|
|
65
|
+
"@dotenvx/dotenvx-linux-x86_64": "3.0.0-beta.2",
|
|
66
|
+
"@dotenvx/dotenvx-linux-arm64": "3.0.0-beta.2",
|
|
67
|
+
"@dotenvx/dotenvx-linux-x86_64-musl": "3.0.0-beta.2",
|
|
68
|
+
"@dotenvx/dotenvx-linux-arm64-musl": "3.0.0-beta.2",
|
|
69
|
+
"@dotenvx/dotenvx-windows-x86_64": "3.0.0-beta.2",
|
|
70
|
+
"@dotenvx/dotenvx-windows-arm64": "3.0.0-beta.2"
|
|
71
71
|
},
|
|
72
72
|
"private": false
|
|
73
73
|
}
|