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(docs): rename Headers to HttpHeaders to avoid clash with DOM's Headers type #570

Merged
merged 2 commits into from
Sep 16, 2022

Conversation

sranka
Copy link
Contributor

@sranka sranka commented Sep 15, 2022

This PR renames the client's Headers type to HttpHeaders in order to avoid clashing with a built-in DOM Headers type. HttpHeaders are also exported as Headers, so there is no backward-compatibility introduced herein.

This change also fixes the model of the generated API documentation (created by api-extractor), the client's HttpHeaders now has a unique canonical name that is referenceable.

Checklist

  • CHANGELOG.md updated
  • Rebased/mergeable
  • yarn test completes successfully
  • Commit messages are conventional

@sranka sranka added this to the 1.30.0 milestone Sep 15, 2022
@sranka sranka requested a review from bednar September 15, 2022 08:38
@sranka sranka marked this pull request as ready for review September 15, 2022 08:39
@codecov-commenter
Copy link

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage 👍

Coverage data is based on head (261abae) compared to base (dda1806).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #570   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           33        33           
  Lines         1273      1273           
  Branches       306       306           
=========================================
  Hits          1273      1273           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@bednar bednar left a comment

Choose a reason for hiding this comment

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

LGTM 🍻

@sranka sranka merged commit c7f8284 into master Sep 16, 2022
@sranka sranka deleted the docs/rename_headers branch September 16, 2022 13:14
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.

3 participants