diff --git a/.circleci/config.yml b/.circleci/config.yml index b3c98bfdb26b0..87f6d0cc9c24f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,14 +8,14 @@ executors: image: type: string # First 10.x LTS release, but old Yarn - default: "12.13.0" + default: "14.17.0" docker: - image: cimg/node:<< parameters.image >> aliases: e2e-executor: &e2e-executor docker: - - image: cypress/browsers:node12.18.3-chrome87-ff82 + - image: cypress/browsers:node14.15.0-chrome86-ff82 restore_cache: &restore_cache restore_cache: @@ -102,7 +102,7 @@ aliases: requires: - lint - typecheck - - unit_tests_node12 + - unit_tests_node14 e2e_tests_production_runtime_alias: &e2e_tests_production_runtime_alias <<: *e2e-executor @@ -188,7 +188,7 @@ jobs: - checkout - run: ./scripts/assert-changed-files.sh "packages/*|(e2e|integration)-tests/*|.circleci/*|scripts/e2e-test.sh|yarn.lock" # python 2 is not built in and node-gyp needs it to build lmdb - - run: apt-get update && apt-get install python -y + - run: sudo apt-get update && sudo apt-get install python -y - <<: *restore_cache - <<: *install_node_modules - <<: *check_lockfile @@ -227,11 +227,6 @@ jobs: - run: yarn typecheck - run: yarn check-repo-fields - unit_tests_node12: - executor: - name: node - <<: *test_template - unit_tests_node14: executor: name: node @@ -255,9 +250,9 @@ jobs: command: | echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV - - run: nvm install v12 - - run: nvm alias default v12 - - run: nvm use v12 + - run: nvm install v14 + - run: nvm alias default v14 + - run: nvm use v14 - run: npm i -g yarn@1.22.10 - e2e-test: test_path: integration-tests/gatsby-source-wordpress @@ -477,7 +472,7 @@ jobs: steps: - checkout # jq is helpful for parsing json & python required for node-gyp to build lmdb - - run: apt-get update && apt-get install jq python -y + - run: sudo apt-get update && sudo apt-get install jq python -y - <<: *restore_cache - <<: *install_node_modules - run: yarn markdown @@ -489,7 +484,7 @@ jobs: executor: node steps: - checkout - - run: apt-get update && apt-get install jq python -y + - run: sudo apt-get update && sudo apt-get install jq python -y - <<: *restore_cache - <<: *install_node_modules - run: git config --global user.name "GatsbyJS Bot" @@ -540,11 +535,11 @@ jobs: - <<: *attach_to_bootstrap - run: - name: Install node 12.13 and yarn + name: Install node 14.17 and yarn command: | - nvm install 12.13.0 - nvm alias default 12.13.0 - nvm use 12.13.0 + nvm install 14.17.0 + nvm alias default 14.17.0 + nvm use 14.17.0 choco install yarn - run: name: Rebuild packages for windows @@ -571,7 +566,7 @@ jobs: steps: - checkout # python 2 is not built in and node-gyp needs it to build lmdb - - run: apt-get update && apt-get install python -y + - run: sudo apt-get update && sudo apt-get install python -y - run: name: "Update React to prerelease" command: "REACT_CHANNEL=<< parameters.version >> node ./scripts/upgrade-react" @@ -664,12 +659,6 @@ workflows: requires: - lint - bootstrap - - unit_tests_node12: - <<: *ignore_docs - requires: - - lint - - typecheck - - bootstrap - unit_tests_node14: <<: *ignore_docs requires: diff --git a/package.json b/package.json index 9da0dcf77f829..2a445bc0716ab 100644 --- a/package.json +++ b/package.json @@ -115,7 +115,7 @@ "csstype": "2.6.17" }, "scripts": { - "bootstrap": "npm-run-all -s check-versions \"lerna-prepare -- --{@}\" --", + "bootstrap": "cross-env COMPILER_OPTIONS=\"GATSBY_MAJOR=4\" npm-run-all -s check-versions \"lerna-prepare -- --{@}\" --", "check-repo-fields": "node scripts/check-repo-fields.js", "check-versions": "node scripts/check-versions.js", "format": "npm run format:code && npm run format:other && npm run format:svg", @@ -141,7 +141,7 @@ "prettier": "prettier \"**/*.{md,css,scss,yaml,yml}\"", "publish": "echo \"Use 'yarn publish-next' or 'yarn publish-release' instead of 'yarn run publish'\"", "publish-canary": "node scripts/check-publish-access && lerna publish --canary --yes", - "publish-next": "node scripts/check-publish-access && node scripts/clear-package-dir prerelease --verbose && lerna publish prerelease --pre-dist-tag=next --preid=next --allow-branch=master --message=\"chore(release): Publish next\"", + "publish-next": "node scripts/check-publish-access && node scripts/clear-package-dir prerelease --verbose && cross-env COMPILER_OPTIONS=\"GATSBY_MAJOR=4\" lerna publish prerelease --pre-dist-tag=next --preid=next --allow-branch=master --message=\"chore(release): Publish next\"", "publish-preminor": "node scripts/check-publish-access && node scripts/clear-package-dir preminor --verbose && lerna publish preminor --pre-dist-tag=next --preid=next --force-publish --allow-branch=master --message=\"chore(release): Publish next pre-minor\"", "publish-rc": "node scripts/check-publish-access && node scripts/clear-package-dir prerelease --verbose && lerna publish prerelease --pre-dist-tag=rc --preid=rc --message=\"chore(release): Publish rc\"", "publish-release": "node scripts/check-publish-access && node scripts/clear-package-dir patch --verbose && lerna publish patch", diff --git a/packages/babel-plugin-remove-graphql-queries/package.json b/packages/babel-plugin-remove-graphql-queries/package.json index 0e2ea49cb8932..a0ad120248425 100644 --- a/packages/babel-plugin-remove-graphql-queries/package.json +++ b/packages/babel-plugin-remove-graphql-queries/package.json @@ -20,7 +20,7 @@ }, "peerDependencies": { "@babel/core": "^7.0.0", - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "license": "MIT", "main": "index.js", @@ -30,6 +30,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\" --extensions \".ts,.js\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/babel-preset-gatsby-package/lib/__tests__/__snapshots__/index.js.snap b/packages/babel-preset-gatsby-package/lib/__tests__/__snapshots__/index.js.snap index fede0956dc114..fe740e23f89f9 100644 --- a/packages/babel-preset-gatsby-package/lib/__tests__/__snapshots__/index.js.snap +++ b/packages/babel-preset-gatsby-package/lib/__tests__/__snapshots__/index.js.snap @@ -127,7 +127,7 @@ Array [ "modules": "commonjs", "shippedProposals": true, "targets": Object { - "node": "12.13.0", + "node": "14.15.0", }, "useBuiltIns": "entry", }, @@ -151,7 +151,7 @@ Array [ "modules": "commonjs", "shippedProposals": true, "targets": Object { - "node": "12.13.0", + "node": "14.15.0", }, "useBuiltIns": "entry", }, diff --git a/packages/babel-preset-gatsby-package/lib/index.js b/packages/babel-preset-gatsby-package/lib/index.js index 260bde64740dd..cf4ec32237c9c 100644 --- a/packages/babel-preset-gatsby-package/lib/index.js +++ b/packages/babel-preset-gatsby-package/lib/index.js @@ -4,11 +4,15 @@ function preset(context, options = {}) { const { browser = false, debug = false, - nodeVersion = `12.13.0`, + nodeVersion = `14.15.0`, esm = false, availableCompilerFlags = [`GATSBY_MAJOR`], } = options - const { NODE_ENV, BABEL_ENV, COMPILER_OPTIONS } = process.env + const { + NODE_ENV, + BABEL_ENV, + COMPILER_OPTIONS = `GATSBY_MAJOR=4`, + } = process.env const IS_TEST = (BABEL_ENV || NODE_ENV) === `test` diff --git a/packages/babel-preset-gatsby-package/package.json b/packages/babel-preset-gatsby-package/package.json index 76e6fcb550cd7..b0ec0ddacd688 100644 --- a/packages/babel-preset-gatsby-package/package.json +++ b/packages/babel-preset-gatsby-package/package.json @@ -34,7 +34,7 @@ "license": "MIT", "main": "lib/index.js", "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" }, "files": [ "lib/*.js" diff --git a/packages/babel-preset-gatsby/package.json b/packages/babel-preset-gatsby/package.json index 82d08aedc257a..c0ebc46c315f8 100644 --- a/packages/babel-preset-gatsby/package.json +++ b/packages/babel-preset-gatsby/package.json @@ -43,6 +43,6 @@ "slash": "^3.0.0" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-cli/package.json b/packages/gatsby-cli/package.json index 663bbf8a974c3..731b9facc9534 100644 --- a/packages/gatsby-cli/package.json +++ b/packages/gatsby-cli/package.json @@ -100,6 +100,6 @@ "postinstall": "node scripts/postinstall.js" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-cli/src/__tests__/index.ts b/packages/gatsby-cli/src/__tests__/index.ts index 7f578dd757e07..650d019753e1b 100644 --- a/packages/gatsby-cli/src/__tests__/index.ts +++ b/packages/gatsby-cli/src/__tests__/index.ts @@ -52,8 +52,8 @@ const setup = (version?: string): ReturnType => { } describe(`error handling`, () => { - it(`panics on Node < 12.13.0`, () => { - ;[`6.0.0`, `8.0.0`, `10.0.0`, `12.0.0`].forEach(version => { + it(`panics on Node < 14.15.0`, () => { + ;[`6.0.0`, `8.0.0`, `12.13.0`, `13.0.0`].forEach(version => { const { reporter } = setup(version) expect(reporter.panic).toHaveBeenCalledTimes(1) @@ -95,8 +95,8 @@ describe(`error handling`, () => { // }) describe(`normal behavior`, () => { - it(`does not panic on Node >= 12.13.0`, () => { - ;[`12.13.0`, `13.0.0`, `14.0.0`].forEach(version => { + it(`does not panic on Node >= 14.15.0`, () => { + ;[`14.15.0`, `15.0.0`, `16.3.0`].forEach(version => { const { reporter } = setup(version) expect(reporter.panic).not.toHaveBeenCalled() diff --git a/packages/gatsby-codemods/package.json b/packages/gatsby-codemods/package.json index 66fade34f4773..f6e02722250c0 100644 --- a/packages/gatsby-codemods/package.json +++ b/packages/gatsby-codemods/package.json @@ -40,7 +40,7 @@ "cross-env": "^7.0.3" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" }, "bin": "./bin/gatsby-codemods.js" } diff --git a/packages/gatsby-core-utils/package.json b/packages/gatsby-core-utils/package.json index 2c9e0ce2e1952..f6b0f17ff4142 100644 --- a/packages/gatsby-core-utils/package.json +++ b/packages/gatsby-core-utils/package.json @@ -50,6 +50,6 @@ "typescript": "^4.3.5" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-cypress/package.json b/packages/gatsby-cypress/package.json index 32c45b07e3481..ed52bbc6410d4 100644 --- a/packages/gatsby-cypress/package.json +++ b/packages/gatsby-cypress/package.json @@ -31,7 +31,7 @@ ], "peerDependencies": { "cypress": "^3.1.0", - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "scripts": { "build": "babel src --out-dir . --ignore \"**/__tests__\"", @@ -39,6 +39,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-design-tokens/package.json b/packages/gatsby-design-tokens/package.json index e2fa9ac3afd9a..a082c6fe919a3 100644 --- a/packages/gatsby-design-tokens/package.json +++ b/packages/gatsby-design-tokens/package.json @@ -36,6 +36,6 @@ "preval.macro": "^5.0.0" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-dev-cli/package.json b/packages/gatsby-dev-cli/package.json index 0f258b698099d..0e67bd97d02e4 100644 --- a/packages/gatsby-dev-cli/package.json +++ b/packages/gatsby-dev-cli/package.json @@ -48,6 +48,6 @@ "watch": "babel -w src --out-dir dist --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-graphiql-explorer/package.json b/packages/gatsby-graphiql-explorer/package.json index d0b3920cabc0b..24051f2a08cc4 100644 --- a/packages/gatsby-graphiql-explorer/package.json +++ b/packages/gatsby-graphiql-explorer/package.json @@ -56,6 +56,6 @@ "whatwg-fetch": "^3.6.2" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-link/package.json b/packages/gatsby-link/package.json index f62cf5972d3cb..65632f7f6e420 100644 --- a/packages/gatsby-link/package.json +++ b/packages/gatsby-link/package.json @@ -41,6 +41,6 @@ }, "types": "index.d.ts", "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-page-utils/package.json b/packages/gatsby-page-utils/package.json index 48922a001be91..61ec42a62ad94 100644 --- a/packages/gatsby-page-utils/package.json +++ b/packages/gatsby-page-utils/package.json @@ -44,6 +44,6 @@ "dist/" ], "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-benchmark-reporting/package.json b/packages/gatsby-plugin-benchmark-reporting/package.json index 29793309e0252..69a08c83fcd17 100644 --- a/packages/gatsby-plugin-benchmark-reporting/package.json +++ b/packages/gatsby-plugin-benchmark-reporting/package.json @@ -30,6 +30,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-canonical-urls/package.json b/packages/gatsby-plugin-canonical-urls/package.json index 23e75ab06f859..45931d487dd86 100644 --- a/packages/gatsby-plugin-canonical-urls/package.json +++ b/packages/gatsby-plugin-canonical-urls/package.json @@ -23,7 +23,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -36,6 +36,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-catch-links/package.json b/packages/gatsby-plugin-catch-links/package.json index a35e5b99b7a1e..d16a82b2f98e6 100644 --- a/packages/gatsby-plugin-catch-links/package.json +++ b/packages/gatsby-plugin-catch-links/package.json @@ -24,7 +24,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -37,6 +37,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-coffeescript/package.json b/packages/gatsby-plugin-coffeescript/package.json index 40e0432884141..88f7179cc6356 100644 --- a/packages/gatsby-plugin-coffeescript/package.json +++ b/packages/gatsby-plugin-coffeescript/package.json @@ -30,7 +30,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -43,6 +43,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-create-client-paths/package.json b/packages/gatsby-plugin-create-client-paths/package.json index e741fe8bfbb56..c0daadccb30f9 100644 --- a/packages/gatsby-plugin-create-client-paths/package.json +++ b/packages/gatsby-plugin-create-client-paths/package.json @@ -23,7 +23,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -36,6 +36,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-cxs/package.json b/packages/gatsby-plugin-cxs/package.json index 400df9c7140e5..5ba87697c28d4 100644 --- a/packages/gatsby-plugin-cxs/package.json +++ b/packages/gatsby-plugin-cxs/package.json @@ -27,7 +27,7 @@ "main": "index.js", "peerDependencies": { "cxs": ">=5.0.0", - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "react": "^16.9.0 || ^17.0.0", "react-dom": "^16.9.0 || ^17.0.0" }, @@ -42,6 +42,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-emotion/package.json b/packages/gatsby-plugin-emotion/package.json index 968df982dab3c..d75a7f53f2169 100644 --- a/packages/gatsby-plugin-emotion/package.json +++ b/packages/gatsby-plugin-emotion/package.json @@ -19,7 +19,7 @@ "peerDependencies": { "@babel/core": "^7.11.6", "@emotion/react": "^11.0.0", - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-emotion#readme", "keywords": [ @@ -41,6 +41,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-facebook-analytics/package.json b/packages/gatsby-plugin-facebook-analytics/package.json index f8dff5d63ffe3..fd95ca07d5706 100644 --- a/packages/gatsby-plugin-facebook-analytics/package.json +++ b/packages/gatsby-plugin-facebook-analytics/package.json @@ -25,7 +25,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -38,6 +38,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-feed/package.json b/packages/gatsby-plugin-feed/package.json index c49c6ade90aad..f5c20918ed9c6 100644 --- a/packages/gatsby-plugin-feed/package.json +++ b/packages/gatsby-plugin-feed/package.json @@ -32,7 +32,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "react": "^16.9.0 || ^17.0.0", "react-dom": "^16.9.0 || ^17.0.0" }, @@ -47,6 +47,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-flow/package.json b/packages/gatsby-plugin-flow/package.json index 75b557d905bbf..1998c2558be54 100644 --- a/packages/gatsby-plugin-flow/package.json +++ b/packages/gatsby-plugin-flow/package.json @@ -35,9 +35,9 @@ "gatsby-plugin-utils": "^1.14.0-next.2" }, "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-fullstory/package.json b/packages/gatsby-plugin-fullstory/package.json index e7bbea38b764c..0f195249487b4 100644 --- a/packages/gatsby-plugin-fullstory/package.json +++ b/packages/gatsby-plugin-fullstory/package.json @@ -33,11 +33,11 @@ "cross-env": "^7.0.3" }, "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "react": "^16.9.0 || ^17.0.0", "react-dom": "^16.9.0 || ^17.0.0" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-gatsby-cloud/package.json b/packages/gatsby-plugin-gatsby-cloud/package.json index 6d0540e1e1da5..de4547748c9c5 100644 --- a/packages/gatsby-plugin-gatsby-cloud/package.json +++ b/packages/gatsby-plugin-gatsby-cloud/package.json @@ -42,7 +42,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "webpack": "*" }, "repository": { @@ -59,6 +59,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-google-analytics/package.json b/packages/gatsby-plugin-google-analytics/package.json index 31c260e0e67fa..1b36a533881c2 100644 --- a/packages/gatsby-plugin-google-analytics/package.json +++ b/packages/gatsby-plugin-google-analytics/package.json @@ -27,7 +27,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "react": "^16.9.0 || ^17.0.0", "react-dom": "^16.9.0 || ^17.0.0" }, @@ -42,7 +42,7 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" }, "types": "./index.d.ts" } diff --git a/packages/gatsby-plugin-google-gtag/package.json b/packages/gatsby-plugin-google-gtag/package.json index 59fdbba2f9f91..e05f80c6257b2 100644 --- a/packages/gatsby-plugin-google-gtag/package.json +++ b/packages/gatsby-plugin-google-gtag/package.json @@ -26,7 +26,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "react": "^16.9.0 || ^17.0.0", "react-dom": "^16.9.0 || ^17.0.0" }, @@ -41,6 +41,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-google-tagmanager/package.json b/packages/gatsby-plugin-google-tagmanager/package.json index ee1dffbfc4c6b..9e7ed22b33580 100644 --- a/packages/gatsby-plugin-google-tagmanager/package.json +++ b/packages/gatsby-plugin-google-tagmanager/package.json @@ -27,7 +27,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "react": "^16.9.0 || ^17.0.0", "react-dom": "^16.9.0 || ^17.0.0" }, @@ -42,6 +42,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-graphql-config/package.json b/packages/gatsby-plugin-graphql-config/package.json index 46958a3265f67..3c57daf862a09 100644 --- a/packages/gatsby-plugin-graphql-config/package.json +++ b/packages/gatsby-plugin-graphql-config/package.json @@ -17,7 +17,7 @@ "cross-env": "^7.0.3" }, "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-graphql-config#readme", "keywords": [ @@ -39,6 +39,6 @@ "prepare": "cross-env NODE_ENV=production npm run build" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-image/package.json b/packages/gatsby-plugin-image/package.json index f672c573a2d65..369e23cc577b9 100644 --- a/packages/gatsby-plugin-image/package.json +++ b/packages/gatsby-plugin-image/package.json @@ -65,9 +65,9 @@ }, "peerDependencies": { "@babel/core": "^7.12.3", - "gatsby": "^3.0.0-next.0", - "gatsby-plugin-sharp": "^3.0.0-next.0", - "gatsby-source-filesystem": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", + "gatsby-plugin-sharp": "^4.0.0-next", + "gatsby-source-filesystem": "^4.0.0-next", "react": "^16.9.0 || ^17.0.0", "react-dom": "^16.9.0 || ^17.0.0" }, diff --git a/packages/gatsby-plugin-jss/package.json b/packages/gatsby-plugin-jss/package.json index c52d2bc4f9429..9aa28181a2b66 100644 --- a/packages/gatsby-plugin-jss/package.json +++ b/packages/gatsby-plugin-jss/package.json @@ -25,7 +25,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "react": "^16.9.0 || ^17.0.0", "react-dom": "^16.9.0 || ^17.0.0" }, @@ -40,6 +40,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-layout/package.json b/packages/gatsby-plugin-layout/package.json index 4d9d8afb895b9..2e12271137f88 100644 --- a/packages/gatsby-plugin-layout/package.json +++ b/packages/gatsby-plugin-layout/package.json @@ -33,9 +33,9 @@ "cross-env": "^7.0.3" }, "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-less/package.json b/packages/gatsby-plugin-less/package.json index 5984fb22aa796..23afa08121097 100644 --- a/packages/gatsby-plugin-less/package.json +++ b/packages/gatsby-plugin-less/package.json @@ -25,7 +25,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -38,6 +38,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__,theme-test.js\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-lodash/package.json b/packages/gatsby-plugin-lodash/package.json index 73d7c6327e747..9e2f69b10cb89 100644 --- a/packages/gatsby-plugin-lodash/package.json +++ b/packages/gatsby-plugin-lodash/package.json @@ -25,7 +25,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -38,6 +38,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-manifest/package.json b/packages/gatsby-plugin-manifest/package.json index ee0a497d3efd0..5e98ddb2e9dc7 100644 --- a/packages/gatsby-plugin-manifest/package.json +++ b/packages/gatsby-plugin-manifest/package.json @@ -32,7 +32,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -45,6 +45,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-mdx/gatsby-node.js b/packages/gatsby-plugin-mdx/gatsby-node.js index a5e0f5bb92389..4c7b964582c29 100644 --- a/packages/gatsby-plugin-mdx/gatsby-node.js +++ b/packages/gatsby-plugin-mdx/gatsby-node.js @@ -80,16 +80,9 @@ exports.pluginOptionsSchema = function ({ Joi }) { .unknown(true) .default({}) .description(`Set the layout components for MDX source types`), - gatsbyRemarkPlugins: Joi.array() - .items( - Joi.string(), - Joi.object({ - resolve: Joi.string(), - options: Joi.object({}).unknown(true), - }) - ) - .default([]) - .description(`Use Gatsby-specific remark plugins`), + gatsbyRemarkPlugins: Joi.subPlugins({ entry: `index` }).description( + `Use Gatsby-specific remark plugins` + ), lessBabel: Joi.boolean() .default(false) .description( diff --git a/packages/gatsby-plugin-mdx/gatsby/create-schema-customization.js b/packages/gatsby-plugin-mdx/gatsby/create-schema-customization.js index aca0536a58475..33e7480ff9b8d 100644 --- a/packages/gatsby-plugin-mdx/gatsby/create-schema-customization.js +++ b/packages/gatsby-plugin-mdx/gatsby/create-schema-customization.js @@ -17,7 +17,6 @@ const getTableOfContents = require(`../utils/get-table-of-content`) const defaultOptions = require(`../utils/default-options`) const genMDX = require(`../utils/gen-mdx`) const { mdxHTMLLoader: loader } = require(`../utils/render-html`) -const { interopDefault } = require(`../utils/interop-default`) async function getCounts({ mdast }) { const counts = {} @@ -75,7 +74,7 @@ module.exports = function createSchemaCustomization( */ for (const plugin of options.gatsbyRemarkPlugins) { debug(`requiring`, plugin.resolve) - const requiredPlugin = interopDefault(require(plugin.resolve)) + const requiredPlugin = plugin.module debug(`required`, plugin) if (_.isFunction(requiredPlugin.setParserPlugins)) { for (const parserPlugin of requiredPlugin.setParserPlugins( diff --git a/packages/gatsby-plugin-mdx/loaders/mdx-loader.js b/packages/gatsby-plugin-mdx/loaders/mdx-loader.js index a602ca833c5a4..9f9432df06a4b 100644 --- a/packages/gatsby-plugin-mdx/loaders/mdx-loader.js +++ b/packages/gatsby-plugin-mdx/loaders/mdx-loader.js @@ -5,7 +5,6 @@ const path = require(`path`) const unified = require(`unified`) const babel = require(`@babel/core`) const { createRequireFromPath, slash } = require(`gatsby-core-utils`) -const { interopDefault } = require(`../utils/interop-default`) const { isImport, @@ -206,7 +205,7 @@ ${contentWithoutFrontmatter}` */ for (const plugin of options.gatsbyRemarkPlugins) { debug(`requiring`, plugin.resolve) - const requiredPlugin = interopDefault(require(plugin.resolve)) + const requiredPlugin = plugin.module debug(`required`, plugin) if (_.isFunction(requiredPlugin.setParserPlugins)) { for (const parserPlugin of requiredPlugin.setParserPlugins( diff --git a/packages/gatsby-plugin-mdx/package.json b/packages/gatsby-plugin-mdx/package.json index 4fa83e356ffc8..39c01f2553baa 100644 --- a/packages/gatsby-plugin-mdx/package.json +++ b/packages/gatsby-plugin-mdx/package.json @@ -14,6 +14,7 @@ "directory": "packages/gatsby-plugin-mdx" }, "peerDependencies": { + "gatsby": "^4.0.0-next", "@mdx-js/mdx": "^1.0.0", "@mdx-js/react": "^1.0.0", "react": "^16.9.0 || ^17.0.0", diff --git a/packages/gatsby-plugin-mdx/utils/get-source-plugins-as-remark-plugins.js b/packages/gatsby-plugin-mdx/utils/get-source-plugins-as-remark-plugins.js index 86f14c514e776..62460627552c3 100644 --- a/packages/gatsby-plugin-mdx/utils/get-source-plugins-as-remark-plugins.js +++ b/packages/gatsby-plugin-mdx/utils/get-source-plugins-as-remark-plugins.js @@ -1,5 +1,4 @@ const visit = require(`unist-util-visit`) -const { interopDefault } = require(`./interop-default`) // ensure only one `/` in new url const withPathPrefix = (url, pathPrefix) => @@ -36,7 +35,7 @@ module.exports = async function getSourcePluginsAsRemarkPlugins({ // return list of remarkPlugins const userPluginsFiltered = gatsbyRemarkPlugins.filter( - plugin => typeof interopDefault(require(plugin.resolve)) === `function` + plugin => typeof plugin.module === `function` ) if (!userPluginsFiltered.length) { @@ -44,7 +43,7 @@ module.exports = async function getSourcePluginsAsRemarkPlugins({ } const userPlugins = userPluginsFiltered.map(plugin => { - const requiredPlugin = interopDefault(require(plugin.resolve)) + const requiredPlugin = plugin.module const wrappedPlugin = () => async function transformer(markdownAST) { await requiredPlugin( diff --git a/packages/gatsby-plugin-mdx/utils/render-html.js b/packages/gatsby-plugin-mdx/utils/render-html.js index 16d1080b211fd..ab390241b3115 100644 --- a/packages/gatsby-plugin-mdx/utils/render-html.js +++ b/packages/gatsby-plugin-mdx/utils/render-html.js @@ -1,4 +1,4 @@ -const webpack = require(`webpack`) +const webpack = require(`gatsby/webpack`) const path = require(`path`) const evaluate = require(`eval`) const debug = require(`debug`)(`gatsby-plugin-mdx:render-html`) diff --git a/packages/gatsby-plugin-netlify-cms/package.json b/packages/gatsby-plugin-netlify-cms/package.json index cdd36442439c3..d4657d5d32299 100644 --- a/packages/gatsby-plugin-netlify-cms/package.json +++ b/packages/gatsby-plugin-netlify-cms/package.json @@ -15,8 +15,7 @@ "html-webpack-tags-plugin": "^3.0.1", "lodash": "^4.17.21", "mini-css-extract-plugin": "1.6.2", - "netlify-identity-widget": "^1.9.2", - "webpack": "^5.35.0" + "netlify-identity-widget": "^1.9.2" }, "devDependencies": { "@babel/cli": "^7.15.4", @@ -37,10 +36,11 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "netlify-cms-app": "^2.9.0", "react": "^16.9.0 || ^17.0.0", - "react-dom": "^16.9.0 || ^17.0.0" + "react-dom": "^16.9.0 || ^17.0.0", + "webpack": "^5.0.0" }, "repository": { "type": "git", @@ -53,6 +53,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-netlify-cms/src/gatsby-node.js b/packages/gatsby-plugin-netlify-cms/src/gatsby-node.js index 634e2775fbe80..34686fa216329 100644 --- a/packages/gatsby-plugin-netlify-cms/src/gatsby-node.js +++ b/packages/gatsby-plugin-netlify-cms/src/gatsby-node.js @@ -1,6 +1,6 @@ import path from "path" import { mapValues, isPlainObject, trim } from "lodash" -import webpack from "webpack" +import webpack from "gatsby/webpack" import HtmlWebpackPlugin from "html-webpack-plugin" import { HtmlWebpackSkipAssetsPlugin } from "html-webpack-skip-assets-plugin" import MiniCssExtractPlugin from "mini-css-extract-plugin" diff --git a/packages/gatsby-plugin-no-sourcemaps/package.json b/packages/gatsby-plugin-no-sourcemaps/package.json index 9ba968809d59f..0cdb2c96c8729 100644 --- a/packages/gatsby-plugin-no-sourcemaps/package.json +++ b/packages/gatsby-plugin-no-sourcemaps/package.json @@ -24,9 +24,9 @@ "@babel/runtime": "^7.15.4" }, "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-nprogress/package.json b/packages/gatsby-plugin-nprogress/package.json index de7e56e838ae3..2aeaa27d70393 100644 --- a/packages/gatsby-plugin-nprogress/package.json +++ b/packages/gatsby-plugin-nprogress/package.json @@ -24,7 +24,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -37,6 +37,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-offline/package.json b/packages/gatsby-plugin-offline/package.json index 0149c710a57bb..025bf723e96d2 100644 --- a/packages/gatsby-plugin-offline/package.json +++ b/packages/gatsby-plugin-offline/package.json @@ -35,7 +35,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "react": "^16.9.0 || ^17.0.0", "react-dom": "^16.9.0 || ^17.0.0" }, @@ -52,6 +52,6 @@ "watch": "npm run build:sw-append -- --watch & npm run build:src -- --watch" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-page-creator/package.json b/packages/gatsby-plugin-page-creator/package.json index 129945510461f..b4e7f9abe5aae 100644 --- a/packages/gatsby-plugin-page-creator/package.json +++ b/packages/gatsby-plugin-page-creator/package.json @@ -43,9 +43,9 @@ "cross-env": "^7.0.3" }, "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-postcss/package.json b/packages/gatsby-plugin-postcss/package.json index c9bb07eefad1c..fe3f647cf675c 100644 --- a/packages/gatsby-plugin-postcss/package.json +++ b/packages/gatsby-plugin-postcss/package.json @@ -25,7 +25,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "postcss": "^8.0.5" }, "repository": { @@ -39,6 +39,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-preact/package.json b/packages/gatsby-plugin-preact/package.json index 0f56c79f83777..0e42a7e83fecc 100644 --- a/packages/gatsby-plugin-preact/package.json +++ b/packages/gatsby-plugin-preact/package.json @@ -28,7 +28,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "preact": "^10.3.4", "preact-render-to-string": "^5.1.8" }, @@ -43,6 +43,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-preload-fonts/package.json b/packages/gatsby-plugin-preload-fonts/package.json index 98944bd999e56..3f7bd6ad43daa 100644 --- a/packages/gatsby-plugin-preload-fonts/package.json +++ b/packages/gatsby-plugin-preload-fonts/package.json @@ -37,7 +37,7 @@ ], "license": "ISC", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", diff --git a/packages/gatsby-plugin-react-css-modules/package.json b/packages/gatsby-plugin-react-css-modules/package.json index 3462c34f1c0b6..910c2f2510349 100644 --- a/packages/gatsby-plugin-react-css-modules/package.json +++ b/packages/gatsby-plugin-react-css-modules/package.json @@ -32,7 +32,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -45,6 +45,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-react-helmet/package.json b/packages/gatsby-plugin-react-helmet/package.json index 8b6c14350e257..8826b888a3c86 100644 --- a/packages/gatsby-plugin-react-helmet/package.json +++ b/packages/gatsby-plugin-react-helmet/package.json @@ -35,7 +35,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "react-helmet": "^5.1.3 || ^6.0.0" }, "repository": { @@ -49,6 +49,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\",**/__mocks__" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-remove-trailing-slashes/package.json b/packages/gatsby-plugin-remove-trailing-slashes/package.json index 0c9c906cc4382..97807ecffdcf5 100644 --- a/packages/gatsby-plugin-remove-trailing-slashes/package.json +++ b/packages/gatsby-plugin-remove-trailing-slashes/package.json @@ -23,7 +23,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -36,6 +36,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-sass/package.json b/packages/gatsby-plugin-sass/package.json index 9ff531ef0c07c..2ad014e696742 100644 --- a/packages/gatsby-plugin-sass/package.json +++ b/packages/gatsby-plugin-sass/package.json @@ -29,7 +29,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "sass": "^1.30.0" }, "repository": { @@ -43,6 +43,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-schema-snapshot/package.json b/packages/gatsby-plugin-schema-snapshot/package.json index 9aeb92e2b65b3..b0ba06410555a 100644 --- a/packages/gatsby-plugin-schema-snapshot/package.json +++ b/packages/gatsby-plugin-schema-snapshot/package.json @@ -20,6 +20,6 @@ "@babel/runtime": "^7.15.4" }, "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" } } diff --git a/packages/gatsby-plugin-sharp/package.json b/packages/gatsby-plugin-sharp/package.json index 30e8680db42ae..fbe9afc54d40c 100644 --- a/packages/gatsby-plugin-sharp/package.json +++ b/packages/gatsby-plugin-sharp/package.json @@ -44,7 +44,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -57,6 +57,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\" --extensions \".ts,.js\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-sitemap/package.json b/packages/gatsby-plugin-sitemap/package.json index 8cfa7b44efa6b..21f042c10058b 100644 --- a/packages/gatsby-plugin-sitemap/package.json +++ b/packages/gatsby-plugin-sitemap/package.json @@ -30,7 +30,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "react": "^16.9.0 || ^17.0.0", "react-dom": "^16.9.0 || ^17.0.0" }, @@ -47,6 +47,6 @@ "test:watch": "jest --watch" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-styled-components/package.json b/packages/gatsby-plugin-styled-components/package.json index ffae421251baf..1bd2a2d2465b6 100644 --- a/packages/gatsby-plugin-styled-components/package.json +++ b/packages/gatsby-plugin-styled-components/package.json @@ -25,7 +25,7 @@ "main": "index.js", "peerDependencies": { "babel-plugin-styled-components": ">1.5.0", - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "react": "^16.9.0 || ^17.0.0", "react-dom": "^16.9.0 || ^17.0.0", "styled-components": ">=2.0.0" @@ -41,6 +41,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-styled-jsx/package.json b/packages/gatsby-plugin-styled-jsx/package.json index c61236ca1ad98..5fea7d18366f3 100644 --- a/packages/gatsby-plugin-styled-jsx/package.json +++ b/packages/gatsby-plugin-styled-jsx/package.json @@ -24,7 +24,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "styled-jsx": "^3.0.2" }, "repository": { @@ -38,6 +38,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-styletron/package.json b/packages/gatsby-plugin-styletron/package.json index 6174a4316612b..afab6f63cb830 100644 --- a/packages/gatsby-plugin-styletron/package.json +++ b/packages/gatsby-plugin-styletron/package.json @@ -25,7 +25,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "react": "^16.9.0 || ^17.0.0", "styletron-engine-atomic": "^1.4.8", "styletron-react": "^5.2.7 || ^6.0.0" @@ -41,6 +41,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-stylus/package.json b/packages/gatsby-plugin-stylus/package.json index 287c830aeef57..1d245cf7d7578 100644 --- a/packages/gatsby-plugin-stylus/package.json +++ b/packages/gatsby-plugin-stylus/package.json @@ -26,7 +26,7 @@ "license": "MIT", "main": "./gatsby-node.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -39,6 +39,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-subfont/package.json b/packages/gatsby-plugin-subfont/package.json index cba9d947e4670..e5ab3fc8c47de 100644 --- a/packages/gatsby-plugin-subfont/package.json +++ b/packages/gatsby-plugin-subfont/package.json @@ -34,9 +34,9 @@ "cross-env": "^7.0.3" }, "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-twitter/package.json b/packages/gatsby-plugin-twitter/package.json index 478eb2ad2cf1e..f4e40845bc76e 100644 --- a/packages/gatsby-plugin-twitter/package.json +++ b/packages/gatsby-plugin-twitter/package.json @@ -24,7 +24,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -37,6 +37,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-typescript/package.json b/packages/gatsby-plugin-typescript/package.json index a456a6b05066f..5542bc7c9b193 100644 --- a/packages/gatsby-plugin-typescript/package.json +++ b/packages/gatsby-plugin-typescript/package.json @@ -25,7 +25,7 @@ "cross-env": "^7.0.3" }, "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-typescript#readme", "keywords": [ @@ -46,6 +46,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-typography/package.json b/packages/gatsby-plugin-typography/package.json index 0ece43af9f887..e5f46ee6272cf 100644 --- a/packages/gatsby-plugin-typography/package.json +++ b/packages/gatsby-plugin-typography/package.json @@ -29,7 +29,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "react": "^16.9.0 || ^17.0.0", "react-dom": "^16.9.0 || ^17.0.0", "react-typography": "^0.16.1 || ^1.0.0-alpha.0", @@ -46,6 +46,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-plugin-utils/package.json b/packages/gatsby-plugin-utils/package.json index ac542c90e93de..4c5936899f827 100644 --- a/packages/gatsby-plugin-utils/package.json +++ b/packages/gatsby-plugin-utils/package.json @@ -33,13 +33,13 @@ "typescript": "^4.3.5" }, "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "files": [ "dist/", "src/" ], "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-react-router-scroll/package.json b/packages/gatsby-react-router-scroll/package.json index 4d2bcb54e7853..764e3e33a2f04 100644 --- a/packages/gatsby-react-router-scroll/package.json +++ b/packages/gatsby-react-router-scroll/package.json @@ -39,6 +39,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\" --extensions \".ts,.tsx\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-remark-autolink-headers/package.json b/packages/gatsby-remark-autolink-headers/package.json index bb98fef18bafc..c7525b95de33e 100644 --- a/packages/gatsby-remark-autolink-headers/package.json +++ b/packages/gatsby-remark-autolink-headers/package.json @@ -29,7 +29,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "react": "^16.9.0 || ^17.0.0", "react-dom": "^16.9.0 || ^17.0.0" }, @@ -44,6 +44,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-remark-code-repls/package.json b/packages/gatsby-remark-code-repls/package.json index d1577a8aae8c5..76900455ec0eb 100644 --- a/packages/gatsby-remark-code-repls/package.json +++ b/packages/gatsby-remark-code-repls/package.json @@ -33,7 +33,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -46,6 +46,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-remark-copy-linked-files/package.json b/packages/gatsby-remark-copy-linked-files/package.json index f029011f91abc..cca4bf62b4c04 100644 --- a/packages/gatsby-remark-copy-linked-files/package.json +++ b/packages/gatsby-remark-copy-linked-files/package.json @@ -34,7 +34,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -47,6 +47,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-remark-custom-blocks/package.json b/packages/gatsby-remark-custom-blocks/package.json index cdd2dca4bb9c6..5f82405270396 100644 --- a/packages/gatsby-remark-custom-blocks/package.json +++ b/packages/gatsby-remark-custom-blocks/package.json @@ -32,7 +32,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "private": false, "repository": { @@ -46,6 +46,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-remark-embed-snippet/package.json b/packages/gatsby-remark-embed-snippet/package.json index a3b91894a9b29..3876cbdb7aa86 100644 --- a/packages/gatsby-remark-embed-snippet/package.json +++ b/packages/gatsby-remark-embed-snippet/package.json @@ -26,8 +26,8 @@ "remark" ], "peerDependencies": { - "gatsby": "^3.0.0-next.0", - "gatsby-remark-prismjs": "^3.0.0-next.0" + "gatsby": "^4.0.0-next", + "gatsby-remark-prismjs": "^4.0.0-next" }, "license": "MIT", "main": "index.js", @@ -42,6 +42,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-remark-graphviz/package.json b/packages/gatsby-remark-graphviz/package.json index b7915a334add2..25d7774707a7f 100644 --- a/packages/gatsby-remark-graphviz/package.json +++ b/packages/gatsby-remark-graphviz/package.json @@ -37,7 +37,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -50,6 +50,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-remark-images-contentful/package.json b/packages/gatsby-remark-images-contentful/package.json index 9105f383447f7..330cfb70dfc82 100644 --- a/packages/gatsby-remark-images-contentful/package.json +++ b/packages/gatsby-remark-images-contentful/package.json @@ -40,9 +40,9 @@ "author": "Khaled Garbaya ", "license": "MIT", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-remark-images/package.json b/packages/gatsby-remark-images/package.json index bd3cec6787a6b..5ca2f4b419945 100644 --- a/packages/gatsby-remark-images/package.json +++ b/packages/gatsby-remark-images/package.json @@ -40,8 +40,8 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", - "gatsby-plugin-sharp": "^3.0.0-next.0" + "gatsby": "^4.0.0-next", + "gatsby-plugin-sharp": "^4.0.0-next" }, "repository": { "type": "git", @@ -54,6 +54,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-remark-katex/package.json b/packages/gatsby-remark-katex/package.json index 2ba101e4748f9..58ef1a6e8c6bb 100644 --- a/packages/gatsby-remark-katex/package.json +++ b/packages/gatsby-remark-katex/package.json @@ -31,7 +31,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "katex": "^0.13.3" }, "repository": { @@ -46,6 +46,6 @@ "test": "jest src/__tests__/index.js" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-remark-prismjs/package.json b/packages/gatsby-remark-prismjs/package.json index 341e872a737c3..cb0a8d36fba39 100644 --- a/packages/gatsby-remark-prismjs/package.json +++ b/packages/gatsby-remark-prismjs/package.json @@ -21,7 +21,7 @@ "remark": "^13.0.0" }, "peerDependencies": { - "gatsby": "^3.0.0-next.0", + "gatsby": "^4.0.0-next", "prismjs": "^1.15.0" }, "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-prismjs#readme", @@ -44,6 +44,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-remark-responsive-iframe/package.json b/packages/gatsby-remark-responsive-iframe/package.json index 4704f074d9cbb..b1d418df43b92 100644 --- a/packages/gatsby-remark-responsive-iframe/package.json +++ b/packages/gatsby-remark-responsive-iframe/package.json @@ -31,7 +31,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -44,6 +44,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-remark-smartypants/package.json b/packages/gatsby-remark-smartypants/package.json index 165a8de01760e..dd3746d804b76 100644 --- a/packages/gatsby-remark-smartypants/package.json +++ b/packages/gatsby-remark-smartypants/package.json @@ -27,7 +27,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -40,6 +40,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-source-contentful/package.json b/packages/gatsby-source-contentful/package.json index 47f3bddd6f7c8..e69b147e1ba78 100644 --- a/packages/gatsby-source-contentful/package.json +++ b/packages/gatsby-source-contentful/package.json @@ -43,10 +43,10 @@ ], "license": "MIT", "peerDependencies": { - "gatsby": "^3.0.0-next.0", - "gatsby-plugin-image": "^1.3.0-next.1", - "gatsby-plugin-sharp": "^3.0.0-next.0", - "sharp": "^0.26.0" + "gatsby": "^4.0.0-next", + "gatsby-plugin-image": "^2.0.0-next", + "gatsby-plugin-sharp": "^4.0.0-next", + "sharp": "^0.29.0" }, "repository": { "type": "git", @@ -59,7 +59,7 @@ "watch": "babel -w src --out-dir . --ignore **/__tests__ --ignore **/__fixtures__" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" }, "types": "index.d.ts" } diff --git a/packages/gatsby-source-drupal/package.json b/packages/gatsby-source-drupal/package.json index daaabb49a0d9e..6d2f99bae44f7 100644 --- a/packages/gatsby-source-drupal/package.json +++ b/packages/gatsby-source-drupal/package.json @@ -28,7 +28,7 @@ "cross-env": "^7.0.3" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" }, "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-drupal#readme", "keywords": [ @@ -38,7 +38,7 @@ ], "license": "MIT", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", diff --git a/packages/gatsby-source-faker/package.json b/packages/gatsby-source-faker/package.json index 7ba307530a6ee..d486e00debec1 100644 --- a/packages/gatsby-source-faker/package.json +++ b/packages/gatsby-source-faker/package.json @@ -25,7 +25,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -38,6 +38,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-source-filesystem/package.json b/packages/gatsby-source-filesystem/package.json index 071254aee2978..797e06b4185b4 100644 --- a/packages/gatsby-source-filesystem/package.json +++ b/packages/gatsby-source-filesystem/package.json @@ -34,7 +34,7 @@ ], "license": "MIT", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -48,6 +48,6 @@ }, "types": "index.d.ts", "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-source-graphql/package.json b/packages/gatsby-source-graphql/package.json index ee1eff7006fe2..7dd2366cf6785 100644 --- a/packages/gatsby-source-graphql/package.json +++ b/packages/gatsby-source-graphql/package.json @@ -31,7 +31,7 @@ ], "license": "MIT", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -44,6 +44,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-source-hacker-news/package.json b/packages/gatsby-source-hacker-news/package.json index ab7f08a58f3e1..a1a5698279ec6 100644 --- a/packages/gatsby-source-hacker-news/package.json +++ b/packages/gatsby-source-hacker-news/package.json @@ -25,7 +25,7 @@ ], "license": "MIT", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -38,6 +38,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-source-lever/package.json b/packages/gatsby-source-lever/package.json index 9a8f7ff472884..54dd8b98ebb90 100644 --- a/packages/gatsby-source-lever/package.json +++ b/packages/gatsby-source-lever/package.json @@ -31,7 +31,7 @@ ], "license": "MIT", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -44,6 +44,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-source-medium/package.json b/packages/gatsby-source-medium/package.json index 46a43104582ba..8ae8eb0ec1a43 100644 --- a/packages/gatsby-source-medium/package.json +++ b/packages/gatsby-source-medium/package.json @@ -24,7 +24,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -37,6 +37,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-source-mongodb/package.json b/packages/gatsby-source-mongodb/package.json index c07daa1a85a56..7603c1a4a2a32 100644 --- a/packages/gatsby-source-mongodb/package.json +++ b/packages/gatsby-source-mongodb/package.json @@ -30,7 +30,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -43,6 +43,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-source-npm-package-search/package.json b/packages/gatsby-source-npm-package-search/package.json index 2db935ab96096..5431a8c206a70 100644 --- a/packages/gatsby-source-npm-package-search/package.json +++ b/packages/gatsby-source-npm-package-search/package.json @@ -27,7 +27,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "scripts": { "build": "babel src --out-dir . --ignore \"**/__tests__\"", @@ -35,6 +35,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-source-wikipedia/package.json b/packages/gatsby-source-wikipedia/package.json index f497cadb93c01..3a82d3a769083 100644 --- a/packages/gatsby-source-wikipedia/package.json +++ b/packages/gatsby-source-wikipedia/package.json @@ -20,7 +20,7 @@ }, "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-wikipedia#readme", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -41,6 +41,6 @@ "cross-env": "^7.0.3" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-source-wordpress/package.json b/packages/gatsby-source-wordpress/package.json index ea9eaf87d1ce2..bf89c23ba53bb 100644 --- a/packages/gatsby-source-wordpress/package.json +++ b/packages/gatsby-source-wordpress/package.json @@ -72,9 +72,9 @@ ], "license": "MIT", "peerDependencies": { - "gatsby": "^3.0.0-next.0", - "gatsby-plugin-sharp": "^3.0.0-next.0", - "gatsby-transformer-sharp": "^3.0.0-next.0" + "gatsby": "^4.0.0-next", + "gatsby-plugin-sharp": "^4.0.0-next", + "gatsby-transformer-sharp": "^4.0.0-next" }, "repository": { "type": "git", @@ -88,6 +88,6 @@ "generate-plugin-options-docs": "node ./generate-plugin-options-docs.js" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-telemetry/package.json b/packages/gatsby-telemetry/package.json index 20ffa8544e465..105b841d9bf60 100644 --- a/packages/gatsby-telemetry/package.json +++ b/packages/gatsby-telemetry/package.json @@ -61,6 +61,6 @@ "boolean-negation": false }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-transformer-asciidoc/package.json b/packages/gatsby-transformer-asciidoc/package.json index ec0de8d2873e8..6ba7e99c8a381 100644 --- a/packages/gatsby-transformer-asciidoc/package.json +++ b/packages/gatsby-transformer-asciidoc/package.json @@ -25,7 +25,7 @@ ], "license": "MIT", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -38,6 +38,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-transformer-csv/package.json b/packages/gatsby-transformer-csv/package.json index 2ab542430a704..b37fcbf52ed6d 100644 --- a/packages/gatsby-transformer-csv/package.json +++ b/packages/gatsby-transformer-csv/package.json @@ -26,7 +26,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -39,6 +39,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-transformer-documentationjs/package.json b/packages/gatsby-transformer-documentationjs/package.json index 0b4385a781916..3888988392b89 100644 --- a/packages/gatsby-transformer-documentationjs/package.json +++ b/packages/gatsby-transformer-documentationjs/package.json @@ -27,7 +27,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -40,6 +40,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-transformer-excel/package.json b/packages/gatsby-transformer-excel/package.json index 0c4483960c4a9..d5c12df8c9e20 100644 --- a/packages/gatsby-transformer-excel/package.json +++ b/packages/gatsby-transformer-excel/package.json @@ -25,7 +25,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -38,6 +38,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-transformer-hjson/package.json b/packages/gatsby-transformer-hjson/package.json index 38cb9d94733ab..efc3895f443f9 100644 --- a/packages/gatsby-transformer-hjson/package.json +++ b/packages/gatsby-transformer-hjson/package.json @@ -25,7 +25,7 @@ ], "license": "MIT", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -38,6 +38,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-transformer-javascript-frontmatter/package.json b/packages/gatsby-transformer-javascript-frontmatter/package.json index cec3231e7abb9..9fea58e778965 100644 --- a/packages/gatsby-transformer-javascript-frontmatter/package.json +++ b/packages/gatsby-transformer-javascript-frontmatter/package.json @@ -23,8 +23,8 @@ ], "license": "MIT", "peerDependencies": { - "gatsby": "^3.0.0-next.0", - "gatsby-source-filesystem": "^3.0.0-next.0" + "gatsby": "^4.0.0-next", + "gatsby-source-filesystem": "^4.0.0-next" }, "repository": { "type": "git", @@ -37,6 +37,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-transformer-javascript-static-exports/package.json b/packages/gatsby-transformer-javascript-static-exports/package.json index 26336a2928221..183cbf1cab008 100644 --- a/packages/gatsby-transformer-javascript-static-exports/package.json +++ b/packages/gatsby-transformer-javascript-static-exports/package.json @@ -26,7 +26,7 @@ ], "license": "MIT", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -39,6 +39,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-transformer-json/package.json b/packages/gatsby-transformer-json/package.json index 77693f6c24812..7fb69cd9b39f3 100644 --- a/packages/gatsby-transformer-json/package.json +++ b/packages/gatsby-transformer-json/package.json @@ -24,7 +24,7 @@ ], "license": "MIT", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -37,6 +37,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-transformer-pdf/package.json b/packages/gatsby-transformer-pdf/package.json index deede3613c3ec..1c43f3f48d6ca 100644 --- a/packages/gatsby-transformer-pdf/package.json +++ b/packages/gatsby-transformer-pdf/package.json @@ -26,7 +26,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -39,6 +39,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-transformer-react-docgen/package.json b/packages/gatsby-transformer-react-docgen/package.json index 259a96c490354..1b7b2079e843c 100644 --- a/packages/gatsby-transformer-react-docgen/package.json +++ b/packages/gatsby-transformer-react-docgen/package.json @@ -31,7 +31,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -44,6 +44,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-transformer-remark/package.json b/packages/gatsby-transformer-remark/package.json index c379b736e2907..657b6952e1e44 100644 --- a/packages/gatsby-transformer-remark/package.json +++ b/packages/gatsby-transformer-remark/package.json @@ -46,7 +46,7 @@ ], "license": "MIT", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -59,6 +59,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-transformer-screenshot/lambda/package.json b/packages/gatsby-transformer-screenshot/lambda/package.json index 180552b415092..b2ec0bd7671b2 100644 --- a/packages/gatsby-transformer-screenshot/lambda/package.json +++ b/packages/gatsby-transformer-screenshot/lambda/package.json @@ -9,6 +9,6 @@ }, "keywords": [], "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-transformer-screenshot/package.json b/packages/gatsby-transformer-screenshot/package.json index 0017c3fa458ae..e19e4b43502e3 100644 --- a/packages/gatsby-transformer-screenshot/package.json +++ b/packages/gatsby-transformer-screenshot/package.json @@ -26,7 +26,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -41,6 +41,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\" --ignore lambda" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-transformer-sharp/package.json b/packages/gatsby-transformer-sharp/package.json index a9370b820aa07..e6ef2e42115cf 100644 --- a/packages/gatsby-transformer-sharp/package.json +++ b/packages/gatsby-transformer-sharp/package.json @@ -32,8 +32,8 @@ ], "license": "MIT", "peerDependencies": { - "gatsby": "^3.0.0-next.0", - "gatsby-plugin-sharp": "^3.0.0-next.0" + "gatsby": "^4.0.0-next", + "gatsby-plugin-sharp": "^4.0.0-next" }, "repository": { "type": "git", @@ -46,6 +46,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\" --extensions \".ts,.js\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-transformer-sqip/package.json b/packages/gatsby-transformer-sqip/package.json index af307f1840122..d74283894d3af 100644 --- a/packages/gatsby-transformer-sqip/package.json +++ b/packages/gatsby-transformer-sqip/package.json @@ -23,9 +23,9 @@ "debug": "^4.3.2" }, "peerDependencies": { - "gatsby": "^3.0.0-next.0", - "gatsby-source-contentful": "^5.0.0-next.0", - "gatsby-transformer-sharp": "^3.0.0-next.0" + "gatsby": "^4.0.0-next", + "gatsby-source-contentful": "^6.0.0-next", + "gatsby-transformer-sharp": "^4.0.0-next" }, "homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-sqip#readme", "keywords": [ @@ -47,6 +47,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-transformer-toml/package.json b/packages/gatsby-transformer-toml/package.json index 6f2cbf7ab8faa..d62bda89ecb80 100644 --- a/packages/gatsby-transformer-toml/package.json +++ b/packages/gatsby-transformer-toml/package.json @@ -25,7 +25,7 @@ ], "license": "MIT", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -38,6 +38,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-transformer-xml/package.json b/packages/gatsby-transformer-xml/package.json index a71525cee2823..660e0d3429221 100644 --- a/packages/gatsby-transformer-xml/package.json +++ b/packages/gatsby-transformer-xml/package.json @@ -26,7 +26,7 @@ "license": "MIT", "main": "index.js", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -39,6 +39,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-transformer-yaml/package.json b/packages/gatsby-transformer-yaml/package.json index c19037b6913bf..15c564d301998 100644 --- a/packages/gatsby-transformer-yaml/package.json +++ b/packages/gatsby-transformer-yaml/package.json @@ -26,7 +26,7 @@ ], "license": "MIT", "peerDependencies": { - "gatsby": "^3.0.0-next.0" + "gatsby": "^4.0.0-next" }, "repository": { "type": "git", @@ -39,6 +39,6 @@ "watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby-worker/package.json b/packages/gatsby-worker/package.json index 2353f062c8eb3..712b2285371f2 100644 --- a/packages/gatsby-worker/package.json +++ b/packages/gatsby-worker/package.json @@ -37,6 +37,6 @@ "typegen": "rimraf \"dist/**/*.d.ts\" && tsc --emitDeclarationOnly --declaration --declarationDir dist/" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" } } diff --git a/packages/gatsby/index.d.ts b/packages/gatsby/index.d.ts index 95da9f6e1c37d..338e42e9d7398 100644 --- a/packages/gatsby/index.d.ts +++ b/packages/gatsby/index.d.ts @@ -351,7 +351,7 @@ export interface GatsbyNode< callback: PluginCallback ): void | Promise - /** Called at the end of the bootstrap process after all other extension APIs have been called. If you indend to use this API in a plugin, use "unstable_onPluginInit" instead. */ + /** Called at the end of the bootstrap process after all other extension APIs have been called. If you indend to use this API in a plugin, use "onPluginInit" instead. */ onPreBootstrap?( args: ParentSpanPluginArgs, options: PluginOptions, @@ -377,18 +377,18 @@ export interface GatsbyNode< * @gatsbyVersion 3.9.0 * @example * let createJobV2 - * exports.unstable_onPluginInit = ({ actions }) => { + * exports.onPluginInit = ({ actions }) => { * // Store job creation action to use it later * createJobV2 = actions.createJobV2 * } */ - unstable_onPluginInit?( + onPluginInit?( args: ParentSpanPluginArgs, options: PluginOptions, callback: PluginCallback ): void | Promise - /** The first API called during Gatsby execution, runs as soon as plugins are loaded, before cache initialization and bootstrap preparation. If you indend to use this API in a plugin, use "unstable_onPluginInit" instead. */ + /** The first API called during Gatsby execution, runs as soon as plugins are loaded, before cache initialization and bootstrap preparation. If you indend to use this API in a plugin, use "onPluginInit" instead. */ onPreInit?( args: ParentSpanPluginArgs, options: PluginOptions, diff --git a/packages/gatsby/package.json b/packages/gatsby/package.json index 4fff2353bde9b..51538eb0c3b2b 100644 --- a/packages/gatsby/package.json +++ b/packages/gatsby/package.json @@ -102,6 +102,7 @@ "json-loader": "^0.5.7", "latest-version": "5.1.0", "lodash": "^4.17.21", + "lmdb-store": "^1.6.6", "md5-file": "^5.0.0", "meant": "^1.0.1", "memoizee": "^0.4.15", @@ -178,7 +179,6 @@ "cross-env": "^7.0.3", "documentation": "^13.1.0", "enhanced-resolve": "^5.8.2", - "lmdb-store": "~1.5.5", "react": "^16.12.0", "react-dom": "^16.12.0", "rimraf": "^3.0.2", @@ -189,7 +189,7 @@ "zipkin-transport-http": "^0.22.0" }, "engines": { - "node": ">=12.13.0" + "node": ">=14.15.0" }, "files": [ "apis.json", diff --git a/packages/gatsby/scripts/__tests__/api.js b/packages/gatsby/scripts/__tests__/api.js index c0b7735a764f0..593059e8ce43b 100644 --- a/packages/gatsby/scripts/__tests__/api.js +++ b/packages/gatsby/scripts/__tests__/api.js @@ -57,7 +57,7 @@ it("generates the expected api output", done => { "resolvableExtensions": Object {}, "setFieldsOnGraphQLNodeType": Object {}, "sourceNodes": Object {}, - "unstable_onPluginInit": Object { + "onPluginInit": Object { "version": "3.9.0", }, "unstable_shouldOnCreateNode": Object { diff --git a/packages/gatsby/src/bootstrap/load-plugins/load.ts b/packages/gatsby/src/bootstrap/load-plugins/load.ts index aa7997adbfc79..215f9243ce15e 100644 --- a/packages/gatsby/src/bootstrap/load-plugins/load.ts +++ b/packages/gatsby/src/bootstrap/load-plugins/load.ts @@ -310,7 +310,7 @@ export function loadPlugins( incompatibleGatsbyCloudPlugin(plugins) ) { reporter.panic( - `Plugin gatsby-plugin-gatsby-cloud is not compatible with your gatsby version. Please upgrade to gatsby-plugin-gatsby-cloud@alpha-9689ff` + `Plugin gatsby-plugin-gatsby-cloud is not compatible with your gatsby version. Please upgrade to gatsby-plugin-gatsby-cloud@next` ) } diff --git a/packages/gatsby/src/utils/api-node-docs.ts b/packages/gatsby/src/utils/api-node-docs.ts index 793386f61486c..06b2259350200 100644 --- a/packages/gatsby/src/utils/api-node-docs.ts +++ b/packages/gatsby/src/utils/api-node-docs.ts @@ -415,14 +415,13 @@ export const onPreInit = true * * @example * let createJobV2 - * exports.unstable_onPluginInit = ({ actions }) => { + * exports.onPluginInit = ({ actions }) => { * // store job creation action to use it later * createJobV2 = actions.createJobV2 * } * @gatsbyVersion 3.9.0 */ -// eslint-disable-next-line @typescript-eslint/naming-convention -export const unstable_onPluginInit = true +export const onPluginInit = true /** * Called once Gatsby has initialized itself and is ready to bootstrap your site. diff --git a/packages/gatsby/src/utils/webpack.config.js b/packages/gatsby/src/utils/webpack.config.js index c4e1610de0075..4332cbf1e83d7 100644 --- a/packages/gatsby/src/utils/webpack.config.js +++ b/packages/gatsby/src/utils/webpack.config.js @@ -561,7 +561,7 @@ module.exports = async ( stage === `build-ssr` ) { const [major, minor] = process.version.replace(`v`, ``).split(`.`) - config.target = `node12.13` + config.target = `node14.15` } else { config.target = [`web`, `es5`] } diff --git a/yarn.lock b/yarn.lock index d6048c7afc564..5610757f9a026 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16549,17 +16549,18 @@ livereload-js@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/livereload-js/-/livereload-js-2.3.0.tgz#c3ab22e8aaf5bf3505d80d098cbad67726548c9a" -lmdb-store@~1.5.5: - version "1.5.5" - resolved "https://registry.yarnpkg.com/lmdb-store/-/lmdb-store-1.5.5.tgz#b51f5d045bf0fbae205e31eab781900be3b25ad9" - integrity sha512-EwCn+eSGH1XD35qaDzbHTYMig+Aj+kBbCpxWHzhtrIBJpFYq5uoBo4zWG4JRFxsbfonFELhuiyX0QokISIxzsQ== +lmdb-store@^1.6.6: + version "1.6.7" + resolved "https://registry.yarnpkg.com/lmdb-store/-/lmdb-store-1.6.7.tgz#55c564e5ec6fcb1f9d159e228a860bc5009e0ed4" + integrity sha512-q9q7zNhuFWjSD0fDmyB5hiQkOY3UUJ6LPjhs+W/zJdleRLOLPFR6bAh9nERHGkmEA49sZtZRwFPCwPWGM8qdzA== dependencies: mkdirp "^1.0.4" nan "^2.14.2" node-gyp-build "^4.2.3" - weak-lru-cache "^0.4.1" + ordered-binary "^1.0.0" + weak-lru-cache "^1.0.0" optionalDependencies: - msgpackr "^1.3.2" + msgpackr "^1.3.7" load-bmfont@^1.3.1, load-bmfont@^1.4.0: version "1.4.0" @@ -18189,20 +18190,20 @@ ms@2.1.2, ms@^2.0.0, ms@^2.1.1: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== -msgpackr-extract@^1.0.11: - version "1.0.11" - resolved "https://registry.yarnpkg.com/msgpackr-extract/-/msgpackr-extract-1.0.11.tgz#68dd2e5da3f45788624e44190a25730c9f455d90" - integrity sha512-qE31O3AX4zUxGcf0eIxYF1h2n6FnJHmsfiT5M/aAeGmHQmiWJCkqeIDXGD0trDFQ7/tb8KBN69LLBQpon2WQnQ== +msgpackr-extract@^1.0.13: + version "1.0.13" + resolved "https://registry.yarnpkg.com/msgpackr-extract/-/msgpackr-extract-1.0.13.tgz#39f1958d9cf1c436e18cc544aacec1af62b661d1" + integrity sha512-JlQPllMLETiuQ5Vv3IAz+4uOpd1GZPOoCHv9P5ka5P5gkTssm/ejv0WwS4xAfB9B3vDwrExRwuU8v3HRQtJk2Q== dependencies: nan "^2.14.2" node-gyp-build "^4.2.3" -msgpackr@^1.3.2: - version "1.3.2" - resolved "https://registry.yarnpkg.com/msgpackr/-/msgpackr-1.3.2.tgz#820cdeb6e5dc0ec330c68f5813aab2514651651c" - integrity sha512-iZLLtOMZZXK/r9k0WjQHSqtzsGBDS5lupGKV29LPyiryNtFE0bpri6almK3HrrJJwx/9DLPLCwcLqNmckjsgQw== +msgpackr@^1.3.7: + version "1.4.3" + resolved "https://registry.yarnpkg.com/msgpackr/-/msgpackr-1.4.3.tgz#bd11d95596799c8d1f034a4a902fe99f05a6d9cb" + integrity sha512-QxNu1m6L8ZlAZn3bMAkGxCJTs6nLPcBt1j+ku/ksF2leEDAX2aM2srCZCL80HwwkWokzm1et16Oo8MnRkxIN4A== optionalDependencies: - msgpackr-extract "^1.0.11" + msgpackr-extract "^1.0.13" msw@^0.35.0: version "0.35.0" @@ -19141,6 +19142,11 @@ ora@^5.3.0: strip-ansi "^6.0.0" wcwidth "^1.0.1" +ordered-binary@^1.0.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/ordered-binary/-/ordered-binary-1.1.3.tgz#11dbc0a4cb7f8248183b9845e031b443be82571e" + integrity sha512-tDTls+KllrZKJrqRXUYJtIcWIyoQycP7cVN7kzNNnhHKF2bMKHflcAQK+pF2Eb1iVaQodHxqZQr0yv4HWLGBhQ== + ordered-read-streams@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/ordered-read-streams/-/ordered-read-streams-1.0.1.tgz#77c0cb37c41525d64166d990ffad7ec6a0e1363e" @@ -27074,10 +27080,10 @@ wcwidth@^1.0.0, wcwidth@^1.0.1: dependencies: defaults "^1.0.3" -weak-lru-cache@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/weak-lru-cache/-/weak-lru-cache-0.4.1.tgz#d1a0600f00576e9cf836d069e4dc119b8234abde" - integrity sha512-NJS+edQXFd9zHuWuAWfieUDj0pAS6Qg6HX0NW548vhoU+aOSkRFZvcJC988PjVkrH/Q/p/E18bPctGoUE++Pdw== +weak-lru-cache@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/weak-lru-cache/-/weak-lru-cache-1.1.2.tgz#a909a97372aabdfbfe3eb33580af255b3b198834" + integrity sha512-Bi5ae8Bev3YulgtLTafpmHmvl3vGbanRkv+qqA2AX8c3qj/MUdvSuaHq7ukDYBcMDINIaRPTPEkXSNCqqWivuA== web-namespaces@^1.0.0: version "1.1.2"