Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump babel-preset-gatsby from 0.8.0 to 0.9.0 #536

Merged
merged 1 commit into from
Dec 20, 2020

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 19, 2020

Bumps babel-preset-gatsby from 0.8.0 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! 🎉 🎉 🎉

... (truncated)

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)

... (truncated)

Commits

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 dependabot bot requested a review from a team as a code owner December 19, 2020 19:57
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Dec 19, 2020
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/babel-preset-gatsby-0.9.0 branch 5 times, most recently from 33a8df5 to 54f2d12 Compare December 20, 2020 16:31
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/babel-preset-gatsby-0.9.0 branch from 54f2d12 to d749b65 Compare December 20, 2020 16:52
@zbynek zbynek merged commit 4cf8039 into master Dec 20, 2020
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/babel-preset-gatsby-0.9.0 branch December 20, 2020 17:45
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.

2 participants