-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update dependency whatwg-fetch to v3 #105
base: master
Are you sure you want to change the base?
Conversation
Best reviewed: commit by commit
Optimal code review plan
|
Pull request analysis by VIZIPI Below you will find who is the most qualified team member to review your code. Reviewers with knowledge related to these changes
Potential missing files from this Pull requestNo commonly committed files found with a 40% threashold Committed file ranks(click to expand)85.71% [package.json] |
86ea5b8
to
97da987
Compare
97da987
to
57b75c3
Compare
Vulnerable Libraries (2)
More info on how to fix Vulnerable Libraries in Javascript. 👉 Go to the dashboard for detailed results. 📥 Happy? Share your feedback with us. |
57b75c3
to
63c885c
Compare
63c885c
to
8f58520
Compare
8f58520
to
5263b5a
Compare
5263b5a
to
36ec364
Compare
This PR contains the following updates:
1.0.0
->3.6.2
Release Notes
github/fetch
v3.6.2
Compare Source
v3.6.1
Compare Source
Bug fixes:
const
Both were fixed in https://github.com/github/fetch/pull/914
v3.6.0
Compare Source
Bug fixes:
Improve error message if a header contains an invalid character -- https://github.com/github/fetch/pull/880 Thank you for the contribution @CarmeloPatti
Make Response.statusText be an empty string if set to
undefined
and be'null'
if set tonull
-- https://github.com/github/fetch/pull/897 Thank you for the contribution @tkrotoffRepresent non-stringified JSON request body as an [object Object] string --https://github.com/github/fetch/pull/8811 Thank you for the contribution @kettanaito
v3.5.0
Compare Source
Added a work-around for projects which use core-js -- https://github.com/github/fetch/issues/748
v3.4.1
Compare Source
Republishing to ensure the dist/fetch.umd.js is up-to-date
v3.4.0
Compare Source
Use globalThis as the global object if it exists #822
v3.3.1
Compare Source
v3.3.0
Compare Source
Features:
Bug fixes:
Fixed the "self is not defined" error that was reported for NodeJS applications - https://github.com/github/fetch/pull/794
Reverted the DOMException handling refactor as the original code fixed issues in old Android browsers - https://github.com/github/fetch/pull/797
Response.arrayBuffer()
now always resolve with aArrayBuffer
as per the specification. -- https://github.com/github/fetch/pull/816Request
andResponse
can now only be called vianew
(as constructors) as per the specification. -- https://github.com/github/fetch/pull/796Headers which are passed as a
Headers
object no longer have their names normalised as per the specification -- https://github.com/github/fetch/pull/798Refactor:
this
to stop warnings being emitted from Rollup. -- https://github.com/github/fetch/pull/815v3.2.0
Compare Source
Features:
Bug fixes:
new
- https://github.com/github/fetch/pull/796Refactor:
v3.1.1
Compare Source
Bug fix
-- check if Content-Type header exists prior to examining the value #792
v3.1.0
Compare Source
Documentation:
fetch
which are not polyfilled. -- https://github.com/github/fetch/pull/734Bug fixes:
Empty header names used to not throw an error which was not compliant with the specification. They now throw a TypeError, the same as Chrome, Firefox and Safari do. -- https://github.com/github/fetch/pull/684
Changed the default status text of a response to align with the specification, the default is now an empty string. -- https://github.com/github/fetch/pull/698
We now allow exclamation mark as valid header character to align with the specification -- https://github.com/github/fetch/pull/745
We no longer convert
application/octet-stream
responses intoBlob
s if the browser supportsArrayBuffers
-- https://github.com/github/fetch/pull/752Added compatibility for
fetch-mock
-- https://github.com/github/fetch/pull/736Making a fetch request with an empty string for the url no longer throws a DOMException error in Internet Explorer -- https://github.com/github/fetch/pull/619
Fixed another Internet Explorer bug to make sure all resolved fetch promises will trigger their promise chains -- https://github.com/github/fetch/pull/575
v3.0.1
Compare Source
v3.0.0
Compare Source
The
whatwg-fetch
package is now a module with exports. The following methods/classes are available:fetch
Headers
Request
Response
DOMException
All exports except for
DOMException
represent the polyfill implementations, not the native variants if they are available.This library still automatically acts like a polyfill if native
window.fetch
is unavailable; there is currently no way to use it as a ponyfill.Change
credentials
default valueomit
→same-origin
to match the updated spec.fetch()
andnew Request()
now accept thesignal
parameter to accept an AbortSignal.Join multiple header values with
,<space>
instead of,
to match other browsers.Convert any Request/Response unsupported body type to a string to match the spec.
Flow type definitions are now included in the package.
v2.0.4
Compare Source
Support
obs-fold
as delimiter when parsing raw headersEnsure cookies aren't sent if
credentials: omit
Allow
status: undefined
in Responsev2.0.3
Compare Source
v2.0.2
Compare Source
new Request()
as string urlv2.0.1
Compare Source
Android 4.0 compatibility:
arrayBuffer()
if Blob is also supportedv2.0.0
Compare Source
This changes the behavior of Headers regarding handling of headers with multiple values. Most notably, it removes the
Headers.getAll()
method. This diverges from the native implementations of Chrome and Firefox, since those vendors implement an earlier, now outdated version of the spec. The polyfill now acts more similar to Microsoft Edge implementation.Consider this Headers object:
Before:
h.get('accept')
returnedtext/html
h.getAll('accept')
returned an array of valuesh.forEach
(and other iterables) did distinct iterations for eachvalue of the same header
Now:
h.get('accept')
returnstext/html,text/plain
h.getAll()
is no moreh.forEach()
(and other iterables) now only do one iteration for each unique header name, regardless of whether it had multiple valuesThis is in accordance with Section 3.1.2 of the spec, "combine" concept.
v1.1.1
Compare Source
Android 4.0 compatibility:
arrayBuffer()
if Blob is also supportedv1.1.0
Compare Source
Spec compatibility:
fetch()
arrayBuffer()
,text()
, orblob()
methodsOther fixes:
read*
methodConfiguration
📅 Schedule: At any time (no schedule defined).
🚦 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 has been generated by WhiteSource Renovate. View repository job log here.