From 7894fa43b6dfdf1974f5d7cf8408fddc15cb866b Mon Sep 17 00:00:00 2001 From: Cameron Robey Date: Mon, 15 Aug 2022 21:10:53 +0100 Subject: [PATCH] Bump undici version and minimum node version (#333) * Bump undici version and minimum node version To target security vulnerabilities in undici, we update to the latest version. From undici v5.7.0, we require a node >=16.8.0 - here we update the minimum to 16.13.0 (the first Node 16 LTS release) * Pin undici version We should pin the version of undici * Wrap `Body#formData()` `Buffer` chunks in `Uint8Array`s Workaround for https://github.com/nodejs/undici/pull/1601 * Delay freed check in `HTMLRewriter` `ArrayBuffer(View)` chunk test Co-authored-by: MrBBot --- .github/workflows/test.yml | 6 +- docs/src/content/get-started/cli.md | 2 +- docs/src/content/get-started/migrating.md | 2 +- package-lock.json | 86 +++++++++---------- package.json | 2 +- packages/cache/package.json | 4 +- packages/cli-parser/package.json | 2 +- packages/core/package.json | 4 +- packages/core/src/plugins/core.ts | 2 +- packages/core/src/standards/http.ts | 4 +- packages/core/src/standards/streams.ts | 2 +- packages/durable-objects/package.json | 4 +- packages/html-rewriter/package.json | 4 +- packages/html-rewriter/test/rewriter.spec.ts | 2 + packages/http-server/package.json | 4 +- .../jest-environment-miniflare/package.json | 2 +- packages/kv/package.json | 2 +- packages/miniflare/bootstrap.js | 4 +- packages/miniflare/package.json | 4 +- packages/r2/package.json | 4 +- packages/runner-vm/package.json | 2 +- packages/scheduler/package.json | 2 +- packages/shared-test/package.json | 2 +- packages/shared/package.json | 2 +- packages/sites/package.json | 2 +- packages/storage-file/package.json | 2 +- packages/storage-memory/package.json | 2 +- packages/storage-redis/package.json | 2 +- packages/watcher/package.json | 2 +- packages/web-sockets/package.json | 6 +- scripts/scaffold.mjs | 2 +- 31 files changed, 87 insertions(+), 85 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0ea7e99f3..4c17091d0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,9 +7,9 @@ name: Test on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] jobs: test: @@ -19,7 +19,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - node: [16.7.0, 18.x] + node: [16.13.0, 18.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: diff --git a/docs/src/content/get-started/cli.md b/docs/src/content/get-started/cli.md index 810905a88..a6aeaf7ae 100644 --- a/docs/src/content/get-started/cli.md +++ b/docs/src/content/get-started/cli.md @@ -32,7 +32,7 @@ $ npx miniflare