diff --git a/.changeset/breezy-books-notice.md b/.changeset/breezy-books-notice.md new file mode 100644 index 000000000..586b405ea --- /dev/null +++ b/.changeset/breezy-books-notice.md @@ -0,0 +1,6 @@ +--- +'@astrojs/telemetry': patch +'astro': patch +--- + +Update telemetry notice diff --git a/.changeset/grumpy-years-remember.md b/.changeset/grumpy-years-remember.md new file mode 100644 index 000000000..1e1906cd9 --- /dev/null +++ b/.changeset/grumpy-years-remember.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix, lazily initialize ResponseWithEncoding diff --git a/.changeset/pre.json b/.changeset/pre.json index 37137cbc3..dc80fe9f3 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -34,6 +34,7 @@ "angry-dogs-shake", "big-tips-whisper", "brave-cheetahs-float", + "chatty-ways-hunt", "chilled-ducks-grin", "clever-bats-breathe", "cool-feet-rest", @@ -52,6 +53,7 @@ "giant-plants-sip", "gorgeous-kiwis-stare", "grumpy-pens-melt", + "grumpy-years-remember", "happy-penguins-hug", "heavy-walls-arrive", "honest-houses-deny", @@ -67,6 +69,7 @@ "neat-owls-run", "neat-suns-search", "odd-books-live", + "olive-moles-tan", "perfect-horses-tell", "plenty-keys-add", "popular-carrots-sneeze", @@ -75,7 +78,9 @@ "quick-boats-bow", "rude-ears-play", "serious-waves-fry", + "shiny-dryers-swim", "silent-bikes-crash", + "silly-dolphins-try", "six-grapes-look", "slimy-carrots-sell", "small-nails-try", @@ -83,6 +88,7 @@ "spicy-eels-rush", "spicy-icons-live", "spicy-stingrays-cheer", + "strange-peas-agree", "strong-papayas-chew", "tame-files-glow", "tasty-camels-speak", diff --git a/.changeset/shiny-dryers-swim.md b/.changeset/shiny-dryers-swim.md new file mode 100644 index 000000000..f943b2180 --- /dev/null +++ b/.changeset/shiny-dryers-swim.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Paginate will now return exact types instead of a naive Record diff --git a/.changeset/silly-dolphins-try.md b/.changeset/silly-dolphins-try.md new file mode 100644 index 000000000..dcd15130d --- /dev/null +++ b/.changeset/silly-dolphins-try.md @@ -0,0 +1,9 @@ +--- +'@astrojs/vercel': major +--- + +Vercel adapter now defaults to `functionPerRoute`. + +With this change, `@astrojs/vercel/serverless` now splits each route into its own function. By doing this, the size of each function is reduced and startup time is faster. + +You can disable this option, which will cause the code to be bundled into a single function, by setting `functionPerRoute` to `false`. diff --git a/.changeset/strong-needles-accept.md b/.changeset/strong-needles-accept.md new file mode 100644 index 000000000..4546d988b --- /dev/null +++ b/.changeset/strong-needles-accept.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Allow fallback animations on html element diff --git a/examples/basics/package.json b/examples/basics/package.json index 36920d101..a84e518a4 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^3.0.0-rc.7" + "astro": "^3.0.0-rc.8" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 59f4f82e1..ed47d2987 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -14,6 +14,6 @@ "@astrojs/mdx": "^1.0.0-rc.2", "@astrojs/rss": "^3.0.0-rc.2", "@astrojs/sitemap": "^3.0.0-rc.1", - "astro": "^3.0.0-rc.7" + "astro": "^3.0.0-rc.8" } } diff --git a/examples/component/package.json b/examples/component/package.json index f9604d4e0..04153af27 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^3.0.0-rc.7" + "astro": "^3.0.0-rc.8" }, "peerDependencies": { "astro": "^2.0.0-beta.0" diff --git a/examples/deno/package.json b/examples/deno/package.json index d50591c03..985033960 100644 --- a/examples/deno/package.json +++ b/examples/deno/package.json @@ -10,9 +10,9 @@ "astro": "astro" }, "dependencies": { - "astro": "^3.0.0-rc.7" + "astro": "^3.0.0-rc.8" }, "devDependencies": { - "@astrojs/deno": "^5.0.0-rc.1" + "@astrojs/deno": "^5.0.0-rc.2" } } diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index a921c79ba..af6cf3a9a 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -14,6 +14,6 @@ "@astrojs/alpinejs": "^0.3.0-rc.1", "@types/alpinejs": "^3.7.2", "alpinejs": "^3.12.3", - "astro": "^3.0.0-rc.7" + "astro": "^3.0.0-rc.8" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index b74dae082..bad47f0b2 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/lit": "^3.0.0-rc.1", "@webcomponents/template-shadowroot": "^0.2.1", - "astro": "^3.0.0-rc.7", + "astro": "^3.0.0-rc.8", "lit": "^2.8.0" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index d58381e1a..33a5c46b6 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -16,7 +16,7 @@ "@astrojs/solid-js": "^3.0.0-rc.3", "@astrojs/svelte": "^4.0.0-rc.2", "@astrojs/vue": "^3.0.0-rc.1", - "astro": "^3.0.0-rc.7", + "astro": "^3.0.0-rc.8", "preact": "^10.17.1", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 77f0dfd71..c219bf7cc 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/preact": "^3.0.0-rc.2", "@preact/signals": "^1.2.1", - "astro": "^3.0.0-rc.7", + "astro": "^3.0.0-rc.8", "preact": "^10.17.1" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 696c851e9..fb5994100 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -14,7 +14,7 @@ "@astrojs/react": "^3.0.0-rc.5", "@types/react": "^18.2.21", "@types/react-dom": "^18.2.7", - "astro": "^3.0.0-rc.7", + "astro": "^3.0.0-rc.8", "react": "^18.2.0", "react-dom": "^18.2.0" } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index a191231ad..ca9f62ee1 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/solid-js": "^3.0.0-rc.3", - "astro": "^3.0.0-rc.7", + "astro": "^3.0.0-rc.8", "solid-js": "^1.7.11" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 11a2daf11..d5fbfeaf0 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/svelte": "^4.0.0-rc.2", - "astro": "^3.0.0-rc.7", + "astro": "^3.0.0-rc.8", "svelte": "^4.2.0" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index cc036142a..f9c898a0c 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/vue": "^3.0.0-rc.1", - "astro": "^3.0.0-rc.7", + "astro": "^3.0.0-rc.8", "vue": "^3.3.4" } } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index a13a3a0ce..ff243bc21 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/node": "^6.0.0-rc.1", - "astro": "^3.0.0-rc.7" + "astro": "^3.0.0-rc.8" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index ca3c0b70b..ede5da738 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^3.0.0-rc.7" + "astro": "^3.0.0-rc.8" }, "peerDependencies": { "astro": "^2.0.0-beta.0" diff --git a/examples/middleware/package.json b/examples/middleware/package.json index e9ec9b10a..40fd9b7d0 100644 --- a/examples/middleware/package.json +++ b/examples/middleware/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "@astrojs/node": "^6.0.0-rc.1", - "astro": "^3.0.0-rc.7", + "astro": "^3.0.0-rc.8", "html-minifier": "^4.0.0" } } diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 40483a12e..9847530df 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^3.0.0-rc.7" + "astro": "^3.0.0-rc.8" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index dd5c3b4e9..60c8161f5 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^3.0.0-rc.7" + "astro": "^3.0.0-rc.8" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index c587676b9..fe4e920e6 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^3.0.0-rc.7" + "astro": "^3.0.0-rc.8" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 57963494e..f1323487f 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -14,7 +14,7 @@ "dependencies": { "@astrojs/node": "^6.0.0-rc.1", "@astrojs/svelte": "^4.0.0-rc.2", - "astro": "^3.0.0-rc.7", + "astro": "^3.0.0-rc.8", "svelte": "^4.2.0" } } diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index 6e64d357d..ec2f05f19 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/markdoc": "^0.5.0-rc.1", - "astro": "^3.0.0-rc.7" + "astro": "^3.0.0-rc.8" } } diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 118d5b9c4..9b5755a76 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/markdown-remark": "^3.0.0-rc.1", - "astro": "^3.0.0-rc.7", + "astro": "^3.0.0-rc.8", "hast-util-select": "^5.0.5", "rehype-autolink-headings": "^6.1.1", "rehype-slug": "^5.1.0", diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json index f9985d921..0b8a2fdd9 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^3.0.0-rc.7" + "astro": "^3.0.0-rc.8" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index 34c4a1468..1bd17a990 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/mdx": "^1.0.0-rc.2", "@astrojs/preact": "^3.0.0-rc.2", - "astro": "^3.0.0-rc.7", + "astro": "^3.0.0-rc.8", "preact": "^10.17.1" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index cc2e091f4..bb834f862 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/preact": "^3.0.0-rc.2", "@nanostores/preact": "^0.5.0", - "astro": "^3.0.0-rc.7", + "astro": "^3.0.0-rc.8", "nanostores": "^0.9.3", "preact": "^10.17.1" } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index dacee74f5..7060689ec 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -14,7 +14,7 @@ "@astrojs/mdx": "^1.0.0-rc.2", "@astrojs/tailwind": "^5.0.0-rc.1", "@types/canvas-confetti": "^1.6.0", - "astro": "^3.0.0-rc.7", + "astro": "^3.0.0-rc.8", "autoprefixer": "^10.4.15", "canvas-confetti": "^1.6.0", "postcss": "^8.4.28", diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json index 10dbf74a3..d35f6d0ea 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": "^3.0.0-rc.7", + "astro": "^3.0.0-rc.8", "vite-plugin-pwa": "0.16.4", "workbox-window": "^7.0.0" } diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index 22e991a19..e9bdc37fa 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^3.0.0-rc.7", + "astro": "^3.0.0-rc.8", "vitest": "^0.34.2" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 50ab4c1f2..31fc6ba53 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,17 @@ # astro +## 3.0.0-rc.8 + +### Patch Changes + +- [#8251](https://github.com/withastro/astro/pull/8251) [`46c4c0e05`](https://github.com/withastro/astro/commit/46c4c0e053f830585b9ef229ce1c259df00a80f8) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Adds a link to the error reference in the CLI when an error occurs + +- [#8253](https://github.com/withastro/astro/pull/8253) [`1048aca55`](https://github.com/withastro/astro/commit/1048aca550769415e528016e42b358ffbfd44b61) Thanks [@matthewp](https://github.com/matthewp)! - Fix, lazily initialize ResponseWithEncoding + +- [#8229](https://github.com/withastro/astro/pull/8229) [`ffc9e2d3d`](https://github.com/withastro/astro/commit/ffc9e2d3de46049bf3d82140ef018f524fb03187) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Paginate will now return exact types instead of a naive Record + +- [#8237](https://github.com/withastro/astro/pull/8237) [`3674584e0`](https://github.com/withastro/astro/commit/3674584e02b161a698b429ceb66723918fdc56ac) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Fix `astro check` not finding the `@astrojs/check` package + ## 3.0.0-rc.7 ### Patch Changes diff --git a/packages/astro/client.d.ts b/packages/astro/client.d.ts index e6389d415..9d064c0b1 100644 --- a/packages/astro/client.d.ts +++ b/packages/astro/client.d.ts @@ -57,7 +57,7 @@ declare module 'astro:assets' { }; type WithRequired = T & { [P in K]-?: T[P] }; - type Simplify = { [KeyType in keyof T]: T[KeyType] }; + type Simplify = { [KeyType in keyof T]: T[KeyType] } & {}; type ImgAttributes = WithRequired< Omit, 'src' | 'width' | 'height'>, 'alt' diff --git a/packages/astro/components/ViewTransitions.astro b/packages/astro/components/ViewTransitions.astro index 7fa336768..33741d535 100644 --- a/packages/astro/components/ViewTransitions.astro +++ b/packages/astro/components/ViewTransitions.astro @@ -220,23 +220,15 @@ const { fallback = 'animate' } = Astro.props as Props; links.length && (await Promise.all(links)); if (fallback === 'animate') { - let isAnimating = false; - addEventListener('animationstart', () => (isAnimating = true), { once: true }); - // Trigger the animations document.documentElement.dataset.astroTransitionFallback = 'old'; + const finished = Promise.all(document.getAnimations().map(a => a.finished)); const fallbackSwap = () => { - removeEventListener('animationend', fallbackSwap); - clearTimeout(timeout); swap(); document.documentElement.dataset.astroTransitionFallback = 'new'; }; - // If there are any animations, want for the animationend event. - addEventListener('animationend', fallbackSwap, { once: true }); - // If there are no animations, go ahead and swap on next tick - // This is necessary because we do not know if there are animations. - // The setTimeout is a fallback in case there are none. - let timeout = setTimeout(() => !isAnimating && fallbackSwap()); + await finished; + fallbackSwap(); } else { swap(); } diff --git a/packages/astro/e2e/fixtures/view-transitions/src/components/Video.astro b/packages/astro/e2e/fixtures/view-transitions/src/components/Video.astro index 7235266bc..0a3a22913 100644 --- a/packages/astro/e2e/fixtures/view-transitions/src/components/Video.astro +++ b/packages/astro/e2e/fixtures/view-transitions/src/components/Video.astro @@ -1,3 +1,3 @@ -