Skip to content

Commit fe976ac

Browse files
committed
whitespace changes
1 parent 5b31d1f commit fe976ac

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

docs/react19-plan.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# React 19 upgrade plan (tracking)
22

3-
Status: Blocked by Gatsby 5 peer dependency on React ^18.
3+
Status: [Blocked by Gatsby 5 peer dependency on React ^18](https://github.com/gatsbyjs/gatsby/issues/39180)
44

55
Phases
66

77
1) Upgrade Gatsby to the first React 19–compatible major and bump all official plugins to matching majors.
88

99
2) Align MDX ecosystem: gatsby-plugin-mdx to matching major, @mdx-js/react v3, gatsby-remark-* majors.
1010

11-
3) Upgrade react/react-dom to 19.1.0. Validate SSR/hydration across pages.
11+
3) Upgrade react/react-dom to 19.1.1+. Validate SSR/hydration across pages.
1212

1313
Done
1414

gatsby-node.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ export const createPages: GatsbyNode['createPages'] = async ({ graphql, actions
3131
if (!response.ok) {
3232
throw new Error(`Unexpected response: ${response.statusText}`);
3333
}
34-
const arrayBuf = await response.arrayBuffer();
35-
const uint8 = new Uint8Array(arrayBuf);
36-
await fs.promises.writeFile(`content/assets/authors/${author}.jpg`, uint8);
34+
const arrayBuf = await response.arrayBuffer();
35+
const uint8 = new Uint8Array(arrayBuf);
36+
await fs.promises.writeFile(`content/assets/authors/${author}.jpg`, uint8);
3737
}
3838

3939
createPage({

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"gatsby-transformer-sharp": "5.14.0",
3333
"glamor": "2.20.40",
3434
"prismjs": "1.30.0",
35-
"react": "18.3.1",
36-
"react-dom": "18.3.1",
35+
"react": "18.3.1",
36+
"react-dom": "18.3.1",
3737
"react-share": "5.2.2",
3838
"react-typography": "0.16.23",
3939
"typeface-merriweather": "1.1.13",
@@ -72,7 +72,7 @@
7272
"start": "npm run develop",
7373
"serve": "gatsby serve",
7474
"clean": "gatsby clean",
75-
"test": "npm run lint && npm run build",
76-
"check:compat": "node -e \"console.log('gatsby peers:', require('child_process').execSync('npm view gatsby peerDependencies',{stdio:'pipe'}).toString())\""
75+
"test": "npm run lint && npm run build",
76+
"check:compat": "node -e \"console.log('gatsby peers:', require('child_process').execSync('npm view gatsby peerDependencies',{stdio:'pipe'}).toString())\""
7777
}
7878
}

0 commit comments

Comments
 (0)