Skip to content

Commit

Permalink
chore: upgrade Vite and update tests (#13076)
Browse files Browse the repository at this point in the history
* chore: upgrade Vite and update tests

* chore: bump vite in other package.json as well

* chore: pnpm dedupe

---------

Co-authored-by: Matt Kane <m@mk.gg>
  • Loading branch information
sapphi-red and ascorbic authored Jan 29, 2025
1 parent 1c42fb4 commit 61ef2d9
Show file tree
Hide file tree
Showing 14 changed files with 102 additions and 101 deletions.
2 changes: 1 addition & 1 deletion packages/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
"unist-util-visit": "^5.0.0",
"unstorage": "^1.14.4",
"vfile": "^6.0.3",
"vite": "^6.0.9",
"vite": "^6.0.11",
"vitefu": "^1.0.5",
"which-pm": "^3.0.0",
"xxhash-wasm": "^1.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ const fileSystem = {
}`,
'/src/pages/streaming.js': `export const GET = ({ locals }) => {
let sentChunks = 0;
const readableStream = new ReadableStream({
async pull(controller) {
if (sentChunks === 3) return controller.close();
else sentChunks++;
await new Promise(resolve => setTimeout(resolve, 1000));
controller.enqueue(new TextEncoder().encode('hello'));
},
cancel() {
locals.cancelledByTheServer = true;
}
});
return new Response(readableStream, {
headers: {
"Content-Type": "text/event-stream"
Expand Down Expand Up @@ -77,6 +77,7 @@ describe('endpoints', () => {
'x-single': 'single',
'x-triple': 'one, two, three',
'set-cookie': ['hello', 'world'],
vary: 'Origin',
});
});

Expand Down
2 changes: 1 addition & 1 deletion packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@
"astro-scripts": "workspace:*",
"cheerio": "1.0.0",
"typescript": "^5.7.3",
"vite": "^6.0.9"
"vite": "^6.0.11"
}
}
2 changes: 1 addition & 1 deletion packages/integrations/alpinejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@playwright/test": "1.49.1",
"astro": "workspace:*",
"astro-scripts": "workspace:*",
"vite": "^6.0.9"
"vite": "^6.0.11"
},
"publishConfig": {
"provenance": true
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/markdoc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"astro-scripts": "workspace:*",
"devalue": "^5.1.1",
"linkedom": "^0.18.6",
"vite": "^6.0.9"
"vite": "^6.0.11"
},
"engines": {
"node": "^18.17.1 || ^20.3.0 || >=22.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"remark-toc": "^9.0.0",
"shiki": "^1.29.1",
"unified": "^11.0.5",
"vite": "^6.0.9"
"vite": "^6.0.11"
},
"engines": {
"node": "^18.17.1 || ^20.3.0 || >=22.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@preact/signals": "^2.0.1",
"babel-plugin-transform-hook-names": "^1.0.2",
"preact-render-to-string": "^6.5.13",
"vite": "^6.0.9"
"vite": "^6.0.11"
},
"devDependencies": {
"astro": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"dependencies": {
"@vitejs/plugin-react": "^4.3.4",
"ultrahtml": "^1.5.3",
"vite": "^6.0.9"
"vite": "^6.0.11"
},
"devDependencies": {
"@types/react": "^18.3.18",
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"dependencies": {
"vite-plugin-solid": "^2.11.0",
"vite": "^6.0.9"
"vite": "^6.0.11"
},
"devDependencies": {
"astro": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"dependencies": {
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"svelte2tsx": "^0.7.34",
"vite": "^6.0.9"
"vite": "^6.0.11"
},
"devDependencies": {
"astro": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/tailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"astro": "workspace:*",
"astro-scripts": "workspace:*",
"tailwindcss": "^3.4.17",
"vite": "^6.0.9"
"vite": "^6.0.11"
},
"peerDependencies": {
"astro": "^3.0.0 || ^4.0.0 || ^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@vitejs/plugin-vue": "^5.2.1",
"@vitejs/plugin-vue-jsx": "^4.1.1",
"@vue/compiler-sfc": "^3.5.13",
"vite": "^6.0.9",
"vite": "^6.0.11",
"vite-plugin-vue-devtools": "^7.7.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
"astro": "workspace:*",
"astro-scripts": "workspace:*",
"typescript": "^5.7.3",
"vite": "^6.0.9"
"vite": "^6.0.11"
}
}
Loading

0 comments on commit 61ef2d9

Please sign in to comment.