Skip to content

Commit

Permalink
Merge branch 'master' into serhalp/frp-1284-shopify-api-has-breaking-…
Browse files Browse the repository at this point in the history
…changes-and-thus-gatsby-source
  • Loading branch information
serhalp authored Dec 16, 2024
2 parents d69b6bd + 5717252 commit cacc12e
Show file tree
Hide file tree
Showing 304 changed files with 13,393 additions and 10,393 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ jobs:
e2e_tests_adapters:
<<: *e2e-executor
docker:
- image: cypress/browsers:node-18.16.1-chrome-114.0.5735.133-1-ff-114.0.2-edge-114.0.1823.51-1
- image: cypress/browsers:node-18.20.3-chrome-125.0.6422.141-1-ff-126.0.1-edge-125.0.2535.85-1
steps:
- run: echo 'export CYPRESS_RECORD_KEY="${CY_CLOUD_ADAPTERS}"' >> "$BASH_ENV"
- e2e-test:
Expand All @@ -513,7 +513,7 @@ jobs:
e2e_tests_adapters_monorepo:
<<: *e2e-executor
docker:
- image: cypress/browsers:node-18.16.1-chrome-114.0.5735.133-1-ff-114.0.2-edge-114.0.1823.51-1
- image: cypress/browsers:node-18.20.3-chrome-125.0.6422.141-1-ff-126.0.1-edge-125.0.2535.85-1
steps:
- run: echo 'export CYPRESS_RECORD_KEY="${CY_CLOUD_ADAPTERS}"' >> "$BASH_ENV"
- e2e-test:
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,23 @@ Gatsby helps professional developers efficiently create maintainable, highly-per

- **Use a Modern Stack for Every Site.** No matter where the data comes from, Gatsby sites are built using React and GraphQL. Build a uniform workflow for you and your team, regardless of whether the data is coming from the same backend.

