Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gatsbyjs/gatsby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: babel-preset-gatsby@2.8.0
Choose a base ref
...
head repository: gatsbyjs/gatsby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: babel-preset-gatsby@2.8.1
Choose a head ref
  • 2 commits
  • 29 files changed
  • 3 contributors

Commits on Feb 25, 2022

  1. fix(gatsby-core-utils): fix urls without extension (#34930) (#34931)

    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    gatsbybot and wardpeet authored Feb 25, 2022
    Copy the full SHA
    b33fb35 View commit details
  2. chore(release): Publish

     - babel-plugin-remove-graphql-queries@4.8.1
     - babel-preset-gatsby@2.8.1
     - gatsby-cli@4.8.1
     - gatsby-core-utils@3.8.1
     - gatsby-link@4.8.1
     - gatsby-page-utils@2.8.1
     - gatsby-plugin-benchmark-reporting@2.8.1
     - gatsby-plugin-gatsby-cloud@4.8.1
     - gatsby-plugin-image@2.8.1
     - gatsby-plugin-manifest@4.8.1
     - gatsby-plugin-mdx@3.8.1
     - gatsby-plugin-offline@5.8.1
     - gatsby-plugin-page-creator@4.8.1
     - gatsby-plugin-preload-fonts@3.8.1
     - gatsby-plugin-sharp@4.8.1
     - gatsby-plugin-typescript@4.8.1
     - gatsby-remark-images@6.8.1
     - gatsby-source-contentful@7.6.1
     - gatsby-source-drupal@5.8.1
     - gatsby-source-filesystem@4.8.1
     - gatsby-source-graphql@4.8.1
     - gatsby-source-shopify@6.8.1
     - gatsby-source-wordpress@6.8.1
     - gatsby-telemetry@3.8.1
     - gatsby-transformer-remark@5.8.1
     - gatsby-transformer-sqip@4.8.1
     - gatsby@4.8.1
    LekoArts committed Feb 25, 2022
    Copy the full SHA
    f365eda View commit details
Showing with 103 additions and 75 deletions.
  1. +2 −2 packages/babel-plugin-remove-graphql-queries/package.json
  2. +2 −2 packages/babel-preset-gatsby/package.json
  3. +3 −3 packages/gatsby-cli/package.json
  4. +1 −1 packages/gatsby-core-utils/package.json
  5. +26 −0 packages/gatsby-core-utils/src/__tests__/fetch-remote-file.js
  6. +3 −1 packages/gatsby-core-utils/src/fetch-remote-file.ts
  7. +2 −2 packages/gatsby-link/package.json
  8. +2 −2 packages/gatsby-page-utils/package.json
  9. +2 −2 packages/gatsby-plugin-benchmark-reporting/package.json
  10. +3 −3 packages/gatsby-plugin-gatsby-cloud/package.json
  11. +3 −3 packages/gatsby-plugin-image/package.json
  12. +2 −2 packages/gatsby-plugin-manifest/package.json
  13. +2 −2 packages/gatsby-plugin-mdx/package.json
  14. +2 −2 packages/gatsby-plugin-offline/package.json
  15. +4 −4 packages/gatsby-plugin-page-creator/package.json
  16. +2 −2 packages/gatsby-plugin-preload-fonts/package.json
  17. +4 −4 packages/gatsby-plugin-sharp/package.json
  18. +2 −2 packages/gatsby-plugin-typescript/package.json
  19. +2 −2 packages/gatsby-remark-images/package.json
  20. +3 −3 packages/gatsby-source-contentful/package.json
  21. +2 −2 packages/gatsby-source-drupal/package.json
  22. +2 −2 packages/gatsby-source-filesystem/package.json
  23. +2 −2 packages/gatsby-source-graphql/package.json
  24. +4 −4 packages/gatsby-source-shopify/package.json
  25. +5 −5 packages/gatsby-source-wordpress/package.json
  26. +2 −2 packages/gatsby-telemetry/package.json
  27. +2 −2 packages/gatsby-transformer-remark/package.json
  28. +2 −2 packages/gatsby-transformer-sqip/package.json
  29. +10 −10 packages/gatsby/package.json
4 changes: 2 additions & 2 deletions packages/babel-plugin-remove-graphql-queries/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-plugin-remove-graphql-queries",
"version": "4.8.0",
"version": "4.8.1",
"author": "Jason Quense <monastic.panic@gmail.com>",
"repository": {
"type": "git",
@@ -10,7 +10,7 @@
"homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/babel-plugin-remove-graphql-queries#readme",
"dependencies": {
"@babel/runtime": "^7.15.4",
"gatsby-core-utils": "^3.8.0"
"gatsby-core-utils": "^3.8.1"
},
"devDependencies": {
"@babel/cli": "^7.15.4",
4 changes: 2 additions & 2 deletions packages/babel-preset-gatsby/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-preset-gatsby",
"version": "2.8.0",
"version": "2.8.1",
"author": "Philipp Spiess <hello@philippspiess.com>",
"repository": {
"type": "git",
@@ -22,7 +22,7 @@
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-macros": "^2.8.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"gatsby-core-utils": "^3.8.0",
"gatsby-core-utils": "^3.8.1",
"gatsby-legacy-polyfills": "^2.8.0"
},
"peerDependencies": {
6 changes: 3 additions & 3 deletions packages/gatsby-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gatsby-cli",
"description": "Gatsby command-line interface for creating new sites and running Gatsby commands",
"version": "4.8.0",
"version": "4.8.1",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"bin": {
"gatsby": "cli.js"
@@ -30,8 +30,8 @@
"execa": "^5.1.1",
"fs-exists-cached": "^1.0.0",
"fs-extra": "^10.0.0",
"gatsby-core-utils": "^3.8.0",
"gatsby-telemetry": "^3.8.0",
"gatsby-core-utils": "^3.8.1",
"gatsby-telemetry": "^3.8.1",
"hosted-git-info": "^3.0.8",
"is-valid-path": "^0.1.1",
"joi": "^17.4.2",
2 changes: 1 addition & 1 deletion packages/gatsby-core-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gatsby-core-utils",
"version": "3.8.0",
"version": "3.8.1",
"description": "A collection of gatsby utils used in different gatsby packages",
"keywords": [
"gatsby",
26 changes: 26 additions & 0 deletions packages/gatsby-core-utils/src/__tests__/fetch-remote-file.js
Original file line number Diff line number Diff line change
@@ -130,6 +130,19 @@ const server = setupServer(
ctx.body(content)
)
}),
rest.get(`http://external.com/dog`, async (req, res, ctx) => {
const { content, contentLength } = await getFileContent(
path.join(__dirname, `./fixtures/dog-thumbnail.jpg`),
req
)

return res(
ctx.set(`Content-Type`, `image/jpg`),
ctx.set(`Content-Length`, contentLength),
ctx.status(200),
ctx.body(content)
)
}),
rest.get(
`http://external.com/invalid:dog*name.jpg`,
async (req, res, ctx) => {
@@ -301,6 +314,19 @@ describe(`fetch-remote-file`, () => {
expect(gotStream).toBeCalledTimes(1)
})

it(`downloads and create a jpg file for unknown extension`, async () => {
const filePath = await fetchRemoteFile({
url: `http://external.com/dog`,
cache,
})

expect(path.basename(filePath)).toBe(`dog.jpg`)
expect(getFileSize(filePath)).resolves.toBe(
await getFileSize(path.join(__dirname, `./fixtures/dog-thumbnail.jpg`))
)
expect(gotStream).toBeCalledTimes(1)
})

it(`downloads and create a jpg file that has invalid characters`, async () => {
const filePath = await fetchRemoteFile({
url: `http://external.com/invalid:dog*name.jpg`,
4 changes: 3 additions & 1 deletion packages/gatsby-core-utils/src/fetch-remote-file.ts
Original file line number Diff line number Diff line change
@@ -168,7 +168,7 @@ async function fetchFile({
await fs.ensureDir(path.join(fileDirectory, digest))

const tmpFilename = createFilePath(fileDirectory, `tmp-${digest}`, ext)
const filename = createFilePath(path.join(fileDirectory, digest), name, ext)
let filename = createFilePath(path.join(fileDirectory, digest), name, ext)

// See if there's response headers for this url
// from a previous request.
@@ -193,6 +193,8 @@ async function fetchFile({
const filetype = await fileType.fromFile(tmpFilename)
if (filetype) {
ext = `.${filetype.ext}`

filename += ext
}
}

4 changes: 2 additions & 2 deletions packages/gatsby-link/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "gatsby-link",
"description": "An enhanced Link component for Gatsby sites with support for resource prefetching",
"version": "4.8.0",
"version": "4.8.1",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@types/reach__router": "^1.3.10",
"gatsby-page-utils": "^2.8.0",
"gatsby-page-utils": "^2.8.1",
"prop-types": "^15.7.2"
},
"devDependencies": {
4 changes: 2 additions & 2 deletions packages/gatsby-page-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gatsby-page-utils",
"version": "2.8.0",
"version": "2.8.1",
"description": "Gatsby library that helps creating pages",
"main": "dist/index.js",
"types": "dist/index.d.ts",
@@ -30,7 +30,7 @@
"bluebird": "^3.7.2",
"chokidar": "^3.5.2",
"fs-exists-cached": "^1.0.0",
"gatsby-core-utils": "^3.8.0",
"gatsby-core-utils": "^3.8.1",
"glob": "^7.2.0",
"lodash": "^4.17.21",
"micromatch": "^4.0.4"
4 changes: 2 additions & 2 deletions packages/gatsby-plugin-benchmark-reporting/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gatsby-plugin-benchmark-reporting",
"description": "Gatsby Benchmark Reporting",
"version": "2.8.0",
"version": "2.8.1",
"author": "Peter van der Zee <pvdz@github>",
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
@@ -21,7 +21,7 @@
"dependencies": {
"@babel/runtime": "^7.15.4",
"fast-glob": "^3.2.11",
"gatsby-core-utils": "^3.8.0",
"gatsby-core-utils": "^3.8.1",
"node-fetch": "^2.6.7"
},
"scripts": {
6 changes: 3 additions & 3 deletions packages/gatsby-plugin-gatsby-cloud/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gatsby-plugin-gatsby-cloud",
"description": "A Gatsby plugin which optimizes working with Gatsby Cloud",
"version": "4.8.0",
"version": "4.8.1",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
@@ -10,8 +10,8 @@
"@babel/runtime": "^7.15.4",
"date-fns": "^2.28.0",
"fs-extra": "^10.0.0",
"gatsby-core-utils": "^3.8.0",
"gatsby-telemetry": "^3.8.0",
"gatsby-core-utils": "^3.8.1",
"gatsby-telemetry": "^3.8.1",
"js-cookie": "^3.0.1",
"kebab-hash": "^0.1.2",
"lodash": "^4.17.21",
6 changes: 3 additions & 3 deletions packages/gatsby-plugin-image/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gatsby-plugin-image",
"version": "2.8.0",
"version": "2.8.1",
"scripts": {
"build": "npm-run-all -s clean -p build:*",
"build:gatsby-node": "tsc --jsx react --downlevelIteration true --skipLibCheck true --esModuleInterop true --outDir dist/ src/gatsby-node.ts src/babel-plugin-parse-static-images.ts src/resolver-utils.ts src/types.d.ts -d --declarationDir dist/src",
@@ -77,12 +77,12 @@
"@babel/runtime": "^7.15.4",
"@babel/traverse": "^7.15.4",
"babel-jsx-utils": "^1.1.0",
"babel-plugin-remove-graphql-queries": "^4.8.0",
"babel-plugin-remove-graphql-queries": "^4.8.1",
"camelcase": "^5.3.1",
"chokidar": "^3.5.2",
"common-tags": "^1.8.2",
"fs-extra": "^10.0.0",
"gatsby-core-utils": "^3.8.0",
"gatsby-core-utils": "^3.8.1",
"objectFitPolyfill": "^2.3.5",
"prop-types": "^15.7.2"
},
4 changes: 2 additions & 2 deletions packages/gatsby-plugin-manifest/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "gatsby-plugin-manifest",
"description": "Gatsby plugin which adds a manifest.webmanifest to make sites progressive web apps",
"version": "4.8.0",
"version": "4.8.1",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"gatsby-core-utils": "^3.8.0",
"gatsby-core-utils": "^3.8.1",
"gatsby-plugin-utils": "^3.2.0",
"semver": "^7.3.5",
"sharp": "^0.30.1"
4 changes: 2 additions & 2 deletions packages/gatsby-plugin-mdx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gatsby-plugin-mdx",
"version": "3.8.0",
"version": "3.8.1",
"description": "MDX integration for Gatsby",
"main": "index.js",
"license": "MIT",
@@ -37,7 +37,7 @@
"escape-string-regexp": "^1.0.5",
"eval": "^0.1.4",
"fs-extra": "^10.0.0",
"gatsby-core-utils": "^3.8.0",
"gatsby-core-utils": "^3.8.1",
"gray-matter": "^4.0.2",
"json5": "^2.1.3",
"loader-utils": "^1.4.0",
4 changes: 2 additions & 2 deletions packages/gatsby-plugin-offline/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "gatsby-plugin-offline",
"description": "Gatsby plugin which sets up a site to be able to run offline",
"version": "5.8.0",
"version": "5.8.1",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"cheerio": "^1.0.0-rc.10",
"gatsby-core-utils": "^3.8.0",
"gatsby-core-utils": "^3.8.1",
"glob": "^7.2.0",
"idb-keyval": "^3.2.0",
"lodash": "^4.17.21",
8 changes: 4 additions & 4 deletions packages/gatsby-plugin-page-creator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gatsby-plugin-page-creator",
"version": "4.8.0",
"version": "4.8.1",
"description": "Gatsby plugin that automatically creates pages from React components in specified directories",
"main": "index.js",
"scripts": {
@@ -29,10 +29,10 @@
"@sindresorhus/slugify": "^1.1.2",
"chokidar": "^3.5.2",
"fs-exists-cached": "^1.0.0",
"gatsby-core-utils": "^3.8.0",
"gatsby-page-utils": "^2.8.0",
"gatsby-core-utils": "^3.8.1",
"gatsby-page-utils": "^2.8.1",
"gatsby-plugin-utils": "^3.2.0",
"gatsby-telemetry": "^3.8.0",
"gatsby-telemetry": "^3.8.1",
"globby": "^11.0.4",
"lodash": "^4.17.21"
},
4 changes: 2 additions & 2 deletions packages/gatsby-plugin-preload-fonts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gatsby-plugin-preload-fonts",
"description": "Gatsby plugin for preloading fonts per page",
"version": "3.8.0",
"version": "3.8.1",
"author": "Aaron Ross <superhawk610@gmail.com>",
"main": "index.js",
"bin": {
@@ -15,7 +15,7 @@
"chalk": "^4.1.2",
"date-fns": "^2.28.0",
"fs-extra": "^10.0.0",
"gatsby-core-utils": "^3.8.0",
"gatsby-core-utils": "^3.8.1",
"graphql-request": "^1.8.2",
"progress": "^2.0.3",
"puppeteer": "^3.3.0"
8 changes: 4 additions & 4 deletions packages/gatsby-plugin-sharp/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gatsby-plugin-sharp",
"description": "Wrapper of the Sharp image manipulation library for Gatsby plugins",
"version": "4.8.0",
"version": "4.8.1",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
@@ -13,9 +13,9 @@
"debug": "^4.3.3",
"filenamify": "^4.3.0",
"fs-extra": "^10.0.0",
"gatsby-core-utils": "^3.8.0",
"gatsby-core-utils": "^3.8.1",
"gatsby-plugin-utils": "^3.2.0",
"gatsby-telemetry": "^3.8.0",
"gatsby-telemetry": "^3.8.1",
"got": "^11.8.3",
"lodash": "^4.17.21",
"mini-svg-data-uri": "^1.4.3",
@@ -33,7 +33,7 @@
"@types/sharp": "^0.29.5",
"babel-preset-gatsby-package": "^2.8.0",
"cross-env": "^7.0.3",
"gatsby-plugin-image": "^2.8.0"
"gatsby-plugin-image": "^2.8.1"
},
"homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-sharp#readme",
"keywords": [
4 changes: 2 additions & 2 deletions packages/gatsby-plugin-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gatsby-plugin-typescript",
"description": "Adds TypeScript support to Gatsby",
"version": "4.8.0",
"version": "4.8.1",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
@@ -16,7 +16,7 @@
"@babel/plugin-proposal-optional-chaining": "^7.14.5",
"@babel/preset-typescript": "^7.15.0",
"@babel/runtime": "^7.15.4",
"babel-plugin-remove-graphql-queries": "^4.8.0"
"babel-plugin-remove-graphql-queries": "^4.8.1"
},
"devDependencies": {
"@babel/cli": "^7.15.4",
4 changes: 2 additions & 2 deletions packages/gatsby-remark-images/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gatsby-remark-images",
"description": "Processes images in markdown so they can be used in the production build.",
"version": "6.8.0",
"version": "6.8.1",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
@@ -10,7 +10,7 @@
"@babel/runtime": "^7.15.4",
"chalk": "^4.1.2",
"cheerio": "^1.0.0-rc.10",
"gatsby-core-utils": "^3.8.0",
"gatsby-core-utils": "^3.8.1",
"is-relative-url": "^3.0.0",
"lodash": "^4.17.21",
"mdast-util-definitions": "^4.0.0",
6 changes: 3 additions & 3 deletions packages/gatsby-source-contentful/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gatsby-source-contentful",
"description": "Gatsby source plugin for building websites using the Contentful CMS as a data source",
"version": "7.6.0",
"version": "7.6.1",
"author": "Marcus Ericsson <mericsson@gmail.com> (mericsson.com)",
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
@@ -17,9 +17,9 @@
"common-tags": "^1.8.2",
"contentful": "^8.5.8",
"fs-extra": "^10.0.0",
"gatsby-core-utils": "^3.8.0",
"gatsby-core-utils": "^3.8.1",
"gatsby-plugin-utils": "^3.2.0",
"gatsby-source-filesystem": "^4.8.0",
"gatsby-source-filesystem": "^4.8.1",
"is-online": "^8.5.1",
"json-stringify-safe": "^5.0.1",
"lodash": "^4.17.21",
Loading