Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: Use Headers.prototype.getSetCookie to avoid comma-splitting #67

Merged
merged 1 commit into from
Mar 24, 2023

Conversation

meyfa
Copy link
Owner

@meyfa meyfa commented Mar 24, 2023

Since Node.js now has getSetCookie available, we can use it instead of splitting the header on comma, which was very error-prone.

Ref: nodejs/undici#1915

The linked PR was released as Undici v5.19.0, which is first available in Node.js 18.14.1. Since Node.js 18.14.2 has an even more up-tp-date version of Undici (5.20.0), I figured it'd be sensible to raise our requirement to that.

BREAKING CHANGE: Engine version requirement raised to Node >=18.14.2.

@meyfa meyfa added the fix label Mar 24, 2023
Since Node.js now has `getSetCookie` available, we can use it instead of
splitting the header on comma, which was very error-prone.

Ref: nodejs/undici#1915

The linked PR was released as Undici v5.19.0, which is first available
in Node.js 18.14.1. Since Node.js 18.14.2 has an even more up-tp-date
version of Undici (5.20.0), I figured it'd be sensible to raise our
requirement to that.

BREAKING CHANGE: Engine version requirement raised to Node `>=18.14.2`.
@meyfa meyfa force-pushed the fix/get-set-cookie branch from ee90121 to 6372509 Compare March 24, 2023 14:57
@meyfa meyfa merged commit 1541794 into main Mar 24, 2023
@meyfa meyfa deleted the fix/get-set-cookie branch March 24, 2023 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant