@dotenvx/dotenvx 1.48.4 → 1.49.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 CHANGED
@@ -4,7 +4,13 @@ All notable changes to this project will be documented in this file. See [standa
4
4
 
5
5
  [Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.48.4...main)
6
6
 
7
- ## [1.48.4](https://github.com/motdotla/dotenv/compare/v1.48.3...v1.48.4) (2025-07-29)
7
+ ## [1.49.0](https://github.com/dotenvx/dotenvx/compare/v1.48.4...v1.49.0) (2025-08-18)
8
+
9
+ ### Added
10
+
11
+ * For precommit and prebuild, ignore `.env.x` file like we do with `.env.vault` file. ([#666](https://github.com/dotenvx/dotenvx/pull/666))
12
+
13
+ ## [1.48.4](https://github.com/dotenvx/dotenvx/compare/v1.48.3...v1.48.4) (2025-07-29)
8
14
 
9
15
  ### Removed
10
16
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.48.4",
2
+ "version": "1.49.0",
3
3
  "name": "@dotenvx/dotenvx",
4
4
  "description": "a secure dotenv–from the creator of `dotenv`",
5
5
  "author": "@motdotla",
@@ -56,7 +56,7 @@
56
56
  "devDependencies": {
57
57
  "@yao-pkg/pkg": "^5.14.2",
58
58
  "capture-console": "^1.0.2",
59
- "esbuild": "^0.24.0",
59
+ "esbuild": "^0.25.8",
60
60
  "proxyquire": "^2.1.3",
61
61
  "sinon": "^14.0.1",
62
62
  "standard": "^17.1.0",
@@ -40,7 +40,7 @@ function dotenvParse (src, skipExpandForDoubleQuotes = false, skipConvertingWind
40
40
  //
41
41
  // # .env
42
42
  // HELLO="World"
43
- // HELLO="enrypted:1234"
43
+ // HELLO="encrypted:1234"
44
44
  obj[key] = obj[key] || []
45
45
  obj[key].push(value)
46
46
  } else {
@@ -10,7 +10,7 @@ function isFullyEncrypted (src) {
10
10
  //
11
11
  // # .env
12
12
  // HELLO="World"
13
- // HELLO="enrypted:1234"
13
+ // HELLO="encrypted:1234"
14
14
  //
15
15
  // key => [value1, ...]
16
16
  for (const value of values) {
@@ -41,13 +41,13 @@ class Prebuild {
41
41
 
42
42
  // check if that file is being ignored
43
43
  if (ig.ignores(file)) {
44
- if (file === '.env.example' || file === '.env.vault') {
44
+ if (file === '.env.example' || file === '.env.vault' || file === '.env.x') {
45
45
  const warning = new Error(`[dotenvx@${packageJson.version}][prebuild] ${file} (currently ignored but should not be)`)
46
46
  warning.help = `[dotenvx@${packageJson.version}][prebuild] ⮕ run [dotenvx ext gitignore --pattern !${file}]`
47
47
  warnings.push(warning)
48
48
  }
49
49
  } else {
50
- if (file !== '.env.example' && file !== '.env.vault') {
50
+ if (file !== '.env.example' && file !== '.env.vault' && file !== '.env.x') {
51
51
  const src = fsx.readFileX(file)
52
52
  const encrypted = isFullyEncrypted(src)
53
53
 
@@ -57,13 +57,13 @@ class Precommit {
57
57
  if (this._isFileToBeCommitted(file)) {
58
58
  // check if that file is being ignored
59
59
  if (ig.ignores(file)) {
60
- if (file === '.env.example' || file === '.env.vault') {
60
+ if (file === '.env.example' || file === '.env.vault' || file === '.env.x') {
61
61
  const warning = new Error(`[dotenvx@${packageJson.version}][precommit] ${file} (currently ignored but should not be)`)
62
62
  warning.help = `[dotenvx@${packageJson.version}][precommit] ⮕ run [dotenvx ext gitignore --pattern !${file}]`
63
63
  warnings.push(warning)
64
64
  }
65
65
  } else {
66
- if (file !== '.env.example' && file !== '.env.vault') {
66
+ if (file !== '.env.example' && file !== '.env.vault' && file !== '.env.x') {
67
67
  const src = fsx.readFileX(file)
68
68
  const encrypted = isFullyEncrypted(src)
69
69