@dotenvx/dotenvx 1.32.0 → 1.32.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.32.0...main)
5
+ [Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.32.1...main)
6
+
7
+ ## [1.32.1](https://github.com/dotenvx/dotenvx/compare/v1.32.0...v1.32.1)
8
+
9
+ ### Changed
10
+
11
+ * remove duplicated help messages ([#504](https://github.com/dotenvx/dotenvx/pull/504))
6
12
 
7
13
  ## [1.32.0](https://github.com/dotenvx/dotenvx/compare/v1.31.3...v1.32.0)
8
14
 
package/README.md CHANGED
@@ -80,7 +80,7 @@ tar -xzf dotenvx.tar.gz
80
80
  </details>
81
81
 
82
82
 
83
- <details><summary>or with windows 🪟</summary><br>
83
+ <details><summary>or windows 🪟</summary><br>
84
84
 
85
85
  ```sh
86
86
  winget install dotenvx
@@ -427,7 +427,7 @@ More examples
427
427
  > start
428
428
  > ./node_modules/.bin/dotenvx run -- node index.js
429
429
 
430
- [dotenvx][info] loading env (1) from .env
430
+ [dotenvx@1.X.X] injecting env (1) from .env.production
431
431
  Hello World
432
432
  ```
433
433
 
@@ -504,7 +504,7 @@ $ echo "HELLO=production" > .env.production
504
504
  $ echo "console.log('Hello ' + process.env.HELLO)" > index.js
505
505
 
506
506
  $ dotenvx run -f .env.production -- node index.js
507
- [dotenvx][info] loading env (1) from .env.production
507
+ [dotenvx@1.X.X] injecting env (1) from .env.production
508
508
  Hello production
509
509
  > ^^
510
510
  ```
@@ -519,7 +519,7 @@ More examples
519
519
  $ echo "HELLO=World" > .env
520
520
 
521
521
  $ dotenvx run -f .env.local -f .env -- node index.js
522
- [dotenvx][info] loading env (1) from .env.local,.env
522
+ [dotenvx@1.X.X] injecting env (1) from .env.local,.env
523
523
  Hello local
524
524
  ```
525
525
 
@@ -533,7 +533,7 @@ More examples
533
533
  $ echo "HELLO=World" > .env
534
534
 
535
535
  $ dotenvx run -f .env.local -f .env --overload -- node index.js
536
- [dotenvx][info] loading env (1) from .env.local,.env
536
+ [dotenvx@1.X.X] injecting env (1) from .env.local,.env
537
537
  Hello World
538
538
  ```
539
539
 
@@ -545,7 +545,7 @@ More examples
545
545
  $ dotenvx run -f .env.production --verbose -- node index.js
546
546
  [dotenvx][verbose] injecting env from /path/to/.env.production
547
547
  [dotenvx][verbose] HELLO set
548
- [dotenvx][info] loading env (1) from .env.production
548
+ [dotenvx@1.X.X] injecting env (1) from .env.production
549
549
  Hello production
550
550
  ```
551
551
 
@@ -564,7 +564,7 @@ More examples
564
564
  [dotenvx][debug] writing env from /path/to/.env.production
565
565
  [dotenvx][verbose] HELLO set
566
566
  [dotenvx][debug] HELLO set to production
567
- [dotenvx][info] loading env (1) from .env.production
567
+ [dotenvx@1.X.X] injecting env (1) from .env.production
568
568
  Hello production
569
569
  ```
570
570
 
@@ -638,7 +638,7 @@ More examples
638
638
  $ echo "console.log('Hello ' + process.env.HELLO)" > index.js
639
639
 
640
640
  $ dotenvx run -- node index.js
641
- [dotenvx] injecting env (2) from .env
641
+ [dotenvx@1.X.X] injecting env (2) from .env
642
642
  Hello World
643
643
  ```
644
644
 
@@ -651,7 +651,7 @@ More examples
651
651
  $ echo "console.log('Hello ' + process.env.HELLO)" > index.js
652
652
 
653
653
  $ DOTENV_PRIVATE_KEY_PRODUCTION="<.env.production private key>" dotenvx run -- node index.js
654
- [dotenvx] injecting env (2) from .env.production
654
+ [dotenvx@1.X.X] injecting env (2) from .env.production
655
655
  Hello Production
656
656
  ```
657
657
 
@@ -666,7 +666,7 @@ More examples
666
666
  $ echo "console.log('Hello ' + process.env.HELLO)" > index.js
667
667
 
668
668
  $ DOTENV_PRIVATE_KEY_CI="<.env.ci private key>" dotenvx run -- node index.js
669
- [dotenvx] injecting env (2) from .env.ci
669
+ [dotenvx@1.X.X] injecting env (2) from .env.ci
670
670
  Hello Ci
671
671
  ```
672
672
 
@@ -681,7 +681,7 @@ More examples
681
681
  $ echo "console.log('Hello ' + process.env.HELLO)" > index.js
682
682
 
683
683
  $ DOTENV_PRIVATE_KEY="<.env private key>" DOTENV_PRIVATE_KEY_PRODUCTION="<.env.production private key>" dotenvx run -- node index.js
684
- [dotenvx] injecting env (3) from .env, .env.production
684
+ [dotenvx@1.X.X] injecting env (3) from .env, .env.production
685
685
  Hello World
686
686
  ```
687
687
 
@@ -698,11 +698,11 @@ More examples
698
698
  $ echo "console.log('Hello ' + process.env.HELLO)" > index.js
699
699
 
700
700
  $ DOTENV_PRIVATE_KEY_CI="<app1/privat ci key>,<app2/private ci key>" dotenvx run -f app1/.env.ci -f app2/.env.ci -- node index.js
701
- [dotenvx] injecting env (2) from app1/.env.ci,app2/.env.ci
701
+ [dotenvx@1.X.X] injecting env (2) from app1/.env.ci,app2/.env.ci
702
702
  Hello app1
703
703
 
704
704
  $ DOTENV_PRIVATE_KEY_CI="<app1/privat ci key>,<app2/private ci key>" dotenvx run -f app1/.env.ci -f app2/.env.ci --overload -- node index.js
705
- [dotenvx] injecting env (2) from app1/.env.ci,app2/.env.ci
705
+ [dotenvx@1.X.X] injecting env (2) from app1/.env.ci,app2/.env.ci
706
706
  Hello app2
707
707
  ```
708
708
 
@@ -749,7 +749,7 @@ More examples
749
749
  ```
750
750
  ```sh
751
751
  $ dotenvx run --debug -- node index.js
752
- [dotenvx] injecting env (2) from .env
752
+ [dotenvx@1.X.X] injecting env (2) from .env
753
753
  DATABASE_URL postgres://username@localhost/my_database
754
754
  ```
755
755
 
@@ -768,7 +768,7 @@ More examples
768
768
  ```
769
769
  ```sh
770
770
  $ dotenvx run --debug -- node index.js
771
- [dotenvx] injecting env (1) from .env
771
+ [dotenvx@1.X.X] injecting env (1) from .env
772
772
  DATABASE_URL postgres://yourusername@localhost/my_database
773
773
  ```
774
774
 
@@ -793,7 +793,7 @@ More examples
793
793
  $ echo "console.log('Hello ' + process.env.HELLO)" > index.js
794
794
 
795
795
  $ dotenvx run -f .env.local -f .env -- node index.js
796
- [dotenvx] injecting env (1) from .env.local, .env
796
+ [dotenvx@1.X.X] injecting env (1) from .env.local, .env
797
797
  Hello local
798
798
  ```
799
799
 
@@ -807,7 +807,7 @@ More examples
807
807
  $ echo "console.log('Hello ' + process.env.HELLO)" > index.js
808
808
 
809
809
  $ dotenvx run --env HELLO=String -f .env -- node index.js
810
- [dotenvx] injecting env (1) from .env, and --env flag
810
+ [dotenvx@1.X.X] injecting env (1) from .env, and --env flag
811
811
  Hello String
812
812
  ```
813
813
 
@@ -822,7 +822,7 @@ More examples
822
822
  $ echo "console.log('Hello ' + process.env.HELLO)" > index.js
823
823
 
824
824
  $ dotenvx run -f .env.local -f .env --overload -- node index.js
825
- [dotenvx] injecting env (1) from .env.local, .env
825
+ [dotenvx@1.X.X] injecting env (1) from .env.local, .env
826
826
  Hello World
827
827
  ```
828
828
 
@@ -838,7 +838,7 @@ More examples
838
838
 
839
839
  # check your .env.keys files for your privateKey
840
840
  $ DOTENV_PRIVATE_KEY="122...0b8" dotenvx run -- node index.js
841
- [dotenvx] injecting env (2) from .env
841
+ [dotenvx@1.X.X] injecting env (2) from .env
842
842
  Hello encrypted
843
843
  ```
844
844
 
@@ -854,7 +854,7 @@ More examples
854
854
 
855
855
  # check .env.keys for your privateKey
856
856
  $ DOTENV_PRIVATE_KEY_PRODUCTION="122...0b8" dotenvx run -- node index.js
857
- [dotenvx] injecting env (2) from .env.production
857
+ [dotenvx@1.X.X] injecting env (2) from .env.production
858
858
  Hello production encrypted
859
859
  ```
860
860
 
@@ -872,7 +872,7 @@ More examples
872
872
 
873
873
  # check .env.keys for your privateKey
874
874
  $ DOTENV_PRIVATE_KEY_CI="122...0b8" dotenvx run -- node index.js
875
- [dotenvx] injecting env (2) from .env.ci
875
+ [dotenvx@1.X.X] injecting env (2) from .env.ci
876
876
  Hello ci encrypted
877
877
  ```
878
878
 
@@ -892,11 +892,11 @@ More examples
892
892
 
893
893
  # check .env.keys for your privateKeys
894
894
  $ DOTENV_PRIVATE_KEY="122...0b8" DOTENV_PRIVATE_KEY_PRODUCTION="122...0b8" dotenvx run -- node index.js
895
- [dotenvx] injecting env (3) from .env, .env.production
895
+ [dotenvx@1.X.X] injecting env (3) from .env, .env.production
896
896
  Hello encrypted
897
897
 
898
898
  $ DOTENV_PRIVATE_KEY_PRODUCTION="122...0b8" DOTENV_PRIVATE_KEY="122...0b8" dotenvx run -- node index.js
899
- [dotenvx] injecting env (3) from .env.production, .env
899
+ [dotenvx@1.X.X] injecting env (3) from .env.production, .env
900
900
  Hello production encrypted
901
901
  ```
902
902
 
@@ -914,7 +914,7 @@ More examples
914
914
  $ dotenvx run -f .env.production --verbose -- node index.js
915
915
  loading env from .env.production (/path/to/.env.production)
916
916
  HELLO set
917
- [dotenvx] injecting env (1) from .env.production
917
+ [dotenvx@1.X.X] injecting env (1) from .env.production
918
918
  Hello production
919
919
  ```
920
920
 
@@ -934,7 +934,7 @@ More examples
934
934
  {"HELLO":"production"}
935
935
  HELLO set
936
936
  HELLO set to production
937
- [dotenvx] injecting env (1) from .env.production
937
+ [dotenvx@1.X.X] injecting env (1) from .env.production
938
938
  executing process command [node index.js]
939
939
  expanding process command to [/opt/homebrew/bin/node index.js]
940
940
  Hello production
@@ -1008,7 +1008,7 @@ More examples
1008
1008
  $ echo "console.log('Hello ' + process.env.HELLO)" > index.js
1009
1009
 
1010
1010
  $ dotenvx run --convention=nextjs -- node index.js
1011
- [dotenvx] injecting env (1) from .env.development.local, .env.local, .env.development, .env
1011
+ [dotenvx@1.X.X] injecting env (1) from .env.development.local, .env.local, .env.development, .env
1012
1012
  Hello development local
1013
1013
  ```
1014
1014
 
@@ -1736,7 +1736,7 @@ More examples
1736
1736
  $ echo "console.log('Hello ' + process.env.HELLO)" > index.js
1737
1737
 
1738
1738
  $ dotenvx run -- node index.js
1739
- [dotenvx] injecting env (1) from .env
1739
+ [dotenvx@1.X.X] injecting env (1) from .env
1740
1740
  Hello World
1741
1741
  ```
1742
1742
 
@@ -1905,7 +1905,7 @@ More examples
1905
1905
 
1906
1906
  ```sh
1907
1907
  $ node index.js
1908
- [dotenvx@1.24.5] injecting env (1) from .env
1908
+ [dotenvx@1.X.X] injecting env (1) from .env
1909
1909
  Hello World
1910
1910
  ```
1911
1911
 
@@ -1935,7 +1935,7 @@ More examples
1935
1935
 
1936
1936
  ```sh
1937
1937
  $ node index.js
1938
- [dotenvx@1.24.5] injecting env (1) from .env.local, .env
1938
+ [dotenvx@1.X.X] injecting env (1) from .env.local, .env
1939
1939
  Hello Me
1940
1940
  ```
1941
1941
 
@@ -1963,7 +1963,7 @@ More examples
1963
1963
 
1964
1964
  ```sh
1965
1965
  $ node index.js
1966
- [dotenvx@1.24.5] injecting env (1) from .env.local, .env
1966
+ [dotenvx@1.X.X] injecting env (1) from .env.local, .env
1967
1967
  Hello World
1968
1968
  ```
1969
1969
 
@@ -2008,7 +2008,7 @@ More examples
2008
2008
 
2009
2009
  ```sh
2010
2010
  $ node index.js
2011
- [dotenvx@1.24.5] injecting env (1) from .env.local, .env
2011
+ [dotenvx@1.X.X] injecting env (1) from .env
2012
2012
  Hello World
2013
2013
  ```
2014
2014
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.32.0",
2
+ "version": "1.32.1",
3
3
  "name": "@dotenvx/dotenvx",
4
4
  "description": "a better dotenv–from the creator of `dotenv`",
5
5
  "author": "@motdotla",
@@ -59,7 +59,7 @@ program.command('run')
59
59
  .option('-fk, --env-keys-file <path>', 'path to your .env.keys file (default: same path as your env file)')
60
60
  .option('-fv, --env-vault-file <paths...>', 'path(s) to your .env.vault file(s)', collectEnvs('envVaultFile'), [])
61
61
  .option('-o, --overload', 'override existing env variables')
62
- .option('--strict', 'process.exit(1) on any errors (default: false)', false)
62
+ .option('--strict', 'process.exit(1) on any errors', false)
63
63
  .option('--convention <name>', 'load a .env convention (available conventions: [\'nextjs\'])')
64
64
  .option('--ignore <errorCodes...>', 'error code(s) to ignore (example: --ignore=MISSING_ENV_FILE)')
65
65
  .action(function (...args) {
@@ -78,7 +78,7 @@ program.command('get')
78
78
  .option('-fk, --env-keys-file <path>', 'path to your .env.keys file (default: same path as your env file)')
79
79
  .option('-fv, --env-vault-file <paths...>', 'path(s) to your .env.vault file(s)', collectEnvs('envVaultFile'), [])
80
80
  .option('-o, --overload', 'override existing env variables')
81
- .option('--strict', 'process.exit(1) on any errors (default: false)', false)
81
+ .option('--strict', 'process.exit(1) on any errors', false)
82
82
  .option('--convention <name>', 'load a .env convention (available conventions: [\'nextjs\'])')
83
83
  .option('--ignore <errorCodes...>', 'error code(s) to ignore (example: --ignore=MISSING_ENV_FILE)')
84
84
  .option('-a, --all', 'include all machine envs as well')
@@ -100,7 +100,7 @@ program.command('set')
100
100
  .argument('value', 'value')
101
101
  .option('-f, --env-file <paths...>', 'path(s) to your env file(s)', collectEnvs('envFile'), [])
102
102
  .option('-fk, --env-keys-file <path>', 'path to your .env.keys file (default: same path as your env file)')
103
- .option('-c, --encrypt', 'encrypt value (default: true)', true)
103
+ .option('-c, --encrypt', 'encrypt value', true)
104
104
  .option('-p, --plain', 'store value as plain text', false)
105
105
  .action(function (...args) {
106
106
  this.envs = envs