astro/.changeset
Alex Sherwin 4929332c32
#7226 - fixes NodeJS adapter for multiple set-cookie headers (and other header issues) (#7227)
* Utilizes the new standard WebAPI Fetch Headers.getSetCookie() function
to safely handle multiple set-cookie headers when converting from a
WebAPI Response to a NodeJS ServerResponse

Modifies the existing nodeMiddleware logic which first set AstroCookies
on ServerResponse.setHeader(...) and then called
ServerResponse.writeHead(status, Response.headers) which means any that
if the WebAPI Response had any set-cookie headers on it, they would
replace anything from AstroCookies.

The new logic delegates appending AstroCookie values onto the WebAPI
Response Headers object, so that a single unified function safely
converts the WebAPI Response Headers into a NodeJS compatible
OutgoingHttpHeaders object utilizing the new standard
Headers.getSetCookie() function provided by the undici WebAPI polyfills.

Plus extensive test coverage.

* #7226 - changeset for NodeJS adapter set-cookie fix

* fixing all double quotes to single quotes

---------

Co-authored-by: Alex Sherwin <alex.sherwin@acadia.inc>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-06 10:09:16 -05:00
..
chatty-actors-stare.md Redirects (#7067) 2023-06-05 09:03:20 -04:00
chatty-rats-whisper.md fix:query not considered in directory redirection (#7243) 2023-06-06 10:09:00 -05:00
chilled-rockets-flash.md #7226 - fixes NodeJS adapter for multiple set-cookie headers (and other header issues) (#7227) 2023-06-06 10:09:16 -05:00
config.json Fix changeset publish (#6923) 2023-04-27 22:55:48 +08:00
fuzzy-ladybugs-jump.md Redirects (#7067) 2023-06-05 09:03:20 -04:00
fuzzy-tables-build.md Remove experimental flag for custom client directives (#7237) 2023-06-06 00:04:35 +08:00
hip-news-clean.md Redirects (#7067) 2023-06-05 09:03:20 -04:00
khaki-onions-relax.md fix(html): Export HTML components as default export so their type is valid JSX (#7296) 2023-06-05 16:40:53 +02:00
lazy-falcons-divide.md Fixes cookies being set by middleware (#7294) 2023-06-05 08:28:29 -04:00
light-sheep-hunt.md Fix nested astro-island hydration race condition (#7197) 2023-06-06 17:39:25 +08:00
orange-dryers-shop.md Fix injected scripts not injected to injected routes (#7262) 2023-06-06 10:08:38 -05:00
README.md Migrate to yarn monorepo (#157) 2021-04-30 16:33:35 -05:00
slimy-hotels-agree.md feat(tsconfigs): Enable allowJs in base preset (#7274) 2023-06-05 17:31:21 +02:00
stupid-pumpkins-perform.md Stabilize inline stylesheets (#7180) 2023-06-05 10:28:29 -04:00
tasty-stingrays-smile.md remove the white space after the doctype according to the property co… (#7242) 2023-06-05 16:02:04 +08:00
twenty-suns-vanish.md Redirects (#7067) 2023-06-05 09:03:20 -04:00
weak-wombats-swim.md Unflag hybrid output (#7260) 2023-06-05 13:19:15 -05:00
young-flies-allow.md feat: remove experimental flag middleware (#7109) 2023-06-05 11:25:18 -04:00

Changesets

Hello and welcome! This folder has been automatically generated by @changesets/cli, a build tool that works with multi-package repos, or single-package repos to help you version and publish your code. You can find the full documentation for it in our repository

We have a quick list of common questions to get you started engaging with this project in our documentation