Skip to content

Commit cb8cfd3

Browse files
Merge branch 'main' into chore/remove-tailwind-integration
2 parents 42aa246 + 758523c commit cb8cfd3

File tree

86 files changed

+1121
-1075
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1121
-1075
lines changed

.changeset/calm-beans-roll.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'astro': patch
3+
---
4+
5+
The `ActionAPIContext.rewrite` method is deprecated and will be removed in a future major version of Astro

.changeset/twenty-dogs-listen.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
'@astrojs/cloudflare': minor
3+
---
4+
5+
Automatically configures Cloudflare KV storage when experimental sessions are enabled
6+
7+
8+
If the `experimental.session` flag is enabled when using the Cloudflare adapter, Astro will automatically configure the session storage using the Cloudflare KV driver. You can still manually configure the session storage if you need to use a different driver or want to customize the session storage configuration. If you want to use sessions, you will need to create the KV namespace and declare it in your wrangler config. You can do this using the Wrangler CLI:
9+
10+
```sh
11+
npx wrangler kv namespace create SESSION
12+
```
13+
14+
This will log the id of the created namespace. You can then add it to your `wrangler.json`/`wrangler.toml` file like this:
15+
16+
```jsonc
17+
// wrangler.json
18+
{
19+
"kv_namespaces": [
20+
{
21+
"binding": "SESSION",
22+
"id": "<your kv namespace id here>"
23+
}
24+
]
25+
}
26+
```
27+
28+
By default it uses the binding name `SESSION`, but if you want to use a different binding name you can do so by passing the `sessionKVBindingName` option to the adapter. For example:
29+
30+
```js
31+
import { defineConfig } from 'astro/config';
32+
import cloudflare from '@astrojs/cloudflare';
33+
export default defineConfig({
34+
output: 'server',
35+
site: `http://example.com`,
36+
adapter: cloudflare({
37+
platformProxy: {
38+
enabled: true,
39+
},
40+
sessionKVBindingName: 'MY_SESSION',
41+
}),
42+
experimental: {
43+
session: true,
44+
}
45+
});
46+
47+
```
48+
49+
See [the Cloudflare KV docs](https://developers.cloudflare.com/kv/concepts/kv-namespaces/) for more details on setting up KV namespaces.
50+
51+
See [the experimental session docs](https://docs.astro.build/en/reference/experimental-flags/sessions/) for more information on configuring session storage.

benchmark/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"tinyexec": "^0.3.2"
2525
},
2626
"devDependencies": {
27-
"@codspeed/vitest-plugin": "4.0.0",
27+
"@codspeed/vitest-plugin": "4.0.1",
2828
"vitest": "^3.0.9"
2929
}
3030
}

examples/container-with-vitest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"vitest": "^3.0.9"
1919
},
2020
"devDependencies": {
21-
"@types/react": "^18.3.19",
21+
"@types/react": "^18.3.20",
2222
"@types/react-dom": "^18.3.5"
2323
}
2424
}

examples/framework-multiple/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
"@astrojs/solid-js": "^5.0.6",
1616
"@astrojs/svelte": "^7.0.8",
1717
"@astrojs/vue": "^5.0.8",
18-
"@types/react": "^18.3.19",
18+
"@types/react": "^18.3.20",
1919
"@types/react-dom": "^18.3.5",
2020
"astro": "^5.5.5",
2121
"preact": "^10.26.4",
2222
"react": "^18.3.1",
2323
"react-dom": "^18.3.1",
2424
"solid-js": "^1.9.5",
25-
"svelte": "^5.23.2",
25+
"svelte": "^5.25.3",
2626
"vue": "^3.5.13"
2727
}
2828
}

examples/framework-preact/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@astrojs/preact": "^4.0.7",
14-
"@preact/signals": "^2.0.1",
14+
"@preact/signals": "^2.0.2",
1515
"astro": "^5.5.5",
1616
"preact": "^10.26.4"
1717
}

examples/framework-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@astrojs/react": "^4.2.2",
14-
"@types/react": "^18.3.19",
14+
"@types/react": "^18.3.20",
1515
"@types/react-dom": "^18.3.5",
1616
"astro": "^5.5.5",
1717
"react": "^18.3.1",

examples/framework-svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"dependencies": {
1313
"@astrojs/svelte": "^7.0.8",
1414
"astro": "^5.5.5",
15-
"svelte": "^5.23.2"
15+
"svelte": "^5.25.3"
1616
}
1717
}

examples/ssr/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"@astrojs/node": "^9.1.3",
1515
"@astrojs/svelte": "^7.0.8",
1616
"astro": "^5.5.5",
17-
"svelte": "^5.23.2"
17+
"svelte": "^5.25.3"
1818
}
1919
}

examples/with-tailwindcss/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
},
1212
"dependencies": {
1313
"@astrojs/mdx": "^4.2.2",
14-
"@tailwindcss/vite": "^4.0.15",
14+
"@tailwindcss/vite": "^4.0.17",
1515
"@types/canvas-confetti": "^1.9.0",
1616
"astro": "^5.5.5",
1717
"canvas-confetti": "^1.9.3",
18-
"tailwindcss": "^4.0.15"
18+
"tailwindcss": "^4.0.17"
1919
}
2020
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@changesets/cli": "^2.28.1",
6161
"@types/node": "^18.17.8",
6262
"esbuild": "^0.25.0",
63-
"eslint": "^9.22.0",
63+
"eslint": "^9.23.0",
6464
"eslint-plugin-regexp": "^2.7.0",
6565
"only-allow": "^1.2.1",
6666
"prettier": "^3.5.3",
@@ -69,7 +69,7 @@
6969
"tinyglobby": "^0.2.12",
7070
"turbo": "^2.4.4",
7171
"typescript": "~5.8.2",
72-
"typescript-eslint": "^8.27.0"
72+
"typescript-eslint": "^8.28.0"
7373
},
7474
"pnpm": {
7575
"peerDependencyRules": {

packages/astro/e2e/fixtures/actions-blog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@astrojs/db": "workspace:*",
1515
"@astrojs/node": "workspace:*",
1616
"@astrojs/react": "workspace:*",
17-
"@types/react": "^18.3.18",
17+
"@types/react": "^18.3.20",
1818
"@types/react-dom": "^18.3.5",
1919
"astro": "workspace:*",
2020
"react": "^18.3.1",

packages/astro/e2e/fixtures/client-only/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"react": "^18.3.1",
1616
"react-dom": "^18.3.1",
1717
"solid-js": "^1.9.5",
18-
"svelte": "^5.22.6",
18+
"svelte": "^5.25.3",
1919
"vue": "^3.5.13"
2020
}
2121
}

packages/astro/e2e/fixtures/error-sass/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"private": true,
55
"dependencies": {
66
"astro": "workspace:*",
7-
"sass": "^1.85.1"
7+
"sass": "^1.86.0"
88
}
99
}

packages/astro/e2e/fixtures/errors/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
"preact": "^10.26.4",
1313
"react": "^18.3.1",
1414
"react-dom": "^18.3.1",
15-
"sass": "^1.85.1",
15+
"sass": "^1.86.0",
1616
"solid-js": "^1.9.5",
17-
"svelte": "^5.22.6",
17+
"svelte": "^5.25.3",
1818
"vue": "^3.5.13"
1919
}
2020
}

packages/astro/e2e/fixtures/hmr/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"private": true,
55
"devDependencies": {
66
"astro": "workspace:*",
7-
"sass": "^1.85.1"
7+
"sass": "^1.86.0"
88
}
99
}

packages/astro/e2e/fixtures/multiple-frameworks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"react": "^18.3.1",
1818
"react-dom": "^18.3.1",
1919
"solid-js": "^1.9.5",
20-
"svelte": "^5.22.6",
20+
"svelte": "^5.25.3",
2121
"vue": "^3.5.13"
2222
}
2323
}

packages/astro/e2e/fixtures/nested-in-preact/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"react": "^18.3.1",
1616
"react-dom": "^18.3.1",
1717
"solid-js": "^1.9.5",
18-
"svelte": "^5.22.6",
18+
"svelte": "^5.25.3",
1919
"vue": "^3.5.13"
2020
}
2121
}

packages/astro/e2e/fixtures/nested-in-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"react": "^18.3.1",
1616
"react-dom": "^18.3.1",
1717
"solid-js": "^1.9.5",
18-
"svelte": "^5.22.6",
18+
"svelte": "^5.25.3",
1919
"vue": "^3.5.13"
2020
}
2121
}

packages/astro/e2e/fixtures/nested-in-solid/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"react": "^18.3.1",
1616
"react-dom": "^18.3.1",
1717
"solid-js": "^1.9.5",
18-
"svelte": "^5.22.6",
18+
"svelte": "^5.25.3",
1919
"vue": "^3.5.13"
2020
}
2121
}

packages/astro/e2e/fixtures/nested-in-svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"react": "^18.3.1",
1616
"react-dom": "^18.3.1",
1717
"solid-js": "^1.9.5",
18-
"svelte": "^5.22.6",
18+
"svelte": "^5.25.3",
1919
"vue": "^3.5.13"
2020
}
2121
}

packages/astro/e2e/fixtures/nested-in-vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"react": "^18.3.1",
1616
"react-dom": "^18.3.1",
1717
"solid-js": "^1.9.5",
18-
"svelte": "^5.22.6",
18+
"svelte": "^5.25.3",
1919
"vue": "^3.5.13"
2020
}
2121
}

packages/astro/e2e/fixtures/nested-recursive/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"react": "^18.3.1",
1616
"react-dom": "^18.3.1",
1717
"solid-js": "^1.9.5",
18-
"svelte": "^5.22.6",
18+
"svelte": "^5.25.3",
1919
"vue": "^3.5.13"
2020
},
2121
"scripts": {

packages/astro/e2e/fixtures/svelte-component/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
"@astrojs/mdx": "workspace:*",
77
"@astrojs/svelte": "workspace:*",
88
"astro": "workspace:*",
9-
"svelte": "^5.22.6"
9+
"svelte": "^5.25.3"
1010
}
1111
}

packages/astro/e2e/fixtures/tailwindcss/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"version": "0.0.0",
44
"private": true,
55
"dependencies": {
6-
"@tailwindcss/vite": "^4.0.12",
6+
"@tailwindcss/vite": "^4.0.17",
77
"astro": "workspace:*",
8-
"tailwindcss": "^4.0.12"
8+
"tailwindcss": "^4.0.17"
99
}
1010
}

packages/astro/e2e/fixtures/view-transitions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"react": "^18.3.1",
1313
"react-dom": "^18.3.1",
1414
"solid-js": "^1.9.5",
15-
"svelte": "^5.22.6",
15+
"svelte": "^5.25.3",
1616
"vue": "^3.5.13"
1717
}
1818
}

packages/astro/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@
154154
"neotraverse": "^0.6.18",
155155
"p-limit": "^6.2.0",
156156
"p-queue": "^8.1.0",
157-
"package-manager-detector": "^1.0.0",
157+
"package-manager-detector": "^1.1.0",
158158
"picomatch": "^4.0.2",
159159
"prompts": "^2.4.2",
160160
"rehype": "^13.0.2",
161161
"semver": "^7.7.1",
162-
"shiki": "^3.0.0",
162+
"shiki": "^3.2.1",
163163
"tinyexec": "^0.3.2",
164164
"tinyglobby": "^0.2.12",
165165
"tsconfck": "^3.1.5",
@@ -173,15 +173,15 @@
173173
"yargs-parser": "^21.1.1",
174174
"yocto-spinner": "^0.2.1",
175175
"zod": "^3.24.2",
176-
"zod-to-json-schema": "^3.24.3",
176+
"zod-to-json-schema": "^3.24.5",
177177
"zod-to-ts": "^1.2.0"
178178
},
179179
"optionalDependencies": {
180180
"sharp": "^0.33.3"
181181
},
182182
"devDependencies": {
183183
"@astrojs/check": "^0.9.4",
184-
"@playwright/test": "^1.51.0",
184+
"@playwright/test": "^1.51.1",
185185
"@types/aria-query": "^5.0.4",
186186
"@types/common-ancestor-path": "^1.0.2",
187187
"@types/cssesc": "^3.0.2",
@@ -194,7 +194,7 @@
194194
"@types/js-yaml": "^4.0.9",
195195
"@types/picomatch": "^3.0.2",
196196
"@types/prompts": "^2.4.9",
197-
"@types/semver": "^7.5.8",
197+
"@types/semver": "^7.7.0",
198198
"@types/yargs-parser": "^21.0.3",
199199
"astro-scripts": "workspace:*",
200200
"cheerio": "1.0.0",
@@ -210,11 +210,11 @@
210210
"rehype-slug": "^6.0.0",
211211
"rehype-toc": "^3.0.2",
212212
"remark-code-titles": "^0.1.2",
213-
"rollup": "^4.35.0",
214-
"sass": "^1.85.1",
215-
"undici": "^7.4.0",
213+
"rollup": "^4.37.0",
214+
"sass": "^1.86.0",
215+
"undici": "^7.5.0",
216216
"unified": "^11.0.5",
217-
"vitest": "^3.0.8"
217+
"vitest": "^3.0.9"
218218
},
219219
"engines": {
220220
"node": "^18.17.1 || ^20.3.0 || >=22.0.0",

packages/astro/performance/fixtures/md/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"dependencies": {
1616
"@astrojs/react": "workspace:*",
1717
"@performance/utils": "workspace:*",
18-
"@types/react": "^18.3.18",
18+
"@types/react": "^18.3.20",
1919
"@types/react-dom": "^18.3.5",
2020
"astro": "workspace:*",
2121
"react": "^18.3.1",

packages/astro/performance/fixtures/mdoc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@astrojs/markdoc": "workspace:*",
1717
"@astrojs/react": "workspace:*",
1818
"@performance/utils": "workspace:*",
19-
"@types/react": "^18.3.18",
19+
"@types/react": "^18.3.20",
2020
"@types/react-dom": "^18.3.5",
2121
"astro": "workspace:*",
2222
"react": "^18.3.1",

packages/astro/performance/fixtures/mdx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@astrojs/mdx": "workspace:*",
1717
"@astrojs/react": "workspace:*",
1818
"@performance/utils": "workspace:*",
19-
"@types/react": "^18.3.18",
19+
"@types/react": "^18.3.20",
2020
"@types/react-dom": "^18.3.5",
2121
"astro": "workspace:*",
2222
"react": "^18.3.1",

0 commit comments

Comments
 (0)