@dotenvx/dotenvx 1.51.0 → 1.51.1

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 CHANGED
@@ -2,7 +2,13 @@
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.51.0...main)
5
+ [Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.51.1...main)
6
+
7
+ ## [1.51.1](https://github.com/dotenvx/dotenvx/compare/v1.51.0...v1.51.1) (2025-11-03)
8
+
9
+ ### Added
10
+
11
+ * Add `opsOff` type information
6
12
 
7
13
  ## [1.51.0](https://github.com/dotenvx/dotenvx/compare/v1.50.1...v1.51.0) (2025-09-23)
8
14
 
package/README.md CHANGED
@@ -2462,6 +2462,38 @@ HELLO="World"
2462
2462
  require('@dotenvx/dotenvx').config({path: ['.env'], envKeysFile: '../../.env.keys'})
2463
2463
  ```
2464
2464
 
2465
+ </details>
2466
+ <details><summary>`config(convention:)` - convention</summary><br>
2467
+
2468
+ Set a convention when using `dotenvx.config()`. This allows you to use the same file loading order as the CLI without needing to specify each file individually.
2469
+
2470
+ ```sh
2471
+ # Setup environment files
2472
+ $ echo "HELLO=development local" > .env.development.local
2473
+ $ echo "HELLO=local" > .env.local
2474
+ $ echo "HELLO=development" > .env.development
2475
+ $ echo "HELLO=env" > .env
2476
+ ```
2477
+
2478
+ ```js
2479
+ // index.js
2480
+ require('@dotenvx/dotenvx').config({ convention: 'nextjs' })
2481
+
2482
+ console.log(`Hello ${process.env.HELLO}`)
2483
+ ```
2484
+
2485
+ ```sh
2486
+ $ NODE_ENV=development node index.js
2487
+ [dotenvx@1.28.0] injecting env (1) from .env.development.local, .env.local, .env.development, .env
2488
+ Hello development local
2489
+ ```
2490
+
2491
+ This is equivalent to using `--convention=nextjs` with the CLI:
2492
+
2493
+ ```sh
2494
+ $ dotenvx run --convention=nextjs -- node index.js
2495
+ ```
2496
+
2465
2497
  </details>
2466
2498
  <details><summary>`config(opsOff:)` - opsOff</summary><br>
2467
2499
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.51.0",
2
+ "version": "1.51.1",
3
3
  "name": "@dotenvx/dotenvx",
4
4
  "description": "a secure dotenv–from the creator of `dotenv`",
5
5
  "author": "@motdotla",
package/src/lib/main.d.ts CHANGED
@@ -146,6 +146,14 @@ export interface DotenvConfigOptions {
146
146
  | 'help'
147
147
  | 'verbose'
148
148
  | 'debug';
149
+
150
+ /**
151
+ * Turn off Dotenvx Ops features - https://dotenvx.com/ops
152
+ *
153
+ * @default false
154
+ * @example require('@dotenvx/dotenvx').config({ opsOff: true })
155
+ */
156
+ opsOff?: boolean;
149
157
  }
150
158
 
151
159
  export interface DotenvConfigOutput {