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.11.0 to 0.12.2 #599

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 1, 2021

Bumps babel-preset-gatsby from 0.11.0 to 0.12.2.

Release notes

Sourced from babel-preset-gatsby's releases.

Fix for NPM 2 peerDependencies + error swallowing issues

  • eslint-plugin-jsx-a11y added a peerDependency on a patch update which meant NPM 2 users couldn't install Gatsby or starters. gatsbyjs/gatsby#369 pins the plugin to the last good release.
  • @​kennu fixed an instance where we were hiding important errors gatsbyjs/gatsby#366

Image supported added!

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 gatsbyjs/gatsby#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!

Major improvements

Minor (but awesome) improvements

  • Some css module types (Less/Sass) weren't being minimized gatsbyjs/gatsby@0a667e0
  • @​adjohnson916 noticed we were using a private API of React Router gatsbyjs/gatsby#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!

Don't start develop server if port in use & show friendlier error message

@​crucialfelix raised two issues in #334 — a) it's hard to figure out to do when Node throws up it's cryptic EADDRINUSE error and b) Gatsby doesn't die as it should when it hits that but pretends it's running.

... (truncated)

Changelog

Sourced from babel-preset-gatsby's changelog.

0.12.2 (2021-02-24)

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

0.12.1 (2021-02-05)

Bug Fixes

0.12.0 (2021-02-02)

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

0.12.0-next.0 (2021-01-18)

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

0.11.0-next.0 (2020-12-29)

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

0.10.0-next.1 (2020-12-29)

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

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

... (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 will merge this PR once it's up-to-date and CI passes on it, as requested by @timja.


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 March 1, 2021 05:33
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Mar 1, 2021
@timja
Copy link
Member

timja commented Mar 1, 2021

@dependabot merge

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/babel-preset-gatsby-0.12.2 branch 6 times, most recently from aed57bc to ef09da9 Compare March 1, 2021 10:36
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/babel-preset-gatsby-0.12.2 branch from ef09da9 to 7e96164 Compare March 1, 2021 10:50
@dependabot dependabot bot merged commit 3390f3e into master Mar 1, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/babel-preset-gatsby-0.12.2 branch March 1, 2021 11:01
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