Repository navigation
chore(deps): update dependency promidas to v5 - autoclosed - #68
Closed
renovate[bot] wants to merge 1 commit into
Closed
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^4.0.0→^5.0.0Release Notes
F88/promidas (promidas)
v5.0.0Compare Source
BREAKING CHANGES
lib/fetchercorsandCORS_BLOCKEDare renamed:kind: 'cors'is nowkind: 'browser_fetch', andcode: 'CORS_BLOCKED'is nowcode: 'BROWSER_FETCH_FAILED'. Browsers give JavaScript the same error for aCORS block, an authentication error without CORS headers, and a failed
connection, so the old names stated a cause that cannot be known. When to report
this failure does not change (#157).
details.res.codeis replaced bydetails.causeCode:details.resnowonly holds
statusText, and only when a response was received.details.causeCodeonly holds a string code found on the error, such asECONNREFUSEDorUND_ERR_SOCKET.TIMEOUT,ABORTED, and theNETWORK_ERRORthat promidas set are no longerrepeated there. Use
result.codefor them.constructDisplayMessage()no longer prefixes those values.DOMExceptionother thanAbortErrorandTimeoutErroris nowunknown/UNKNOWN: it wasnetworkwith its legacy numericcodeinresult.codeorNETWORK_ERROR, which was not a network failure.Migration
TypeScript reports each place to change, because the old values and
details.res.codeno longer exist in the types.result.kind === 'cors'result.kind === 'browser_fetch'result.code === 'CORS_BLOCKED'result.code === 'BROWSER_FETCH_FAILED'result.details.res?.coderesult.details.causeCodedetails.res.codeofTIMEOUT, etc.result.code(TIMEOUT,ABORTED,NETWORK_ERROR,BROWSER_FETCH_FAILED)Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.