- **Host at Scale for Pennies.** Gatsby sites don’t require servers, so you can host your entire site on a CDN for a fraction of the cost of a server-rendered site. Many Gatsby sites can be hosted entirely free on [Gatsby Cloud](https://www.gatsbyjs.com/cloud/) and other similar services.
- **Host at Scale for Pennies.** Gatsby sites don’t require servers, so you can host your entire site on a CDN for a fraction of the cost of a server-rendered site. Many Gatsby sites can be hosted entirely free on [Netlify](https://www.netlify.com/) and other similar services.

- **Use Gatsby's Centralized Data Layer Everywhere.** With Gatsby's [Valhalla Content Hub](https://www.gatsbyjs.com/products/valhalla-content-hub/) you can bring Gatsby's data layer to any project. Making it accessible via a unified GraphQL API for building content sites, eCommerce platforms, and both native and web applications.

[**Learn how to use Gatsby for your next project.**](https://www.gatsbyjs.com/docs/)

## 🚀 Ship your first Gatsby site in 5 Minutes

Click the link below to quickly try the workflow of developing, building, and deploying websites with Gatsby and Gatsby Cloud.
Click the link below to quickly try the workflow of developing, building, and deploying websites with Gatsby and Netlify.

[<img src="https://www.gatsbyjs.com/deploynow.svg" alt="Deploy to Gatsby Cloud">](https://www.gatsbyjs.com/dashboard/deploynow?url=https://github.com/gatsbyjs/gatsby-starter-blog&utm_source=github&utm_medium=link&utm_campaign=onboarding&utm_content=oss)
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/gatsbyjs/gatsby-starter-blog&utm_source=github&utm_medium=link&utm_campaign=onboarding&utm_content=oss)

At the end of this process, you'll have

1. a site working on Gatsby Cloud
1. a site working on Netlify
2. a new repository that is linked to that new site
3. as you push changes to your new repository, Gatsby Cloud will automatically rebuild and redeploy your site!
3. as you push changes to your new repository, Netlify will automatically rebuild and redeploy your site!

## 💻 Get started with Gatsby locally in 5 Minutes

Expand Down Expand Up @@ -148,7 +148,7 @@ Gatsby is dedicated to building a welcoming, diverse, safe community. We expect

Whether you're helping us fix bugs, improve the docs, or spread the word, we'd love to have you as part of the Gatsby community!

Check out our [**Contributing Guide**](https://www.gatsbyjs.com/contributing/how-to-contribute/) for ideas on contributing and setup steps for getting our repositories up and running on your local machine.
Check out our [**Contributing Guide**](https://www.gatsbyjs.com/contributing/) for ideas on contributing and setup steps for getting our repositories up and running on your local machine.

### A note on how this repository is organized

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ GitLab Pages doesn't support advanced features like [SSR](/docs/how-to/rendering

## Additional resources

- Visit the [GitLab Pages](https://gitlab.com/help/user/project/pages/getting_started_part_one.md) to learn how to set up custom domains and find out about advanced configurations.
- Visit the [GitLab Pages](https://docs.gitlab.com/ee/user/project/pages/) to learn how to set up custom domains and find out about advanced configurations.
52 changes: 52 additions & 0 deletions docs/docs/reference/release-notes/v5.14/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
date: "2024-11-06"
version: "5.14.0"
title: "v5.14 Release Notes"
---

Welcome to `[email protected]` release (November 2024 #1)

Check out [notable bugfixes and improvements](#notable-bugfixes--improvements).

[Previous release notes](/docs/reference/release-notes/v5.13)

---

## Notable bugfixes & improvements

- minor docs improvements: https://github.com/gatsbyjs/gatsby/pull/38816, https://github.com/gatsbyjs/gatsby/pull/39052, https://github.com/gatsbyjs/gatsby/pull/39133, https://github.com/gatsbyjs/gatsby/pull/39060
- security fixes:
- bump gh-pages: https://github.com/gatsbyjs/gatsby/pull/39089
- bump underscore: https://github.com/gatsbyjs/gatsby/pull/39092
- bump thenify: https://github.com/gatsbyjs/gatsby/pull/39095
- bump axios: https://github.com/gatsbyjs/gatsby/pull/39101 https://github.com/gatsbyjs/gatsby/pull/39118
- bump ejs: https://github.com/gatsbyjs/gatsby/pull/39093
- bump set-getter: https://github.com/gatsbyjs/gatsby/pull/39091
- bump express: https://github.com/gatsbyjs/gatsby/pull/39099
- bump express: https://github.com/gatsbyjs/gatsby/pull/39098
- bump css-what: https://github.com/gatsbyjs/gatsby/pull/39107
- bump rollup: https://github.com/gatsbyjs/gatsby/pull/39112 https://github.com/gatsbyjs/gatsby/pull/39115
- bump body-parser: https://github.com/gatsbyjs/gatsby/pull/39097 https://github.com/gatsbyjs/gatsby/pull/39132
- bump webpack-dev-middleware: https://github.com/gatsbyjs/gatsby/pull/39106
- bump path-to-regexp: https://github.com/gatsbyjs/gatsby/pull/39096
- [`gatsby`, `create-gatsby`, `gatsby-cli`, `gatsby-dev-cli`, `gatsby-plugin-gatsby-cloud`, `gatsby-plugin-page-creator`] perf: disable telemetry reporting https://github.com/gatsbyjs/gatsby/pull/39137

## Contributors

A big **Thank You** to our community who contributed to this release 💜

- [JohanForngren](https://github.com/JohanForngren): Fixing missing .default #38606 [PR #38816](https://github.com/gatsbyjs/gatsby/pull/38816)
- [MetzinAround](https://github.com/MetzinAround): updating a readme dead link [PR #39133](https://github.com/gatsbyjs/gatsby/pull/39133)
- [RJWadley](https://github.com/RJWadley): fix(types): navigate doesn't return anything [PR #38590](https://github.com/gatsbyjs/gatsby/pull/38590)
- [Tuscan-blue](https://github.com/Tuscan-blue): Docs update. [PR #38915](https://github.com/gatsbyjs/gatsby/pull/38915)
- [bartveneman](https://github.com/bartveneman): fix(gatsby-source-contentful): remove outdated `forceFullSync` option from readme [PR #38787](https://github.com/gatsbyjs/gatsby/pull/38787)
- [chitoku-k](https://github.com/chitoku-k): fix(gatsby): support builtin modules prefixed with `node:` on `build-html` [PR #38516](https://github.com/gatsbyjs/gatsby/pull/38516)
- [dianacheung](https://github.com/dianacheung): Update how-gatsby-works-with-github-pages.md [PR #38909](https://github.com/gatsbyjs/gatsby/pull/38909)
- [fdmarcin](https://github.com/fdmarcin): fix(docs): Update GitLab Pages docs link [PR #39060](https://github.com/gatsbyjs/gatsby/pull/39060)
- [izzythecubemaster](https://github.com/izzythecubemaster): chore(gatsby-cli,gatsby-source-wordpress): bump clipboardy [PR #38775](https://github.com/gatsbyjs/gatsby/pull/38775)
- [larowlan](https://github.com/larowlan): chore: upgrade axios [PR #38698](https://github.com/gatsbyjs/gatsby/pull/38698)
- [laurenskling](https://github.com/laurenskling): Fix getNodesByIds typo [PR #39012](https://github.com/gatsbyjs/gatsby/pull/39012)
- [mavaddat](https://github.com/mavaddat): fix(gatsby-codemods): call jscodeshift natively [PR #38635](https://github.com/gatsbyjs/gatsby/pull/38635)
- [pindjur](https://github.com/pindjur): fix(gatsby): fix broken DevOverlay when there is no stack trace. [PR #38535](https://github.com/gatsbyjs/gatsby/pull/38535)
- [skyf0l](https://github.com/skyf0l): chore: add missing angle bracket [PR #38956](https://github.com/gatsbyjs/gatsby/pull/38956)
- [timodwhit](https://github.com/timodwhit): Remove link to self [PR #39052](https://github.com/gatsbyjs/gatsby/pull/39052)
10 changes: 6 additions & 4 deletions e2e-tests/adapters/cypress/e2e/remote-file.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,15 @@ for (const config of configs) {
).to.be.equal(expectation.height)
}
if (expectedNaturalWidth) {
expect(Math.ceil(images[i].naturalWidth)).to.be.equal(
expectedNaturalWidth
expect(Math.ceil(images[i].naturalWidth)).to.be.closeTo(
expectedNaturalWidth,
1
)
}
if (expectedNaturalHeight) {
expect(Math.ceil(images[i].naturalHeight)).to.be.equal(
expectedNaturalHeight
expect(Math.ceil(images[i].naturalHeight)).to.be.closeTo(
expectedNaturalHeight,
1
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/adapters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"cypress": "^12.14.0",
"dotenv": "^8.6.0",
"execa": "^6.1.0",
"gatsby-cypress": "^3.13.0",
"gatsby-cypress": "^3.13.1",
"netlify-cli": "^17.25.0",
"npm-run-all": "^4.1.5",
"start-server-and-test": "^2.0.3",
Expand Down
5 changes: 3 additions & 2 deletions integration-tests/gatsby-cli/__tests__/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ jest.setTimeout(MAX_TIMEOUT)

describe(`gatsby options`, () => {
it(`Prints the options`, () => {
const [status, logs] = GatsbyCLI.from(`gatsby-sites/gatsby-build`).invoke(`options`)
const [status, logs] = GatsbyCLI.from(`gatsby-sites/gatsby-build`).invoke(
`options`
)

logs.should.contain(`Package Manager`)
logs.should.contain(`Telemetry enabled`)
expect(status).toBe(0)
})
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@typescript-eslint/parser": "^5.60.1",
"babel-jest": "^29.5.0",
"chalk": "^4.1.2",
"chokidar": "^3.5.3",
"chokidar": "^3.6.0",
"cross-env": "^7.0.3",
"danger": "^10.9.0",
"date-fns": "^1.30.1",
Expand Down
6 changes: 6 additions & 0 deletions packages/babel-plugin-remove-graphql-queries/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [5.14.0](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/babel-plugin-remove-graphql-queries) (2024-11-06)

[🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v5.14)

**Note:** Version bump only for package babel-plugin-remove-graphql-queries

### [5.13.1](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/babel-plugin-remove-graphql-queries) (2024-01-23)

**Note:** Version bump only for package babel-plugin-remove-graphql-queries
Expand Down
6 changes: 3 additions & 3 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": "5.14.0-next.2",
"version": "5.15.0-next.0",
"author": "Jason Quense <[email protected]>",
"repository": {
"type": "git",
Expand All @@ -11,12 +11,12 @@
"dependencies": {
"@babel/runtime": "^7.20.13",
"@babel/types": "^7.20.7",
"gatsby-core-utils": "^4.14.0-next.2"
"gatsby-core-utils": "^4.15.0-next.0"
},
"devDependencies": {
"@babel/cli": "^7.20.7",
"@babel/core": "^7.20.12",
"babel-preset-gatsby-package": "^3.14.0-next.2",
"babel-preset-gatsby-package": "^3.15.0-next.0",
"cross-env": "^7.0.3"
},
"peerDependencies": {
Expand Down
9 changes: 9 additions & 0 deletions packages/babel-preset-gatsby-package/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [3.14.0](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/babel-preset-gatsby-package) (2024-11-06)

[🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v5.14)

#### Chores

- swap babel-plugin-lodash with updated version that doesn't use deprecated APIs [#38797](https://github.com/gatsbyjs/gatsby/issues/38797) ([3d4d6a6](https://github.com/gatsbyjs/gatsby/commit/3d4d6a6e222cf3bff3f2c2cdfb0cc539bad2403a))
- update dependency @types/babel\_\_core to ^7.20.5 for babel-preset-gatsby-package [#38594](https://github.com/gatsbyjs/gatsby/issues/38594) ([aef8e58](https://github.com/gatsbyjs/gatsby/commit/aef8e58f70fe7231a6c928cad2864c9b3fb18dad))

### [3.13.1](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/babel-preset-gatsby-package) (2024-01-23)

#### Chores
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset-gatsby-package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-preset-gatsby-package",
"version": "3.14.0-next.2",
"version": "3.15.0-next.0",
"author": "Philipp Spiess <[email protected]>",
"repository": {
"type": "git",
Expand Down
6 changes: 6 additions & 0 deletions packages/babel-preset-gatsby/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [3.14.0](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/babel-preset-gatsby) (2024-11-06)

[🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v5.14)

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

### [3.13.2](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/babel-preset-gatsby) (2024-04-10)

**Note:** Version bump only for package babel-preset-gatsby
Expand Down
8 changes: 4 additions & 4 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": "3.14.0-next.2",
"version": "3.15.0-next.0",
"author": "Philipp Spiess <[email protected]>",
"repository": {
"type": "git",
Expand All @@ -22,8 +22,8 @@
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-macros": "^3.1.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"gatsby-core-utils": "^4.14.0-next.2",
"gatsby-legacy-polyfills": "^3.14.0-next.1"
"gatsby-core-utils": "^4.15.0-next.0",
"gatsby-legacy-polyfills": "^3.15.0-next.0"
},
"peerDependencies": {
"@babel/core": "^7.11.6",
Expand All @@ -38,7 +38,7 @@
},
"devDependencies": {
"@babel/cli": "^7.20.7",
"babel-preset-gatsby-package": "^3.14.0-next.2",
"babel-preset-gatsby-package": "^3.15.0-next.0",
"cross-env": "^7.0.3",
"slash": "^3.0.0"
},
Expand Down
13 changes: 13 additions & 0 deletions packages/create-gatsby/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [3.14.0](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/create-gatsby) (2024-11-06)

[🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v5.14)

#### Bug Fixes

- update dependency fs-extra to ^11.2.0 [#38727](https://github.com/gatsbyjs/gatsby/issues/38727) ([cb33fe5](https://github.com/gatsbyjs/gatsby/commit/cb33fe5d02b3a42cf629baf948a7aae7a9e7dd0f))
- remove outdated `forceFullSync` option from readme [#38787](https://github.com/gatsbyjs/gatsby/issues/38787) ([a39d374](https://github.com/gatsbyjs/gatsby/commit/a39d374232709ba310a8a2cc4a17f0469ebaa8d5))

#### Chores

- disable telemetry [#39137](https://github.com/gatsbyjs/gatsby/issues/39137) ([1b1720b](https://github.com/gatsbyjs/gatsby/commit/1b1720bb75233661b30205000c4c3bff855d47c8))

### [3.13.1](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/create-gatsby) (2024-01-23)

**Note:** Version bump only for package create-gatsby
Expand Down
4 changes: 2 additions & 2 deletions packages/create-gatsby/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-gatsby",
"version": "3.14.0-next.2",
"version": "3.15.0-next.0",
"main": "lib/index.js",
"bin": "cli.js",
"license": "MIT",
Expand All @@ -27,7 +27,7 @@
"enquirer": "^2.3.6",
"execa": "^5.1.1",
"fs-extra": "^11.2.0",
"gatsby-plugin-utils": "^4.14.0-next.2",
"gatsby-plugin-utils": "^4.15.0-next.0",
"joi": "^17.9.2",
"microbundle": "^0.15.1",
"node-fetch": "^2.6.11",
Expand Down
41 changes: 0 additions & 41 deletions packages/create-gatsby/src/__tests__/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import path from "path"
import { reporter } from "../utils/reporter"
import { initStarter } from "../init-starter"
import { setSiteMetadata } from "../utils/site-metadata"
import { trackCli } from "../tracking"
import { run, DEFAULT_STARTERS } from "../index"

jest.mock(`../utils/parse-args`)
Expand Down Expand Up @@ -35,11 +34,6 @@ jest.mock(`enquirer`, () => {
return MockedEnquirer
})
jest.mock(`../utils/reporter`)
jest.mock(`../tracking`, () => {
return {
trackCli: jest.fn(),
}
})
jest.mock(`../init-starter`, () => {
return {
initStarter: jest.fn(),
Expand All @@ -57,12 +51,6 @@ jest.mock(`../utils/site-metadata`, () => {
setSiteMetadata: jest.fn(),
}
})
jest.mock(`../utils/hash`, () => {
return {
sha256: jest.fn(args => args),
md5: jest.fn(args => args),
}
})

jest.mock(`../utils/question-helpers`, () => {
const originalQuestionHelpers = jest.requireActual(
Expand Down Expand Up @@ -185,13 +173,6 @@ describe(`run`, () => {
dirName
)
})
it(`should track JS was selected as language`, async () => {
await run()
expect(trackCli).toHaveBeenCalledWith(`CREATE_GATSBY_SELECT_OPTION`, {
name: `LANGUAGE`,
valueString: `js`,
})
})
})

describe(`no ts flag`, () => {
Expand All @@ -211,13 +192,6 @@ describe(`run`, () => {
siteName
)
})
it(`should track JS was selected as language`, async () => {
await run()
expect(trackCli).toHaveBeenCalledWith(`CREATE_GATSBY_SELECT_OPTION`, {
name: `LANGUAGE`,
valueString: `js`,
})
})
})

describe(`ts flag`, () => {
Expand All @@ -237,14 +211,6 @@ describe(`run`, () => {
siteName
)
})

it(`should track TS was selected as language`, async () => {
await run()
expect(trackCli).toHaveBeenCalledWith(`CREATE_GATSBY_SELECT_OPTION`, {
name: `LANGUAGE`,
valueString: `ts`,
})
})
})
})

Expand All @@ -265,11 +231,4 @@ describe(`skip and ts flag`, () => {
dirName
)
})
it(`should track TS was selected as language`, async () => {
await run()
expect(trackCli).toHaveBeenCalledWith(`CREATE_GATSBY_SELECT_OPTION`, {
name: `LANGUAGE`,
valueString: `ts`,
})
})
})
Loading

0 comments on commit cacc12e

Please sign in to comment.