buttermilk

beautifully simple isomorphic routing for React projects

MIT License

Stars
110
buttermilk - 2.0.1 Latest Release

Published by quantizor over 3 years ago

Minor dependency updates

buttermilk - 2.0.0

Published by quantizor over 5 years ago

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!

buttermilk - 1.1.2

Published by quantizor about 6 years ago

Fixed the regex & function-based routing paths not being fully set up in the various matching utilities. See https://github.com/probablyup/buttermilk/commit/1f4a21a301b92a01e06efa8740a690feebdae61c for more info if you're interested.

buttermilk - 1.1.1

Published by quantizor over 6 years ago

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.

buttermilk - 1.1.0

Published by quantizor over 6 years ago

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!

buttermilk - 1.0.4

Published by quantizor over 6 years ago

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

buttermilk - 1.0.3

Published by quantizor over 6 years ago

added peer dependencies to package.json πŸ’‘

buttermilk - 1.0.2

Published by quantizor over 6 years ago

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

buttermilk - 1.0.1

Published by quantizor over 6 years ago

Fixed an issue with all the flat files not being pushed to NPM properly πŸ™ˆ

buttermilk - 1.0.0

Published by quantizor over 6 years ago

The inaugural release! I hope you all love Buttermilk, I had fun making it πŸ˜„