v5.0.0
A new website! https://easy-peasy.dev
Finally! The next major version of Easy Peasy has landed. It's been a long time
coming, and we are hopeful that the need for a new major release will be a long
way off.
This last year has been a challenging one for me on a personal level, so I want
to extend my thanks to the patience that the community has shown in me getting
this release together. I am aware that the docs still do not reflect the full
updated API reflection of v4. I humbly apologise for this and do promise that
parity will be achieved. This release already includes a lot of ground work
around revamping the docs. I plan to pump a lot more hours into getting the docs
into a much more improved and useful structre.
I've become aware of a critical security issue with the version of Immer
currently utilised within Easy Peasy <= v4. For that purpose I am issuing this
release earlier than I anticipated.
Whilst this is a major release the breaking changes are very minimal. So I
sincerely hope that your upgrade will be as fluid as it can be.
Breaking Changes
- Removed the
memohelper. You'll need to bring your own memoization library,
for e.g. memoizerific.
Changes
-
Upgraded to Immer v8 🎉
-
Fixes to support IE11!
You will need to use our new import at the entry of your application to patch
Proxy.import 'easy-peasy/proxy-polyfill'; // The rest of your app code...
In addition to this if you use Map or Set in your state then you will need
this additional import at the entry of your application.import 'easy-peasy/proxy-polyfill'; import 'easy-peasy/map-set-support'; // The rest of your app code...
-
Improved the bundle size! The Gzip bundle is back down to approximately 10kb.
-
Fixed issue with computed properties throwing errors when being accessed in
certain scopes -
Improved the module exports to improve tree shaking capability
-
Added various bundle type support to the package.json, e.g. "module".
-
Fixed bugs when rehydrating persisted state