Major Changes
-
#12433
b86e50b
Thanks @phryneas! - Remove workarounds for streaming with non-WhatWG response bodies to reduce bundle size.This removes support for
fetch
implementations that return Node Streams, Async Iterators or Blob instances asResponse.body
.In the WhatWG Fetch specification,
Response.body
is specified as a WhatWG ReadableStream.At this point in time, this is natively supported in browsers,
node
and React Native (via react-native-fetch-api, see our setup instructions for React Native).If you are using an older
fetch
polyfill that deviates from the spec, this might not be compatible - for example, node-fetch returns a nodeReadable
instead of aReadableStream
.
In those cases, please switch to a compatible alternative such as thenode
-nativefetch
, orundici
.
Minor Changes
-
#12438
5089516
Thanks @phryneas! - Droprehackt
dependency.
We can now directly import fromreact
without causing build errors in RSC. -
#12437
4779dc7
Thanks @phryneas! - Remove polyfills for Object.freeze,seal and preventExtensions in React NativeThese polyfills were only necessary until React Native 0.59, which
patched the problem on
the React Native side.With React Native 0.61, the
Map
function was completely replaced
with a native implementation that never had the problems we guarded against. -
#12438
5089516
Thanks @phryneas! - Addreact-server
entry point with stubs for normal exports.