Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,25 @@
},
"changesets": [
"beige-doodles-bow",
"bright-insects-peel",
"common-pears-drive",
"compress-html-jsx-default",
"container-renderer-export",
"cozy-knives-buy",
"experimental-background-dev",
"expose-get-fetch-state",
"fifty-ways-swim",
"fix-advanced-routing-500-fallback",
"fix-composable-middleware-500",
"fix-dev-port-vite-restart",
"fix-middleware-500-error-prop",
"fix-prerender-allowed-domains-warning",
"font-data-subset-field",
"goofy-tigers-like",
"odd-poems-dress",
"plenty-meals-wonder",
"remove-db-cli-command",
"ripe-bottles-fetch",
"rusty-compilers-only",
"satteri-default-markdown-processor",
"seven-pots-begin",
Expand Down
2 changes: 1 addition & 1 deletion examples/advanced-routing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@astrojs/node": "^11.0.0-beta.2",
"astro": "^7.0.0-beta.4",
"astro": "^7.0.0-beta.5",
"hono": "^4.12.14"
}
}
2 changes: 1 addition & 1 deletion examples/basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^7.0.0-beta.4"
"astro": "^7.0.0-beta.5"
}
}
4 changes: 2 additions & 2 deletions examples/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^7.0.0-beta.2",
"@astrojs/mdx": "^7.0.0-beta.3",
"@astrojs/rss": "^4.0.18",
"@astrojs/sitemap": "^3.7.3",
"astro": "^7.0.0-beta.4",
"astro": "^7.0.0-beta.5",
"sharp": "^0.34.3"
}
}
2 changes: 1 addition & 1 deletion examples/component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^7.0.0-beta.4"
"astro": "^7.0.0-beta.5"
},
"peerDependencies": {
"astro": "^5.0.0 || ^6.0.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/container-with-vitest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"test": "vitest run"
},
"dependencies": {
"@astrojs/react": "^6.0.0-beta.1",
"astro": "^7.0.0-beta.4",
"@astrojs/react": "^6.0.0-beta.2",
"astro": "^7.0.0-beta.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"vitest": "^4.1.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-alpine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"@astrojs/alpinejs": "^1.0.0-beta.1",
"@types/alpinejs": "^3.13.11",
"alpinejs": "^3.15.8",
"astro": "^7.0.0-beta.4"
"astro": "^7.0.0-beta.5"
}
}
12 changes: 6 additions & 6 deletions examples/framework-multiple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/preact": "^6.0.0-beta.1",
"@astrojs/react": "^6.0.0-beta.1",
"@astrojs/solid-js": "^7.0.0-beta.1",
"@astrojs/svelte": "^9.0.0-beta.3",
"@astrojs/vue": "^7.0.0-beta.1",
"@astrojs/preact": "^6.0.0-beta.2",
"@astrojs/react": "^6.0.0-beta.2",
"@astrojs/solid-js": "^7.0.0-beta.2",
"@astrojs/svelte": "^9.0.0-beta.4",
"@astrojs/vue": "^7.0.0-beta.2",
"@types/react": "^18.3.28",
"@types/react-dom": "^18.3.7",
"astro": "^7.0.0-beta.4",
"astro": "^7.0.0-beta.5",
"preact": "^10.28.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/framework-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/preact": "^6.0.0-beta.1",
"@astrojs/preact": "^6.0.0-beta.2",
"@preact/signals": "^2.8.1",
"astro": "^7.0.0-beta.4",
"astro": "^7.0.0-beta.5",
"preact": "^10.28.4"
}
}
4 changes: 2 additions & 2 deletions examples/framework-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/react": "^6.0.0-beta.1",
"@astrojs/react": "^6.0.0-beta.2",
"@types/react": "^18.3.28",
"@types/react-dom": "^18.3.7",
"astro": "^7.0.0-beta.4",
"astro": "^7.0.0-beta.5",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}
Expand Down
4 changes: 2 additions & 2 deletions examples/framework-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/solid-js": "^7.0.0-beta.1",
"astro": "^7.0.0-beta.4",
"@astrojs/solid-js": "^7.0.0-beta.2",
"astro": "^7.0.0-beta.5",
"solid-js": "^1.9.11"
}
}
4 changes: 2 additions & 2 deletions examples/framework-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/svelte": "^9.0.0-beta.3",
"astro": "^7.0.0-beta.4",
"@astrojs/svelte": "^9.0.0-beta.4",
"astro": "^7.0.0-beta.5",
"svelte": "^5.53.5"
}
}
4 changes: 2 additions & 2 deletions examples/framework-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/vue": "^7.0.0-beta.1",
"astro": "^7.0.0-beta.4",
"@astrojs/vue": "^7.0.0-beta.2",
"astro": "^7.0.0-beta.5",
"vue": "^3.5.29"
}
}
2 changes: 1 addition & 1 deletion examples/hackernews/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
},
"dependencies": {
"@astrojs/node": "^11.0.0-beta.2",
"astro": "^7.0.0-beta.4"
"astro": "^7.0.0-beta.5"
}
}
2 changes: 1 addition & 1 deletion examples/integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^7.0.0-beta.4"
"astro": "^7.0.0-beta.5"
},
"peerDependencies": {
"astro": "^4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^7.0.0-beta.4"
"astro": "^7.0.0-beta.5"
}
}
2 changes: 1 addition & 1 deletion examples/portfolio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^7.0.0-beta.4"
"astro": "^7.0.0-beta.5"
}
}
4 changes: 2 additions & 2 deletions examples/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
},
"dependencies": {
"@astrojs/node": "^11.0.0-beta.2",
"@astrojs/svelte": "^9.0.0-beta.3",
"astro": "^7.0.0-beta.4",
"@astrojs/svelte": "^9.0.0-beta.4",
"astro": "^7.0.0-beta.5",
"svelte": "^5.53.5"
}
}
2 changes: 1 addition & 1 deletion examples/starlog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^7.0.0-beta.4",
"astro": "^7.0.0-beta.5",
"sass": "^1.97.3",
"sharp": "^0.34.3"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/toolbar-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"devDependencies": {
"@types/node": "^22.10.6",
"astro": "^7.0.0-beta.4"
"astro": "^7.0.0-beta.5"
},
"engines": {
"node": ">=22.12.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-markdoc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
},
"dependencies": {
"@astrojs/markdoc": "^2.0.0-beta.1",
"astro": "^7.0.0-beta.4"
"astro": "^7.0.0-beta.5"
}
}
6 changes: 3 additions & 3 deletions examples/with-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^7.0.0-beta.2",
"@astrojs/preact": "^6.0.0-beta.1",
"astro": "^7.0.0-beta.4",
"@astrojs/mdx": "^7.0.0-beta.3",
"@astrojs/preact": "^6.0.0-beta.2",
"astro": "^7.0.0-beta.5",
"preact": "^10.28.4"
}
}
4 changes: 2 additions & 2 deletions examples/with-nanostores/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/preact": "^6.0.0-beta.1",
"@astrojs/preact": "^6.0.0-beta.2",
"@nanostores/preact": "^1.0.0",
"astro": "^7.0.0-beta.4",
"astro": "^7.0.0-beta.5",
"nanostores": "^1.1.1",
"preact": "^10.28.4"
}
Expand Down
4 changes: 2 additions & 2 deletions examples/with-tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^7.0.0-beta.2",
"@astrojs/mdx": "^7.0.0-beta.3",
"@tailwindcss/vite": "^4.2.1",
"@types/canvas-confetti": "^1.9.0",
"astro": "^7.0.0-beta.4",
"astro": "^7.0.0-beta.5",
"canvas-confetti": "^1.9.4",
"tailwindcss": "^4.2.1",
"vite": "^8.0.13"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-vitest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test": "vitest"
},
"dependencies": {
"astro": "^7.0.0-beta.4",
"astro": "^7.0.0-beta.5",
"vitest": "^5.0.0-beta.2"
}
}
24 changes: 24 additions & 0 deletions packages/astro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# astro

