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
5 changes: 5 additions & 0 deletions .changeset/big-cups-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': major
---

Deprecates `loadManifest()` and `loadApp()` from `astro/app/node` (Adapter API) - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/#deprecated-loadmanifest-and-loadapp-from-astroappnode-adapter-api))
21 changes: 21 additions & 0 deletions .changeset/good-clubs-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
'astro': minor
---

Exports new `createRequest()` and `writeResponse()` utilities from `astro/app/node`

To replace the deprecated `NodeApp.createRequest()` and `NodeApp.writeResponse()` methods, the `astro/app/node` module now exposes new `createRequest()` and `writeResponse()` utilities. These can be used to convert a NodeJS `IncomingMessage` into a web-standard `Request` and stream a web-standard `Response` into a NodeJS `ServerResponse`:

```js
import { createApp } from 'astro/app/entrypoint';
import { createRequest, writeResponse } from 'astro/app/node';
import { createServer } from 'node:http';

const app = createApp();

const server = createServer(async (req, res) => {
const request = createRequest(req);
const response = await app.render(request);
await writeResponse(response, res);
})
```
27 changes: 27 additions & 0 deletions .changeset/heavy-beers-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
'astro': minor
---

Adds a new build-in font provider `npm` to access fonts installed as NPM packages

You can now add web fonts specified in your `package.json` through Astro's type-safe Fonts API. The `npm` font provider allows you to add fonts either from locally installed packages in `node_modules` or from a CDN.

Set `fontProviders.npm()` as your fonts provider along with the required `name` and `cssVariable` values, and add `options` as needed:

```js
import { defineConfig, fontProviders } from 'astro/config';

export default defineConfig({
experimental: {
fonts: [
{
name: 'Roboto',
provider: fontProviders.npm(),
cssVariable: '--font-roboto',
},
],
},
});
```

See the [NPM font provider reference documentation](https://v6.docs.astro.build/en/reference/font-provider-reference/#npm) for more details.
5 changes: 5 additions & 0 deletions .changeset/olive-dots-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fixes the types of `createApp()` exported from `astro/app/entrypoint`
5 changes: 5 additions & 0 deletions .changeset/polite-terms-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': major
---

Deprecates `NodeApp` from `astro/app/node` (Adapter API) - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/#deprecated-nodeapp-from-astroappnode-adapter-api))
17 changes: 17 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,13 @@
"beta-tag-solid",
"beta-tag-upgrade",
"better-redirect-error",
"big-cups-drive",
"big-forks-lead",
"big-laws-dig",
"bold-ghosts-sink",
"bright-parrots-hear",
"bright-pens-dance",
"bright-symbols-see",
"bright-worlds-juggle",
"brown-beds-pay",
"busy-actors-follow",
Expand Down Expand Up @@ -91,7 +94,9 @@
"fancy-bananas-sing",
"fast-bushes-fall",
"fifty-dingos-study",
"fix-content-hmr",
"fix-create-astro-registry-hang",
"fix-markdoc-table-attributes",
"fix-mdx-slot-hydration",
"fix-preact-cloudflare-hooks",
"fix-rewrite-non-ascii-paths",
Expand All @@ -111,6 +116,7 @@
"funny-planes-lick",
"giant-areas-press",
"good-camels-pull",
"good-clubs-cover",
"great-nails-brake",
"green-garlics-heal",
"grumpy-tables-serve",
Expand All @@ -132,8 +138,10 @@
"late-carrots-cough",
"late-spiders-change",
"legacy-collections-backwards-compat-docs",
"light-parrots-find",
"long-trams-see",
"lovely-mice-sniff",
"lowercase-style-tags",
"many-banks-hammer",
"markdoc-emit-client-asset",
"markdoc-emit-image-metadata",
Expand All @@ -145,13 +153,16 @@
"new-beans-obey",
"nice-clouds-pull",
"old-donuts-visit",
"olive-dots-jam",
"open-days-watch",
"open-monkeys-boil",
"optional-wrangler-config",
"polite-terms-shop",
"pretty-forks-smash",
"proud-pans-change",
"public-files-priority",
"public-lemons-mate",
"puny-dragons-fail",
"puny-poems-create",
"quick-dingos-itch",
"quiet-cars-burn",
Expand All @@ -161,9 +172,11 @@
"render-markdown-file-url",
"render-markdown-frontmatter",
"rich-horses-begin",
"ripe-nights-feel",
"route-data-breaking",
"sad-lines-hear",
"sad-teams-end",
"short-pears-hammer",
"shy-cats-grin",
"six-women-visit",
"sixty-deer-fold",
Expand All @@ -183,12 +196,14 @@
"sql-import-fix",
"ssr-manifest-breaking",
"stale-ads-see",
"static-output-cloudflare",
"strict-regions-drop",
"strong-islands-say",
"strong-wolves-march",
"sweet-buttons-jam",
"swift-planets-swim",
"tall-needles-cross",
"tall-worms-live",
"tangy-days-wink",
"tangy-years-grin",
"tender-bats-tan",
Expand All @@ -200,6 +215,7 @@
"tricky-donkeys-camp",
"true-bats-punch",
"true-dingos-attack",
"upset-dodos-rhyme",
"vite-environments-breaking",
"vite-plugin-react-v5",
"vite-plugin-vue-v6",
Expand All @@ -209,6 +225,7 @@
"whole-geckos-think",
"wrangler-main-field",
"young-banks-camp",
"young-pandas-talk",
"yummy-peas-carry"
]
}
5 changes: 5 additions & 0 deletions .changeset/quiet-owls-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Avoid bundling SSR renderers when only API endpoints are dynamic
5 changes: 5 additions & 0 deletions .changeset/silly-eels-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fixes a case where `context.csp` was logging warnings in development that should be logged in production only
27 changes: 14 additions & 13 deletions benchmark/packages/timer/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import type { IncomingMessage, ServerResponse } from 'node:http';
import type { SSRManifest } from 'astro';
import { NodeApp } from 'astro/app/node';
import { createApp } from 'astro/app/entrypoint';
import { createRequest } from 'astro/app/node';

