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-package from 0.11.0 to 0.12.0 #142

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 8, 2021

Bumps babel-preset-gatsby-package from 0.11.0 to 0.12.0.

Release notes

Sourced from babel-preset-gatsby-package's releases.

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.

In #335 I fixed both where gatsby develop now dies when the server can't start (for whatever reason) and when Node throws a EADDRINUSE error, we catch that, find the process that is listening on that port and show this error message:

We were unable to start Gatsby on port 8000 as there's already a process
</tr></table> 

... (truncated)

Changelog

Sourced from babel-preset-gatsby-package's changelog.

Change Log

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

1.0.0-next.0 (2021-02-05)

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

0.13.0-next.0 (2021-01-28)

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

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

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

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

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

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

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

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

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

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

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

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

Bug Fixes

  • deps: update minor and patch for babel-preset-gatsby-package (#27905) (34bf36b)

0.5.3 (2020-09-15)

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

0.5.2 (2020-07-09)

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

0.5.1 (2020-07-02)

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

... (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 added the dependencies Pull requests that update a dependency file label Feb 8, 2021
@codeclimate
Copy link

codeclimate bot commented Feb 8, 2021

Code Climate has analyzed commit 4dee26a and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 94.1% (0.0% change).

View more on Code Climate.

@kremalicious kremalicious merged commit 9a3b1cc into main Feb 15, 2021
@kremalicious kremalicious deleted the dependabot/npm_and_yarn/babel-preset-gatsby-package-0.12.0 branch February 15, 2021 04:06
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