Skip to content

Conversation

@dependabot-preview
Copy link
Contributor

Bumps babel-preset-gatsby from 0.4.12 to 0.9.0.

Release notes

Sourced from babel-preset-gatsby's releases.

Babel 6! Require local install of Gatsby! 2500 stars!

Another release with two nice DX improvements.

Also we hit 2500 stars as I was writing this review 🎉

Babel 6

Gatsby started its life on Babel 5 but Babel 6 is out and stable so we'll upgrade along with the rest of the ecosystem and take advantage of its improved performance and awesome new plugin api.

Gatsby must now be installed as a dependency of the site

The global Gatsby install now defers to the local install of Gatsby (and throws if it can't find one). This means you can build a site and not worry about needing to upgrade it again as Gatsby accumulates breaking changes. This also helps ensure Gatsby works in environments where you don't want a global install e.g. build servers.

Upgrade instructions

  • Install Gatsby — npm install --save gatsby
  • Install new Babel 6 dependencies (they must be installed locally) — npm install --save babel-plugin-add-module-exports babel-preset-es2015 babel-preset-react babel-preset-stage-1 and npm install --save-dev babel-preset-react-hmre.
  • Uninstall old Babel 5 dependencies (if you added any).
  • The link function from gatsby-helpers.js was renamed to prefixLink to clarify its purpose.
  • Your .babelrc file needs to be upgraded to look like:
{
  "presets": ['react', 'es2015', 'stage-1'],
  "plugins": ['add-module-exports']
}
  • If you modified the default Webpack config in gatsby.config.js, this functionality is now moved to gatsby-node.js and instead of using module.exports, export your config modification function as modifyWebpackConfig. See the updated instructions in the README.
  • If you were differentiating between pages with content (like .md files) and pages without (like pages/profile.js) by looking for truthy page.data, you'll now need check for truthy page.data.body.
  • If your site is under version control, you might want to ignore the new auto-written module .gatsby-context.js.
  • rare if you used the rewritePath, onRouteChange hooks in your app.js — app.js is now not supported. Instead you should export rewritePath in gatsby-node.js and onRouteChange in gatsby-browser.js. The function signatures didn't change. These new files will be gaining more functionality in future releases.

That's it! See you in the issue queues :-)

Add support for JSON/YAML/TOML files + option to disable bundle.js for production build

Small dev improvements

Add support for a 404 page

@scottnonnenberg added support for 404 pages!

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

Better Windows support & Font Loaders

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

Changelog

Sourced from babel-preset-gatsby's changelog.

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

0.10.0-next.0 (2020-12-10)

Note: Version bump only for package babel-preset-gatsby

0.9.0-next.0 (2020-11-26)

Note: Version bump only for package babel-preset-gatsby

0.8.0-next.0 (2020-11-18)

Note: Version bump only for package babel-preset-gatsby

0.6.0-next.1 (2020-11-10)

Note: Version bump only for package babel-preset-gatsby

0.5.15 (2020-11-02)

Note: Version bump only for package babel-preset-gatsby

0.5.14 (2020-10-13)

Note: Version bump only for package babel-preset-gatsby

0.5.13 (2020-10-06)

Note: Version bump only for package babel-preset-gatsby

0.5.12 (2020-10-01)

Note: Version bump only for package babel-preset-gatsby

0.5.11 (2020-09-28)

Note: Version bump only for package babel-preset-gatsby

0.5.10 (2020-09-15)

Note: Version bump only for package babel-preset-gatsby

0.5.9 (2020-09-07)

Note: Version bump only for package babel-preset-gatsby

0.5.8 (2020-08-28)

Commits
  • 03d497f chore(release): Publish
  • a819b9b chore(deps): update dependency cross-env to ^7.0.3 (#28505)
  • 443c8d0 chore(release): Publish next pre-minor
  • fe83465 chore(release): Publish next pre-minor
  • 539dbb0 chore(deps): update babel monorepo (#27528)
  • 3ed71f9 chore(release): Publish pre-release
  • 7337f8c chore(release): Publish pre-release
  • 5c6e3e6 chore(release): Publish
  • 5fbfaa8 chore(release): Publish
  • e2605d7 chore(release): Publish
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in the .dependabot/config.yml file in this repo:

  • Update frequency
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Dec 21, 2020
@dependabot-preview
Copy link
Contributor Author

Superseded by #151.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/babel-preset-gatsby-0.9.0 branch January 11, 2021 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant