Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: withastro/astro
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: astro@4.0.6
Choose a base ref
...
head repository: withastro/astro
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: astro@4.0.7
Choose a head ref

Commits on Dec 18, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1d33bcc View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1e98438 View commit details
  3. Fix Preact Forwarded Ref components not working in astro files when R…

    …eact integration is enabled (#9403)
    
    * Fix Preact Forwarded Ref components not working in astro files when React integration is enabled
    
    * Handle undefined $$typeof
    
    * Add changeset
    
    * Use Symbol.for
    
    * ⚡
    
    * Update .changeset/breezy-hairs-yell.md
    
    ---------
    
    Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
    knpwrs and natemoo-re authored Dec 18, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7eb9fe8 View commit details
  4. [ci] format

    ematipico authored and astrobot-houston committed Dec 18, 2023
    Copy the full SHA
    76b4e55 View commit details
  5. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    047d285 View commit details
  6. fix: update netlify import (#9461)

    * fix: update netlify import
    
    * fix: update one comment
    Skn0tt authored Dec 18, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    429be8c View commit details

Commits on Dec 19, 2023

  1. fix: handle middleware loading error (#9458)

    * fix: handle middleware loading error
    
    * remove the try/catch
    
    * rethrow error
    
    * Update packages/astro/src/core/middleware/loadMiddleware.ts
    
    Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
    ematipico and lilnasy authored Dec 19, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    fa3078c View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6bf470c View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    25e6670 View commit details
  4. fix(redirects): handle non-verbatim targets (#9089)

    * add tests
    
    * implement fix
    
    * add changeset
    
    * `for const in` -> `for const of`
    
    * reskip: external redirects are still not ignored
    lilnasy authored Dec 19, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5ae6578 View commit details
  5. [ci] format

    ematipico authored and astrobot-houston committed Dec 19, 2023
    Copy the full SHA
    c32e607 View commit details
  6. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    354a62c View commit details
  7. Descriptive image error (#9352)

    Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
    Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
    Co-authored-by: Princesseuh <3019731+Princesseuh@users.noreply.github.com>
    4 people authored Dec 19, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f515b14 View commit details
  8. Fix transitions with non-recommended headers (#9464)

    * Reproduce edge case in test
    
    * Fix edge case
    
    * Add changeset
    
    * Update .changeset/khaki-ducks-give.md
    
    Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
    Fryuni and natemoo-re authored Dec 19, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    faf6c7e View commit details
  9. [ci] format

    martrapp authored and astrobot-houston committed Dec 19, 2023
    Copy the full SHA
    69e7882 View commit details
  10. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7ae4928 View commit details

Commits on Dec 20, 2023

  1. chore: upgrade vite to latest (close #9443) (#9452)

    * chore: upgrade vite to latest
    
    * chore: add changeset
    
    * fix: enforce type
    
    * fix: postcss
    
    * chore: log messages
    
    * fix: take vite re-optimizing message into account
    
    ---------
    
    Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
    florian-lefebvre and ematipico authored Dec 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e83b509 View commit details
  2. [ci] format

    ematipico authored and astrobot-houston committed Dec 20, 2023
    Copy the full SHA
    1f3d72b View commit details
  3. Respect forms with enctype set for view transitions (#9466)

    * Respect forms with enctype set for view transitions
    
    * Add changeset
    
    * Revert "Respect forms with enctype set for view transitions"
    
    This reverts commit 6d3e04a.
    
    * Review feedback
    
    * Handle submitter case
    
    * Move comment
    
    * Update .changeset/rude-geckos-rush.md
    
    * Add tests
    
    ---------
    
    Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
    knpwrs and natemoo-re authored Dec 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5062d27 View commit details
  4. view transition's form handling honors default prevention (#9486)

    * add missing check to honor prevented default
    
    * added changeset
    
    * Update .changeset/fresh-games-confess.md
    
    Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
    
    ---------
    
    Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
    martrapp and florian-lefebvre authored Dec 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f6714f6 View commit details
  5. fix(a11y): Fix some audit false positives (#9483)

    * fix(a11y): Fix some audit false positives
    
    * chore: changeset
    
    * Update packages/astro/src/runtime/client/dev-overlay/plugins/audit/a11y.ts
    
    Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
    
    * fix: apply feedback
    
    * nit: add comment
    
    ---------
    
    Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
    Princesseuh and delucis authored Dec 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c384f69 View commit details
  6. chore: smoother logging when building pages (#9487)

    * chore: smoother logging when building pages
    
    * chore: improve logging during the build
    
    * fix: put `newLine` top `LogMessage`
    
    * Update .changeset/popular-meals-yell.md
    
    Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
    
    ---------
    
    Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
    ematipico and florian-lefebvre authored Dec 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    19169db View commit details
  7. [ci] release (#9457)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    astrobot-houston and github-actions[bot] authored Dec 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    97342d2 View commit details
Showing with 739 additions and 237 deletions.
  1. +1 −1 examples/basics/package.json
  2. +2 −2 examples/blog/package.json
  3. +1 −1 examples/component/package.json
  4. +1 −1 examples/framework-alpine/package.json
  5. +1 −1 examples/framework-lit/package.json
  6. +4 −4 examples/framework-multiple/package.json
  7. +1 −1 examples/framework-preact/package.json
  8. +2 −2 examples/framework-react/package.json
  9. +1 −1 examples/framework-solid/package.json
  10. +2 −2 examples/framework-svelte/package.json
  11. +2 −2 examples/framework-vue/package.json
  12. +2 −2 examples/hackernews/package.json
  13. +1 −1 examples/integration/package.json
  14. +2 −2 examples/middleware/package.json
  15. +1 −1 examples/minimal/package.json
  16. +1 −1 examples/non-html-pages/package.json
  17. +1 −1 examples/portfolio/package.json
  18. +3 −3 examples/ssr/package.json
  19. +1 −1 examples/ssr/src/pages/api/cart.ts
  20. +3 −3 examples/view-transitions/package.json
  21. +2 −2 examples/with-markdoc/package.json
  22. +1 −1 examples/with-markdown-plugins/package.json
  23. +1 −1 examples/with-markdown-shiki/package.json
  24. +2 −2 examples/with-mdx/package.json
  25. +1 −1 examples/with-nanostores/package.json
  26. +3 −3 examples/with-tailwindcss/package.json
  27. +1 −1 examples/with-vitest/package.json
  28. +32 −0 packages/astro/CHANGELOG.md
  29. +1 −1 packages/astro/components/ViewTransitions.astro
  30. +6 −4 packages/astro/e2e/fixtures/view-transitions/src/pages/form-one.astro
  31. +1 −0 packages/astro/e2e/fixtures/view-transitions/src/pages/one.astro
  32. +10 −0 packages/astro/e2e/fixtures/view-transitions/src/pages/seven.astro
  33. +96 −0 packages/astro/e2e/view-transitions.test.js
  34. +3 −3 packages/astro/package.json
  35. +1 −1 packages/astro/src/@types/astro.ts
  36. +28 −10 packages/astro/src/assets/build/generate.ts
  37. +1 −0 packages/astro/src/assets/endpoint/generic.ts
  38. +1 −0 packages/astro/src/assets/endpoint/node.ts
  39. +1 −1 packages/astro/src/assets/internal.ts
  40. +1 −1 packages/astro/src/cli/add/index.ts
  41. +5 −4 packages/astro/src/core/build/generate.ts
  42. +2 −1 packages/astro/src/core/build/plugins/plugin-manifest.ts
  43. +10 −3 packages/astro/src/core/build/static-build.ts
  44. +37 −0 packages/astro/src/core/errors/errors-data.ts
  45. +21 −13 packages/astro/src/core/logger/core.ts
  46. +4 −3 packages/astro/src/core/logger/node.ts
  47. +6 −4 packages/astro/src/core/middleware/loadMiddleware.ts
  48. +8 −1 packages/astro/src/core/redirects/helpers.ts
  49. +20 −10 packages/astro/src/runtime/client/dev-overlay/plugins/audit/a11y.ts
  50. +21 −2 packages/astro/src/transitions/router.ts
  51. +1 −1 packages/astro/src/vite-plugin-dev-overlay/vite-plugin-dev-overlay.ts
  52. +5 −3 packages/astro/test/cli.test.js
  53. +28 −0 packages/astro/test/redirects.test.js
  54. +177 −20 packages/astro/test/ssr-hoisted-script.test.js
  55. +6 −0 packages/integrations/markdoc/CHANGELOG.md
  56. +2 −2 packages/integrations/markdoc/package.json
  57. +6 −0 packages/integrations/mdx/CHANGELOG.md
  58. +2 −2 packages/integrations/mdx/package.json
  59. +6 −0 packages/integrations/node/CHANGELOG.md
  60. +1 −1 packages/integrations/node/README.md
  61. +1 −1 packages/integrations/node/package.json
  62. +8 −0 packages/integrations/react/CHANGELOG.md
  63. +2 −2 packages/integrations/react/package.json
  64. +4 −0 packages/integrations/react/server.js
  65. +6 −0 packages/integrations/svelte/CHANGELOG.md
  66. +2 −2 packages/integrations/svelte/package.json
  67. +6 −0 packages/integrations/tailwind/CHANGELOG.md
  68. +2 −2 packages/integrations/tailwind/package.json
  69. +2 −2 packages/integrations/tailwind/src/index.ts
  70. +6 −0 packages/integrations/vue/CHANGELOG.md
  71. +2 −2 packages/integrations/vue/package.json
  72. +104 −91 pnpm-lock.yaml
2 changes: 1 addition & 1 deletion examples/basics/package.json
Original file line number Diff line number Diff line change
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.0.6"
"astro": "^4.0.7"
}
}
4 changes: 2 additions & 2 deletions examples/blog/package.json
Original file line number Diff line number Diff line change
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^2.0.1",
"@astrojs/mdx": "^2.0.2",
"@astrojs/rss": "^4.0.1",
"@astrojs/sitemap": "^3.0.3",
"astro": "^4.0.6"
"astro": "^4.0.7"
}
}
2 changes: 1 addition & 1 deletion examples/component/package.json
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^4.0.6"
"astro": "^4.0.7"
},
"peerDependencies": {
"astro": "^3.0.0"
2 changes: 1 addition & 1 deletion examples/framework-alpine/package.json
Original file line number Diff line number Diff line change
@@ -14,6 +14,6 @@
"@astrojs/alpinejs": "^0.3.1",
"@types/alpinejs": "^3.13.5",
"alpinejs": "^3.13.3",
"astro": "^4.0.6"
"astro": "^4.0.7"
}
}
2 changes: 1 addition & 1 deletion examples/framework-lit/package.json
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/lit": "^4.0.0",
"@webcomponents/template-shadowroot": "^0.2.1",
"astro": "^4.0.6",
"astro": "^4.0.7",
"lit": "^2.8.0"
}
}
8 changes: 4 additions & 4 deletions examples/framework-multiple/package.json
Original file line number Diff line number Diff line change
@@ -12,11 +12,11 @@
},
"dependencies": {
"@astrojs/preact": "^3.0.1",
"@astrojs/react": "^3.0.7",
"@astrojs/react": "^3.0.8",
"@astrojs/solid-js": "^3.0.2",
"@astrojs/svelte": "^5.0.1",
"@astrojs/vue": "^4.0.4",
"astro": "^4.0.6",
"@astrojs/svelte": "^5.0.2",
"@astrojs/vue": "^4.0.5",
"astro": "^4.0.7",
"preact": "^10.19.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
2 changes: 1 addition & 1 deletion examples/framework-preact/package.json
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.0.1",
"@preact/signals": "^1.2.1",
"astro": "^4.0.6",
"astro": "^4.0.7",
"preact": "^10.19.2"
}
}
4 changes: 2 additions & 2 deletions examples/framework-react/package.json
Original file line number Diff line number Diff line change
@@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/react": "^3.0.7",
"@astrojs/react": "^3.0.8",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"astro": "^4.0.6",
"astro": "^4.0.7",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
2 changes: 1 addition & 1 deletion examples/framework-solid/package.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/solid-js": "^3.0.2",
"astro": "^4.0.6",
"astro": "^4.0.7",
"solid-js": "^1.8.5"
}
}
4 changes: 2 additions & 2 deletions examples/framework-svelte/package.json
Original file line number Diff line number Diff line change
@@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/svelte": "^5.0.1",
"astro": "^4.0.6",
"@astrojs/svelte": "^5.0.2",
"astro": "^4.0.7",
"svelte": "^4.2.5"
}
}
4 changes: 2 additions & 2 deletions examples/framework-vue/package.json
Original file line number Diff line number Diff line change
@@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/vue": "^4.0.4",
"astro": "^4.0.6",
"@astrojs/vue": "^4.0.5",
"astro": "^4.0.7",
"vue": "^3.3.8"
}
}
4 changes: 2 additions & 2 deletions examples/hackernews/package.json
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/node": "^7.0.1",
"astro": "^4.0.6"
"@astrojs/node": "^7.0.2",
"astro": "^4.0.7"
}
}
2 changes: 1 addition & 1 deletion examples/integration/package.json
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^4.0.6"
"astro": "^4.0.7"
},
"peerDependencies": {
"astro": "^3.0.0"
4 changes: 2 additions & 2 deletions examples/middleware/package.json
Original file line number Diff line number Diff line change
@@ -12,8 +12,8 @@
"server": "node dist/server/entry.mjs"
},
"dependencies": {
"@astrojs/node": "^7.0.1",
"astro": "^4.0.6",
"@astrojs/node": "^7.0.2",
"astro": "^4.0.7",
"html-minifier": "^4.0.0"
}
}
2 changes: 1 addition & 1 deletion examples/minimal/package.json
Original file line number Diff line number Diff line change
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.0.6"
"astro": "^4.0.7"
}
}
2 changes: 1 addition & 1 deletion examples/non-html-pages/package.json
Original file line number Diff line number Diff line change
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.0.6"
"astro": "^4.0.7"
}
}
2 changes: 1 addition & 1 deletion examples/portfolio/package.json
Original file line number Diff line number Diff line change
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.0.6"
"astro": "^4.0.7"
}
}
6 changes: 3 additions & 3 deletions examples/ssr/package.json
Original file line number Diff line number Diff line change
@@ -12,9 +12,9 @@
"server": "node dist/server/entry.mjs"
},
"dependencies": {
"@astrojs/node": "^7.0.1",
"@astrojs/svelte": "^5.0.1",
"astro": "^4.0.6",
"@astrojs/node": "^7.0.2",
"@astrojs/svelte": "^5.0.2",
"astro": "^4.0.7",
"svelte": "^4.2.5"
}
}
2 changes: 1 addition & 1 deletion examples/ssr/src/pages/api/cart.ts
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import { APIContext } from 'astro';
import { userCartItems } from '../../models/session';

