@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 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.26.2...main)
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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.26.2",
2
+ "version": "1.28.0",
3
3
  "name": "@dotenvx/dotenvx",
4
4
  "description": "a better dotenv–from the creator of `dotenv`",
5
5
  "author": "@motdotla",
@@ -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
@@ -132,7 +132,7 @@ class Encrypt {
132
132
  ].join('\n')
133
133
  const appendPrivateKey = [
134
134
  `# ${filename}`,
135
- `${privateKeyName}="${privateKey}"`,
135
+ `${privateKeyName}=${privateKey}`,
136
136
  ''
137
137
  ].join('\n')
138
138
 
@@ -137,7 +137,7 @@ class Sets {
137
137
  ].join('\n')
138
138
  const appendPrivateKey = [
139
139
  `# ${filename}`,
140
- `${privateKeyName}="${privateKey}"`,
140
+ `${privateKeyName}=${privateKey}`,
141
141
  ''
142
142
  ].join('\n')
143
143