export function createExports(manifest: SSRManifest) {
const app = new NodeApp(manifest);
return {
handler: async (req: IncomingMessage, res: ServerResponse) => {
const start = performance.now();
await app.render(req);
const end = performance.now();
res.write(end - start + '');
res.end();
},
};
const app = createApp();

export async function handler(req: IncomingMessage, res: ServerResponse): Promise<void> {
const start = performance.now();
await app.render(
createRequest(req, {
allowedDomains: app.manifest.allowedDomains,
}),
);
const end = performance.now();
res.write(end - start + '');
res.end();
}
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": "^6.0.0-beta.11"
"astro": "^6.0.0-beta.12"
}
}
2 changes: 1 addition & 1 deletion examples/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@astrojs/mdx": "^5.0.0-beta.7",
"@astrojs/rss": "^4.0.15-beta.3",
"@astrojs/sitemap": "^3.6.1-beta.3",
"astro": "^6.0.0-beta.11",
"astro": "^6.0.0-beta.12",
"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": "^6.0.0-beta.11"
"astro": "^6.0.0-beta.12"
},
"peerDependencies": {
"astro": "^5.0.0 || ^6.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/container-with-vitest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"@astrojs/react": "^5.0.0-beta.3",
"astro": "^6.0.0-beta.11",
"astro": "^6.0.0-beta.12",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"vitest": "^3.2.4"
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": "^0.5.0-beta.1",
"@types/alpinejs": "^3.13.11",
"alpinejs": "^3.15.8",
"astro": "^6.0.0-beta.11"
"astro": "^6.0.0-beta.12"
}
}
2 changes: 1 addition & 1 deletion examples/framework-multiple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@astrojs/vue": "^6.0.0-beta.1",
"@types/react": "^18.3.28",
"@types/react-dom": "^18.3.7",
"astro": "^6.0.0-beta.11",
"astro": "^6.0.0-beta.12",
"preact": "^10.28.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"@astrojs/preact": "^5.0.0-beta.3",
"@preact/signals": "^2.7.1",
"astro": "^6.0.0-beta.11",
"astro": "^6.0.0-beta.12",
"preact": "^10.28.3"
}
}
2 changes: 1 addition & 1 deletion examples/framework-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@astrojs/react": "^5.0.0-beta.3",
"@types/react": "^18.3.28",
"@types/react-dom": "^18.3.7",
"astro": "^6.0.0-beta.11",
"astro": "^6.0.0-beta.12",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@astrojs/solid-js": "^6.0.0-beta.2",
"astro": "^6.0.0-beta.11",
"astro": "^6.0.0-beta.12",
"solid-js": "^1.9.11"
}
}
2 changes: 1 addition & 1 deletion examples/framework-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@astrojs/svelte": "^8.0.0-beta.2",
"astro": "^6.0.0-beta.11",
"astro": "^6.0.0-beta.12",
"svelte": "^5.50.3"
}
}
2 changes: 1 addition & 1 deletion examples/framework-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@astrojs/vue": "^6.0.0-beta.1",
"astro": "^6.0.0-beta.11",
"astro": "^6.0.0-beta.12",
"vue": "^3.5.28"
}
}
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": "^10.0.0-beta.4",
"astro": "^6.0.0-beta.11"
"astro": "^6.0.0-beta.12"
}
}
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": "^6.0.0-beta.11"
"astro": "^6.0.0-beta.12"
},
"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": "^6.0.0-beta.11"
"astro": "^6.0.0-beta.12"
}
}
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": "^6.0.0-beta.11"
"astro": "^6.0.0-beta.12"
}
}
2 changes: 1 addition & 1 deletion examples/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"@astrojs/node": "^10.0.0-beta.4",
"@astrojs/svelte": "^8.0.0-beta.2",
"astro": "^6.0.0-beta.11",
"astro": "^6.0.0-beta.12",
"svelte": "^5.50.3"
}
}
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": "^6.0.0-beta.11",
"astro": "^6.0.0-beta.12",
"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": "^18.17.8",
"astro": "^6.0.0-beta.11"
"astro": "^6.0.0-beta.12"
},
"engines": {
"node": ">=22.12.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/with-markdoc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/markdoc": "^1.0.0-beta.9",
"astro": "^6.0.0-beta.11"
"@astrojs/markdoc": "^1.0.0-beta.10",
"astro": "^6.0.0-beta.12"
}
}
2 changes: 1 addition & 1 deletion examples/with-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"@astrojs/mdx": "^5.0.0-beta.7",
"@astrojs/preact": "^5.0.0-beta.3",
"astro": "^6.0.0-beta.11",
"astro": "^6.0.0-beta.12",
"preact": "^10.28.3"
}
}
2 changes: 1 addition & 1 deletion examples/with-nanostores/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"@astrojs/preact": "^5.0.0-beta.3",
"@nanostores/preact": "^1.0.0",
"astro": "^6.0.0-beta.11",
"astro": "^6.0.0-beta.12",
"nanostores": "^1.1.0",
"preact": "^10.28.3"
}
Expand Down
Loading
Loading