@dotenvx/dotenvx 1.44.0 → 1.44.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/CHANGELOG.md +13 -1
- package/LICENSE +1 -9
- package/README.md +17 -1
- package/package.json +1 -1
- package/src/lib/main.d.ts +7 -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.44.
|
|
5
|
+
[Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.44.2...main)
|
|
6
|
+
|
|
7
|
+
## 1.44.2
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
* Clarify license is BSD-3.
|
|
12
|
+
|
|
13
|
+
## [1.44.1](https://github.com/dotenvx/dotenvx/compare/v1.44.0...v1.44.1)
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
* Patch `SetOutput` type ([#597](https://github.com/dotenvx/dotenvx/pull/597))
|
|
6
18
|
|
|
7
19
|
## [1.44.0](https://github.com/dotenvx/dotenvx/compare/v1.43.0...v1.44.0)
|
|
8
20
|
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
BSD 3-Clause License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2024,
|
|
3
|
+
Copyright (c) 2024, Scott Motte
|
|
4
4
|
|
|
5
5
|
Redistribution and use in source and binary forms, with or without
|
|
6
6
|
modification, are permitted provided that the following conditions are met:
|
|
@@ -26,11 +26,3 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
|
26
26
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
27
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
28
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
29
|
-
|
|
30
|
-
---
|
|
31
|
-
|
|
32
|
-
Dotenvx is an Open Source project licensed under the BSD 3-Clause above.
|
|
33
|
-
|
|
34
|
-
Dotenvx Pro is source-available with a commercial-friendly license. You can find
|
|
35
|
-
the full commercial license in `COMMERCIAL-LICENSE.txt`. See https://dotenvx.com
|
|
36
|
-
for features and purchasing options.
|
package/README.md
CHANGED
|
@@ -634,7 +634,7 @@ $ dotenvx encrypt
|
|
|
634
634
|
✔ encrypted (.env)
|
|
635
635
|
```
|
|
636
636
|
|
|
637
|
-
](https://dotenvx.com)
|
|
638
638
|
|
|
639
639
|
> A `DOTENV_PUBLIC_KEY` (encryption key) and a `DOTENV_PRIVATE_KEY` (decryption key) are generated using the same public-key cryptography as [Bitcoin](https://en.bitcoin.it/wiki/Secp256k1).
|
|
640
640
|
|
|
@@ -2189,6 +2189,10 @@ Use dotenvx directly in code.
|
|
|
2189
2189
|
// index.js
|
|
2190
2190
|
require('@dotenvx/dotenvx').config({path: ['.env.local', '.env']})
|
|
2191
2191
|
|
|
2192
|
+
// esm
|
|
2193
|
+
// import dotenvx from "@dotenvx/dotenvx";
|
|
2194
|
+
// dotenvx.config({path: ['.env.local', '.env']});
|
|
2195
|
+
|
|
2192
2196
|
console.log(`Hello ${process.env.HELLO}`)
|
|
2193
2197
|
```
|
|
2194
2198
|
|
|
@@ -2217,6 +2221,10 @@ Use dotenvx directly in code.
|
|
|
2217
2221
|
// index.js
|
|
2218
2222
|
require('@dotenvx/dotenvx').config({path: ['.env.local', '.env'], overload: true})
|
|
2219
2223
|
|
|
2224
|
+
// esm
|
|
2225
|
+
// import dotenvx from "@dotenvx/dotenvx";
|
|
2226
|
+
// dotenvx.config({path: ['.env.local', '.env'], overload: true});
|
|
2227
|
+
|
|
2220
2228
|
console.log(`Hello ${process.env.HELLO}`)
|
|
2221
2229
|
```
|
|
2222
2230
|
|
|
@@ -2240,6 +2248,10 @@ Use dotenvx directly in code.
|
|
|
2240
2248
|
// index.js
|
|
2241
2249
|
require('@dotenvx/dotenvx').config({path: ['.env.missing', '.env'], strict: true})
|
|
2242
2250
|
|
|
2251
|
+
// esm
|
|
2252
|
+
// import dotenvx from "@dotenvx/dotenvx";
|
|
2253
|
+
// dotenvx.config({path: ['.env.missing', '.env'], strict: true});
|
|
2254
|
+
|
|
2243
2255
|
console.log(`Hello ${process.env.HELLO}`)
|
|
2244
2256
|
```
|
|
2245
2257
|
|
|
@@ -2262,6 +2274,10 @@ Use dotenvx directly in code.
|
|
|
2262
2274
|
// index.js
|
|
2263
2275
|
require('@dotenvx/dotenvx').config({path: ['.env.missing', '.env'], ignore: ['MISSING_ENV_FILE']})
|
|
2264
2276
|
|
|
2277
|
+
// esm
|
|
2278
|
+
// import dotenvx from "@dotenvx/dotenvx";
|
|
2279
|
+
// dotenvx.config({path: ['.env.missing', '.env'], ignore: ['MISSING_ENV_FILE']});
|
|
2280
|
+
|
|
2265
2281
|
console.log(`Hello ${process.env.HELLO}`)
|
|
2266
2282
|
```
|
|
2267
2283
|
|
package/package.json
CHANGED
package/src/lib/main.d.ts
CHANGED
|
@@ -199,7 +199,7 @@ export interface SetOptions {
|
|
|
199
199
|
encrypt?: boolean;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
export type
|
|
202
|
+
export type SetProcessedEnv = {
|
|
203
203
|
key: string;
|
|
204
204
|
value: string;
|
|
205
205
|
filepath: string;
|
|
@@ -214,6 +214,12 @@ export type SetOutput = {
|
|
|
214
214
|
error?: Error;
|
|
215
215
|
};
|
|
216
216
|
|
|
217
|
+
export type SetOutput = {
|
|
218
|
+
processedEnvs: SetProcessedEnv[];
|
|
219
|
+
changedFilepaths: string[];
|
|
220
|
+
unchangedFilepaths: string[];
|
|
221
|
+
};
|
|
222
|
+
|
|
217
223
|
/**
|
|
218
224
|
* Set a single environment variable.
|
|
219
225
|
*
|