Releases: quantizor/buttermilk
Releases · quantizor/buttermilk
2.0.1
2.0.0
Refactor component-side of the library to use React's new hook infra and some newer React goodies like React.lazy
. This allowed for many perf optimizations in the code and double-digit % size reduction without losing any features!
Migration instructions:
- Upgrade all react dependencies (and buttermilk, of course):
npm i react@latest react-dom@latest react-is@latest buttermilk@latest
- If you are dynamically-importing components for any routes, wrap the import in
React.lazy()
(note that this only works in the browser right now becauseReact.Suspense
doesn't work server-side yet.)
✅
routes: [
{
path: '/',
render: () => React.lazy(() => import('./Home')),
},
{
path: '*',
render: () => NotFound,
},
];
⛔️
routes: [
{
path: '/',
render: () => import('./Home').then(mdl => mdl.default),
},
{
path: '*',
render: () => NotFound,
},
];
-
??
-
Profit!
1.1.2
1.1.1
1.1.0
Raised minimum react version to 16.3 & dropped the context polyfill. Should have done this from 1.0, but I don't think anyone is using this yet according to Github's stats, so felt safe enough to change it early.
Also added a new match()
utility. Read up on it in the README!