From edabf01b44d8c99da160973cd0f779e0a0b93cd7 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Tue, 25 Apr 2023 22:04:45 +0800 Subject: [PATCH] Upgrade to Vite 4.3 (#6877) --- .changeset/purple-jars-pay.md | 5 ++ packages/astro/package.json | 2 +- packages/integrations/image/package.json | 2 +- packages/integrations/markdoc/package.json | 2 +- packages/integrations/mdx/package.json | 2 +- packages/integrations/netlify/package.json | 2 +- packages/integrations/svelte/package.json | 2 +- packages/integrations/tailwind/package.json | 2 +- packages/integrations/vue/package.json | 2 +- pnpm-lock.yaml | 81 +++++++++++---------- 10 files changed, 57 insertions(+), 45 deletions(-) create mode 100644 .changeset/purple-jars-pay.md diff --git a/.changeset/purple-jars-pay.md b/.changeset/purple-jars-pay.md new file mode 100644 index 000000000000..caf25979554c --- /dev/null +++ b/.changeset/purple-jars-pay.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Upgrade to Vite 4.3 diff --git a/packages/astro/package.json b/packages/astro/package.json index d0e07af52f57..323cd655dd75 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -155,7 +155,7 @@ "typescript": "*", "unist-util-visit": "^4.1.0", "vfile": "^5.3.2", - "vite": "^4.2.1", + "vite": "^4.3.1", "vitefu": "^0.2.4", "yargs-parser": "^21.0.1", "zod": "^3.20.6" diff --git a/packages/integrations/image/package.json b/packages/integrations/image/package.json index 0a417ec79575..1e3d66f6f309 100644 --- a/packages/integrations/image/package.json +++ b/packages/integrations/image/package.json @@ -60,7 +60,7 @@ "mocha": "^9.2.2", "rollup-plugin-copy": "^3.4.0", "sharp": "^0.31.0", - "vite": "^4.2.1" + "vite": "^4.3.1" }, "peerDependencies": { "astro": "workspace:^2.3.0", diff --git a/packages/integrations/markdoc/package.json b/packages/integrations/markdoc/package.json index 5f93da06c41d..ffd301fef0b6 100644 --- a/packages/integrations/markdoc/package.json +++ b/packages/integrations/markdoc/package.json @@ -54,7 +54,7 @@ "linkedom": "^0.14.12", "mocha": "^9.2.2", "rollup": "^3.20.1", - "vite": "^4.0.3" + "vite": "^4.3.1" }, "engines": { "node": ">=16.12.0" diff --git a/packages/integrations/mdx/package.json b/packages/integrations/mdx/package.json index 96a1f94c5c94..6f3cad30de26 100644 --- a/packages/integrations/mdx/package.json +++ b/packages/integrations/mdx/package.json @@ -71,7 +71,7 @@ "remark-rehype": "^10.1.0", "remark-shiki-twoslash": "^3.1.0", "remark-toc": "^8.0.1", - "vite": "^4.2.1" + "vite": "^4.3.1" }, "engines": { "node": ">=16.12.0" diff --git a/packages/integrations/netlify/package.json b/packages/integrations/netlify/package.json index 31f2fd7e2f1d..076d233121a0 100644 --- a/packages/integrations/netlify/package.json +++ b/packages/integrations/netlify/package.json @@ -50,7 +50,7 @@ "chai": "^4.3.6", "cheerio": "^1.0.0-rc.11", "mocha": "^9.2.2", - "vite": "^4.2.1" + "vite": "^4.3.1" }, "astro": { "external": true diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json index 4aed92b65a1f..de08f16b45b3 100644 --- a/packages/integrations/svelte/package.json +++ b/packages/integrations/svelte/package.json @@ -40,7 +40,7 @@ "astro": "workspace:*", "astro-scripts": "workspace:*", "svelte": "^3.54.0", - "vite": "^4.2.1" + "vite": "^4.3.1" }, "peerDependencies": { "astro": "workspace:^2.3.0", diff --git a/packages/integrations/tailwind/package.json b/packages/integrations/tailwind/package.json index 199703d3e855..1173b533ed12 100644 --- a/packages/integrations/tailwind/package.json +++ b/packages/integrations/tailwind/package.json @@ -37,7 +37,7 @@ "astro": "workspace:*", "astro-scripts": "workspace:*", "tailwindcss": "^3.0.24", - "vite": "^4.1.2" + "vite": "^4.3.1" }, "peerDependencies": { "astro": "workspace:^2.3.0", diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index 15588deaca1a..0117f9269021 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -46,7 +46,7 @@ "chai": "^4.3.6", "linkedom": "^0.14.17", "mocha": "^9.2.2", - "vite": "^4.2.1", + "vite": "^4.3.1", "vue": "^3.2.37" }, "peerDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 891c4bc4b1ea..af0247a02a60 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -688,11 +688,11 @@ importers: specifier: ^5.3.2 version: 5.3.2 vite: - specifier: ^4.2.1 - version: 4.2.1(@types/node@18.7.21)(sass@1.52.2) + specifier: ^4.3.1 + version: 4.3.1(@types/node@18.7.21)(sass@1.52.2) vitefu: specifier: ^0.2.4 - version: 0.2.4(vite@4.2.1) + version: 0.2.4(vite@4.3.1) yargs-parser: specifier: ^21.0.1 version: 21.0.1 @@ -3640,8 +3640,8 @@ importers: specifier: ^0.31.0 version: 0.31.3 vite: - specifier: ^4.2.1 - version: 4.2.1(@types/node@18.7.21)(sass@1.52.2) + specifier: ^4.3.1 + version: 4.3.1(@types/node@18.7.21)(sass@1.52.2) packages/integrations/image/test/fixtures/assets-prefix: dependencies: @@ -3867,8 +3867,8 @@ importers: specifier: ^3.20.1 version: 3.20.1 vite: - specifier: ^4.0.3 - version: 4.2.1(@types/node@18.7.21)(sass@1.52.2) + specifier: ^4.3.1 + version: 4.3.1(@types/node@18.7.21)(sass@1.52.2) packages/integrations/markdoc/test/fixtures/content-collections: dependencies: @@ -4058,8 +4058,8 @@ importers: specifier: ^8.0.1 version: 8.0.1 vite: - specifier: ^4.2.1 - version: 4.2.1(@types/node@18.7.21)(sass@1.52.2) + specifier: ^4.3.1 + version: 4.3.1(@types/node@18.7.21)(sass@1.52.2) packages/integrations/mdx/test/fixtures/css-head-mdx: dependencies: @@ -4218,8 +4218,8 @@ importers: specifier: ^9.2.2 version: 9.2.2 vite: - specifier: ^4.2.1 - version: 4.2.1(@types/node@18.7.21)(sass@1.52.2) + specifier: ^4.3.1 + version: 4.3.1(@types/node@18.7.21)(sass@1.52.2) packages/integrations/netlify/test/edge-functions/fixtures/dynimport: dependencies: @@ -4528,7 +4528,7 @@ importers: version: 1.4.2 vitefu: specifier: ^0.2.4 - version: 0.2.4(vite@4.2.1) + version: 0.2.4(vite@4.3.1) devDependencies: astro: specifier: workspace:* @@ -4544,7 +4544,7 @@ importers: dependencies: '@sveltejs/vite-plugin-svelte': specifier: ^2.0.2 - version: 2.0.2(svelte@3.54.0)(vite@4.2.1) + version: 2.0.2(svelte@3.54.0)(vite@4.3.1) svelte2tsx: specifier: ^0.5.11 version: 0.5.11(svelte@3.54.0)(typescript@5.0.2) @@ -4559,8 +4559,8 @@ importers: specifier: ^3.54.0 version: 3.54.0 vite: - specifier: ^4.2.1 - version: 4.2.1(@types/node@18.7.21)(sass@1.52.2) + specifier: ^4.3.1 + version: 4.3.1(@types/node@18.7.21)(sass@1.52.2) packages/integrations/tailwind: dependencies: @@ -4587,8 +4587,8 @@ importers: specifier: ^3.0.24 version: 3.2.4(postcss@8.4.14) vite: - specifier: ^4.1.2 - version: 4.2.1(@types/node@18.7.21)(sass@1.52.2) + specifier: ^4.3.1 + version: 4.3.1(@types/node@18.7.21)(sass@1.52.2) packages/integrations/turbolinks: dependencies: @@ -4662,10 +4662,10 @@ importers: dependencies: '@vitejs/plugin-vue': specifier: ^4.0.0 - version: 4.0.0(vite@4.2.1)(vue@3.2.40) + version: 4.0.0(vite@4.3.1)(vue@3.2.40) '@vitejs/plugin-vue-jsx': specifier: ^3.0.0 - version: 3.0.0(vite@4.2.1)(vue@3.2.40) + version: 3.0.0(vite@4.3.1)(vue@3.2.40) '@vue/babel-plugin-jsx': specifier: ^1.1.1 version: 1.1.1(@babel/core@7.21.4) @@ -4692,8 +4692,8 @@ importers: specifier: ^9.2.2 version: 9.2.2 vite: - specifier: ^4.2.1 - version: 4.2.1(@types/node@18.7.21)(sass@1.52.2) + specifier: ^4.3.1 + version: 4.3.1(@types/node@18.7.21)(sass@1.52.2) vue: specifier: ^3.2.37 version: 3.2.40 @@ -8329,7 +8329,7 @@ packages: string.prototype.matchall: 4.0.8 dev: false - /@sveltejs/vite-plugin-svelte@2.0.2(svelte@3.54.0)(vite@4.2.1): + /@sveltejs/vite-plugin-svelte@2.0.2(svelte@3.54.0)(vite@4.3.1): resolution: {integrity: sha512-xCEan0/NNpQuL0l5aS42FjwQ6wwskdxC3pW1OeFtEKNZwRg7Evro9lac9HesGP6TdFsTv2xMes5ASQVKbCacxg==} engines: {node: ^14.18.0 || >= 16} peerDependencies: @@ -8345,8 +8345,8 @@ packages: magic-string: 0.27.0 svelte: 3.54.0 svelte-hmr: 0.15.1(svelte@3.54.0) - vite: 4.2.1(@types/node@18.7.21)(sass@1.52.2) - vitefu: 0.2.4(vite@4.2.1) + vite: 4.3.1(@types/node@18.7.21)(sass@1.52.2) + vitefu: 0.2.4(vite@4.3.1) transitivePeerDependencies: - supports-color dev: false @@ -9044,7 +9044,7 @@ packages: - supports-color dev: false - /@vitejs/plugin-vue-jsx@3.0.0(vite@4.2.1)(vue@3.2.40): + /@vitejs/plugin-vue-jsx@3.0.0(vite@4.3.1)(vue@3.2.40): resolution: {integrity: sha512-vurkuzgac5SYuxd2HUZqAFAWGTF10diKBwJNbCvnWijNZfXd+7jMtqjPFbGt7idOJUn584fP1Ar9j/GN2jQ3Ew==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -9057,13 +9057,13 @@ packages: '@babel/core': 7.21.4 '@babel/plugin-transform-typescript': 7.21.3(@babel/core@7.21.4) '@vue/babel-plugin-jsx': 1.1.1(@babel/core@7.21.4) - vite: 4.2.1(@types/node@18.7.21)(sass@1.52.2) + vite: 4.3.1(@types/node@18.7.21)(sass@1.52.2) vue: 3.2.40 transitivePeerDependencies: - supports-color dev: false - /@vitejs/plugin-vue@4.0.0(vite@4.2.1)(vue@3.2.40): + /@vitejs/plugin-vue@4.0.0(vite@4.3.1)(vue@3.2.40): resolution: {integrity: sha512-e0X4jErIxAB5oLtDqbHvHpJe/uWNkdpYV83AOG2xo2tEVSzCzewgJMtREZM30wXnM5ls90hxiOtAuVU6H5JgbA==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -9073,7 +9073,7 @@ packages: vite: optional: true dependencies: - vite: 4.2.1(@types/node@18.7.21)(sass@1.52.2) + vite: 4.3.1(@types/node@18.7.21)(sass@1.52.2) vue: 3.2.40 dev: false @@ -15795,6 +15795,14 @@ packages: hasBin: true optionalDependencies: fsevents: 2.3.2 + dev: true + + /rollup@3.20.6: + resolution: {integrity: sha512-2yEB3nQXp/tBQDN0hJScJQheXdvU2wFhh6ld7K/aiZ1vYcak6N/BKjY1QrU6BvO2JWYS8bEs14FRaxXosxy2zw==} + engines: {node: '>=14.18.0', npm: '>=8.0.0'} + hasBin: true + optionalDependencies: + fsevents: 2.3.2 /run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} @@ -17268,8 +17276,8 @@ packages: - supports-color dev: false - /vite@3.2.5(@types/node@18.7.21): - resolution: {integrity: sha512-4mVEpXpSOgrssFZAOmGIr85wPHKvaDAcXqxVxVRZhljkJOMZi1ibLibzjLHzJvcok8BMguLc7g1W6W/GqZbLdQ==} + /vite@3.2.6(@types/node@18.7.21): + resolution: {integrity: sha512-nTXTxYVvaQNLoW5BQ8PNNQ3lPia57gzsQU/Khv+JvzKPku8kNZL6NMUR/qwXhMG6E+g1idqEPanomJ+VZgixEg==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true peerDependencies: @@ -17302,8 +17310,8 @@ packages: fsevents: 2.3.2 dev: false - /vite@4.2.1(@types/node@18.7.21)(sass@1.52.2): - resolution: {integrity: sha512-7MKhqdy0ISo4wnvwtqZkjke6XN4taqQ2TBaTccLIpOKv7Vp2h4Y+NpmWCnGDeSvvn45KxvWgGyb0MkHvY1vgbg==} + /vite@4.3.1(@types/node@18.7.21)(sass@1.52.2): + resolution: {integrity: sha512-EPmfPLAI79Z/RofuMvkIS0Yr091T2ReUoXQqc5ppBX/sjFRhHKiPPF/R46cTdoci/XgeQpB23diiJxq5w30vdg==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true peerDependencies: @@ -17330,13 +17338,12 @@ packages: '@types/node': 18.7.21 esbuild: 0.17.12 postcss: 8.4.21 - resolve: 1.22.2 - rollup: 3.20.1 + rollup: 3.20.6 sass: 1.52.2 optionalDependencies: fsevents: 2.3.2 - /vitefu@0.2.4(vite@4.2.1): + /vitefu@0.2.4(vite@4.3.1): resolution: {integrity: sha512-fanAXjSaf9xXtOOeno8wZXIhgia+CZury481LsDaV++lSvcU2R9Ch2bPh3PYFyoHW+w9LqAeYRISVQjUIew14g==} peerDependencies: vite: ^3.0.0 || ^4.0.0 @@ -17344,7 +17351,7 @@ packages: vite: optional: true dependencies: - vite: 4.2.1(@types/node@18.7.21)(sass@1.52.2) + vite: 4.3.1(@types/node@18.7.21)(sass@1.52.2) dev: false /vitest@0.20.3: @@ -17380,7 +17387,7 @@ packages: local-pkg: 0.4.3 tinypool: 0.2.4 tinyspy: 1.1.1 - vite: 3.2.5(@types/node@18.7.21) + vite: 3.2.6(@types/node@18.7.21) transitivePeerDependencies: - less - sass