@dotenvx/dotenvx 1.63.0 → 1.64.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 +16 -1
- package/README.md +10 -3
- package/package.json +1 -1
- package/src/cli/dotenvx.js +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
[Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.
|
|
5
|
+
[Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.64.0...main)
|
|
6
|
+
|
|
7
|
+
## [1.64.0](https://github.com/dotenvx/dotenvx/compare/v1.63.0...v1.64.0) (2026-04-27)
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
* Add optional `dotenvx armor` command.
|
|
12
|
+
* `armor up` armor private key
|
|
13
|
+
* `armor down` dearmor private key
|
|
14
|
+
* `armor push` push armored key (from .env.keys)
|
|
15
|
+
* `armor pull` pull armored key (into .env.keys)
|
|
16
|
+
|
|
17
|
+
Move private keys off device and under access control with Dotenvx Ops ⛨. [Learn more](https://dotenvx.com/ops)
|
|
6
18
|
|
|
7
19
|
## [1.63.0](https://github.com/dotenvx/dotenvx/compare/v1.62.0...v1.63.0) (2026-04-24)
|
|
8
20
|
|
|
@@ -17,6 +29,9 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
17
29
|
|
|
18
30
|
* Add support for `config({ envs })`. unlocks simpler cloudflare worker integration ([#803](https://github.com/dotenvx/dotenvx/pull/803))
|
|
19
31
|
|
|
32
|
+
```sh
|
|
33
|
+
$ dotenvx encrypt -f .env.txt
|
|
34
|
+
```
|
|
20
35
|
```js
|
|
21
36
|
// src/index.js
|
|
22
37
|
import envSrc from '../.env.txt'
|
package/README.md
CHANGED
|
@@ -154,14 +154,14 @@ Hello Dotenvx
|
|
|
154
154
|
<details><summary>Cloudflare Workers ⛅️</summary><br>
|
|
155
155
|
|
|
156
156
|
```sh
|
|
157
|
-
|
|
157
|
+
$ dotenvx encrypt -f .env.txt
|
|
158
158
|
```
|
|
159
159
|
|
|
160
160
|
```js
|
|
161
|
-
|
|
161
|
+
// src/index.js
|
|
162
|
+
import envSrc from '../.env.txt'
|
|
162
163
|
import dotenvx from '@dotenvx/dotenvx'
|
|
163
164
|
|
|
164
|
-
// use `wrangler secret put DOTENV_PRIVATE_KEY` to set decryption key once
|
|
165
165
|
const config = dotenvx.config({ envs: [{ type: 'env', value: envSrc, privateKeyName: 'DOTENV_PRIVATE_KEY' }] })
|
|
166
166
|
const envx = config.parsed
|
|
167
167
|
|
|
@@ -171,6 +171,13 @@ export default {
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
```
|
|
174
|
+
```json
|
|
175
|
+
"scripts": {
|
|
176
|
+
"deploy": "wrangler deploy",
|
|
177
|
+
"dev": "wrangler dev --var $(dotenvx keypair -f .env.txt --format=colon)",
|
|
178
|
+
"start": "wrangler dev --var $(dotenvx keypair -f .env.txt --format=colon)",
|
|
179
|
+
}
|
|
180
|
+
```
|
|
174
181
|
|
|
175
182
|
</details>
|
|
176
183
|
<details><summary>Deno 🦕</summary><br>
|
package/package.json
CHANGED
package/src/cli/dotenvx.js
CHANGED
|
@@ -197,13 +197,22 @@ program.command('login')
|
|
|
197
197
|
|
|
198
198
|
// dotenvx logout
|
|
199
199
|
program.command('logout', { hidden: true })
|
|
200
|
-
.description('
|
|
200
|
+
.description('log out of your dotenvx account')
|
|
201
201
|
.allowUnknownOption()
|
|
202
202
|
.action(() => {
|
|
203
203
|
const rawArgs = ['ops', 'logout', ...process.argv.slice(3)]
|
|
204
204
|
executeDynamic(program, 'ops', rawArgs)
|
|
205
205
|
})
|
|
206
206
|
|
|
207
|
+
// dotenvx armor
|
|
208
|
+
program.command('armor', { hidden: true })
|
|
209
|
+
.description('ARMORED KEYS ⛨')
|
|
210
|
+
.allowUnknownOption()
|
|
211
|
+
.action((args) => {
|
|
212
|
+
const rawArgs = ['ops', 'armor', ...process.argv.slice(3)]
|
|
213
|
+
executeDynamic(program, 'ops', rawArgs)
|
|
214
|
+
})
|
|
215
|
+
|
|
207
216
|
// dotenvx help
|
|
208
217
|
program.command('help [command]')
|
|
209
218
|
.description('display help for command')
|