Skip to content

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:

  1. Upgrade all react dependencies (and buttermilk, of course):
npm i react@latest react-dom@latest react-is@latest buttermilk@latest
  1. 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 because React.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,
  },
];
  1. ??

  2. Profit!

Assets 2

@probablyup probablyup released this Aug 9, 2018 · 9 commits to master since this release

Fixed the regex & function-based routing paths not being fully set up in the various matching utilities. See 1f4a21a for more info if you're interested.

Assets 2

@probablyup probablyup released this Jun 6, 2018

Fixed the CDN build & renamed it to "standalone.js" and "standalone.min.js" since it's being built as an IIFE not a UMD bundle now.

Assets 2

@probablyup probablyup released this May 19, 2018 · 26 commits to master since this release

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!

Assets 2

@probablyup probablyup released this Apr 16, 2018 · 32 commits to master since this release

b9e051e update deps
1160361 add description to package.json
5eef5d8 fix dev warning about prop-types not being installed
b3c4aca fix site display in safari, add homepage entry to package.json

Assets 2

@probablyup probablyup released this Mar 25, 2018 · 51 commits to master since this release

added peer dependencies to package.json 💡

Assets 2

@probablyup probablyup released this Mar 25, 2018 · 53 commits to master since this release

Fix babel misconfiguration that was breaking the commonjs and esm builds. 😠

Assets 2

@probablyup probablyup released this Mar 25, 2018 · 56 commits to master since this release

Fixed an issue with all the flat files not being pushed to NPM properly 🙈

Assets 2

@probablyup probablyup released this Mar 25, 2018 · 59 commits to master since this release

The inaugural release! I hope you all love Buttermilk, I had fun making it 😄

Assets 2
You can’t perform that action at this time.