npm gatsby 1.0.0-alpha14
New GraphQL compiler!

latest releases: 4.25.9, 5.13.5, 5.14.0-alpha-gatsby.9...
7 years ago

Added

  • Use the Relay Modern compiler for extracting GraphQL queries from components.
    This allows us to now support components being added to all components. This
    means you can now write queries next to the views that use them. #912
  • Hook for modifying pages #863
  • New Drupal source plugin and example site #890
  • Detect if a site's plugins have changed and when they do, delete the site
    cache as it might now be invalid #927
  • New way to make connections between nodes e.g. article --> author #902

Changed

  • Combine transformer and typegen plugins. The distinction between the two
    types of plugins has proved somewhat artificial so they were combined. Any
    typegen plugins in your package.json and gatsby-config.js need to be
    removed. #918
  • Gatsby now garbage collects old nodes. Source plugins should now "touch"
  • nodes that haven't changed #861
  • Due to adopting the Relay compiler, GraphQL query template strings need
    named "graphql" plus must be named. So if previously you wrote:
export const pageQuery = `
{
  allMarkdownMark {
    edges {
      node {
        id
      }
    }
  }
}
`

You must now write:

export const pageQuery = graphql`
query IndexQuery {
  allMarkdownMark {
    edges {
      node {
        id
      }
    }
  }
}
`

Don't miss a new gatsby release

NewReleases is sending notifications on new releases.