@dotenvx/dotenvx 1.67.0 → 1.68.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 +7 -1
- package/package.json +1 -1
- package/src/lib/main.js +8 -0
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.
|
|
5
|
+
[Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.68.0...main)
|
|
6
|
+
|
|
7
|
+
## [1.68.0](https://github.com/dotenvx/dotenvx/compare/v1.67.0...v1.68.0) (2026-05-24)
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
* Support `ignore` option on `parse` ([#820](https://github.com/dotenvx/dotenvx/pull/820))
|
|
6
12
|
|
|
7
13
|
## [1.67.0](https://github.com/dotenvx/dotenvx/compare/v1.66.0...v1.67.0) (2026-05-21)
|
|
8
14
|
|
package/package.json
CHANGED
package/src/lib/main.js
CHANGED
|
@@ -144,10 +144,18 @@ const parse = function (src, options = {}) {
|
|
|
144
144
|
// overload
|
|
145
145
|
const overload = options.overload || options.override
|
|
146
146
|
|
|
147
|
+
// ignore
|
|
148
|
+
const ignore = options.ignore || []
|
|
149
|
+
|
|
147
150
|
const { parsed, errors } = new Parse(src, privateKey, processEnv, overload).run()
|
|
148
151
|
|
|
149
152
|
// display any errors
|
|
150
153
|
for (const error of errors) {
|
|
154
|
+
if (ignore.includes(error.code)) {
|
|
155
|
+
logger.verbose(`ignored: ${error.message}`)
|
|
156
|
+
continue // ignore error
|
|
157
|
+
}
|
|
158
|
+
|
|
151
159
|
logger.error(error.messageWithHelp)
|
|
152
160
|
}
|
|
153
161
|
|