create-volt 0.45.0 → 0.45.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
|
@@ -4,6 +4,13 @@ All notable changes to `create-volt` are documented here. The format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/), and this project adheres to
|
|
5
5
|
[Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [0.45.1] - 2026-06-29
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- **.env inline comments.** `KEY=value # note` now parses to `value` (trailing
|
|
11
|
+
comment stripped); quoted values stay literal. Previously the comment became
|
|
12
|
+
part of the value.
|
|
13
|
+
|
|
7
14
|
## [0.45.0] - 2026-06-29
|
|
8
15
|
|
|
9
16
|
### Added
|
|
@@ -593,6 +600,7 @@ All notable changes to `create-volt` are documented here. The format follows
|
|
|
593
600
|
watching and full-page hot reload. Supports `--skip-install` and `--force`,
|
|
594
601
|
and auto-detects npm / pnpm / yarn / bun for the install step.
|
|
595
602
|
|
|
603
|
+
[0.45.1]: https://github.com/MIR-2025/volt/releases/tag/v0.45.1
|
|
596
604
|
[0.45.0]: https://github.com/MIR-2025/volt/releases/tag/v0.45.0
|
|
597
605
|
[0.44.0]: https://github.com/MIR-2025/volt/releases/tag/v0.44.0
|
|
598
606
|
[0.43.0]: https://github.com/MIR-2025/volt/releases/tag/v0.43.0
|
package/package.json
CHANGED
package/templates/blog/server.js
CHANGED
|
@@ -51,7 +51,10 @@ function readEnvFile() {
|
|
|
51
51
|
if (!fs.existsSync(ENV_PATH)) return out;
|
|
52
52
|
for (const line of fs.readFileSync(ENV_PATH, "utf8").split("\n")) {
|
|
53
53
|
const m = line.match(/^\s*([A-Za-z0-9_]+)\s*=\s*(.*?)\s*$/);
|
|
54
|
-
if (m)
|
|
54
|
+
if (m) {
|
|
55
|
+
const v = m[2];
|
|
56
|
+
out[m[1]] = (v.startsWith('"') && v.endsWith('"')) || (v.startsWith("'") && v.endsWith("'")) ? v.slice(1, -1) : v.replace(/(?:^|\s+)#.*$/, "");
|
|
57
|
+
}
|
|
55
58
|
}
|
|
56
59
|
return out;
|
|
57
60
|
}
|
|
@@ -51,7 +51,10 @@ function readEnvFile() {
|
|
|
51
51
|
if (!fs.existsSync(ENV_PATH)) return out;
|
|
52
52
|
for (const line of fs.readFileSync(ENV_PATH, "utf8").split("\n")) {
|
|
53
53
|
const m = line.match(/^\s*([A-Za-z0-9_]+)\s*=\s*(.*?)\s*$/);
|
|
54
|
-
if (m)
|
|
54
|
+
if (m) {
|
|
55
|
+
const v = m[2];
|
|
56
|
+
out[m[1]] = (v.startsWith('"') && v.endsWith('"')) || (v.startsWith("'") && v.endsWith("'")) ? v.slice(1, -1) : v.replace(/(?:^|\s+)#.*$/, "");
|
|
57
|
+
}
|
|
55
58
|
}
|
|
56
59
|
return out;
|
|
57
60
|
}
|
package/templates/docs/server.js
CHANGED
|
@@ -51,7 +51,10 @@ function readEnvFile() {
|
|
|
51
51
|
if (!fs.existsSync(ENV_PATH)) return out;
|
|
52
52
|
for (const line of fs.readFileSync(ENV_PATH, "utf8").split("\n")) {
|
|
53
53
|
const m = line.match(/^\s*([A-Za-z0-9_]+)\s*=\s*(.*?)\s*$/);
|
|
54
|
-
if (m)
|
|
54
|
+
if (m) {
|
|
55
|
+
const v = m[2];
|
|
56
|
+
out[m[1]] = (v.startsWith('"') && v.endsWith('"')) || (v.startsWith("'") && v.endsWith("'")) ? v.slice(1, -1) : v.replace(/(?:^|\s+)#.*$/, "");
|
|
57
|
+
}
|
|
55
58
|
}
|
|
56
59
|
return out;
|
|
57
60
|
}
|
|
@@ -52,7 +52,10 @@ function readEnvFile() {
|
|
|
52
52
|
if (!fs.existsSync(ENV_PATH)) return out;
|
|
53
53
|
for (const line of fs.readFileSync(ENV_PATH, "utf8").split("\n")) {
|
|
54
54
|
const m = line.match(/^\s*([A-Za-z0-9_]+)\s*=\s*(.*?)\s*$/);
|
|
55
|
-
if (m)
|
|
55
|
+
if (m) {
|
|
56
|
+
const v = m[2];
|
|
57
|
+
out[m[1]] = (v.startsWith('"') && v.endsWith('"')) || (v.startsWith("'") && v.endsWith("'")) ? v.slice(1, -1) : v.replace(/(?:^|\s+)#.*$/, "");
|
|
58
|
+
}
|
|
56
59
|
}
|
|
57
60
|
return out;
|
|
58
61
|
}
|