@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.
Files changed (3) hide show
  1. package/README.md +30 -18
  2. package/index.cjs +2 -0
  3. 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 only; SDK custody resolution still uses its
117
- existing PATH lookup.
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
- **This release path publishes only the eight platform packages, always under
167
- `next`. It never packs or publishes the core `@dotenvx/dotenvx` package.** The
168
- core package is marked private. The publisher enforces a fixed platform-package
169
- allowlist and rejects stable, RC, or other non-beta versions.
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 platform beta with:
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-only beta release. Manual workflow runs build only unless
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. Tag-triggered releases always remain
196
- platform-only. Stable and RC publication are disabled.
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-package contents and releases. The core
210
- `@dotenvx/dotenvx` package is excluded from this release path. Existing 2.x versions
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 is a separate, explicit manual mode of the existing `nodejs.yml`
217
- workflow. It uses the already-published, exact-version platform packages. It
218
- never rebuilds or republishes the CLI or native addons and never copies code to
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
- When publication is explicitly authorized, manually dispatch `nodejs.yml` from
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; the core package must trust
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.1",
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.1",
64
- "@dotenvx/dotenvx-darwin-x86_64": "3.0.0-beta.1",
65
- "@dotenvx/dotenvx-linux-x86_64": "3.0.0-beta.1",
66
- "@dotenvx/dotenvx-linux-arm64": "3.0.0-beta.1",
67
- "@dotenvx/dotenvx-linux-x86_64-musl": "3.0.0-beta.1",
68
- "@dotenvx/dotenvx-linux-arm64-musl": "3.0.0-beta.1",
69
- "@dotenvx/dotenvx-windows-x86_64": "3.0.0-beta.1",
70
- "@dotenvx/dotenvx-windows-arm64": "3.0.0-beta.1"
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
  }