From fb631c98524e2f934b8457785b729c97c23e65d8 Mon Sep 17 00:00:00 2001 From: Jacob Ebey Date: Mon, 26 Sep 2022 15:16:09 -0700 Subject: [PATCH] chore: update web-fetch dependency (#4277) chore: added .yarnrc to avoid multiple registries in lockfile --- .changeset/proud-geese-sin.md | 6 ++++++ .yarnrc | 1 + packages/remix-node/package.json | 2 +- yarn.lock | 18 +++++++++--------- 4 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 .changeset/proud-geese-sin.md create mode 100644 .yarnrc diff --git a/.changeset/proud-geese-sin.md b/.changeset/proud-geese-sin.md new file mode 100644 index 00000000000..6c5ebf66425 --- /dev/null +++ b/.changeset/proud-geese-sin.md @@ -0,0 +1,6 @@ +--- +"remix": patch +"@remix-run/node": patch +--- + +Update @remix-run/web-fetch dependency. Fixes `{Request | Response}.clone()` throwing when body is null. Also adds additional Node.js specific types to `fetch()` to allow use of `agent` from `http` and `https`. diff --git a/.yarnrc b/.yarnrc new file mode 100644 index 00000000000..45291c13382 --- /dev/null +++ b/.yarnrc @@ -0,0 +1 @@ +registry "https://registry.npmjs.org/" diff --git a/packages/remix-node/package.json b/packages/remix-node/package.json index f4077ef6c47..06b030e675d 100644 --- a/packages/remix-node/package.json +++ b/packages/remix-node/package.json @@ -16,7 +16,7 @@ "sideEffects": false, "dependencies": { "@remix-run/server-runtime": "1.7.2", - "@remix-run/web-fetch": "^4.1.3", + "@remix-run/web-fetch": "^4.3.0", "@remix-run/web-file": "^3.0.2", "@remix-run/web-stream": "^1.0.3", "@web3-storage/multipart-parser": "^1.0.0", diff --git a/yarn.lock b/yarn.lock index ce6e2fca92b..7b62707b2fa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2489,13 +2489,13 @@ "@remix-run/web-stream" "^1.0.0" web-encoding "1.1.5" -"@remix-run/web-fetch@^4.1.3": - version "4.1.3" - resolved "https://registry.npmjs.org/@remix-run/web-fetch/-/web-fetch-4.1.3.tgz" - integrity sha512-D3KXAEkzhR248mu7wCHReQrMrIo3Y9pDDa7TrlISnsOEvqkfWkJJF+PQWmOIKpOSHAhDg7TCb2tzvW8lc/MfHw== +"@remix-run/web-fetch@^4.3.0": + version "4.3.0" + resolved "https://registry.npmjs.org/@remix-run/web-fetch/-/web-fetch-4.3.0.tgz#8990c58352ecefed2ea32e13a924c4cc0d7d7328" + integrity sha512-//VynoWVu/hocB0TWfoUZdg6Yy/320cO4r0dN/eZUSM5/rLUGEy+NqAykyY8GKHjYYZimw96kRMFa3aQbwmp8g== dependencies: "@remix-run/web-blob" "^3.0.4" - "@remix-run/web-form-data" "^3.0.2" + "@remix-run/web-form-data" "^3.0.3" "@remix-run/web-stream" "^1.0.3" "@web3-storage/multipart-parser" "^1.0.0" data-uri-to-buffer "^3.0.1" @@ -2508,10 +2508,10 @@ dependencies: "@remix-run/web-blob" "^3.0.3" -"@remix-run/web-form-data@^3.0.2": - version "3.0.2" - resolved "https://registry.npmjs.org/@remix-run/web-form-data/-/web-form-data-3.0.2.tgz" - integrity sha512-F8tm3iB1sPxMpysK6Js7lV3gvLfTNKGmIW38t/e6dtPEB5L1WdbRG1cmLyhsonFc7rT1x1JKdz+2jCtoSdnIUw== +"@remix-run/web-form-data@^3.0.3": + version "3.0.3" + resolved "https://registry.npmjs.org/@remix-run/web-form-data/-/web-form-data-3.0.3.tgz#f89a7f971aaf1084d2da87affbb7f4e01c32b8ce" + integrity sha512-wL4veBtVPazSpXfPMzrbmeV3IxuxCfcQYPerQ8BXRO5ahAEVw23tv7xS+yoX0XDO5j+vpRaSbhHJK1H5gF7eYQ== dependencies: web-encoding "1.1.5"