## 7.0.0-beta.5

### Major Changes

- [#16965](https://github.com/withastro/astro/pull/16965) [`57ead0d`](https://github.com/withastro/astro/commit/57ead0d5938e5988e3f896f3d6f8ef4516c4923f) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Makes `'jsx'` the default value for `compressHTML`

Astro now strips whitespace from your HTML using JSX rules by default, the same way frameworks like React do. Whitespace and line breaks around elements are removed, but meaningful whitespace within a single line — like a space between two inline elements — is preserved. To keep a space that would otherwise be removed, write it explicitly in your source, for example with `{" "}`.

This can change rendered output where whitespace between inline elements was previously meaningful. To keep Astro's earlier behavior, set `compressHTML: true` for HTML-aware compression, or `compressHTML: false` to preserve all whitespace.

### Patch Changes

- [#17111](https://github.com/withastro/astro/pull/17111) [`c0f33ed`](https://github.com/withastro/astro/commit/c0f33eda8adf6f8f2588688f6205b76a96a42466) Thanks [@ematipico](https://github.com/ematipico)! - Harden the limits on the number of decoding on the URL.

- [#17095](https://github.com/withastro/astro/pull/17095) [`e84ebc0`](https://github.com/withastro/astro/commit/e84ebc0af84a13a26ea412460cbc491f81135ae5) Thanks [@matthewp](https://github.com/matthewp)! - Improves build performance by removing an unfiltered transform hook from the `astro:head-metadata-build` plugin. Head propagation modules are now identified by their module ID (`?astroPropagatedAssets`) instead of scanning every module's source code.

- [#17041](https://github.com/withastro/astro/pull/17041) [`4c4a91c`](https://github.com/withastro/astro/commit/4c4a91c3ef3e3316cb9faa32e37c69d69902b956) Thanks [@iseraph-dev](https://github.com/iseraph-dev)! - Fixes a bug where the advanced routing `astro/hono` / `astro/fetch` `pages()` handler returned the host framework's default `Internal Server Error` response instead of rendering the custom `500.astro` page when a page threw during render. Unmatched requests with a prerendered (or absent) custom 404 page now render the 404 error page instead of failing the same way.

- [#17097](https://github.com/withastro/astro/pull/17097) [`5e340d7`](https://github.com/withastro/astro/commit/5e340d7d81aae72215d56b8c598d350b79ad94a3) Thanks [@iseraph-dev](https://github.com/iseraph-dev)! - Fixes a bug where the advanced routing `astro/hono` / `astro/fetch` `middleware()` handler returned the host framework's default `Internal Server Error` response instead of rendering the custom `500.astro` page when middleware threw. Unmatched requests with a prerendered (or absent) custom 404 page now render the 404 error page instead of failing the same way. Errors surfaced through `next` (the host framework's downstream chain) still propagate to the host's own error handler.

- [#17104](https://github.com/withastro/astro/pull/17104) [`b074a37`](https://github.com/withastro/astro/commit/b074a37c5ab9364529080b3283cf9be8a6350e34) Thanks [@iseraph-dev](https://github.com/iseraph-dev)! - Fixes the custom `500.astro` page receiving an empty `error` prop when the error originated in middleware.

- [#17098](https://github.com/withastro/astro/pull/17098) [`637a1b6`](https://github.com/withastro/astro/commit/637a1b6c6fe58fd271faf4ee7555787e4f4a0b9a) Thanks [@matthewp](https://github.com/matthewp)! - Fixes internal Astro headers leaking from direct `pages()` handler responses

## 7.0.0-beta.4

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "astro",
"version": "7.0.0-beta.4",
"version": "7.0.0-beta.5",
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
"type": "module",
"author": "withastro",
Expand Down
17 changes: 17 additions & 0 deletions packages/integrations/mdx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# @astrojs/mdx

## 7.0.0-beta.3

### Minor Changes

- [#17093](https://github.com/withastro/astro/pull/17093) [`4585fe5`](https://github.com/withastro/astro/commit/4585fe57dda06226058118f90a809f9e33d4b2af) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Replaces the import entrypoint of `getContainerRenderer()`

A new `container-renderer` entrypoint exporting `getContainerRenderer()` has been added to the following integrations: React, Preact, Svelte, SolidJS, Vue, and MDX. This prevents bundlers from trying to bundle unrelated exports from the package root when only the Container API is used.

If you are using the Container API, update your import statements to use the new entrypoint. The following example updates the `getContainerRenderer()` import for React:

```diff
- import { getContainerRenderer } from '@astrojs/react';
+ import { getContainerRenderer } from '@astrojs/react/container-renderer';
```

Importing `getContainerRenderer()` from the package root still works, but is now deprecated and logs a warning.

## 7.0.0-beta.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/mdx/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@astrojs/mdx",
"description": "Add support for MDX pages in your Astro site",
"version": "7.0.0-beta.2",
"version": "7.0.0-beta.3",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",
Expand Down
17 changes: 17 additions & 0 deletions packages/integrations/preact/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# @astrojs/preact

## 6.0.0-beta.2

### Minor Changes

- [#17093](https://github.com/withastro/astro/pull/17093) [`4585fe5`](https://github.com/withastro/astro/commit/4585fe57dda06226058118f90a809f9e33d4b2af) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Replaces the import entrypoint of `getContainerRenderer()`

A new `container-renderer` entrypoint exporting `getContainerRenderer()` has been added to the following integrations: React, Preact, Svelte, SolidJS, Vue, and MDX. This prevents bundlers from trying to bundle unrelated exports from the package root when only the Container API is used.

If you are using the Container API, update your import statements to use the new entrypoint. The following example updates the `getContainerRenderer()` import for React:

```diff
- import { getContainerRenderer } from '@astrojs/react';
+ import { getContainerRenderer } from '@astrojs/react/container-renderer';
```

Importing `getContainerRenderer()` from the package root still works, but is now deprecated and logs a warning.

## 6.0.0-beta.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/preact/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@astrojs/preact",
"description": "Use Preact components within Astro",
"version": "6.0.0-beta.1",
"version": "6.0.0-beta.2",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",
Expand Down
Loading
Loading