Skip to content

Commit 58996cc

Browse files
Johannes TuchschererJohannes TuchschererJGAntunes
authored
Updating dependencies (#1046)
* fix: docs menu * Removing explicit dompurify version locking * Upgrading to node 20 * Renaming whitelist to allowlist * Upgrading webpack * Fixing some graphql queries and not mixing import and require in the same files * Upgrading the monaco editor component and removing faulty config --------- Co-authored-by: Johannes Tuchscherer <[email protected]> Co-authored-by: JGAntunes <[email protected]>
1 parent 232cfd7 commit 58996cc

File tree

17 files changed

+9022
-7270
lines changed

17 files changed

+9022
-7270
lines changed

.github/workflows/deploy.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ jobs:
1616
- uses: actions/checkout@v4
1717
- uses: actions/setup-node@v4
1818
with:
19-
node-version: 16
19+
node-version: 20
2020
cache: yarn
21-
21+
22+
- name: playwright
23+
run: npx playwright install --with-deps
2224
- name: build
2325
run: make deps build-staging
2426

@@ -44,7 +46,7 @@ jobs:
4446
- uses: actions/checkout@v4
4547
- uses: actions/setup-node@v4
4648
with:
47-
node-version: 16
49+
node-version: 20
4850
cache: yarn
4951

5052
- name: build

.github/workflows/preview.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-node@v4
1515
with:
16-
node-version: 16
16+
node-version: 20
1717
cache: yarn
18-
18+
- name: playwright
19+
run: npx playwright install --with-deps
1920
- name: build
2021
run: make deps build-staging
2122

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
- uses: actions/checkout@v4
1111
- uses: actions/setup-node@v4
1212
with:
13-
node-version: 16
13+
node-version: 20
1414
cache: yarn
1515
- run: make deps test

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ deps:
1111
yarn --silent --frozen-lockfile
1212

1313
.PHONY: test
14-
test:
14+
test: deps
1515
yarn run test
1616

1717
.PHONY: serve
1818
serve: deps
19-
yarn start
19+
GOOGLE_ANALYTICS_TRACKING_ID=fake_token yarn start
2020

2121
.PHONY: build-staging
2222
build-staging:
2323
yarn build-staging
2424

2525
.PHONY: build-production
2626
build-production:
27-
yarn build
27+
yarn build

gatsby-config.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = {
1010
title: "kURL.sh",
1111
apiUrl: process.env.API_URL
1212
},
13+
trailingSlash: "ignore",
1314
plugins: [
1415
`gatsby-plugin-react-helmet`,
1516
`gatsby-plugin-netlify`,
@@ -46,13 +47,9 @@ module.exports = {
4647
{
4748
resolve: `gatsby-plugin-env-variables`,
4849
options: {
49-
whitelist: ["KURL_INSTALLER_URL", "KURL_BUNDLE_URL"]
50+
allowList: ["KURL_INSTALLER_URL", "KURL_BUNDLE_URL"]
5051
},
5152
},
52-
{
53-
resolve: `gatsby-plugin-create-client-paths`,
54-
options: { prefixes: [`/index/*`, `/download/*`, `/docs/*`, `/add-ons/*`] },
55-
},
5653
{
5754
resolve: `gatsby-transformer-remark`,
5855
options: {

gatsby-node.js

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const path = require('path');
2-
const MonacoWebpackPlugin = require(`monaco-editor-webpack-plugin`);
32

43
exports.onCreateWebpackConfig = ({ stage, loaders, actions }) => {
54
if (stage === 'build-html') {
@@ -11,24 +10,7 @@ exports.onCreateWebpackConfig = ({ stage, loaders, actions }) => {
1110
use: loaders.null(),
1211
},
1312
],
14-
},
15-
plugins: [
16-
new MonacoWebpackPlugin({
17-
languages: [
18-
"yaml",
19-
"json"
20-
],
21-
features: [
22-
"coreCommands",
23-
"folding",
24-
"bracketMatching",
25-
"clipboard",
26-
"find",
27-
"colorDetector",
28-
"codelens"
29-
]
30-
})
31-
]
13+
}
3214
});
3315
}
3416
};
@@ -71,10 +53,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
7153
const releaseNotesListTemplate = path.resolve(__dirname, 'src/templates/ReleaseNotesListTemplate.js');
7254
const results = await graphql(`
7355
{
74-
allMarkdownRemark(
75-
sort: { order: DESC, fields: [frontmatter___weight] }
76-
limit: 1000
77-
) {
56+
allMarkdownRemark(sort: {frontmatter: {weight: DESC}}, limit: 1000) {
7857
edges {
7958
node {
8059
fields {

package.json

Lines changed: 25 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -12,60 +12,63 @@
1212
"author": "Jelena <[email protected]>",
1313
"license": "MIT",
1414
"dependencies": {
15-
"@babel/plugin-proposal-decorators": "^7.6.0",
1615
"@bugsnag/js": "^7.1.0",
1716
"@bugsnag/plugin-react": "^7.16.2",
1817
"@docsearch/react": "3",
1918
"classnames": "^2.2.6",
2019
"core-js": "^2.6.5",
21-
"gatsby": "^2.15.22",
22-
"gatsby-cli": "^2.7.50",
23-
"gatsby-plugin-create-client-paths": "^2.1.11",
24-
"gatsby-plugin-env-variables": "^1.0.1",
25-
"gatsby-plugin-google-analytics": "^2.1.31",
26-
"gatsby-plugin-netlify": "^2.1.17",
27-
"gatsby-plugin-react-helmet": "^3.1.8",
28-
"gatsby-plugin-sass": "^2.1.15",
29-
"gatsby-remark-autolink-headers": "^2.11.0",
30-
"gatsby-remark-mermaid": "^2.1.0",
31-
"gatsby-source-filesystem": "^2.1.26",
32-
"gatsby-transformer-remark": "^2.16.0",
20+
"eslint-config-react-app": "7.0.1",
21+
"gatsby": "5.14.0",
22+
"gatsby-plugin-env-variables": "^2.3.0",
23+
"gatsby-plugin-google-analytics": "^5.14.0",
24+
"gatsby-plugin-netlify": "^5.1.1",
25+
"gatsby-plugin-react-helmet": "6.14.0",
26+
"gatsby-plugin-sass": "6.14.0",
27+
"gatsby-remark-autolink-headers": "6.14.0",
28+
"gatsby-remark-mermaid": "^5.0.0",
29+
"gatsby-source-filesystem": "^5.14.0",
30+
"gatsby-transformer-remark": "6.14.0",
3331
"json2yaml": "^1.1.0",
3432
"lodash": "^4.17.19",
35-
"monaco-editor": "^0.18.1",
36-
"monaco-editor-webpack-plugin": "^1.7.0",
33+
"monaco-editor": "^0.52.0",
34+
"monaco-editor-webpack-plugin": "^7.1.0",
35+
"playwright": "^1.49.0",
3736
"prop-types": "^15.7.2",
3837
"puppeteer": "^7.0.4",
3938
"query-string": "^6.12.1",
40-
"react": "^16.9.0",
41-
"react-dom": "^16.9.0",
39+
"react": "18.3.1",
40+
"react-dom": "18.3.1",
4241
"react-github-button": "^0.1.11",
4342
"react-helmet": "^5.2.1",
4443
"react-modal": "^3.11.2",
45-
"react-monaco-editor": "^0.31.0",
46-
"react-router-dom": "^5.0.1",
44+
"react-monaco-editor": "^0.56.2",
45+
"react-router-dom": "7.0.2",
4746
"react-select": "^3.0.5",
4847
"react-tooltip": "^3.11.1",
4948
"semver": "^7.5.2"
5049
},
5150
"devDependencies": {
5251
"@babel/core": "^7.19.3",
5352
"@babel/plugin-proposal-class-properties": "^7.18.6",
53+
"@babel/plugin-proposal-decorators": "^7.6.0",
5454
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
55+
"@babel/plugin-proposal-private-methods": "^7.18.6",
56+
"@babel/plugin-proposal-private-property-in-object": "^7.21.0",
5557
"@babel/plugin-transform-runtime": "^7.6.2",
5658
"babel-jest": "^29.1.0",
5759
"babel-loader": "^8.0.6",
58-
"babel-preset-gatsby": "^0.2.36",
60+
"babel-preset-gatsby": "^3.14.0",
5961
"chai": "^4.3.6",
6062
"copy-webpack-plugin": "^5.0.4",
6163
"css-hot-loader": "^1.4.4",
6264
"css-loader": "^3.2.0",
6365
"file-loader": "^4.2.0",
66+
"gatsby-cli": "5.14.0",
6467
"html-loader": "^0.5.5",
6568
"html-webpack-plugin": "^3.2.0",
6669
"html-webpack-template": "^6.2.0",
6770
"identity-obj-proxy": "^3.0.0",
68-
"jest": "^29.1.1",
71+
"jest": "^29.7.0",
6972
"mocha": "^10.0.0",
7073
"postcss-loader": "^3.0.0",
7174
"prettier": "^1.18.2",
@@ -74,57 +77,7 @@
7477
"sass": "^1.49.9",
7578
"sass-loader": "^11.1.1",
7679
"style-loader": "^1.0.0",
77-
"webpack": "^4.39.3",
78-
"webpack-cli": "^3.3.8",
80+
"webpack": "5.97.0",
7981
"webpack-dev-server": "^3.8.0"
80-
},
81-
"resolutions": {
82-
"minimist": "^1.2.8",
83-
"flat": "^5.0.2",
84-
"socket.io-parser": "^3.4.2",
85-
"loader-utils": "^1.4.1",
86-
"parse-url": "^8.1.0",
87-
"shell-quote": "^1.7.3",
88-
"eventsource": "^1.1.1",
89-
"xmlhttprequest-ssl": "^1.6.1",
90-
"body-parser": "^1.20.3",
91-
"glob-parent": "^5.1.2",
92-
"socket.io": "^2.5.1",
93-
"node-forge": "^1.3.0",
94-
"follow-redirects": "^1.14.7",
95-
"sanitize-html": "^2.7.1",
96-
"ws": "^7.5.10",
97-
"axios": "^0.21.2",
98-
"mermaid": "^8.13.8",
99-
"object-path": "^0.11.8",
100-
"@braintree/sanitize-url": "^6.0.1",
101-
"ansi-regex": "^5.0.1",
102-
"debug": "^4.3.4",
103-
"engine.io": "^3.6.1",
104-
"express": "^4.20.0",
105-
"hosted-git-info": "^3.0.8",
106-
"is-svg": "^4.3.0",
107-
"json5": "^2.2.2",
108-
"lodash": "^4.17.21",
109-
"moment": "^2.29.4",
110-
"semver": "^7.5.2",
111-
"@hapi/hoek": "^8.5.1",
112-
"acorn": "^6.4.1",
113-
"ansi-html": "^0.0.8",
114-
"braces": "^3.0.3",
115-
"d3-color": "^3.1.0",
116-
"dns-packet": "^1.3.2",
117-
"graphql-playground-html": "^1.6.22",
118-
"http-cache-semantics": "^4.1.1",
119-
"kind-of": "^6.0.3",
120-
"minimatch": "^3.0.5",
121-
"node-fetch": "^2.6.7",
122-
"nth-check": "^2.0.1",
123-
"serialize-javascript": "^6.0.0",
124-
"terser": "^4.8.1",
125-
"trim": "^0.0.3",
126-
"websocket-extensions": "^0.1.4",
127-
"y18n": "^5.0.5",
128-
"dompurify": "2.4.2"
12982
}
13083
}

src/components/DownloadAirgapBundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from "react";
2-
import { Link } from "@reach/router";
2+
import { Link } from "gatsby";
33

44
import CodeSnippet from "./shared/CodeSnippet";
55
import Loader from "./shared/Loader";

src/components/Kurlsh.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from "react";
2-
import { Link } from "@reach/router";
2+
import { Link } from "gatsby";
33

44
import ReactTooltip from "react-tooltip";
55
import json2yaml from "json2yaml";

src/components/Sidebar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export default class Sidebar extends Component {
1313
query={graphql`
1414
{
1515
allMarkdownRemark(
16-
filter: { fields: { collection: { eq: "markdown-pages" } } }
17-
sort: { fields: [frontmatter___weight], order: ASC }
16+
filter: {fields: {collection: {eq: "markdown-pages"}}}
17+
sort: {frontmatter: {weight: ASC}}
1818
) {
1919
edges {
2020
node {

0 commit comments

Comments
 (0)