export function GET({ cookies }: APIContext) {
let userId = cookies.get('user-id').value;
let userId = cookies.get('user-id')?.value;

if (!userId || !userCartItems.has(userId)) {
return Response.json({ items: [] });
6 changes: 3 additions & 3 deletions examples/view-transitions/package.json
Original file line number Diff line number Diff line change
@@ -10,8 +10,8 @@
"astro": "astro"
},
"devDependencies": {
"@astrojs/tailwind": "^5.0.3",
"@astrojs/node": "^7.0.1",
"astro": "^4.0.6"
"@astrojs/tailwind": "^5.0.4",
"@astrojs/node": "^7.0.2",
"astro": "^4.0.7"
}
}
4 changes: 2 additions & 2 deletions examples/with-markdoc/package.json
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/markdoc": "^0.8.0",
"astro": "^4.0.6"
"@astrojs/markdoc": "^0.8.1",
"astro": "^4.0.7"
}
}
2 changes: 1 addition & 1 deletion examples/with-markdown-plugins/package.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/markdown-remark": "^4.0.1",
"astro": "^4.0.6",
"astro": "^4.0.7",
"hast-util-select": "^6.0.2",
"rehype-autolink-headings": "^7.1.0",
"rehype-slug": "^6.0.0",
2 changes: 1 addition & 1 deletion examples/with-markdown-shiki/package.json
Original file line number Diff line number Diff line change
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.0.6"
"astro": "^4.0.7"
}
}
4 changes: 2 additions & 2 deletions examples/with-mdx/package.json
Original file line number Diff line number Diff line change
@@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^2.0.1",
"@astrojs/mdx": "^2.0.2",
"@astrojs/preact": "^3.0.1",
"astro": "^4.0.6",
"astro": "^4.0.7",
"preact": "^10.19.2"
}
}
2 changes: 1 addition & 1 deletion examples/with-nanostores/package.json
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.0.1",
"@nanostores/preact": "^0.5.0",
"astro": "^4.0.6",
"astro": "^4.0.7",
"nanostores": "^0.9.5",
"preact": "^10.19.2"
}
6 changes: 3 additions & 3 deletions examples/with-tailwindcss/package.json
Original file line number Diff line number Diff line change
@@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^2.0.1",
"@astrojs/tailwind": "^5.0.3",
"@astrojs/mdx": "^2.0.2",
"@astrojs/tailwind": "^5.0.4",
"@types/canvas-confetti": "^1.6.3",
"astro": "^4.0.6",
"astro": "^4.0.7",
"autoprefixer": "^10.4.15",
"canvas-confetti": "^1.9.1",
"postcss": "^8.4.28",
2 changes: 1 addition & 1 deletion examples/with-vitest/package.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
"astro": "^4.0.6",
"astro": "^4.0.7",
"vitest": "^0.34.2"
}
}
32 changes: 32 additions & 0 deletions packages/astro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# astro

