Skip to content

Commit

Permalink
[chore] upgrade to Undici 5.8.1 (#5804)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Aug 3, 2022
1 parent 5cdc20e commit 23f59b4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/violet-jars-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[chore] upgrade to Undici 5.8.1
2 changes: 1 addition & 1 deletion packages/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"svelte2tsx": "~0.5.10",
"tiny-glob": "^0.2.9",
"typescript": "^4.7.4",
"undici": "^5.6.1",
"undici": "^5.8.1",
"uvu": "^0.5.3",
"vite": "^3.0.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ for (let i = 0; i < chunk_size; i += 1) {
chunk += String(i % 10);
}

const encoder = new TextEncoder();

export function GET() {
let i = 0;

return {
body: new ReadableStream({
pull: (controller) => {
if (i++ < chunk_count) {
controller.enqueue(chunk);
controller.enqueue(encoder.encode(chunk));
} else {
controller.close();
}
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 23f59b4

Please sign in to comment.