@dotenvx/dotenvx 2.1.0 → 2.1.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/v2.1.0...main)
5
+ [Unreleased](https://github.com/dotenvx/dotenvx/compare/v2.1.1...main)
6
+
7
+ ## [2.1.1](https://github.com/dotenvx/dotenvx/compare/v2.1.0...v2.1.1) (2026-07-02)
8
+
9
+ ### Changed
10
+
11
+ * Support `DOTENV_CONFIG_QUIET=true` as synonym for `--quiet` flag ([#866](https://github.com/dotenvx/dotenvx/pull/866))
6
12
 
7
13
  ## [2.1.0](https://github.com/dotenvx/dotenvx/compare/v2.0.0...v2.1.0) (2026-07-02)
8
14
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.1.0",
2
+ "version": "2.1.1",
3
3
  "name": "@dotenvx/dotenvx",
4
4
  "description": "a secure dotenv–from the creator of `dotenv`",
5
5
  "author": "@motdotla",
@@ -7,6 +7,7 @@ const catchAndLog = require('./../../lib/helpers/catchAndLog')
7
7
  const createSpinner = require('../../lib/helpers/createSpinner')
8
8
  const Session = require('../../db/session')
9
9
  const normalizeArmorAliases = require('./normalizeArmorAliases')
10
+ const normalizeDotenvConfigQuiet = require('../../lib/helpers/normalizeDotenvConfigQuiet')
10
11
 
11
12
  const conventions = require('./../../lib/helpers/conventions')
12
13
  const { determine } = require('./../../lib/helpers/envResolution')
@@ -45,7 +46,7 @@ function uniqueInjectedKeys (processedEnvs) {
45
46
  }
46
47
 
47
48
  async function run () {
48
- const options = normalizeArmorAliases(this.opts())
49
+ const options = normalizeDotenvConfigQuiet(normalizeArmorAliases(this.opts()))
49
50
 
50
51
  let commandArgs = this.args
51
52
  if (commandArgs.length < 1) {
@@ -12,6 +12,7 @@ const getCommanderVersion = require('./../lib/helpers/getCommanderVersion')
12
12
  const executeDynamic = require('./../lib/helpers/executeDynamic')
13
13
  const removeDynamicHelpSection = require('./../lib/helpers/removeDynamicHelpSection')
14
14
  const removeOptionsHelpParts = require('./../lib/helpers/removeOptionsHelpParts')
15
+ const normalizeDotenvConfigQuiet = require('./../lib/helpers/normalizeDotenvConfigQuiet')
15
16
 
16
17
  // for use with run
17
18
  const envs = []
@@ -38,7 +39,7 @@ program
38
39
  .option('-v, --verbose', 'sets log level to verbose')
39
40
  .option('-d, --debug', 'sets log level to debug')
40
41
  .hook('preAction', (thisCommand, actionCommand) => {
41
- const options = thisCommand.opts()
42
+ const options = normalizeDotenvConfigQuiet(thisCommand.opts())
42
43
 
43
44
  setLogLevel(options)
44
45
  })
@@ -0,0 +1,9 @@
1
+ function normalizeDotenvConfigQuiet (options) {
2
+ if (process.env.DOTENV_CONFIG_QUIET === 'true') {
3
+ options.quiet = true
4
+ }
5
+
6
+ return options
7
+ }
8
+
9
+ module.exports = normalizeDotenvConfigQuiet
package/src/lib/main.js CHANGED
@@ -22,6 +22,7 @@ const { determine } = require('./helpers/envResolution')
22
22
  const fsx = require('./helpers/fsx')
23
23
  const decryptKeyValue = require('./helpers/cryptography/decryptKeyValue')
24
24
  const Errors = require('./helpers/errors')
25
+ const normalizeDotenvConfigQuiet = require('./helpers/normalizeDotenvConfigQuiet')
25
26
 
26
27
  function uniqueInjectedKeys (processedEnvs) {
27
28
  const result = new Set()
@@ -35,6 +36,8 @@ function uniqueInjectedKeys (processedEnvs) {
35
36
 
36
37
  /** @type {import('./main').config} */
37
38
  const config = function (options = {}) {
39
+ options = normalizeDotenvConfigQuiet(options)
40
+
38
41
  // allow user to set processEnv to write to
39
42
  let processEnv = process.env
40
43
  if (options && options.processEnv != null) {
@@ -202,6 +205,8 @@ const parse = function (src, options = {}) {
202
205
 
203
206
  /* @type {import('./main').set} */
204
207
  const set = async function (key, value, options = {}) {
208
+ options = normalizeDotenvConfigQuiet(options)
209
+
205
210
  // encrypt
206
211
  let encrypt = true
207
212
  if (options.plain) {