Skip to content

Commit 4446c3c

Browse files
authored
feat(js_runtime): add multi-source Node version reading (#522)
Read Node.js version from multiple sources with priority: 1. .node-version file (highest) 2. engines.node in package.json 3. devEngines.runtime in package.json (lowest) Key behaviors: - Only write to .node-version when no version source exists - Always fetch latest LTS from network when no version specified - Warn when resolved version conflicts with lower-priority constraints - node-semver handles partial versions natively (20, 20.18, etc.)
1 parent aa6dddb commit 4446c3c

8 files changed

Lines changed: 1055 additions & 721 deletions

File tree

Cargo.lock

Lines changed: 40 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ heck = "0.5.0"
7979
hex = "0.4.3"
8080
httpmock = "0.7"
8181
ignore = "0.4"
82+
indicatif = "0.18"
8283
indexmap = "2.9.0"
8384
indoc = "2.0.5"
8485
infer = "0.19.0"

crates/vite_js_runtime/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ async-trait = { workspace = true }
1212
backon = { workspace = true }
1313
flate2 = { workspace = true }
1414
futures-util = { workspace = true }
15+
indicatif = { workspace = true }
1516
hex = { workspace = true }
1617
node-semver = { workspace = true }
1718
serde = { workspace = true }

0 commit comments

Comments
 (0)