Skip to content

Commit

Permalink
chore: upgrade Vite to v5 and Vitest to v1 (#2341)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwouts committed Jan 3, 2024
1 parent 2bbd7e7 commit 62e47f1
Show file tree
Hide file tree
Showing 48 changed files with 1,922 additions and 1,198 deletions.
2 changes: 1 addition & 1 deletion analyzer/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
"rimraf": "^5.0.5",
"shx": "^0.3.4",
"unbuild": "^2.0.0",
"vitest": "^0.34.6"
"vitest": "^1.1.1"
}
}
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
"fs-extra": "^11.2.0",
"typescript": "^5.3.3",
"unbuild": "^2.0.0",
"vite": "^4.5.1"
"vite": "^5.0.10"
}
}
2 changes: 1 addition & 1 deletion chromeless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
"@types/express": "^4.17.21",
"rimraf": "^5.0.5",
"unbuild": "^2.0.0",
"vite": "^4.5.1"
"vite": "^5.0.10"
}
}
2 changes: 1 addition & 1 deletion config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"build": "tsc && unbuild"
},
"dependencies": {
"vite": "^4.5.1"
"vite": "^5.0.10"
},
"devDependencies": {
"@types/node": "^20.10.6",
Expand Down
4 changes: 2 additions & 2 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.3.3",
"vite": "^4.5.1",
"vite": "^5.0.10",
"zod": "^3.22.4"
},
"devDependencies": {
Expand All @@ -56,6 +56,6 @@
"shx": "^0.3.4",
"unbuild": "^2.0.0",
"vite": "^4.5.1",
"vitest": "^0.34.6"
"vitest": "^1.1.1"
}
}
4 changes: 2 additions & 2 deletions framework-plugins/preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"preact": "^10.19.3",
"rimraf": "^5.0.5",
"unbuild": "^2.0.0",
"vite": "^4.5.1",
"vitest": "^0.34.6"
"vite": "^5.0.10",
"vitest": "^1.1.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"devDependencies": {
"@preact/preset-vite": "^2.5.0",
"typescript": "^4.9.5",
"vite": "^4.3.8"
"vite": "^5.0.10"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "^7.0.17",
"vite": "^4.3.8"
"vite": "^5.0.10"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"react-dom": "^18.2.0",
"storybook": "^7.0.17",
"typescript": "^4.9.5",
"vite": "^4.3.8"
"vite": "^5.0.10"
}
}
2 changes: 1 addition & 1 deletion framework-plugins/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
"pino-pretty": "^10.3.1",
"react": "^18.2.0",
"unbuild": "^2.0.0",
"vite": "^4.5.1"
"vite": "^5.0.10"
}
}
2 changes: 1 addition & 1 deletion framework-plugins/react/tests/apps/vite-mobx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"@types/react-dom": "^18.0.11",
"@vitejs/plugin-react": "^4.0.0",
"typescript": "^5.0.2",
"vite": "^4.3.9"
"vite": "^5.0.10"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"postcss": "^8.4.31",
"tailwindcss": "^3.3.2",
"typescript": "^4.9.5",
"vite": "^4.3.8",
"vite": "^5.0.10",
"vite-plugin-svgr": "^2.4.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"@types/react-dom": "^18.2.4",
"@vitejs/plugin-react-swc": "^3.3.1",
"typescript": "^4.9.5",
"vite": "^4.3.8"
"vite": "^5.0.10"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"@vanilla-extract/css": "^1.11.0",
"@vanilla-extract/vite-plugin": "^3.8.2",
"@vitejs/plugin-react": "^3.1.0",
"vite": "^4.3.8"
"vite": "^5.0.10"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"devDependencies": {
"@vitejs/plugin-react": "^3.1.0",
"vite": "^4.3.8",
"vite": "^5.0.10",
"vite-plugin-svgr": "^2.4.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
},
"devDependencies": {
"@vitejs/plugin-react": "^3.1.0",
"vite": "^4.3.8"
"vite": "^5.0.10"
}
}
4 changes: 2 additions & 2 deletions framework-plugins/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"pino-pretty": "^10.3.1",
"solid-js": "^1.8.7",
"unbuild": "^2.0.0",
"vite": "^4.5.1",
"vitest": "^0.34.6"
"vite": "^5.0.10",
"vitest": "^1.1.1"
}
}
2 changes: 1 addition & 1 deletion framework-plugins/solid/tests/apps/solid-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"license": "MIT",
"devDependencies": {
"vite": "^4.3.8",
"vite": "^5.0.10",
"vite-plugin-solid": "^2.7.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion framework-plugins/solid/tests/apps/solid-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"devDependencies": {
"typescript": "^4.9.5",
"vite": "^4.3.8",
"vite": "^5.0.10",
"vite-plugin-solid": "^2.7.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion framework-plugins/solid/tests/apps/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"solid-js": "^1.7.5"
},
"devDependencies": {
"vite": "^4.3.8",
"vite": "^5.0.10",
"vite-plugin-solid": "^2.7.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"postcss": "^8.4.31",
"solid-start-node": "^0.2.26",
"typescript": "^4.9.5",
"vite": "^3.2.6"
"vite": "^5.0.10"
},
"dependencies": {
"@solidjs/meta": "^0.28.5",
Expand Down
4 changes: 2 additions & 2 deletions framework-plugins/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"fs-extra": "^11.2.0",
"svelte": "^4.2.8",
"typescript": "^5.3.3",
"vite": "^4.5.1"
"vite": "^5.0.10"
},
"devDependencies": {
"@playwright/test": "^1.40.1",
Expand All @@ -46,6 +46,6 @@
"pino": "^8.17.2",
"pino-pretty": "^10.3.1",
"unbuild": "^2.0.0",
"vitest": "^0.34.6"
"vitest": "^1.1.1"
}
}
2 changes: 1 addition & 1 deletion framework-plugins/svelte/tests/apps/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"svelte-preprocess": "^4.10.7",
"tslib": "^2.5.2",
"typescript": "^4.9.5",
"vite": "^4.3.8"
"vite": "^5.0.10"
}
}
2 changes: 1 addition & 1 deletion framework-plugins/svelte/tests/apps/svelte3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"svelte-check": "^2.10.3",
"tslib": "^2.5.2",
"typescript": "^5.0.4",
"vite": "^4.3.8"
"vite": "^5.0.10"
}
}
2 changes: 1 addition & 1 deletion framework-plugins/svelte/tests/apps/svelte4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"svelte-check": "^3.4.6",
"tslib": "^2.6.0",
"typescript": "^5.0.2",
"vite": "^4.4.5"
"vite": "^5.0.10"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"svelte-preprocess": "^4.10.7",
"tslib": "^2.5.2",
"typescript": "^4.9.5",
"vite": "^4.3.8"
"vite": "^5.0.10"
},
"type": "module"
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"svelte-preprocess": "^4.10.7",
"tslib": "^2.5.2",
"typescript": "^4.9.5",
"vite": "^4.3.8"
"vite": "^5.0.10"
},
"type": "module"
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"react-dom": "^18.2.0",
"storybook": "^7.0.17",
"svelte": "^3.59.1",
"vite": "^4.3.8"
"vite": "^5.0.10"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"svelte-check": "^2.10.3",
"tslib": "^2.5.2",
"typescript": "^5.0.4",
"vite": "^4.3.8"
"vite": "^5.0.10"
}
}
4 changes: 2 additions & 2 deletions framework-plugins/vue2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"rimraf": "^5.0.5",
"shx": "^0.3.4",
"unbuild": "^2.0.0",
"vite": "^4.5.1",
"vitest": "^0.34.6"
"vite": "^5.0.10",
"vitest": "^1.1.1"
}
}
4 changes: 2 additions & 2 deletions framework-plugins/vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"rimraf": "^5.0.5",
"shx": "^0.3.4",
"unbuild": "^2.0.0",
"vite": "^4.5.1",
"vitest": "^0.34.6"
"vite": "^5.0.10",
"vitest": "^1.1.1"
}
}
4 changes: 2 additions & 2 deletions framework-plugins/vue3/src/vue-reader.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ export default defineComponent({
})
const pjs_component = {
name: \\"App\\"
name: "App"
} as const;
import type { PropType as PJS_PropType } from \\"@vue/runtime-core\\";
import type { PropType as PJS_PropType } from "@vue/runtime-core";
type PJS_TypeOrUnion<T> = PJS_PropType<T> | ReadonlyArray<PJS_PropType<T>>;
type PJS_OptionalPropType<T> = PJS_TypeOrUnion<T> | {type: PJS_TypeOrUnion<T>; required?: false};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"@storybook/vue3-vite": "^7.0.17",
"@vitejs/plugin-vue": "^4.2.3",
"storybook": "^7.0.17",
"vite": "^4.3.8"
"vite": "^5.0.10"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@vitejs/plugin-vue": "^4.2.3",
"storybook": "^7.0.17",
"typescript": "^4.9.5",
"vite": "^4.3.8",
"vite": "^5.0.10",
"vue-tsc": "^1.6.5"
}
}
2 changes: 1 addition & 1 deletion framework-plugins/vue3/tests/apps/vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
"vite": "^4.3.8",
"vite": "^5.0.10",
"vue-tsc": "^1.6.5"
}
}
2 changes: 1 addition & 1 deletion iframe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"immer": "^10.0.3",
"typescript": "^5.3.3",
"unbuild": "^2.0.0",
"vite": "^4.5.1"
"vite": "^5.0.10"
}
}
Loading

0 comments on commit 62e47f1

Please sign in to comment.