Skip to content

Commit 39b8df9

Browse files
committed
chore: upgrade Astro 6 beta to stable
Move from astro@6.0.0-beta.17 to astro@^6.0.4 (stable) and centralize the version in the pnpm catalog. Also upgrades Astro integrations from beta to stable: @astrojs/react 5.0.0, @astrojs/alpinejs 0.5.0, and @astrojs/partytown ^2.1.5. Fixes build test to handle Astro 6 stable's chunk output structure where multiple index_*.mjs chunks may exist in server builds.
1 parent 9f51d63 commit 39b8df9

5 files changed

Lines changed: 65 additions & 114 deletions

File tree

packages/core/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"dependencies": {
1818
"@shikijs/transformers": "^4.0.0",
19-
"astro": "6.0.0-beta.17",
19+
"astro": "catalog:",
2020
"hast-util-to-html": "^9.0.0",
2121
"rehype-parse": "^9.0.0",
2222
"unified": "^11.0.0",
@@ -45,9 +45,9 @@
4545
},
4646
"type": "module",
4747
"devDependencies": {
48-
"@astrojs/alpinejs": "0.5.0-beta.1",
49-
"@astrojs/partytown": "^2.1.4",
50-
"@astrojs/react": "5.0.0-beta.3",
48+
"@astrojs/alpinejs": "0.5.0",
49+
"@astrojs/partytown": "^2.1.5",
50+
"@astrojs/react": "5.0.0",
5151
"@types/alpinejs": "^3.13.11",
5252
"@types/hast": "^3.0.4",
5353
"@types/react": "^19.2.14",

packages/core/tests/build/basic.test.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,13 @@ describe("build basic fixture", () => {
3939
expect(entryExists).toBeDefined();
4040

4141
const chunks = await readdir(path.join(serverDir, "chunks"));
42-
const pageChunk = chunks.find(
43-
(f) => f.startsWith("index_") && f.endsWith(".mjs"),
44-
) as string;
45-
expect(pageChunk).toBeTypeOf("string");
46-
47-
const output = await readFile(path.join(serverDir, "chunks", pageChunk), {
48-
encoding: "utf-8",
49-
});
50-
expect(output).toContain("<p>Hello World!</p>");
42+
const output = await Promise.all(
43+
chunks
44+
.filter((f) => f.startsWith("index_") && f.endsWith(".mjs"))
45+
.map((f) =>
46+
readFile(path.join(serverDir, "chunks", f), { encoding: "utf-8" }),
47+
),
48+
);
49+
expect(output.some((c) => c.includes("<p>Hello World!</p>"))).toBe(true);
5150
});
5251
});

packages/hono/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"dependencies": {
1616
"@gomighty/core": "workspace:*",
1717
"@hono/node-server": "catalog:",
18-
"astro": "6.0.0-beta.17",
18+
"astro": "catalog:",
1919
"fetch-to-node": "^2.1.0",
2020
"hono": "catalog:",
2121
"zod": "^4.0.15"

0 commit comments

Comments
 (0)