From 0afff32741247bc4c6709a30fc83787f58ec02b7 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Tue, 25 Apr 2023 20:54:41 +0800 Subject: [PATCH 1/3] Disable Vite optimizer for sync and config loading (#6902) --- .changeset/shiny-roses-tap.md | 5 +++++ packages/astro/src/core/config/vite-load.ts | 2 +- packages/astro/src/core/sync/index.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/shiny-roses-tap.md diff --git a/.changeset/shiny-roses-tap.md b/.changeset/shiny-roses-tap.md new file mode 100644 index 000000000..2f537c400 --- /dev/null +++ b/.changeset/shiny-roses-tap.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Disable Vite optimizer for sync and config loading. Improve first page load time for warm server startup. diff --git a/packages/astro/src/core/config/vite-load.ts b/packages/astro/src/core/config/vite-load.ts index 1a620ab90..a0d4ee913 100644 --- a/packages/astro/src/core/config/vite-load.ts +++ b/packages/astro/src/core/config/vite-load.ts @@ -11,7 +11,7 @@ export interface ViteLoader { async function createViteLoader(root: string, fs: typeof fsType): Promise { const viteServer = await vite.createServer({ server: { middlewareMode: true, hmr: false }, - optimizeDeps: { entries: [] }, + optimizeDeps: { disabled: true }, clearScreen: false, appType: 'custom', ssr: { diff --git a/packages/astro/src/core/sync/index.ts b/packages/astro/src/core/sync/index.ts index ba55a2200..0017225d0 100644 --- a/packages/astro/src/core/sync/index.ts +++ b/packages/astro/src/core/sync/index.ts @@ -66,7 +66,7 @@ export async function sync( await createVite( { server: { middlewareMode: true, hmr: false }, - optimizeDeps: { entries: [] }, + optimizeDeps: { disabled: true }, ssr: { external: [] }, logLevel: 'silent', }, From edabf01b44d8c99da160973cd0f779e0a0b93cd7 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Tue, 25 Apr 2023 22:04:45 +0800 Subject: [PATCH 2/3] 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 000000000..caf259795 --- /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 d0e07af52..323cd655d 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 0a417ec79..1e3d66f6f 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 5f93da06c..ffd301fef 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 96a1f94c5..6f3cad30d 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 31f2fd7e2..076d23312 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 4aed92b65..de08f16b4 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 199703d3e..1173b533e 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 15588deac..0117f9269 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 891c4bc4b..af0247a02 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 From c6f12645868d0f79b04ed511d83b68f4179d96f6 Mon Sep 17 00:00:00 2001 From: "Houston (Bot)" <108291165+astrobot-houston@users.noreply.github.com> Date: Tue, 25 Apr 2023 07:48:36 -0700 Subject: [PATCH 3/3] [ci] release (#6863) Co-authored-by: github-actions[bot] --- .changeset/few-cats-beam.md | 5 -- .changeset/hungry-houses-arrive.md | 5 -- .changeset/hungry-lizards-float.md | 5 -- .changeset/large-pens-rhyme.md | 5 -- .changeset/purple-jars-pay.md | 5 -- .changeset/shiny-roses-tap.md | 5 -- examples/basics/package.json | 2 +- examples/blog/package.json | 2 +- examples/component/package.json | 2 +- examples/deno/package.json | 2 +- examples/docs/package.json | 2 +- examples/framework-alpine/package.json | 2 +- examples/framework-lit/package.json | 2 +- examples/framework-multiple/package.json | 2 +- examples/framework-preact/package.json | 2 +- examples/framework-react/package.json | 2 +- examples/framework-solid/package.json | 2 +- examples/framework-svelte/package.json | 2 +- examples/framework-vue/package.json | 2 +- examples/hackernews/package.json | 2 +- examples/integration/package.json | 2 +- examples/minimal/package.json | 2 +- examples/non-html-pages/package.json | 2 +- examples/portfolio/package.json | 2 +- examples/ssr/package.json | 2 +- examples/with-markdoc/package.json | 2 +- examples/with-markdown-plugins/package.json | 2 +- examples/with-markdown-shiki/package.json | 2 +- examples/with-mdx/package.json | 2 +- examples/with-nanostores/package.json | 2 +- examples/with-tailwindcss/package.json | 2 +- examples/with-vite-plugin-pwa/package.json | 2 +- examples/with-vitest/package.json | 2 +- packages/astro/CHANGELOG.md | 14 +++++ packages/astro/package.json | 2 +- packages/integrations/cloudflare/package.json | 2 +- packages/integrations/deno/package.json | 2 +- packages/integrations/image/package.json | 2 +- packages/integrations/markdoc/package.json | 2 +- packages/integrations/netlify/package.json | 2 +- packages/integrations/node/package.json | 2 +- packages/integrations/svelte/package.json | 2 +- packages/integrations/tailwind/package.json | 2 +- packages/integrations/vercel/CHANGELOG.md | 9 ++++ packages/integrations/vercel/package.json | 4 +- packages/integrations/vue/package.json | 2 +- pnpm-lock.yaml | 54 +++++++++---------- 47 files changed, 89 insertions(+), 96 deletions(-) delete mode 100644 .changeset/few-cats-beam.md delete mode 100644 .changeset/hungry-houses-arrive.md delete mode 100644 .changeset/hungry-lizards-float.md delete mode 100644 .changeset/large-pens-rhyme.md delete mode 100644 .changeset/purple-jars-pay.md delete mode 100644 .changeset/shiny-roses-tap.md diff --git a/.changeset/few-cats-beam.md b/.changeset/few-cats-beam.md deleted file mode 100644 index 7585992ce..000000000 --- a/.changeset/few-cats-beam.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix Astro.params does not contain path parameter from URL with non-English characters. diff --git a/.changeset/hungry-houses-arrive.md b/.changeset/hungry-houses-arrive.md deleted file mode 100644 index f04d78b78..000000000 --- a/.changeset/hungry-houses-arrive.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix hoisted scripts path for linked package Astro components diff --git a/.changeset/hungry-lizards-float.md b/.changeset/hungry-lizards-float.md deleted file mode 100644 index fdac0767b..000000000 --- a/.changeset/hungry-lizards-float.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/vercel': patch ---- - -Refactor static adapter to use updateConfig method diff --git a/.changeset/large-pens-rhyme.md b/.changeset/large-pens-rhyme.md deleted file mode 100644 index b5faeee49..000000000 --- a/.changeset/large-pens-rhyme.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes bug with assetsPrefix not being prepended to component-url and renderer-url in astro islands when using SSR mode. diff --git a/.changeset/purple-jars-pay.md b/.changeset/purple-jars-pay.md deleted file mode 100644 index caf259795..000000000 --- a/.changeset/purple-jars-pay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Upgrade to Vite 4.3 diff --git a/.changeset/shiny-roses-tap.md b/.changeset/shiny-roses-tap.md deleted file mode 100644 index 2f537c400..000000000 --- a/.changeset/shiny-roses-tap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Disable Vite optimizer for sync and config loading. Improve first page load time for warm server startup. diff --git a/examples/basics/package.json b/examples/basics/package.json index 4ccc9e555..1175cddc6 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0" + "astro": "^2.3.1" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 47d0ec77d..6779fedb0 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0", + "astro": "^2.3.1", "@astrojs/mdx": "^0.19.0", "@astrojs/rss": "^2.3.2", "@astrojs/sitemap": "^1.2.2" diff --git a/examples/component/package.json b/examples/component/package.json index 98c766d33..dadd7aad8 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^2.3.0" + "astro": "^2.3.1" }, "peerDependencies": { "astro": "^2.0.0-beta.0" diff --git a/examples/deno/package.json b/examples/deno/package.json index 5be7a5cdf..b1145ccf9 100644 --- a/examples/deno/package.json +++ b/examples/deno/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0" + "astro": "^2.3.1" }, "devDependencies": { "@astrojs/deno": "^4.1.0" diff --git a/examples/docs/package.json b/examples/docs/package.json index 1982d4385..322ebcfdc 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0", + "astro": "^2.3.1", "preact": "^10.7.3", "react": "^18.1.0", "react-dom": "^18.1.0", diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index acc28a6d2..71611c20e 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0", + "astro": "^2.3.1", "alpinejs": "^3.10.2", "@astrojs/alpinejs": "^0.2.1", "@types/alpinejs": "^3.7.0" diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 9ca9645fe..c9a17a1b4 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0", + "astro": "^2.3.1", "lit": "^2.7.0", "@astrojs/lit": "^2.0.1", "@webcomponents/template-shadowroot": "^0.2.1" diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index bddb6b6b7..6234d8fa8 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0", + "astro": "^2.3.1", "preact": "^10.7.3", "react": "^18.1.0", "react-dom": "^18.1.0", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 4865d0cc0..ef1cff5d5 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0", + "astro": "^2.3.1", "preact": "^10.7.3", "@astrojs/preact": "^2.1.0", "@preact/signals": "^1.1.0" diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index dec3d9702..9c0cb398e 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0", + "astro": "^2.3.1", "react": "^18.1.0", "react-dom": "^18.1.0", "@astrojs/react": "^2.1.1", diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index d587e338d..483c63505 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0", + "astro": "^2.3.1", "solid-js": "^1.4.3", "@astrojs/solid-js": "^2.1.0" } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 480f7e0cf..1cc147373 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -13,6 +13,6 @@ "dependencies": { "svelte": "^3.48.0", "@astrojs/svelte": "^2.1.0", - "astro": "^2.3.0" + "astro": "^2.3.1" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 908821b66..a4acb66da 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0", + "astro": "^2.3.1", "vue": "^3.2.37", "@astrojs/vue": "^2.1.1" } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index 29029c237..aab194b2f 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/node": "^5.1.1", - "astro": "^2.3.0" + "astro": "^2.3.1" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index ca4ef9870..278fd20e3 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^2.3.0" + "astro": "^2.3.1" }, "peerDependencies": { "astro": "^2.0.0-beta.0" diff --git a/examples/minimal/package.json b/examples/minimal/package.json index d634fc429..25b682c1e 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0" + "astro": "^2.3.1" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 2190ab9b6..ec2ebbc77 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0" + "astro": "^2.3.1" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 1c96a6598..a07d6ede6 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0" + "astro": "^2.3.1" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index d13985803..e8c1d454a 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -12,7 +12,7 @@ "server": "node dist/server/entry.mjs" }, "dependencies": { - "astro": "^2.3.0", + "astro": "^2.3.1", "svelte": "^3.48.0", "@astrojs/svelte": "^2.1.0", "@astrojs/node": "^5.1.1", diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index 100893ff1..6419ddf05 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/markdoc": "^0.1.1", - "astro": "^2.3.0", + "astro": "^2.3.1", "kleur": "^4.1.5" } } diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 5b206608a..ab3886734 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0", + "astro": "^2.3.1", "@astrojs/markdown-remark": "^2.1.4", "hast-util-select": "5.0.1", "rehype-autolink-headings": "^6.1.1", diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json index 943239010..fd33e66e1 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0" + "astro": "^2.3.1" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index 4634cf4bc..fb9923165 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0", + "astro": "^2.3.1", "preact": "^10.6.5", "@astrojs/preact": "^2.1.0", "@astrojs/mdx": "^0.19.0" diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index b26b9b55e..c39f43911 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0", + "astro": "^2.3.1", "preact": "^10.7.3", "@astrojs/preact": "^2.1.0", "nanostores": "^0.5.12", diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index ae45429c9..c74de2ecf 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -14,7 +14,7 @@ "@astrojs/mdx": "^0.19.0", "@astrojs/tailwind": "^3.1.1", "@types/canvas-confetti": "^1.4.3", - "astro": "^2.3.0", + "astro": "^2.3.1", "autoprefixer": "^10.4.7", "canvas-confetti": "^1.5.1", "postcss": "^8.4.14", diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json index 56077bbe8..9a8d5d6c4 100644 --- a/examples/with-vite-plugin-pwa/package.json +++ b/examples/with-vite-plugin-pwa/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.3.0", + "astro": "^2.3.1", "vite-plugin-pwa": "0.11.11", "workbox-window": "^6.5.3" } diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index 04ffdd099..221b49bcf 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^2.3.0", + "astro": "^2.3.1", "vitest": "^0.20.3" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 216ec9daa..41dadd1a4 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,19 @@ # astro +## 2.3.1 + +### Patch Changes + +- [#6859](https://github.com/withastro/astro/pull/6859) [`4c7ba4da0`](https://github.com/withastro/astro/commit/4c7ba4da084d7508df91cbac03c2b099a8301e2b) Thanks [@andremralves](https://github.com/andremralves)! - Fix Astro.params does not contain path parameter from URL with non-English characters. + +- [#6872](https://github.com/withastro/astro/pull/6872) [`b6154d2d5`](https://github.com/withastro/astro/commit/b6154d2d57bfb77767a3ccf9e91c1ae4051c81bc) Thanks [@bluwy](https://github.com/bluwy)! - Fix hoisted scripts path for linked package Astro components + +- [#6862](https://github.com/withastro/astro/pull/6862) [`1f2699461`](https://github.com/withastro/astro/commit/1f2699461d4cdcc8007ae47ebff74ace62eee058) Thanks [@jcdogo](https://github.com/jcdogo)! - Fixes bug with assetsPrefix not being prepended to component-url and renderer-url in astro islands when using SSR mode. + +- [#6877](https://github.com/withastro/astro/pull/6877) [`edabf01b4`](https://github.com/withastro/astro/commit/edabf01b44d8c99da160973cd0f779e0a0b93cd7) Thanks [@bluwy](https://github.com/bluwy)! - Upgrade to Vite 4.3 + +- [#6902](https://github.com/withastro/astro/pull/6902) [`0afff3274`](https://github.com/withastro/astro/commit/0afff32741247bc4c6709a30fc83787f58ec02b7) Thanks [@bluwy](https://github.com/bluwy)! - Disable Vite optimizer for sync and config loading. Improve first page load time for warm server startup. + ## 2.3.0 ### Minor Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index 323cd655d..5786da29c 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "2.3.0", + "version": "2.3.1", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro", diff --git a/packages/integrations/cloudflare/package.json b/packages/integrations/cloudflare/package.json index a96df103b..e926f313f 100644 --- a/packages/integrations/cloudflare/package.json +++ b/packages/integrations/cloudflare/package.json @@ -38,7 +38,7 @@ "tiny-glob": "^0.2.9" }, "peerDependencies": { - "astro": "workspace:^2.3.0" + "astro": "workspace:^2.3.1" }, "devDependencies": { "astro": "workspace:*", diff --git a/packages/integrations/deno/package.json b/packages/integrations/deno/package.json index 770e32230..88556ce40 100644 --- a/packages/integrations/deno/package.json +++ b/packages/integrations/deno/package.json @@ -33,7 +33,7 @@ "esbuild": "^0.15.18" }, "peerDependencies": { - "astro": "workspace:^2.3.0" + "astro": "workspace:^2.3.1" }, "devDependencies": { "astro": "workspace:*", diff --git a/packages/integrations/image/package.json b/packages/integrations/image/package.json index 1e3d66f6f..a2fd5e70e 100644 --- a/packages/integrations/image/package.json +++ b/packages/integrations/image/package.json @@ -63,7 +63,7 @@ "vite": "^4.3.1" }, "peerDependencies": { - "astro": "workspace:^2.3.0", + "astro": "workspace:^2.3.1", "sharp": ">=0.31.0" }, "peerDependenciesMeta": { diff --git a/packages/integrations/markdoc/package.json b/packages/integrations/markdoc/package.json index ffd301fef..252063442 100644 --- a/packages/integrations/markdoc/package.json +++ b/packages/integrations/markdoc/package.json @@ -41,7 +41,7 @@ "zod": "^3.17.3" }, "peerDependencies": { - "astro": "workspace:^2.3.0" + "astro": "workspace:^2.3.1" }, "devDependencies": { "@types/chai": "^4.3.1", diff --git a/packages/integrations/netlify/package.json b/packages/integrations/netlify/package.json index 076d23312..5a96bb615 100644 --- a/packages/integrations/netlify/package.json +++ b/packages/integrations/netlify/package.json @@ -39,7 +39,7 @@ "esbuild": "^0.15.18" }, "peerDependencies": { - "astro": "workspace:^2.3.0" + "astro": "workspace:^2.3.1" }, "devDependencies": { "@netlify/edge-functions": "^2.0.0", diff --git a/packages/integrations/node/package.json b/packages/integrations/node/package.json index 161da3e3e..341e2f4dc 100644 --- a/packages/integrations/node/package.json +++ b/packages/integrations/node/package.json @@ -35,7 +35,7 @@ "server-destroy": "^1.0.1" }, "peerDependencies": { - "astro": "workspace:^2.3.0" + "astro": "workspace:^2.3.1" }, "devDependencies": { "@types/send": "^0.17.1", diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json index de08f16b4..21723cae1 100644 --- a/packages/integrations/svelte/package.json +++ b/packages/integrations/svelte/package.json @@ -43,7 +43,7 @@ "vite": "^4.3.1" }, "peerDependencies": { - "astro": "workspace:^2.3.0", + "astro": "workspace:^2.3.1", "svelte": "^3.54.0" }, "engines": { diff --git a/packages/integrations/tailwind/package.json b/packages/integrations/tailwind/package.json index 1173b533e..afc3bc0a5 100644 --- a/packages/integrations/tailwind/package.json +++ b/packages/integrations/tailwind/package.json @@ -40,7 +40,7 @@ "vite": "^4.3.1" }, "peerDependencies": { - "astro": "workspace:^2.3.0", + "astro": "workspace:^2.3.1", "tailwindcss": "^3.0.24" }, "pnpm": { diff --git a/packages/integrations/vercel/CHANGELOG.md b/packages/integrations/vercel/CHANGELOG.md index 24845ea8e..2b5768994 100644 --- a/packages/integrations/vercel/CHANGELOG.md +++ b/packages/integrations/vercel/CHANGELOG.md @@ -1,5 +1,14 @@ # @astrojs/vercel +## 3.2.5 + +### Patch Changes + +- [#6874](https://github.com/withastro/astro/pull/6874) [`43230b2ca`](https://github.com/withastro/astro/commit/43230b2cac6c28e0412b77d32f06db416fca8560) Thanks [@nblackburn](https://github.com/nblackburn)! - Refactor static adapter to use updateConfig method + +- Updated dependencies [[`4c7ba4da0`](https://github.com/withastro/astro/commit/4c7ba4da084d7508df91cbac03c2b099a8301e2b), [`b6154d2d5`](https://github.com/withastro/astro/commit/b6154d2d57bfb77767a3ccf9e91c1ae4051c81bc), [`1f2699461`](https://github.com/withastro/astro/commit/1f2699461d4cdcc8007ae47ebff74ace62eee058), [`edabf01b4`](https://github.com/withastro/astro/commit/edabf01b44d8c99da160973cd0f779e0a0b93cd7), [`0afff3274`](https://github.com/withastro/astro/commit/0afff32741247bc4c6709a30fc83787f58ec02b7)]: + - astro@2.3.1 + ## 3.2.4 ### Patch Changes diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json index 834cfd574..e46621d1f 100644 --- a/packages/integrations/vercel/package.json +++ b/packages/integrations/vercel/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/vercel", "description": "Deploy your site to Vercel", - "version": "3.2.4", + "version": "3.2.5", "type": "module", "author": "withastro", "license": "MIT", @@ -53,7 +53,7 @@ "web-vitals": "^3.1.1" }, "peerDependencies": { - "astro": "workspace:^2.3.0" + "astro": "workspace:^2.3.1" }, "devDependencies": { "@types/set-cookie-parser": "^2.4.2", diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index 0117f9269..dd4c60e9f 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -50,7 +50,7 @@ "vue": "^3.2.37" }, "peerDependencies": { - "astro": "workspace:^2.3.0", + "astro": "workspace:^2.3.1", "vue": "^3.2.30" }, "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index af0247a02..c9e5a6ed2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -140,7 +140,7 @@ importers: examples/basics: dependencies: astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro examples/blog: @@ -155,19 +155,19 @@ importers: specifier: ^1.2.2 version: link:../../packages/integrations/sitemap astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro examples/component: devDependencies: astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro examples/deno: dependencies: astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro devDependencies: '@astrojs/deno': @@ -201,7 +201,7 @@ importers: specifier: ^18.0.0 version: 18.0.6 astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro preact: specifier: ^10.7.3 @@ -229,7 +229,7 @@ importers: specifier: ^3.10.2 version: 3.10.2 astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro examples/framework-lit: @@ -241,7 +241,7 @@ importers: specifier: ^0.2.1 version: 0.2.1 astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro lit: specifier: ^2.7.0 @@ -265,7 +265,7 @@ importers: specifier: ^2.1.1 version: link:../../packages/integrations/vue astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro preact: specifier: ^10.7.3 @@ -295,7 +295,7 @@ importers: specifier: ^1.1.0 version: 1.1.1(preact@10.11.0) astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro preact: specifier: ^10.7.3 @@ -313,7 +313,7 @@ importers: specifier: ^18.0.5 version: 18.0.6 astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro react: specifier: ^18.1.0 @@ -328,7 +328,7 @@ importers: specifier: ^2.1.0 version: link:../../packages/integrations/solid astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro solid-js: specifier: ^1.4.3 @@ -340,7 +340,7 @@ importers: specifier: ^2.1.0 version: link:../../packages/integrations/svelte astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro svelte: specifier: ^3.48.0 @@ -352,7 +352,7 @@ importers: specifier: ^2.1.1 version: link:../../packages/integrations/vue astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro vue: specifier: ^3.2.37 @@ -364,31 +364,31 @@ importers: specifier: ^5.1.1 version: link:../../packages/integrations/node astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro examples/integration: devDependencies: astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro examples/minimal: dependencies: astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro examples/non-html-pages: dependencies: astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro examples/portfolio: dependencies: astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro examples/ssr: @@ -400,7 +400,7 @@ importers: specifier: ^2.1.0 version: link:../../packages/integrations/svelte astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro concurrently: specifier: ^7.2.1 @@ -421,7 +421,7 @@ importers: specifier: ^0.1.1 version: link:../../packages/integrations/markdoc astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro kleur: specifier: ^4.1.5 @@ -433,7 +433,7 @@ importers: specifier: ^2.1.4 version: link:../../packages/markdown/remark astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro hast-util-select: specifier: 5.0.1 @@ -454,7 +454,7 @@ importers: examples/with-markdown-shiki: dependencies: astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro examples/with-mdx: @@ -466,7 +466,7 @@ importers: specifier: ^2.1.0 version: link:../../packages/integrations/preact astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro preact: specifier: ^10.6.5 @@ -481,7 +481,7 @@ importers: specifier: ^0.1.3 version: 0.1.3(nanostores@0.5.12)(preact@10.11.0) astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro nanostores: specifier: ^0.5.12 @@ -502,7 +502,7 @@ importers: specifier: ^1.4.3 version: 1.4.3 astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro autoprefixer: specifier: ^10.4.7 @@ -520,7 +520,7 @@ importers: examples/with-vite-plugin-pwa: dependencies: astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro vite-plugin-pwa: specifier: 0.11.11 @@ -532,7 +532,7 @@ importers: examples/with-vitest: dependencies: astro: - specifier: ^2.3.0 + specifier: ^2.3.1 version: link:../../packages/astro vitest: specifier: ^0.20.3