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.1.2
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.1.3
Choose a head ref
  • 16 commits
  • 104 files changed
  • 14 contributors

Commits on Jan 11, 2024

  1. Fix discord fetch code (#9663)

    bluwy authored Jan 11, 2024
    Copy the full SHA
    8059a19 View commit details
  2. Force re-execution of Partytown's head snippet on view transitions (#…

    …9666)
    
    * Remove the header script before a view transition takes place to force a reload on the next page
    
    * Add changeset
    
    * Save another char
    martrapp authored Jan 11, 2024
    Copy the full SHA
    cdf8ce0 View commit details
  3. [ci] format

    martrapp authored and astrobot-houston committed Jan 11, 2024
    Copy the full SHA
    87ede76 View commit details
  4. fix(assets): Implement all hooks in the passthrough image service (#9668

    )
    
    * fix(assets): Implement all hooks in the passthrough image service
    
    * chore: changeset
    Princesseuh authored Jan 11, 2024
    Copy the full SHA
    74008cc View commit details
  5. refactor(toolbar): Rename every internal reference of overlay/plugins…

    … to toolbar/apps (#9647)
    
    * refactor(toolbar): Rename every internal reference of overlay/plugins to toolbar/apps
    
    * refactor: rename vite plugin
    
    * fix: update import
    
    * nit: add setting fallback
    Princesseuh authored Jan 11, 2024
    Copy the full SHA
    37e1018 View commit details

Commits on Jan 12, 2024

  1. Copy the full SHA
    d02a3c4 View commit details
  2. Copy the full SHA
    71db79e View commit details
  3. [ci] format

    bluwy authored and astrobot-houston committed Jan 12, 2024
    Copy the full SHA
    810f7b2 View commit details
  4. fix(i18n): emit an error when the index isn't found (#9678)

    * fix(i18n): emit an error when the index isn't found
    
    * changeset
    
    * Update .changeset/proud-guests-bake.md
    
    Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
    
    * rename
    
    * Update packages/astro/src/core/errors/errors-data.ts
    
    Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
    
    ---------
    
    Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
    Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
    3 people authored Jan 12, 2024
    Copy the full SHA
    091097e View commit details
  5. Copy the full SHA
    ff3f9a5 View commit details
  6. fix(transitions router): attempt to find the clicked element within a…

    …n open shadow root (#9685)
    
    * implementation
    
    * add test
    
    * add changeset
    lilnasy authored Jan 12, 2024
    Copy the full SHA
    35d54b3 View commit details
  7. [ci] format

    lilnasy authored and astrobot-houston committed Jan 12, 2024
    Copy the full SHA
    c7dbb9d View commit details

Commits on Jan 15, 2024

  1. fix(ViewTransition): Disables View Transition form handling when the …

    …`action` property points to an external URL.(#9674) (#9693)
    kidylee authored Jan 15, 2024
    Copy the full SHA
    d38b2a4 View commit details
  2. Copy the full SHA
    1bf0ddd View commit details
  3. fix: image proxy not working correctly (#9659)

    * fix: image proxy not working correctly
    
    * fix: only take in valid images
    
    * test: add tests
    
    * Create slimy-mayflies-vanish.md
    
    * nit: remove erika-ism
    Princesseuh authored Jan 15, 2024
    Copy the full SHA
    39050c6 View commit details

Commits on Jan 16, 2024

  1. [ci] release (#9669)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    astrobot-houston and github-actions[bot] authored Jan 16, 2024
    Copy the full SHA
    6c64b14 View commit details
Showing with 799 additions and 550 deletions.
  1. +15 −11 .github/workflows/check-merge.yml
  2. +13 −1 CONTRIBUTING.md
  3. +1 −1 examples/basics/package.json
  4. +1 −1 examples/blog/package.json
  5. +1 −1 examples/component/package.json
  6. +1 −1 examples/framework-alpine/package.json
  7. +1 −1 examples/framework-lit/package.json
  8. +1 −1 examples/framework-multiple/package.json
  9. +1 −1 examples/framework-preact/package.json
  10. +1 −1 examples/framework-react/package.json
  11. +1 −1 examples/framework-solid/package.json
  12. +1 −1 examples/framework-svelte/package.json
  13. +1 −1 examples/framework-vue/package.json
  14. +1 −1 examples/hackernews/package.json
  15. +1 −1 examples/integration/package.json
  16. +1 −1 examples/middleware/package.json
  17. +1 −1 examples/minimal/package.json
  18. +1 −1 examples/non-html-pages/package.json
  19. +1 −1 examples/portfolio/package.json
  20. +1 −1 examples/ssr/package.json
  21. +1 −1 examples/starlog/package.json
  22. +1 −1 examples/view-transitions/package.json
  23. +1 −1 examples/with-markdoc/package.json
  24. +1 −1 examples/with-markdown-plugins/package.json
  25. +1 −1 examples/with-markdown-shiki/package.json
  26. +1 −1 examples/with-mdx/package.json
  27. +1 −1 examples/with-nanostores/package.json
  28. +1 −1 examples/with-tailwindcss/package.json
  29. +1 −1 examples/with-vitest/package.json
  30. +18 −0 packages/astro/CHANGELOG.md
  31. +6 −1 packages/astro/components/ViewTransitions.astro
  32. +71 −85 packages/astro/e2e/{dev-overlay.test.js → dev-toolbar.test.js}
  33. 0 packages/astro/e2e/fixtures/{dev-overlay → dev-toolbar}/astro.config.mjs
  34. +1 −1 packages/astro/e2e/fixtures/{dev-overlay → dev-toolbar}/package.json
  35. 0 packages/astro/e2e/fixtures/{dev-overlay → dev-toolbar}/src/components/HelloWorld.tsx
  36. 0 packages/astro/e2e/fixtures/{dev-overlay → dev-toolbar}/src/pages/audit-no-warning.astro
  37. 0 packages/astro/e2e/fixtures/{dev-overlay → dev-toolbar}/src/pages/index.astro
  38. 0 packages/astro/e2e/fixtures/{dev-overlay → dev-toolbar}/src/pages/tooltip-position.astro
  39. 0 packages/astro/e2e/fixtures/{dev-overlay → dev-toolbar}/src/pages/xray-no-islands.astro
  40. +9 −0 packages/astro/e2e/fixtures/view-transitions/src/pages/form-five.astro
  41. +5 −0 packages/astro/e2e/fixtures/view-transitions/src/pages/one.astro
  42. +21 −0 packages/astro/e2e/view-transitions.test.js
  43. +1 −1 packages/astro/package.json
  44. +36 −33 packages/astro/src/@types/astro.ts
  45. +6 −2 packages/astro/src/assets/internal.ts
  46. +1 −4 packages/astro/src/assets/services/noop.ts
  47. +3 −1 packages/astro/src/assets/types.ts
  48. +1 −1 packages/astro/src/assets/utils/emitAsset.ts
  49. +8 −2 packages/astro/src/assets/utils/proxy.ts
  50. +27 −21 packages/astro/src/assets/vite-plugin-assets.ts
  51. +1 −1 packages/astro/src/content/runtime-assets.ts
  52. +1 −0 packages/astro/src/content/vite-plugin-content-imports.ts
  53. +1 −1 packages/astro/src/core/config/vite-load.ts
  54. +3 −3 packages/astro/src/core/create-vite.ts
  55. +7 −0 packages/astro/src/core/errors/errors-data.ts
  56. +17 −0 packages/astro/src/core/routing/manifest/create.ts
  57. +1 −1 packages/astro/src/core/sync/index.ts
  58. +0 −8 packages/astro/src/runtime/client/dev-overlay/ui-library/index.ts
  59. +4 −4 packages/astro/src/runtime/client/{dev-overlay/plugins → dev-toolbar/apps}/astro.ts
  60. 0 packages/astro/src/runtime/client/{dev-overlay/plugins → dev-toolbar/apps}/audit/a11y.ts
  61. +7 −7 packages/astro/src/runtime/client/{dev-overlay/plugins → dev-toolbar/apps}/audit/index.ts
  62. +9 −9 packages/astro/src/runtime/client/{dev-overlay/plugins → dev-toolbar/apps}/settings.ts
  63. +3 −3 packages/astro/src/runtime/client/{dev-overlay/plugins → dev-toolbar/apps}/utils/highlight.ts
  64. 0 packages/astro/src/runtime/client/{dev-overlay/plugins → dev-toolbar/apps}/utils/icons.ts
  65. 0 packages/astro/src/runtime/client/{dev-overlay/plugins → dev-toolbar/apps}/utils/window.ts
  66. +8 −8 packages/astro/src/runtime/client/{dev-overlay/plugins → dev-toolbar/apps}/xray.ts
  67. +72 −77 packages/astro/src/runtime/client/{dev-overlay → dev-toolbar}/entrypoint.ts
  68. +13 −6 packages/astro/src/runtime/client/{dev-overlay → dev-toolbar}/settings.ts
  69. +117 −122 packages/astro/src/runtime/client/{dev-overlay/overlay.ts → dev-toolbar/toolbar.ts}
  70. +1 −1 packages/astro/src/runtime/client/{dev-overlay → dev-toolbar}/ui-library/badge.ts
  71. +2 −1 packages/astro/src/runtime/client/{dev-overlay → dev-toolbar}/ui-library/button.ts
  72. +1 −1 packages/astro/src/runtime/client/{dev-overlay → dev-toolbar}/ui-library/card.ts
  73. +1 −1 packages/astro/src/runtime/client/{dev-overlay → dev-toolbar}/ui-library/highlight.ts
  74. +1 −1 packages/astro/src/runtime/client/{dev-overlay → dev-toolbar}/ui-library/icon.ts
  75. 0 packages/astro/src/runtime/client/{dev-overlay → dev-toolbar}/ui-library/icons.ts
  76. +8 −0 packages/astro/src/runtime/client/dev-toolbar/ui-library/index.ts
  77. +1 −1 packages/astro/src/runtime/client/{dev-overlay → dev-toolbar}/ui-library/toggle.ts
  78. +3 −3 packages/astro/src/runtime/client/{dev-overlay → dev-toolbar}/ui-library/tooltip.ts
  79. +2 −2 packages/astro/src/runtime/client/{dev-overlay → dev-toolbar}/ui-library/window.ts
  80. +5 −5 packages/astro/src/vite-plugin-astro-server/route.ts
  81. +15 −2 packages/astro/src/vite-plugin-astro/index.ts
  82. +4 −4 ...ugin-dev-overlay/vite-plugin-dev-overlay.ts → vite-plugin-dev-toolbar/vite-plugin-dev-toolbar.ts}
  83. +11 −0 packages/astro/test/fixtures/core-image-deletion/package.json
  84. BIN packages/astro/test/fixtures/core-image-deletion/public/penguin3.jpg
  85. BIN packages/astro/test/fixtures/core-image-deletion/src/assets/onlyone.jpg
  86. BIN packages/astro/test/fixtures/core-image-deletion/src/assets/twoofus.jpg
  87. BIN packages/astro/test/fixtures/core-image-deletion/src/assets/url.jpg
  88. +15 −0 packages/astro/test/fixtures/core-image-deletion/src/pages/index.astro
  89. +9 −0 packages/astro/test/fixtures/core-image-deletion/tsconfig.json
  90. +0 −2 packages/astro/test/fixtures/core-image-ssg/src/pages/blog/[...slug].astro
  91. 0 packages/astro/test/fixtures/i18n-routing-prefix-always/src/pages/index.astro
  92. +36 −0 packages/astro/test/image-deletion.test.js
  93. +6 −0 packages/integrations/partytown/CHANGELOG.md
  94. +1 −1 packages/integrations/partytown/package.json
  95. +2 −0 packages/integrations/partytown/src/index.ts
  96. +1 −3 packages/upgrade/package.json
  97. +7 −6 packages/upgrade/test/context.test.js
  98. +29 −28 packages/upgrade/test/install.test.js
  99. +1 −0 packages/upgrade/test/utils.js
  100. +12 −11 packages/upgrade/test/verify.test.js
  101. +34 −34 pnpm-lock.yaml
  102. +51 −0 scripts/cmd/test.js
  103. +5 −0 scripts/index.js
  104. +2 −2 scripts/notify/index.js
26 changes: 15 additions & 11 deletions .github/workflows/check-merge.yml
Original file line number Diff line number Diff line change
@@ -45,22 +45,26 @@ jobs:
files: |
.changeset/**/*.md
- name: Check if any changesets contain minor changes
id: minor
- name: Check if any changesets contain minor or major changes
id: check
if: steps.blocked.outputs.result != 'true'
run: |
echo "Checking for changesets marked as minor"
echo "Checking for changesets marked as minor or major"
echo "found=false" >> $GITHUB_OUTPUT
regex="[\"']astro[\"']: (minor|major)"
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
if grep -q "'astro': minor" "$file"; then
echo "found=true" >> $GITHUB_OUTPUT
echo "$file has a minor release tag"
fi
if [[ $(cat $file) =~ $regex ]]; then
version="${BASH_REMATCH[1]}"
echo "version=$version" >> $GITHUB_OUTPUT
echo "found=true" >> $GITHUB_OUTPUT
echo "$file has a $version release tag"
fi
done
- name: Add label
uses: actions/github-script@v6
if: steps.minor.outputs.found == 'true'
if: steps.check.outputs.found == 'true'
env:
issue_number: ${{ github.event.number }}
with:
@@ -69,12 +73,12 @@ jobs:
issue_number: process.env.issue_number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['semver: minor']
labels: ['semver: ${{ steps.check.outputs.version }}']
});
- name: Change PR Status
uses: actions/github-script@v6
if: steps.minor.outputs.found == 'true'
if: steps.check.outputs.found == 'true'
env:
issue_number: ${{ github.event.number }}
with:
@@ -84,5 +88,5 @@ jobs:
repo: context.repo.repo,
pull_number: process.env.issue_number,
event: 'REQUEST_CHANGES',
body: 'This PR is blocked because it contains a `minor` changeset. A reviewer will merge this at the next release if approved.'
body: 'This PR is blocked because it contains a `${{ steps.check.outputs.version }}` changeset. A reviewer will merge this at the next release if approved.'
});
14 changes: 13 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -88,13 +88,25 @@ DEBUG=vite:[name] astro dev # debug specific process, e.g. "vite:deps" or "vit
# run this in the top-level project root to run all tests
pnpm run test
# run only a few tests in the `astro` package, great for working on a single feature
# (example - `pnpm run test:match "cli"` runs `cli.test.js`)
# (example - `pnpm run test:match "cli"` runs tests with "cli" in the name)
pnpm run test:match "$STRING_MATCH"
# run tests on another package
# (example - `pnpm --filter @astrojs/rss run test` runs `packages/astro-rss/test/rss.test.js`)
pnpm --filter $STRING_MATCH run test
```

Most tests use [`mocha`](https://mochajs.org) as the test runner. We're slowly migrating to use [`node:test`](https://nodejs.org/api/test.html) instead through the custom [`astro-scripts test`](./scripts/cmd/test.js) command. For packages that use `node:test`, you can run these commands in their directories:

```shell
# run all of the package's tests
pnpm run test
# run only a few tests in the package
# (example - `pnpm run test -m "cli"` runs tests with "cli" in the name)
pnpm run test -m "$STRING_MATCH"
# run a single test file, you can use `node --test` directly
node --test ./test/foo.test.js
```

#### E2E tests

Certain features, like HMR and client hydration, need end-to-end tests to verify functionality in the dev server. [Playwright](https://playwright.dev/) is used to test against the dev server.
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.1.2"
"astro": "^4.1.3"
}
}
2 changes: 1 addition & 1 deletion examples/blog/package.json
Original file line number Diff line number Diff line change
@@ -14,6 +14,6 @@
"@astrojs/mdx": "^2.0.4",
"@astrojs/rss": "^4.0.2",
"@astrojs/sitemap": "^3.0.4",
"astro": "^4.1.2"
"astro": "^4.1.3"
}
}
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.1.2"
"astro": "^4.1.3"
},
"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.2",
"@types/alpinejs": "^3.13.5",
"alpinejs": "^3.13.3",
"astro": "^4.1.2"
"astro": "^4.1.3"
}
}
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.1",
"@webcomponents/template-shadowroot": "^0.2.1",
"astro": "^4.1.2",
"astro": "^4.1.3",
"lit": "^2.8.0"
}
}
2 changes: 1 addition & 1 deletion examples/framework-multiple/package.json
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
"@astrojs/solid-js": "^4.0.1",
"@astrojs/svelte": "^5.0.3",
"@astrojs/vue": "^4.0.8",
"astro": "^4.1.2",
"astro": "^4.1.3",
"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.1.0",
"@preact/signals": "^1.2.1",
"astro": "^4.1.2",
"astro": "^4.1.3",
"preact": "^10.19.2"
}
}
2 changes: 1 addition & 1 deletion examples/framework-react/package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
"@astrojs/react": "^3.0.9",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"astro": "^4.1.2",
"astro": "^4.1.3",
"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": "^4.0.1",
"astro": "^4.1.2",
"astro": "^4.1.3",
"solid-js": "^1.8.5"
}
}
2 changes: 1 addition & 1 deletion examples/framework-svelte/package.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/svelte": "^5.0.3",
"astro": "^4.1.2",
"astro": "^4.1.3",
"svelte": "^4.2.5"
}
}
2 changes: 1 addition & 1 deletion examples/framework-vue/package.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/vue": "^4.0.8",
"astro": "^4.1.2",
"astro": "^4.1.3",
"vue": "^3.3.8"
}
}
2 changes: 1 addition & 1 deletion examples/hackernews/package.json
Original file line number Diff line number Diff line change
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^7.0.4",
"astro": "^4.1.2"
"astro": "^4.1.3"
}
}
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.1.2"
"astro": "^4.1.3"
},
"peerDependencies": {
"astro": "^3.0.0"
2 changes: 1 addition & 1 deletion examples/middleware/package.json
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^7.0.4",
"astro": "^4.1.2",
"astro": "^4.1.3",
"html-minifier": "^4.0.0"
},
"devDependencies": {
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.1.2"
"astro": "^4.1.3"
}
}
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.1.2"
"astro": "^4.1.3"
}
}
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.1.2"
"astro": "^4.1.3"
}
}
2 changes: 1 addition & 1 deletion examples/ssr/package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
"dependencies": {
"@astrojs/node": "^7.0.4",
"@astrojs/svelte": "^5.0.3",
"astro": "^4.1.2",
"astro": "^4.1.3",
"svelte": "^4.2.5"
}
}
2 changes: 1 addition & 1 deletion examples/starlog/package.json
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.1.2",
"astro": "^4.1.3",
"sass": "^1.69.5",
"sharp": "^0.32.6"
}
2 changes: 1 addition & 1 deletion examples/view-transitions/package.json
Original file line number Diff line number Diff line change
@@ -12,6 +12,6 @@
"devDependencies": {
"@astrojs/tailwind": "^5.1.0",
"@astrojs/node": "^7.0.4",
"astro": "^4.1.2"
"astro": "^4.1.3"
}
}
2 changes: 1 addition & 1 deletion examples/with-markdoc/package.json
Original file line number Diff line number Diff line change
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/markdoc": "^0.8.2",
"astro": "^4.1.2"
"astro": "^4.1.3"
}
}
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.1.2",
"astro": "^4.1.3",
"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.1.2"
"astro": "^4.1.3"
}
}
2 changes: 1 addition & 1 deletion examples/with-mdx/package.json
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/mdx": "^2.0.4",
"@astrojs/preact": "^3.1.0",
"astro": "^4.1.2",
"astro": "^4.1.3",
"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.1.0",
"@nanostores/preact": "^0.5.0",
"astro": "^4.1.2",
"astro": "^4.1.3",
"nanostores": "^0.9.5",
"preact": "^10.19.2"
}
2 changes: 1 addition & 1 deletion examples/with-tailwindcss/package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
"@astrojs/mdx": "^2.0.4",
"@astrojs/tailwind": "^5.1.0",
"@types/canvas-confetti": "^1.6.3",
"astro": "^4.1.2",
"astro": "^4.1.3",
"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.1.2",
"astro": "^4.1.3",
"vitest": "^0.34.2"
}
}
18 changes: 18 additions & 0 deletions packages/astro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# astro

## 4.1.3

### Patch Changes

- [#9665](https://github.com/withastro/astro/pull/9665) [`d02a3c48a3ce204649d22e17b1e26fb5a6a60bcf`](https://github.com/withastro/astro/commit/d02a3c48a3ce204649d22e17b1e26fb5a6a60bcf) Thanks [@bluwy](https://github.com/bluwy)! - Disables internal file watcher for one-off Vite servers to improve start-up performance

- [#9664](https://github.com/withastro/astro/pull/9664) [`1bf0ddd2777ae5f9fde3fd854a9e75aa56c080f2`](https://github.com/withastro/astro/commit/1bf0ddd2777ae5f9fde3fd854a9e75aa56c080f2) Thanks [@bluwy](https://github.com/bluwy)! - Improves HMR for Astro style and script modules

- [#9668](https://github.com/withastro/astro/pull/9668) [`74008cc23853ed507b144efab02300202c5386ed`](https://github.com/withastro/astro/commit/74008cc23853ed507b144efab02300202c5386ed) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Fix the passthrough image service not generating `srcset` values properly

- [#9693](https://github.com/withastro/astro/pull/9693) [`d38b2a4fe827e956662fcf457d1f1f84832c2f15`](https://github.com/withastro/astro/commit/d38b2a4fe827e956662fcf457d1f1f84832c2f15) Thanks [@kidylee](https://github.com/kidylee)! - Disables View Transition form handling when the `action` property points to an external URL

- [#9678](https://github.com/withastro/astro/pull/9678) [`091097e60ef38dadb87d7c8c1fc9cb939a248921`](https://github.com/withastro/astro/commit/091097e60ef38dadb87d7c8c1fc9cb939a248921) Thanks [@ematipico](https://github.com/ematipico)! - Adds an error during the build phase in case `i18n.routing.prefixDefaultLocale` is set to `true` and the index page is missing.

- [#9659](https://github.com/withastro/astro/pull/9659) [`39050c6e1f77dc21e87716d95e627a654828ee74`](https://github.com/withastro/astro/commit/39050c6e1f77dc21e87716d95e627a654828ee74) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Fix Astro wrongfully deleting certain images imported with `?url` when used in tandem with `astro:assets`

- [#9685](https://github.com/withastro/astro/pull/9685) [`35d54b3ddb3310ab4c505d49bd4937b2d25e4078`](https://github.com/withastro/astro/commit/35d54b3ddb3310ab4c505d49bd4937b2d25e4078) Thanks [@lilnasy](https://github.com/lilnasy)! - Fixes an issue where anchor elements within a custom component could not trigger a view transition.

## 4.1.2

### Patch Changes
7 changes: 6 additions & 1 deletion packages/astro/components/ViewTransitions.astro
Original file line number Diff line number Diff line change
@@ -53,6 +53,9 @@ const { fallback = 'animate' } = Astro.props;
if (supportsViewTransitions || getFallback() !== 'none') {
document.addEventListener('click', (ev) => {
let link = ev.target;
if (ev.composed) {
link = ev.composedPath()[0];
}
if (link instanceof Element) {
link = link.closest('a, area');
}
@@ -106,7 +109,9 @@ const { fallback = 'animate' } = Astro.props;

// the "dialog" method is a special keyword used within <dialog> elements
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-method
if (method === 'dialog') {
if (method === 'dialog' || location.origin !== new URL(action, location.href).origin) {
// No page transitions in these cases,
// Let the browser standard action handle this
return;
}

Loading