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: bundle "set- cookie-parser" to prevent module resolution issues #65

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

mattcosta7
Copy link
Contributor

@mattcosta7 mattcosta7 commented Sep 5, 2023

fixes #62

Instead of externalizing set-cookie-parser which has no esm shipped code, this bundles it into headers-polyfill - which should alleviate issues with non-esm environments and esm environments

@@ -40,7 +40,8 @@ The `Headers` polyfill instance supports the same methods as the standard `Heade
- [`.set()`](https://developer.mozilla.org/en-US/docs/Web/API/Headers/set)
- [`.append()`](https://developer.mozilla.org/en-US/docs/Web/API/Headers/append)
- [`.delete()`](https://developer.mozilla.org/en-US/docs/Web/API/Headers/delete)
- `.forEach()`
- [`.forEach()`](https://developer.mozilla.org/en-US/docs/Web/API/Headers/forEach)
- [`.getSetCookie()`](https://developer.mozilla.org/en-US/docs/Web/API/Headers/getSetCookie)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just updating/adding these

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

@kettanaito kettanaito changed the title inline cookie parser into headers polyfill fix: bundle "set- cookie-parser" to prevent module resolution issues Sep 5, 2023
Copy link
Member

@kettanaito kettanaito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks awesome. Let's give this a try!

@kettanaito kettanaito merged commit 5df05ba into main Sep 5, 2023
1 check passed
@kettanaito kettanaito deleted the inline-cookie-parser branch September 5, 2023 17:55
@kettanaito
Copy link
Member

Released: v3.2.2 🎉

This has been released in v3.2.2!

Make sure to always update to the latest version (npm i headers-polyfill@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't import the named export 'splitCookiesString'
2 participants