Description
Version
v18.18.2
Platform
Darwin 23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:43 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6000 arm64
Subsystem
n/a
What steps will reproduce the bug?
n/a
How often does it reproduce? Is there a required condition?
n/a
What is the expected behavior? Why is that the expected behavior?
n/a
What do you see instead?
Options are not preserved when instantiating a new Fetch Request object using a Request
as the first parameter. This causes the options, that should have been copied, to be missing on the new Fetch Request object.
This behavior was fine on <= Node v18.18.1. It is broken on Node v18.18.2.
this.request = new globalThis.Request(this.request, {body: this._options.body});
The options
fail to be copied. Is this the new expected behavior of the Request constructor after the patch?
See: https://github.com/nodejs/node/releases/tag/v18.18.2
See: sindresorhus/ky#535
See: https://github.com/sindresorhus/ky/blob/d372e2eccf9f47597f2c0f49cba286e19d7974b3/source/core/Ky.ts#L203
Additional information
May be related to latest CVE fixes.