Skip to content

Releases: gatsbyjs/gatsby

1.0.0-alpha6

27 Oct 21:24
Compare
Choose a tag to compare

Added

  • extension API for adding types to the GraphQL schema
    commit

Fixed

  • Use babel-traverse instead of using babel-plugin so that don't say
    done early when running graphql queries that have async resolvers
    commit

A bug fixin' we go

25 Oct 18:39
Compare
Choose a tag to compare

Some nice bug fixes of some long-standing annoyances by @mojodna and @TheAncientGoat

  • @mojodna finally got Webpack's publicPath working across all the build steps and adds the linkPrefix as needed #502. Fixed #392 and #473
  • @TheAncientGoat noticed that Firebase was failing during a server render and traced it to Firebase (and certain other isomorphic packages) using different packages on the server and in the browser and fixed the Webpack config for this in #512
  • @KyleAMathews back-ported some Webpack config from his 1.0 work to add file/url loader support for more file types.

1.0.0-alpha5

14 Oct 22:47
Compare
Choose a tag to compare
1.0.0-alpha5 Pre-release
Pre-release

Added

  • hard-source-webpack-plugin
    commit
  • New replacement API to wrap root component (useful for Redux, et
    al.)
    commit
  • yarn.lock
    commit

Changed

  • Disable extracting the Webpack chunk manifest until understand why
    this breaks updates when using Service Workers
    commit

v1.0.0-alpha4

08 Oct 02:12
Compare
Choose a tag to compare
v1.0.0-alpha4 Pre-release
Pre-release

Added

  • Add more file extensions to file/url loader config. Default to url-loader unless it never makes sense to use data-uri e.g. favicons.
  • Use api-runner-browser for calling browser extension APIs/replacements. Prep for plugin system.
  • Add extension API clientEntry that let's site code and plugins to run code at the very start of client app.

Changed

  • Add config to uglify to ignore ie8.
  • Disable building AppCache until can research if useful.
  • Turn on screw_ie8 options in UglifyJS.

Fixed

  • Actually use the "sources" key from gatsby-config.js for looking for markdown files. This will be getting an overhaul soon.
  • Don't use null-loader for css during the build-js stage as this prevents offline-plugin from caching files referenced in your CSS.
  • Add missing publicPath for build-html step.

Bug fixes, new site launches, new sponsors

27 Sep 23:02
Compare
Choose a tag to compare

While we're hard at work pushing on all the great new 1.0 features, 0.x is still getting a lot of fine-tuning and bug fixing.

@f0rr0 has fixed a number of bugs recently:

  • following symlinks correctly #477 and #480
  • Fix link prefixing when importing files #474
  • Fix hash tag scrolling #467

@KyleAMathews dug into some bugs with NPM2 and fixed them in #435 and #436

Recent site launches

New sponsors!

We're super grateful for our sponsors who are making 1.0 possible.

DX improvements 🎉🎉🎉

19 Aug 00:07
Compare
Choose a tag to compare
  • @tsunammis added support for importing files with query parameters #398
  • @benstepp changed path creation so that starting and trailing slashes are automatically added as this is a common problem and is easy to programmatically fix instead of just telling users to fix it themselves.

Sites launched on Gatsby since the last release

Prompt user to use new port if in requested port is in use

04 Aug 01:11
Compare
Choose a tag to compare

Quick release to add this very nice UX improvement contributed by @LukeSheard and borrowed from Create React App's similar feature: facebook/create-react-app#101

#371

Fix for NPM 2 peerDependencies + error swallowing issues

30 Jul 17:33
Compare
Choose a tag to compare
  • eslint-plugin-jsx-a11y added a peerDependency on a patch update which meant NPM 2 users couldn't install Gatsby or starters. #369 pins the plugin to the last good release.
  • @kennu fixed an instance where we were hiding important errors #366

Image supported added!

20 Jul 19:18
Compare
Choose a tag to compare

Gatsby now ships with richer support for images. Now you can "import" or "require" an image and use it within your React components and under the hood, the images will be automatically optimized.

import myImage from './my-image.jpg'

// in render function
<div>
  <h1>Hi friends!</h1>
  <img src={myImage} />
</div>

We're using the image-webpack-loader which uses the popular Imagemin project to minify your images.

There's future (responsive) image work planned! See #285 if you want to get involved.

Upgrade

This is marked as a breaking release as it could interfere with your Webpack config if you already have added image loader support.

If you have added custom image loaders already, to upgrade, in your modifyWebpackConfig function in gatsby-node.js add this line: config.removeLoader('images')

You'll also need to add image-webpack-loader to your site:

npm install --save-dev image-webpack-loader

Enjoy!

CSS Modules!

06 Jul 03:29
Compare
Choose a tag to compare

Major improvements

Minor (but awesome) improvements

  • Some css module types (Less/Sass) weren't being minimized 0a667e0
  • @adjohnson916 noticed we were using a private API of React Router #343
  • Added check for processes listening to the port requested by gatsby serve-build similar to what we do for gatsby listen #345
  • Set the NODE_ENV to production for node code (we were already doing this for Webpack modules but some Webpack loaders don't behave correctly without this fix #348

Breaking changes

None!