Skip to content

Commit c82fd45

Browse files
authored
Bump Node.js, Gatsby, and package version (#703)
1 parent d8ffe3d commit c82fd45

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+11410
-10734
lines changed

.eslintrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"extends": [
3-
"prettier",
4-
"prettier/react"
3+
"eslint:recommended",
4+
"prettier"
55
],
66
"plugins": [
77
"react",
88
"prettier"
99
],
1010
"parserOptions": {
11-
"ecmaVersion": 2016,
11+
"ecmaVersion": 2023,
1212
"sourceType": "module",
1313
"ecmaFeatures": {
1414
"jsx": true,

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
11.2.0
1+
20.12.2

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM node:10-alpine
1+
FROM node:20-alpine
22

33
WORKDIR /app
44
COPY . /app
5+
CMD ["SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm_config_arch=x64 npm_config_platform=linux yarn add sharp"]
56
ENTRYPOINT ["yarn"]

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ yarn fetch-contributors > website/_data/contributors.json
1313

1414
### Gatsby Installed Locally
1515

16-
**This seems to depend on Node v10. Until the dependencies updated to support
17-
newer versions of Node, you can use the Docker setup.**
18-
1916
To start Gatsby in development mode and serve the the website on
2017
`http://localhost:8000` use:
2118

bin/export-index.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@ browser.on('result', function onResult(content) {
1515
})
1616

1717
browser.on('end', function onEnd() {
18-
fs.writeFile('browse.json', JSON.stringify(hits, null, 2), 'utf-8', function(
19-
err
20-
) {
21-
if (err) throw err
22-
console.log('Your index has been exported!')
23-
})
18+
fs.writeFile(
19+
'browse.json',
20+
JSON.stringify(hits, null, 2),
21+
'utf-8',
22+
function (err) {
23+
if (err) throw err
24+
console.log('Your index has been exported!')
25+
}
26+
)
2427
})
2528

2629
browser.on('error', function onError(err) {

bin/fetch-contributors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function getPage(page) {
1111
}
1212

1313
return new Promise((resolve, reject) => {
14-
request(url, { qs, headers }, function(error, response, body) {
14+
request(url, { qs, headers }, function (error, response, body) {
1515
if (error) {
1616
reject(error)
1717
} else {

docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: '3.2'
21
services:
32
gatsby:
43
build: .

gatsby-config.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,25 @@ const config = {
3030
resolve: 'gatsby-transformer-remark',
3131
options: {
3232
plugins: [
33-
{
34-
resolve: 'gatsby-remark-video',
35-
options: {
36-
width: '100%',
37-
height: 'auto',
38-
preload: 'auto',
39-
muted: true,
40-
autoplay: true,
41-
playsinline: true,
42-
controls: false,
43-
loop: true
44-
}},
4533
{
46-
resolve: "gatsby-remark-external-links",
34+
resolve: 'gatsby-remark-video',
4735
options: {
48-
target: "_blank",
49-
rel: "nofollow noopener noreferrer"
50-
}
36+
width: '100%',
37+
height: 'auto',
38+
preload: 'auto',
39+
muted: true,
40+
autoplay: true,
41+
playsinline: true,
42+
controls: false,
43+
loop: true,
44+
},
45+
},
46+
{
47+
resolve: 'gatsby-remark-external-links',
48+
options: {
49+
target: '_blank',
50+
rel: 'nofollow noopener noreferrer',
51+
},
5152
},
5253
{
5354
resolve: 'gatsby-remark-images',
@@ -73,7 +74,6 @@ const config = {
7374
resolve: 'gatsby-plugin-netlify',
7475
options: {
7576
mergeSecurityHeaders: false,
76-
mergeLinkHeaders: true,
7777
mergeCachingHeaders: true,
7878
},
7979
},

gatsby-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ exports.createPages = ({ actions: { createPage }, graphql }) => {
6363
}
6464
}
6565
}
66-
`).then(result => {
66+
`).then((result) => {
6767
if (result.errors) {
6868
return Promise.reject(result.errors)
6969
}

package.json

Lines changed: 60 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -4,68 +4,74 @@
44
"description": "Redash Website & Knowledge Base",
55
"main": "n/a",
66
"dependencies": {
7-
"algoliasearch": "^3.32.0",
8-
"bootstrap-sass": "^3.4.0",
9-
"gatsby": "2.0.91",
10-
"gatsby-image": "2.0.25",
11-
"gatsby-link": "2.0.7",
12-
"gatsby-plugin-algolia": "^0.3.0",
13-
"gatsby-plugin-catch-links": "2.0.9",
14-
"gatsby-plugin-feed": "2.0.11",
15-
"gatsby-plugin-google-analytics": "2.0.8",
16-
"gatsby-plugin-netlify": "2.0.6",
17-
"gatsby-plugin-nprogress": "2.0.7",
18-
"gatsby-plugin-preact": "2.0.8",
19-
"gatsby-plugin-react-helmet": "3.0.5",
7+
"algoliasearch": "^4.23.3",
8+
"axios": "1.7.2",
9+
"bootstrap-sass": "3.4.1",
10+
"gatsby": "5.13.6",
11+
"gatsby-image": "3.11.0",
12+
"gatsby-link": "5.13.1",
13+
"gatsby-plugin-algolia": "^1.0.3",
14+
"gatsby-plugin-catch-links": "5.13.1",
15+
"gatsby-plugin-feed": "5.13.1",
16+
"gatsby-plugin-google-analytics": "5.13.1",
17+
"gatsby-plugin-netlify": "5.1.1",
18+
"gatsby-plugin-nprogress": "5.13.1",
19+
"gatsby-plugin-preact": "7.13.1",
20+
"gatsby-plugin-react-helmet": "6.13.1",
2021
"gatsby-plugin-react-next": "2.0.1-13",
2122
"gatsby-plugin-remove-serviceworker": "^1.0.0",
22-
"gatsby-plugin-sass": "^2.0.0-rc.2",
23-
"gatsby-plugin-sharp": "2.0.16",
24-
"gatsby-plugin-sitemap": "2.0.3",
25-
"gatsby-plugin-twitter": "2.0.8",
26-
"gatsby-remark-copy-linked-files": "2.0.8",
23+
"gatsby-plugin-sass": "^6.13.1",
24+
"gatsby-plugin-sharp": "5.13.1",
25+
"gatsby-plugin-sitemap": "6.13.1",
26+
"gatsby-plugin-twitter": "5.13.1",
27+
"gatsby-remark-copy-linked-files": "6.13.1",
2728
"gatsby-remark-external-links": "^0.0.4",
28-
"gatsby-remark-images": "3.0.1",
29-
"gatsby-remark-prismjs": "3.1.4",
30-
"gatsby-remark-responsive-iframe": "2.0.8",
31-
"gatsby-remark-smartypants": "2.0.7",
29+
"gatsby-remark-images": "7.13.1",
30+
"gatsby-remark-prismjs": "7.13.1",
31+
"gatsby-remark-responsive-iframe": "6.13.1",
32+
"gatsby-remark-smartypants": "6.13.1",
3233
"gatsby-remark-video": "^1.2.5",
33-
"gatsby-source-filesystem": "2.0.12",
34-
"gatsby-transformer-json": "^2.1.6",
35-
"gatsby-transformer-remark": "2.1.17",
36-
"gatsby-transformer-sharp": "2.1.9",
37-
"gatsby-transformer-yaml": "^2.1.6",
34+
"gatsby-source-filesystem": "5.13.1",
35+
"gatsby-transformer-json": "^5.13.1",
36+
"gatsby-transformer-remark": "6.13.1",
37+
"gatsby-transformer-sharp": "5.13.1",
38+
"gatsby-transformer-yaml": "^5.13.1",
39+
"got": "14.4.1",
40+
"gry": "6.1.0",
41+
"natives": "1.1.6",
3842
"package.json": "^2.0.1",
39-
"react-bootstrap": "^0.32.4",
40-
"source-map": "^0.7.3"
43+
"postcss": "8.4.38",
44+
"react-bootstrap": "^2.10.2",
45+
"source-map": "^0.7.4",
46+
"webpack-dev-middleware": "7.2.1"
4147
},
4248
"devDependencies": {
43-
"@fortawesome/fontawesome-svg-core": "1.2.10",
44-
"@fortawesome/free-brands-svg-icons": "5.6.1",
45-
"@fortawesome/free-solid-svg-icons": "5.6.1",
46-
"@fortawesome/react-fontawesome": "0.1.3",
47-
"animate.css": "3.7.0",
48-
"babel-eslint": "10.0.1",
49+
"@fortawesome/fontawesome-svg-core": "6.5.2",
50+
"@fortawesome/free-brands-svg-icons": "6.5.2",
51+
"@fortawesome/free-solid-svg-icons": "6.5.2",
52+
"@fortawesome/react-fontawesome": "0.2.2",
53+
"animate.css": "4.1.1",
54+
"babel-eslint": "10.1.0",
4955
"emergence.js": "1.1.2",
50-
"eslint": "5.11.0",
51-
"eslint-config-prettier": "3.3.0",
52-
"eslint-plugin-prettier": "3.0.0",
53-
"eslint-plugin-react": "7.11.1",
56+
"eslint": "9.4.0",
57+
"eslint-config-prettier": "9.1.0",
58+
"eslint-plugin-prettier": "5.1.3",
59+
"eslint-plugin-react": "7.34.2",
5460
"font-awesome": "4.7.0",
55-
"gh-pages": "2.0.1",
56-
"husky": "1.3.0",
57-
"lint-staged": "8.1.0",
58-
"lodash": "4.17.13",
59-
"modern-normalize": "0.5.0",
60-
"node-sass": "4.11.0",
61-
"prettier": "1.15.3",
62-
"prismjs": "1.15.0",
63-
"react": "16.8.6",
64-
"react-dom": "16.8.6",
65-
"react-helmet": "5.2.1",
66-
"textlint": "11.0.2",
67-
"textlint-rule-preset-ja-spacing": "2.0.1",
68-
"textlint-rule-preset-japanese": "4.0.0"
61+
"gh-pages": "6.1.1",
62+
"husky": "9.0.11",
63+
"lint-staged": "15.2.5",
64+
"lodash": "4.17.21",
65+
"modern-normalize": "2.0.0",
66+
"node-sass": "9.0.0",
67+
"prettier": "3.3.1",
68+
"prismjs": "1.29.0",
69+
"react": "18.3.1",
70+
"react-dom": "18.3.1",
71+
"react-helmet": "6.1.0",
72+
"textlint": "14.0.4",
73+
"textlint-rule-preset-ja-spacing": "2.4.3",
74+
"textlint-rule-preset-japanese": "10.0.3"
6975
},
7076
"resolutions": {
7177
"natives": "1.1.3"
@@ -102,6 +108,6 @@
102108
},
103109
"homepage": "https://github.com/getredash/website#readme",
104110
"optionalDependencies": {
105-
"fsevents": "^1.1.3"
111+
"fsevents": "^2.3.3"
106112
}
107113
}

0 commit comments

Comments
 (0)