@dotenvx/dotenvx 2.20.0 → 2.20.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.20.0...main)
5
+ [Unreleased](https://github.com/dotenvx/dotenvx/compare/v2.20.1...main)
6
+
7
+ ## [2.20.1](https://github.com/dotenvx/dotenvx/compare/v2.20.0...v2.20.1) (2026-08-07)
8
+
9
+ ### Changed
10
+
11
+ * Handle accent marks for `ext precommit` ([#936](https://github.com/dotenvx/dotenvx/pull/936))
6
12
 
7
13
  ## [2.20.0](https://github.com/dotenvx/dotenvx/compare/v2.19.1...v2.20.0) (2026-08-07)
8
14
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.20.0",
2
+ "version": "2.20.1",
3
3
  "name": "@dotenvx/dotenvx",
4
4
  "description": "a secure dotenv–from the creator of `dotenv`",
5
5
  "author": "@motdotla",
@@ -123,8 +123,11 @@ class Precommit {
123
123
  return true
124
124
  }
125
125
 
126
- const output = childProcess.execSync('git diff HEAD --name-only').toString()
127
- const files = output.split('\n')
126
+ // -z separates paths with NUL and prints them verbatim. without it git c-quotes
127
+ // any path holding non-ascii or special characters ("caf\303\251/.env"), which
128
+ // never matches filePath - the file would be skipped and its secrets committed.
129
+ const output = childProcess.execSync('git diff HEAD --name-only -z').toString()
130
+ const files = output.split('\0')
128
131
  return files.includes(filePath)
129
132
  } catch (error) {
130
133
  // consider file to be committed if there is an error (not using git)