Skip to content

Releases: quantizor/buttermilk

2.0.1

10 Mar 16:50
Compare
Choose a tag to compare

Minor dependency updates

2.0.0

18 Feb 18:18
Compare
Choose a tag to compare

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!

1.1.2

09 Aug 17:02
Compare
Choose a tag to compare

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.

1.1.1

06 Jun 02:37
Compare
Choose a tag to compare

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.

1.1.0

19 May 05:13
Compare
Choose a tag to compare

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!

1.0.4

16 Apr 04:49
Compare
Choose a tag to compare

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

1.0.3

25 Mar 18:14
Compare
Choose a tag to compare

added peer dependencies to package.json 💡

1.0.2

25 Mar 18:07
Compare
Choose a tag to compare

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

1.0.1

25 Mar 17:57
Compare
Choose a tag to compare

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

1.0.0

25 Mar 17:47
Compare
Choose a tag to compare

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