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

chore: upgrade to "headers-polyfill" v4 #1741

Merged
merged 2 commits into from
Sep 16, 2023

Conversation

kettanaito
Copy link
Member

No description provided.

@@ -1,5 +1,4 @@
import { invariant } from 'outvariant'
import { Headers } from 'headers-polyfill'
Copy link
Member Author

Choose a reason for hiding this comment

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

Not using Headers polyfill in tests anymore—relying on the global API from Jest. In fact, MSW doesn't use the polyfill itself at all.

@@ -10,7 +10,7 @@
"declaration": true,
"declarationDir": "lib/types",
"noEmit": true,
"lib": ["es2017", "ESNext.AsyncIterable", "dom", "webworker"],
"lib": ["DOM", "DOM.Iterable", "ESNext.AsyncIterable"],
Copy link
Member Author

Choose a reason for hiding this comment

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

TIL, use dom.iterable to get iterable methods like keys(), values(), and entries() on the Headers class.

@kettanaito kettanaito merged commit 0763557 into feat/standard-api Sep 16, 2023
12 checks passed
@kettanaito kettanaito deleted the chore/update-headers-polyfill branch September 16, 2023 16:37
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.

None yet

1 participant