Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit e68b6d5

Browse files
authored
feat: support gatsby v4 (#138)
1 parent 2b9ba77 commit e68b6d5

File tree

6 files changed

+4209
-5362
lines changed

6 files changed

+4209
-5362
lines changed

packages/gatsby-plugin-graphql-codegen/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,30 @@
2121
"author": "Derek Nguyen <derek@penandpillow.com>",
2222
"license": "MIT",
2323
"dependencies": {
24-
"@graphql-codegen/core": "^1.17.10",
25-
"@graphql-codegen/plugin-helpers": "^1.18.0",
26-
"@graphql-codegen/typescript": "^1.22.0",
27-
"@graphql-codegen/typescript-operations": "^1.18.0",
28-
"@graphql-tools/code-file-loader": "^6.3.1",
29-
"@graphql-tools/graphql-file-loader": "^6.2.7",
30-
"@graphql-tools/graphql-tag-pluck": "^6.5.1",
31-
"@graphql-tools/json-file-loader": "^6.2.6",
32-
"@graphql-tools/load": "^6.2.8",
33-
"@graphql-tools/url-loader": "^6.10.1",
34-
"@graphql-tools/utils": "^7.10.0",
24+
"@graphql-codegen/core": "^2.2.0",
25+
"@graphql-codegen/plugin-helpers": "^2.0.0",
26+
"@graphql-codegen/typescript": "^2.0.0",
27+
"@graphql-codegen/typescript-operations": "^2.0.0",
28+
"@graphql-tools/code-file-loader": "^7.0.0",
29+
"@graphql-tools/graphql-file-loader": "^7.0.0",
30+
"@graphql-tools/graphql-tag-pluck": "^7.0.0",
31+
"@graphql-tools/json-file-loader": "^7.0.0",
32+
"@graphql-tools/load": "^7.0.0",
33+
"@graphql-tools/url-loader": "^7.0.0",
34+
"@graphql-tools/utils": "^8.0.0",
3535
"fs-extra": "^10.0.0",
3636
"lodash.debounce": "4.0.8"
3737
},
3838
"peerDependencies": {
39-
"gatsby": "^3.0.0",
39+
"gatsby": ">=3.0.0",
4040
"graphql": "^15.0.0",
4141
"typescript": "*"
4242
},
4343
"devDependencies": {
4444
"@types/fs-extra": "^9.0.0",
4545
"@types/lodash.debounce": "^4.0.0",
4646
"@types/node": "^15.0.0",
47-
"gatsby": "^3.0.0",
47+
"gatsby": "^4.0.0",
4848
"graphql": "^15.0.0",
4949
"typescript": "^4.3.2"
5050
},

packages/gatsby-plugin-graphql-codegen/src/gatsby-node.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,11 @@ export const onPostBootstrap: GatsbyNode['onPostBootstrap'] = async (
141141
}
142142
)
143143
} catch (err) {
144+
// NOTE assume err is an ErrorMeta
144145
if (failOnError) {
145-
reporter.panic(err)
146+
reporter.panic(err as any)
146147
} else {
147-
reporter.warn(err)
148+
reporter.warn(err as any)
148149
}
149150
}
150151
}

