Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable lmdb by default and update node #32695

Merged
merged 9 commits into from
Aug 27, 2021
Prev Previous commit
Next Next commit
fix patches
  • Loading branch information
wardpeet committed Aug 18, 2021
commit e4d38858a96d325687df93b2b281db086412e7d5
12 changes: 6 additions & 6 deletions patches/v4/0-node-version.patch
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ index 037b1998a7..198f324f00 100644
- nodeVersion = `12.13.0`,
+ nodeVersion = `14.15.0`,
esm = false,
availableCompilerFlags = [],
availableCompilerFlags = [`GATSBY_MAJOR`],
} = options
diff --git a/packages/babel-preset-gatsby/package.json b/packages/babel-preset-gatsby/package.json
index 60ccfdc163..4fac99ab61 100644
Expand Down Expand Up @@ -88,25 +88,25 @@ index 7f578dd757..650d019753 100644
+++ b/packages/gatsby-cli/src/__tests__/index.ts
@@ -52,8 +52,8 @@ const setup = (version?: string): ReturnType<typeof getCLI> => {
}

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 b3d35d17c7..fb647fb90b 100644
Expand Down Expand Up @@ -1294,7 +1294,7 @@ index 1611d48014..63fa7ff6b0 100644
--- a/packages/gatsby/src/utils/webpack.config.js
+++ b/packages/gatsby/src/utils/webpack.config.js
@@ -525,7 +525,7 @@ module.exports = async (

if (stage === `build-html` || stage === `develop-html`) {
const [major, minor] = process.version.replace(`v`, ``).split(`.`)
- config.target = `node12.13`
Expand Down