Skip to content

Conversation

@dependabot-preview
Copy link
Contributor

Bumps babel-preset-gatsby from 0.4.12 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
  • 6fa14e4 chore(release): Publish
  • 1d95cfe chore(release): Publish
  • 794b387 fix(babel-preset-gatsby): remove spread operator from node builds (#29346) (#...
  • 7797522 chore(release): Publish
  • d4a8ad2 chore(release): Publish next pre-minor
  • 2059ead chore(release): Publish next pre-minor
  • 968914f chore(release): Publish next
  • 9eb5031 chore(release): Publish next pre-minor
  • a819b9b chore(deps): update dependency cross-env to ^7.0.3 (#28505)
  • 443c8d0 chore(release): Publish next pre-minor
  • 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 Mar 1, 2021
@dependabot-preview
Copy link
Contributor Author

Superseded by #158.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/babel-preset-gatsby-0.12.2 branch March 8, 2021 04:11
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