@dotenvx/dotenvx 1.26.2 → 1.28.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 +13 -1
- package/package.json +1 -1
- package/src/lib/helpers/parse.js +3 -2
- package/src/lib/services/encrypt.js +1 -1
- package/src/lib/services/sets.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,19 @@
|
|
|
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.28.0...main)
|
|
6
|
+
|
|
7
|
+
## [1.28.0](https://github.com/dotenvx/dotenvx/compare/v1.27.0...v1.28.0)
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
* `.env.keys` file is generated WITHOUT quotes going forward. This is to minimize friction around Docker gotchas to developers - old versions of Docker do not support `--env-file` containing quoted keys/values. ([#480](https://github.com/dotenvx/dotenvx/pull/480)) ([additional note](https://github.com/dotenvx/dotenvx/issues/465#issuecomment-2515279676))
|
|
12
|
+
|
|
13
|
+
## [1.27.0](https://github.com/dotenvx/dotenvx/compare/v1.26.2...v1.27.0)
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
* add support for `\t` expansion when double quoted. (e.g. `TAB="hi\tfriend"` becomes `hi friend`) ([#479](https://github.com/dotenvx/dotenvx/pull/479))
|
|
6
18
|
|
|
7
19
|
## [1.26.2](https://github.com/dotenvx/dotenvx/compare/v1.26.1...v1.26.2)
|
|
8
20
|
|
package/package.json
CHANGED
package/src/lib/helpers/parse.js
CHANGED
|
@@ -121,8 +121,9 @@ class Parse {
|
|
|
121
121
|
|
|
122
122
|
// Expand newlines if double quoted
|
|
123
123
|
if (_quote === '"') {
|
|
124
|
-
v = v.replace(/\\n/g, '\n')
|
|
125
|
-
v = v.replace(/\\r/g, '\r')
|
|
124
|
+
v = v.replace(/\\n/g, '\n') // newline
|
|
125
|
+
v = v.replace(/\\r/g, '\r') // carriage return
|
|
126
|
+
v = v.replace(/\\t/g, '\t') // tabs
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
return v
|