Skip to content

Commit

Permalink
fix: bump import-meta-resolve (#12240)
Browse files Browse the repository at this point in the history
import-meta-resolve 4.0.0 uses the fs.Stats constructor, which is deprecated in Node 22, resulting in cryptic console spam when e.g. running npx svelte-migrate self-closing-tags if a local Svelte installation can't be found. It's fixed in 4.1.0
  • Loading branch information
Rich-Harris authored May 21, 2024
1 parent 460d452 commit 16cd900
Show file tree
Hide file tree
Showing 5 changed files with 390 additions and 32 deletions.
7 changes: 7 additions & 0 deletions .changeset/silent-planes-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@sveltejs/adapter-auto': patch
'svelte-migrate': patch
'@sveltejs/kit': patch
---

fix: bump import-meta-resolve to remove deprecation warnings
2 changes: 1 addition & 1 deletion packages/adapter-auto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"typescript": "^5.3.3"
},
"dependencies": {
"import-meta-resolve": "^4.0.0"
"import-meta-resolve": "^4.1.0"
},
"peerDependencies": {
"@sveltejs/kit": "^2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"cookie": "^0.6.0",
"devalue": "^5.0.0",
"esm-env": "^1.0.0",
"import-meta-resolve": "^4.0.0",
"import-meta-resolve": "^4.1.0",
"kleur": "^4.1.5",
"magic-string": "^0.30.5",
"mrmime": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/migrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"!migrations/**/samples.md"
],
"dependencies": {
"import-meta-resolve": "^4.0.0",
"import-meta-resolve": "^4.1.0",
"kleur": "^4.1.5",
"magic-string": "^0.30.5",
"prompts": "^2.4.2",
Expand Down
Loading

0 comments on commit 16cd900

Please sign in to comment.