Skip to content

Commit

Permalink
breaking: upgrade to Vite 5 (#11122)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Dec 1, 2023
1 parent 98e4b8f commit 10d5f96
Show file tree
Hide file tree
Showing 47 changed files with 992 additions and 420 deletions.
5 changes: 5 additions & 0 deletions .changeset/grumpy-sheep-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': major
---

breaking: require Vite 5.0.3+
5 changes: 5 additions & 0 deletions .changeset/itchy-bags-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': major
---

breaking: require Vite 5
5 changes: 5 additions & 0 deletions .changeset/nervous-cups-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-node': minor
---

chore: upgrade rollup
8 changes: 8 additions & 0 deletions .changeset/silent-donuts-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@sveltejs/adapter-cloudflare-workers': minor
'@sveltejs/adapter-cloudflare': minor
'@sveltejs/adapter-netlify': minor
'@sveltejs/adapter-vercel': minor
---

chore: upgrade esbuild
5 changes: 5 additions & 0 deletions .changeset/unlucky-crabs-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/enhanced-img': patch
---

chore: upgrade vite-imagetools
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@sveltejs/eslint-config": "^6.0.4",
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
Expand All @@ -33,7 +30,6 @@
"eslint-plugin-unicorn": "^49.0.0",
"playwright": "1.30.0",
"prettier": "^3.1.0",
"rollup": "^3.29.4",
"svelte": "^4.2.7",
"typescript": "^4.9.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-cloudflare-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"@cloudflare/workers-types": "^4.20230404.0",
"@iarna/toml": "^2.2.5",
"esbuild": "^0.18.11"
"esbuild": "^0.19.3"
},
"devDependencies": {
"@cloudflare/kv-asset-handler": "^0.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"dependencies": {
"@cloudflare/workers-types": "^4.20230404.0",
"esbuild": "^0.18.11",
"esbuild": "^0.19.3",
"worktop": "0.8.0-next.15"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions packages/adapter-netlify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@
},
"dependencies": {
"@iarna/toml": "^2.2.5",
"esbuild": "^0.18.11",
"esbuild": "^0.19.3",
"set-cookie-parser": "^2.6.0"
},
"devDependencies": {
"@netlify/functions": "^2.0.1",
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@sveltejs/kit": "workspace:^",
"@types/node": "^16.18.6",
"@types/set-cookie-parser": "^2.4.2",
"rollup": "^3.29.4",
"rollup": "^4.2.0",
"typescript": "^4.9.4",
"vitest": "^0.34.5"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/adapter-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
"vitest": "^0.34.5"
},
"dependencies": {
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"rollup": "^3.7.0"
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"rollup": "^4.2.0"
},
"peerDependencies": {
"@sveltejs/kit": "^1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"sirv": "^2.0.3",
"svelte": "^4.2.7",
"typescript": "^4.9.4",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"peerDependencies": {
"@sveltejs/kit": "^1.5.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-static/test/apps/prerendered/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@sveltejs/kit": "workspace:^",
"sirv-cli": "^2.0.2",
"svelte": "^4.2.7",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module"
}
2 changes: 1 addition & 1 deletion packages/adapter-static/test/apps/spa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@sveltejs/kit": "workspace:^",
"sirv-cli": "^2.0.2",
"svelte": "^4.2.7",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module"
}
2 changes: 1 addition & 1 deletion packages/adapter-vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"dependencies": {
"@vercel/nft": "^0.24.0",
"esbuild": "^0.18.11"
"esbuild": "^0.19.3"
},
"devDependencies": {
"@sveltejs/kit": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-svelte/templates/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@sveltejs/kit": "workspace:*",
"svelte": "^4.2.7",
"typescript": "^5.0.0",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module",
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.27.4",
"svelte": "^4.2.7",
"vite": "^4.4.2"
"vite": "^5.0.3"
},
"type": "module"
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.27.4",
"svelte": "^4.2.7",
"vite": "^4.4.2"
"vite": "^5.0.3"
},
"type": "module"
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"svelte": "^4.2.7",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^4.4.2"
"vite": "^5.0.3"
},
"svelte": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/enhanced-img/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
"dependencies": {
"magic-string": "^0.30.0",
"svelte-parse-markup": "^0.1.1",
"vite-imagetools": "^6.2.4"
"vite-imagetools": "^6.2.5"
},
"devDependencies": {
"@types/estree": "^1.0.2",
"@types/node": "^16.18.6",
"estree-walker": "^3.0.3",
"svelte": "^4.2.7",
"typescript": "^4.9.4",
"vite": "^4.4.2",
"vite": "^5.0.4",
"vitest": "^0.34.0"
}
}
2 changes: 1 addition & 1 deletion packages/enhanced-img/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function enhancedImages() {
function image_plugin(imagetools_plugin) {
/**
* @type {{
* plugin_context: import('rollup').PluginContext
* plugin_context: import('vite').Rollup.PluginContext
* imagetools_plugin: import('vite').Plugin
* }}
*/
Expand Down
4 changes: 2 additions & 2 deletions packages/enhanced-img/src/preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const OPTIMIZABLE = /^[^?]+\.(avif|heif|gif|jpeg|jpg|png|tiff|webp)(\?.*)?$/;

/**
* @param {{
* plugin_context: import('rollup').PluginContext
* plugin_context: import('vite').Rollup.PluginContext
* imagetools_plugin: import('vite').Plugin
* }} opts
* @returns {import('svelte/types/compiler/preprocess').PreprocessorGroup}
Expand Down Expand Up @@ -144,7 +144,7 @@ function is_quote(content, index) {

/**
* @param {{
* plugin_context: import('rollup').PluginContext
* plugin_context: import('vite').Rollup.PluginContext
* imagetools_plugin: import('vite').Plugin
* }} opts
* @param {string} url
Expand Down
8 changes: 4 additions & 4 deletions packages/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"homepage": "https://kit.svelte.dev",
"type": "module",
"dependencies": {
"@sveltejs/vite-plugin-svelte": "^2.5.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/cookie": "^0.5.1",
"cookie": "^0.5.0",
"devalue": "^4.3.1",
Expand All @@ -32,16 +32,16 @@
"@types/sade": "^1.7.4",
"@types/set-cookie-parser": "^2.4.2",
"dts-buddy": "^0.2.4",
"rollup": "^3.29.4",
"rollup": "^4.2.0",
"svelte": "^4.2.7",
"svelte-preprocess": "^5.1.1",
"typescript": "^4.9.4",
"vite": "^4.4.9",
"vite": "^5.0.4",
"vitest": "^0.34.5"
},
"peerDependencies": {
"svelte": "^3.54.0 || ^4.0.0-next.0 || ^5.0.0-next.0",
"vite": "^4.0.0"
"vite": "^5.0.3"
},
"bin": {
"svelte-kit": "svelte-kit.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/test/apps/amp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"svelte": "^4.2.7",
"svelte-check": "^3.4.4",
"typescript": "^4.9.4",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module"
}
2 changes: 1 addition & 1 deletion packages/kit/test/apps/basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"svelte": "^4.2.7",
"svelte-check": "^3.4.4",
"typescript": "^4.9.4",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module"
}
2 changes: 1 addition & 1 deletion packages/kit/test/apps/dev-only/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"svelte": "^4.2.7",
"svelte-check": "^3.4.4",
"typescript": "^4.9.4",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module"
}
2 changes: 1 addition & 1 deletion packages/kit/test/apps/embed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"svelte": "^4.2.7",
"svelte-check": "^3.4.4",
"typescript": "^4.9.4",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module"
}
2 changes: 1 addition & 1 deletion packages/kit/test/apps/options-2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"svelte": "^4.2.7",
"svelte-check": "^3.4.4",
"typescript": "^4.9.4",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module"
}
2 changes: 1 addition & 1 deletion packages/kit/test/apps/options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"svelte": "^4.2.7",
"svelte-check": "^3.4.4",
"typescript": "^4.9.4",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module"
}
2 changes: 1 addition & 1 deletion packages/kit/test/apps/writes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"svelte": "^4.2.7",
"svelte-check": "^3.4.4",
"typescript": "^4.9.4",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module"
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"svelte": "^4.2.7",
"svelte-check": "^3.4.4",
"typescript": "^4.9.4",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module"
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"svelte": "^4.2.7",
"svelte-check": "^3.4.4",
"typescript": "^4.9.4",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module"
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"svelte": "^4.2.7",
"svelte-check": "^3.4.4",
"typescript": "^4.9.4",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module"
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"svelte": "^4.2.7",
"svelte-check": "^3.4.4",
"typescript": "^4.9.4",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module"
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"svelte": "^4.2.7",
"svelte-check": "^3.4.4",
"typescript": "^4.9.4",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module"
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"svelte": "^4.2.7",
"svelte-check": "^3.4.4",
"typescript": "^4.9.4",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module"
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"svelte": "^4.2.7",
"svelte-check": "^3.4.4",
"typescript": "^4.9.4",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module"
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"svelte": "^4.2.7",
"svelte-check": "^3.4.4",
"typescript": "^4.9.4",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module"
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"svelte": "^4.2.7",
"svelte-check": "^3.4.4",
"typescript": "^4.9.4",
"vite": "^4.4.9"
"vite": "^5.0.4"
},
"type": "module"
}
Loading

0 comments on commit 10d5f96

Please sign in to comment.