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(deps): update dependency http-status-codes to v2 #1143

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 23, 2020

This PR contains the following updates:

Package Type Update Change OpenSSF
http-status-codes dependencies major 1.4.0 -> 2.3.0 OpenSSF Scorecard

Release Notes

prettymuchbryce/http-status-codes (http-status-codes)

v2.3.0: http-status-codes 2.3.0

Compare Source

v2.2.0: http-status-codes 2.2.0

Compare Source

  • Adds 421 MISDIRECTED_REQUEST per RFC 7540

v2.1.4: http-status-codes 2.1.4

Compare Source

Introduced some non-breaking changes to the module in order to take better advantage of tree-shaking as suggested in #​55 and #​58.

This should reduce file size for most users who are able to take advantage of tree shaking, especially those who are only using a subset of this library's features.

Thanks to @​EvgenyOrekhov and @​OliverJAsh for their suggestions and feedback on these issues.

https://bundlephobia.com/[email protected]

v2.1.3: http-status-codes 2.1.3

Compare Source

  • Fix an issue where the common.js bundle was not working with react native projects. #​60 #​56
  • Mark the module as "side-effect free" for tree shaking #​58

v2.1.2: http-status-codes 2.1.2

Compare Source

Exports ESM module for browser environments which fixes #​56

Provides a default export for additional backwards compatibility with v1 #​54

v2.1.1: http-status-codes 2.1.1

Compare Source

Fixes a bug with the way the TypeScript definitions were being built. #​52

Thanks to @​Benno007 for finding and reporting this issue.

v2.1.0: http-status-codes v2.1.0

Compare Source

  • Adds a new status code: 451 Unavailable For Legal Reasons

Thanks @​ffflorian for this contribution.

v2.0.0: http-status-codes v2.0.0

Compare Source

This release marks a new major version of http-status-codes.

Improvements include:

  • Project rewritten in TypeScript
  • TypeScript enums "StatusCodes" and "ReasonPhrases"
  • Test coverage
  • Automated source code generation of codes and documentation
  • Change the reason phrase "Server Error" to the correct one, "Internal Server Error"
  • Rename "getStatusText" -> "getReasonPhrase" to make the API more consistent

Thanks to @​seanmhanson for their help on this new version.

Migrating from v1.x.x

http-status-codes v2 is mostly backwards compatible with v1. There is a single breaking change and two recommended changes.

[Breaking Change] 'Server Error'

The reason phrase for the status code 500 has been changed from "Server Error" to "Internal Server Error". This is the correct phrase according to RFC7231. If you are migrating from v1, and have code that relies on the result of getStatusText(500) or getReasonPhrase('Server Error'), then this could affect you.

[Non-breaking change] getStatusText renamed getReasonPhrase

The function getStatusText has been renamed to getReasonPhrase. The old function is still available, but may be deprecated in a future version. To fix this simply rename instances of getStatusText() to getReasonPhrase(). The function is otherwise the same as it was before.

[Non-breaking change] StatusCodes

In http-status-codes v1, Status Codes were exported directly from the top-level module. i.e. HttpStatus.OK. In v2 all Status Codes live under an object called StatusCodes. i.e. HttpStatus.StatusCodes.OK. We made this change to cater to TypeScript users who prefer a dedicated value with an enum type. The previous values are still exported, but we won't continue to update them. Please migrate if you're using the old-style imports.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@coveralls
Copy link

coveralls commented Aug 23, 2020

Pull Request Test Coverage Report for Build 4975

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 4971: 0.0%
Covered Lines: 126
Relevant Lines: 126

💛 - Coveralls

@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch 2 times, most recently from acd8288 to 1f5b92c Compare August 23, 2020 23:20
@travi
Copy link
Member

travi commented Aug 24, 2020

needs the server error message comparison to be updated as a result of https://github.com/prettymuchbryce/http-status-codes/releases/tag/v2.0.0

@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch from 1f5b92c to 00888be Compare August 24, 2020 19:22
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch from 00888be to f7d7309 Compare September 12, 2020 15:50
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch from f7d7309 to 8e2cc22 Compare September 19, 2020 16:26
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch 14 times, most recently from 8d90502 to beb020c Compare February 15, 2021 05:01
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch 7 times, most recently from d01eb02 to 939adf7 Compare February 22, 2021 06:40
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch 2 times, most recently from c2a31b6 to 678e737 Compare February 22, 2021 22:37
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch from 807096e to f7fc367 Compare December 9, 2021 03:43
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch from f7fc367 to 5d09703 Compare December 26, 2021 14:51
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch 4 times, most recently from 769b0a6 to 1eb7cac Compare March 9, 2022 16:58
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch 2 times, most recently from 55d89dd to 432bd1b Compare April 14, 2022 04:27
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch from 432bd1b to 7eb9038 Compare April 27, 2022 11:02
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch from 7eb9038 to ba0168e Compare May 26, 2022 02:32
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch from ba0168e to 52e9a25 Compare June 3, 2022 05:43
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch from 52e9a25 to 2072a96 Compare June 24, 2022 03:24
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch 2 times, most recently from a6ec755 to 41a7d43 Compare October 28, 2022 06:48
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch from 41a7d43 to ce9da76 Compare November 10, 2022 01:34
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch from ce9da76 to c2e4f6f Compare November 24, 2022 04:20
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch 2 times, most recently from 6f0bfcb to feafa33 Compare December 8, 2022 04:59
@renovate renovate bot changed the title fix(deps): update dependency http-status-codes to v2 Update dependency http-status-codes to v2 Dec 17, 2022
@renovate renovate bot changed the title Update dependency http-status-codes to v2 fix(deps): update dependency http-status-codes to v2 Dec 17, 2022
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch 2 times, most recently from 3d44396 to 7f34f85 Compare February 6, 2023 01:21
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch from 7f34f85 to aa228fd Compare May 28, 2023 08:55
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch from aa228fd to 478edc9 Compare July 5, 2023 22:18
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch 2 times, most recently from 8c36471 to 0a48291 Compare July 16, 2023 04:07
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch from 0a48291 to 888fa9c Compare August 16, 2023 02:18
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch from 888fa9c to 351cf0d Compare August 28, 2023 05:12
@renovate renovate bot force-pushed the renovate/http-status-codes-2.x branch from 351cf0d to 9a8c510 Compare September 20, 2023 11:24
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.

2 participants