## 4.0.7

### Patch Changes

- [#9452](https://github.com/withastro/astro/pull/9452) [`e83b5095f`](https://github.com/withastro/astro/commit/e83b5095f164f48ba40fc715a805fc66a3e39dcf) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Upgrades vite to latest

- [#9352](https://github.com/withastro/astro/pull/9352) [`f515b1421`](https://github.com/withastro/astro/commit/f515b1421afa335b8d6e4491fbe24419df53bfeb) Thanks [@tmcw](https://github.com/tmcw)! - Add a more descriptive error message when image conversion fails

- [#9486](https://github.com/withastro/astro/pull/9486) [`f6714f677`](https://github.com/withastro/astro/commit/f6714f677cffa2484565f51d5eb55bd34309653b) Thanks [@martrapp](https://github.com/martrapp)! - Fixes View Transition's form submission prevention, allowing `preventDefault` to be used.

- [#9461](https://github.com/withastro/astro/pull/9461) [`429be8cc3`](https://github.com/withastro/astro/commit/429be8cc3ed0623df4fdca76f1531265f5ba5dfc) Thanks [@Skn0tt](https://github.com/Skn0tt)! - update import created for `astro create netlify`

- [#9464](https://github.com/withastro/astro/pull/9464) [`faf6c7e11`](https://github.com/withastro/astro/commit/faf6c7e1104ee247e847836020a3ce07a2053705) Thanks [@Fryuni](https://github.com/Fryuni)! - Fixes an edge case with view transitions where some spec-compliant `Content-Type` headers would cause a valid HTML response to be ignored.

- [#9400](https://github.com/withastro/astro/pull/9400) [`1e984389b`](https://github.com/withastro/astro/commit/1e984389bafd87b0a631ed4aba930447669234f8) Thanks [@bluwy](https://github.com/bluwy)! - Fixes importing dev toolbar apps from integrations on Windows

- [#9487](https://github.com/withastro/astro/pull/9487) [`19169db1f`](https://github.com/withastro/astro/commit/19169db1f1574d36cc284fd9a0319d9b1e92b49a) Thanks [@ematipico](https://github.com/ematipico)! - Improves logging of the generated pages during the build

- [#9460](https://github.com/withastro/astro/pull/9460) [`047d285be`](https://github.com/withastro/astro/commit/047d285be1ab764bc82f88b8553b46429c37efca) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Fix Astro failing to build on certain exotic platform that reports their CPU count incorrectly

- [#9466](https://github.com/withastro/astro/pull/9466) [`5062d27a1`](https://github.com/withastro/astro/commit/5062d27a186c5020522614b9d6f3da218f7afd96) Thanks [@knpwrs](https://github.com/knpwrs)! - Updates view transitions `form` handling with logic for the [`enctype`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/enctype) attribute

- [#9458](https://github.com/withastro/astro/pull/9458) [`fa3078ce9`](https://github.com/withastro/astro/commit/fa3078ce9f5eda408340a78c6d275f3e0b2437dc) Thanks [@ematipico](https://github.com/ematipico)! - Correctly handle the error in case the middleware throws a runtime error

- [#9089](https://github.com/withastro/astro/pull/9089) [`5ae657882`](https://github.com/withastro/astro/commit/5ae657882287645c967249aee91bd06497f6624d) Thanks [@lilnasy](https://github.com/lilnasy)! - Fixes an issue where redirects did not replace slugs when the target of the redirect rule was not a verbatim route in the project.

- [#9483](https://github.com/withastro/astro/pull/9483) [`c384f6924`](https://github.com/withastro/astro/commit/c384f6924edc161d3ff631e658f017a37e4207e3) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Fix some false positive in the audit logic of the dev toolbar

- [#9437](https://github.com/withastro/astro/pull/9437) [`354a62c86`](https://github.com/withastro/astro/commit/354a62c86e9187af5d05540ed321bdc889384d97) Thanks [@dkobierski](https://github.com/dkobierski)! - Fixes incorrect hoisted script paths when custom rollup output file names are configured

- [#9475](https://github.com/withastro/astro/pull/9475) [`7ae4928f3`](https://github.com/withastro/astro/commit/7ae4928f303720d3b2f611474fc08d3b96c2e4af) Thanks [@ematipico](https://github.com/ematipico)! - Remove the manifest from the generated files in the `dist/` folder.

## 4.0.6

### Patch Changes
2 changes: 1 addition & 1 deletion packages/astro/components/ViewTransitions.astro
Original file line number Diff line number Diff line change
@@ -94,7 +94,7 @@ const { fallback = 'animate' } = Astro.props;

document.addEventListener('submit', (ev) => {
let el = ev.target as HTMLElement;
if (el.tagName !== 'FORM' || isReloadEl(el)) {
if (el.tagName !== 'FORM' || ev.defaultPrevented || isReloadEl(el)) {
return;
}
const form = el as HTMLFormElement;
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
---
import Layout from '../components/Layout.astro';
const method = Astro.url.searchParams.get('method') ?? 'POST';
const enctype = Astro.url.searchParams.get('enctype');
const postShowThrow = Astro.url.searchParams.has('throw') ?? false;
---

<Layout>
<h2>Contact Form</h2>
<form action="/contact" method={method}>
<input type="hidden" name="name" value="Testing">
{postShowThrow ? <input type="hidden" name="throw" value="true"> : ''}
<input type="submit" value="Submit" id="submit">
<form action="/contact" method={method} {...enctype ? { enctype } : {}}>
<input type="hidden" name="name" value="Testing" />
{postShowThrow ? <input type="hidden" name="throw" value="true" /> : ''}
<input type="submit" value="Submit" id="submit" />
</form>
</Layout>
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ import Layout from '../components/Layout.astro';
<a id="click-one" href="#test">test</a>
<a id="click-two" href="/two">go to 2</a>
<a id="click-three" href="/three">go to 3</a>
<a id="click-seven" href="/seven">go to 7</a>
<a id="click-longpage" href="/long-page">go to long page</a>
<a id="click-self" href="">go to top</a>
<a id="click-redirect-two" href="/redirect-two">go to redirect 2</a>
10 changes: 10 additions & 0 deletions packages/astro/e2e/fixtures/view-transitions/src/pages/seven.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
import Layout from '../components/Layout.astro';
Astro.response.headers.set('Content-Type', 'text/html ; charset=utf-8');
---
<Layout link="/one.css">
<p id="seven">Page 7</p>

<div id="test">test content</div>
</Layout>
Loading