packages/gatsby-plugin-ts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"ts-loader": "^9.2.2"
2626
},
2727
"peerDependencies": {
28-
"gatsby": "^3.0.0",
28+
"gatsby": ">=3.0.0",
2929
"graphql": "^15.0.0",
3030
"typescript": "*"
3131
},
@@ -37,7 +37,7 @@
3737
"devDependencies": {
3838
"@types/fs-extra": "^9.0.0",
3939
"@types/node": "^14.0.0",
40-
"gatsby": "^3.0.0",
40+
"gatsby": "^4.0.0",
4141
"typescript": "^4.3.2"
4242
},
4343
"bugs": {

packages/gatsby-starter-blog-ts/package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,8 @@
1212
"@types/react": "^17.0.8",
1313
"@types/react-dom": "^17.0.5",
1414
"@types/typography": "^0.16.3",
15-
"gatsby": "^3.0.0",
15+
"gatsby": "^4.0.0",
1616
"gatsby-image": "^3.0.0",
17-
"gatsby-plugin-feed": "^3.0.0",
18-
"gatsby-plugin-google-analytics": "^3.0.0",
19-
"gatsby-plugin-graphql-codegen": "^3.0.0",
20-
"gatsby-plugin-manifest": "^3.0.0",
21-
"gatsby-plugin-offline": "^4.0.0",
22-
"gatsby-plugin-react-helmet": "^4.0.0",
23-
"gatsby-plugin-sharp": "^3.0.0",
24-
"gatsby-plugin-ts": "^3.0.0",
25-
"gatsby-plugin-typescript": "^3.0.0",
26-
"gatsby-plugin-typography": "^3.0.0",
27-
"gatsby-remark-copy-linked-files": "^4.3.0",
28-
"gatsby-remark-images": "^5.3.0",
29-
"gatsby-remark-prismjs": "^5.3.0",
30-
"gatsby-remark-responsive-iframe": "^4.3.0",
31-
"gatsby-remark-smartypants": "^4.3.0",
32-
"gatsby-source-filesystem": "^3.0.0",
33-
"gatsby-transformer-remark": "^4.3.0",
34-
"gatsby-transformer-sharp": "^3.6.0",
3517
"prismjs": "^1.23.0",
3618
"react": "^17.0.2",
3719
"react-dom": "^17.0.2",
@@ -43,6 +25,24 @@
4325
"typography-theme-wordpress-2016": "^0.16.19"
4426
},
4527
"devDependencies": {
28+
"gatsby-plugin-feed": "^4.0.0",
29+
"gatsby-plugin-google-analytics": "^4.0.0",
30+
"gatsby-plugin-graphql-codegen": "*",
31+
"gatsby-plugin-manifest": "^4.0.0",
32+
"gatsby-plugin-offline": "^5.0.0",
33+
"gatsby-plugin-react-helmet": "^5.0.0",
34+
"gatsby-plugin-sharp": "^4.0.0",
35+
"gatsby-plugin-ts": "*",
36+
"gatsby-plugin-typescript": "^4.0.0",
37+
"gatsby-plugin-typography": "^4.0.0",
38+
"gatsby-remark-copy-linked-files": "^5.0.0",
39+
"gatsby-remark-images": "^6.0.0",
40+
"gatsby-remark-prismjs": "^6.0.0",
41+
"gatsby-remark-responsive-iframe": "^5.0.0",
42+
"gatsby-remark-smartypants": "^5.0.0",
43+
"gatsby-source-filesystem": "^4.0.0",
44+
"gatsby-transformer-remark": "^5.0.0",
45+
"gatsby-transformer-sharp": "^4.0.0",
4646
"prettier": "^2.3.0",
4747
"typescript": "^4.3.2"
4848
},

packages/gatsby-starter-ts/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@
88
"@types/react": "^17.0.8",
99
"@types/react-dom": "^17.0.5",
1010
"@types/react-helmet": "^6.1.1",
11-
"gatsby": "^3.0.0",
11+
"gatsby": "^4.0.0",
1212
"gatsby-image": "^3.0.0",
13-
"gatsby-plugin-manifest": "^3.0.0",
14-
"gatsby-plugin-offline": "^4.0.0",
15-
"gatsby-plugin-react-helmet": "^4",
16-
"gatsby-plugin-sharp": "^3.0.0",
17-
"gatsby-plugin-ts": "^3.0.0",
18-
"gatsby-source-filesystem": "^3.0.0",
19-
"gatsby-transformer-sharp": "^3.6.0",
2013
"graphql-tag": "^2.12.4",
2114
"react": "^17.0.2",
2215
"react-dom": "^17.0.2",
2316
"react-helmet": "^6.1.0"
2417
},
2518
"devDependencies": {
19+
"gatsby-plugin-manifest": "^4.0.0",
20+
"gatsby-plugin-offline": "^5.0.0",
21+
"gatsby-plugin-react-helmet": "^5.0.0",
22+
"gatsby-plugin-sharp": "^4.0.0",
23+
"gatsby-plugin-ts": "*",
24+
"gatsby-source-filesystem": "^4.0.0",
25+
"gatsby-transformer-sharp": "^4.0.0",
2626
"prettier": "^2.3.0",
2727
"typescript": "^4.3.2"
2828
},

0 commit comments

Comments
 (0)