Skip to content

types: align RequestInit types with lib.dom.ts#1199

Merged
mcollina merged 6 commits intonodejs:mainfrom
suneettipirneni:types/dom-requestinit
Feb 11, 2022
Merged

types: align RequestInit types with lib.dom.ts#1199
mcollina merged 6 commits intonodejs:mainfrom
suneettipirneni:types/dom-requestinit

Conversation

@suneettipirneni
Copy link
Copy Markdown
Contributor

@suneettipirneni suneettipirneni commented Feb 2, 2022

This relates to...

#1172

Rationale

Types for RequestInit should be fully compatible with typescript dom types.

Changes

Adds all properties to RequestInit that were missing based on the typescript dom types. This adjusts the Headers subtype to also follow the typescript definitions.

Features

N/A

Bug Fixes

closes #1172

Breaking Changes and Deprecations

N/A

Comment thread types/fetch.d.ts Outdated
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 3, 2022

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.43%. Comparing base (1204ed1) to head (d65bffa).
⚠️ Report is 2025 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1199      +/-   ##
==========================================
- Coverage   93.73%   93.43%   -0.31%     
==========================================
  Files          43       43              
  Lines        4023     4052      +29     
==========================================
+ Hits         3771     3786      +15     
- Misses        252      266      +14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mcollina
Copy link
Copy Markdown
Member

mcollina commented Feb 9, 2022

Copy link
Copy Markdown
Collaborator

@Ethan-Arrowood Ethan-Arrowood left a comment

Choose a reason for hiding this comment

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

approving but also like @mcollina comment, please update the assertions in the test file before merging

Comment thread lib/core/util.js Outdated
@Ethan-Arrowood
Copy link
Copy Markdown
Collaborator

I assume you have prettier/eslint auto enabled in your editor. please revert all of the changes in the .js file as it does not apply to this PR's intended changes. Thank you!

Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit 1f066b3 into nodejs:main Feb 11, 2022
KhafraDev pushed a commit to KhafraDev/undici that referenced this pull request Jun 23, 2022
metcoder95 pushed a commit to metcoder95/undici that referenced this pull request Dec 26, 2022
crysmags pushed a commit to crysmags/undici that referenced this pull request Feb 27, 2024
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.

RequestInit interface does not support all of the props in dom RequestInit interface

5 participants