yarn swr 2.0.0-rc.1

latest releases: 2.2.6-beta.4, 2.2.6-beta.3, 2.2.6-beta.1...
23 months ago

The last RC before SWR 2.0. This release includes several small fixes with one breaking change.

Breaking

In this release, we are dropping IE 11 support, and using ES2018 as the build target. However, when using SWR in a framework or using a bundler (esbuild, Webpack, etc.), you can still target ES5 or using a browserlist configuration to customize this.

The benefit of this change is, we can now use faster native APIs to make SWR more performant, instead of using old alternatives. A benchmark shows a 4.7x speed improvement of the useSWR() function call during SSR, when we change Object.assign({}, a, b) to { ...a, ...b }.

Details can be found in #2249.

What's Changed

New Contributors

Full Changelog: 2.0.0-rc.0...2.0.0-rc.1

Don't miss a new swr release

NewReleases is sending notifications on new releases.