Skip to content

Releases: gatsbyjs/gatsby

Small fixes — improve default host on Windows + compile mode for html.js

06 Mar 23:53
Compare
Choose a tag to compare

Better Windows support & Font Loaders

01 Mar 18:08
Compare
Choose a tag to compare

Noted fixer of NPM packages for Windows @NogsMPLS submitted a PR to get Gatsby (hopefully) completely working on Windows! 🎉 🎉 🎉

@gesposito added support to Webpack for requiring fonts #162

@KyleAMathews made a few miscallaneous changes

  • Replace remaining uses of Underscore with Lodash 486bd29
  • Integrate the scroll-behavior package so clicking between links with react-router is more browser-like b4122db
  • Add parentTemplateFile to routes for use in theming 8620488

Thanks everyone!

Major release upgrading to React-Router 2.0 + full support for Less/Sass/PostCSS

22 Feb 03:15
Compare
Choose a tag to compare

Hi folks,
Finished off a major new release of Gatsby in time for ReactConf 🎉

New features

  • Support Less/Sass/Postcss out of the box. CSS files are processed using the excellent cssnext.
  • Support extracting and minifying css on production builds to an external styles.css file.
  • React-Router 2.0 🎉

Internals work

  • We're using Webpack Hot Middleware + react-transform-hmr now instead of react-hot-loader.
  • All remaining Coffeescript files have been converted to JS.

Breaking changes.

React Router has made two major releases since Gatsby was first built with a ton of nice improvements. But as Gatsby uses React Router heavily, its breaking changes often cause breaking changes within Gatsby.

The main change is what props are passed to _template and wrapper components. Previously each component was passed the current page data and a pages array of all pages. Now this information is put onto the route prop passed in by React Router.

Also where previously React Router provided a <RouteHandler/> component which rendered the children components in _template files, you should now replace those with {this.props.children}.

Upgrading

  • Install new packages: npm install --save react-router@latest lodash@latest && npm install --save-dev babel-plugin-react-transform@1.1.1 react-transform-catch-errors react-transform-hmr redbox-react
  • Adjust templates and wrappers (and other components as necessary) to account for the React Router changes.
  • onRouteChange is now passed the location object from History.

Internals cleanup

20 Dec 06:59
Compare
Choose a tag to compare
> DEBUG=gatsby:* gatsby build

screenshot 2015-12-06 01 48 23

Can now easily override default Webpack config

24 Nov 07:26
Compare
Choose a tag to compare

@ChristopherBiscardi added a PR to make it simple to override or extend the default Gatsby Webpack configuration. Gatsby tries to anticipate most needs out of the box but many projects will need some customizations to Webpack.

See the PR and new documentation.

Now using React 0.14!

22 Nov 01:34
Compare
Choose a tag to compare

Update to React 0.14

The big change for this release was updating React to 0.14. Thanks to @patrykkopycinski for his PR!

We're still on the 0.13 series of React Router as their recent 1.0 release will require internal updates to Gatsby. Follow along at #32 if interested.

gatsby serve now gatsby develop

Serve implied Gatsby was just serving up files. Develop conveys the idea better that you're starting up a full-fledged development server with the intent to start developing.

Can now do webpack requires in your html.jsx

Previously you couldn't do webpack requires in your html component as the development server was requiring the module in node context. But with the help of @petehunt's webpack-require project, you can now require css or anything else you'd like in your html.jsx.

Improved support for prefixing site links e.g. when building for Github Pages.

See the documentation that's been added to the README.

How to upgrade

You'll need to update React in your project to React 0.14 as well as upgrade any React components that relied on older React APIs. Make sure to not install the latest react-router.

require('babel/register') doesn't work when installed globally

04 Oct 02:18
Compare
Choose a tag to compare

Hopefully this will be fixed soon.

Reported by @luandro at #54

Babel bug report at babel/babel#1889

v0.6.0

03 Oct 20:53
Compare
Choose a tag to compare

Bug fix

  • Previously Gatsby was compiling the production bundle.js with source-maps inlined. @fson noticed this and wrote a PR to fix this which reduced bundle.js size by 3x! #48

Fix for asset copying bug

22 Sep 16:02
Compare
Choose a tag to compare

Gatsby previously was crashing when trying to copy assets in the post-build step where the asset was not in a directory with a page.

#39

Fixed in 55fee06

Support SVG

15 Sep 00:35
Compare
Choose a tag to compare

@fson added SVG support to the Webpack config in #34