Skip to content

Commit 12505c9

Browse files
authored
feat(vite-plugin-cloudflare): add Vite 8 to the supported peer dependency range (cloudflare#12885)
1 parent 2363d48 commit 12505c9

4 files changed

Lines changed: 13 additions & 6 deletions

File tree

.changeset/green-buses-melt.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@cloudflare/vite-plugin": minor
3+
---
4+
5+
Add Vite 8 to the supported peer dependency range
6+
7+
The package now lists Vite 8 in its peer dependency range, so installs with Vite 8 no longer show a peer dependency warning.

.github/workflows/vite-plugin-playgrounds.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- os: ubuntu-latest
2929
vite: "vite-6"
3030
- os: ubuntu-latest
31-
vite: vite-8-beta
31+
vite: vite-8
3232
runs-on: ${{ matrix.os }}
3333
steps:
3434
- name: Checkout Repo
@@ -60,10 +60,10 @@ jobs:
6060
if: steps.changes.outputs.everything_but_markdown == 'true' && matrix.vite == 'vite-6'
6161
run: |
6262
pnpm update -r --no-save vite@6.4.1
63-
- name: Upgrade to Vite 8 beta
64-
if: steps.changes.outputs.everything_but_markdown == 'true' && matrix.vite == 'vite-8-beta'
63+
- name: Upgrade to Vite 8
64+
if: steps.changes.outputs.everything_but_markdown == 'true' && matrix.vite == 'vite-8'
6565
run: |
66-
pnpm update -r --no-save vite@beta
66+
pnpm update -r --no-save vite@^8.0.0
6767
- name: Run dev playground tests
6868
if: steps.changes.outputs.everything_but_markdown == 'true'
6969
# We use `--only` to prevent TurboRepo from rebuilding dependencies

packages/vite-plugin-cloudflare/AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ Vite plugin for Cloudflare Workers development. Exports `cloudflare()` plugin fa
2929

3030
- Unit tests: `.spec.ts` in `__tests__/`
3131
- E2E tests: `.test.ts` in `e2e/`, own vitest config
32-
- Playground tests: Playwright-based, tested across Vite 6/7/8-beta in CI
32+
- Playground tests: Playwright-based, tested across Vite 6/7/8 in CI

packages/vite-plugin-cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"vitest": "catalog:vitest-3"
7575
},
7676
"peerDependencies": {
77-
"vite": "^6.1.0 || ^7.0.0",
77+
"vite": "^6.1.0 || ^7.0.0 || ^8.0.0",
7878
"wrangler": "workspace:^"
7979
},
8080
"publishConfig": {

0 commit comments

Comments
 (0)