Skip to content

Commit 3db0010

Browse files
authored
Update dependencies (#1396)
1 parent f0295e8 commit 3db0010

File tree

3 files changed

+936
-1207
lines changed

3 files changed

+936
-1207
lines changed

package.json

+18-18
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,26 @@
1616
"graphql": "16.6.0"
1717
},
1818
"dependencies": {
19-
"@graphql-tools/schema": "8.3.1",
20-
"@radix-ui/react-aspect-ratio": "^1.0.2",
19+
"@graphql-tools/schema": "9.0.17",
20+
"@radix-ui/react-aspect-ratio": "1.0.2",
2121
"@radix-ui/react-icons": "1.3.0",
2222
"@reach/router": "1.3.4",
2323
"@weknow/gatsby-remark-twitter": "0.2.3",
2424
"assert": "2.0.0",
25-
"clsx": "^1.2.1",
26-
"codemirror": "5.65.1",
27-
"codemirror-graphql": "1.2.11",
28-
"gatsby": "5.5.0",
25+
"clsx": "1.2.1",
26+
"codemirror": "6.0.1",
27+
"codemirror-graphql": "2.0.5",
28+
"gatsby": "5.8.1",
2929
"gatsby-plugin-anchor-links": "1.2.1",
30-
"gatsby-plugin-feed": "5.5.0",
31-
"gatsby-plugin-google-analytics": "5.5.0",
32-
"gatsby-plugin-less": "7.5.0",
30+
"gatsby-plugin-feed": "5.8.0",
31+
"gatsby-plugin-google-analytics": "5.8.0",
32+
"gatsby-plugin-less": "7.8.0",
3333
"gatsby-plugin-webfonts": "2.3.2",
34-
"gatsby-source-filesystem": "5.5.0",
35-
"gatsby-transformer-remark": "6.5.0",
34+
"gatsby-source-filesystem": "5.8.0",
35+
"gatsby-transformer-remark": "6.8.0",
3636
"globby": "11.0.4",
3737
"graphql": "16.6.0",
38-
"marked": "4.2.2",
38+
"marked": "4.3.0",
3939
"numbro": "2.3.6",
4040
"parser-front-matter": "1.6.4",
4141
"prism-react-renderer": "1.3.5",
@@ -47,17 +47,17 @@
4747
"devDependencies": {
4848
"@svgr/webpack": "^7.0.0",
4949
"@tailwindcss/typography": "^0.5.9",
50-
"@types/codemirror": "5.60.5",
50+
"@types/codemirror": "5.60.7",
5151
"@types/prismjs": "1.26.0",
52-
"@typescript-eslint/parser": "^5.57.0",
52+
"@typescript-eslint/parser": "^5.57.1",
5353
"autoprefixer": "^10.4.14",
54-
"eslint": "^8.37.0",
55-
"eslint-plugin-tailwindcss": "^3.10.3",
54+
"eslint": "^8.38.0",
55+
"eslint-plugin-tailwindcss": "^3.11.0",
5656
"gatsby-plugin-postcss": "^6.8.0",
5757
"gatsby-plugin-svgr": "^3.0.0-beta.0",
5858
"postcss": "^8.4.21",
59-
"prettier": "2.7.1",
59+
"prettier": "2.8.7",
6060
"tailwindcss": "^3.3.1",
61-
"typescript": "^5.0.3"
61+
"typescript": "^5.0.4"
6262
}
6363
}

src/components/Marked/MiniGraphiQL.tsx

+1-20
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import React from "react"
1111
import { marked } from "marked"
12+
import * as CodeMirror from "codemirror"
1213

1314
import { graphql, formatError, parse, typeFromAST } from "graphql"
1415

@@ -139,17 +140,6 @@ class QueryEditor extends React.Component {
139140
}
140141

141142
componentDidMount() {
142-
var CodeMirror = require("codemirror")
143-
require("codemirror/addon/hint/show-hint")
144-
require("codemirror/addon/comment/comment")
145-
require("codemirror/addon/edit/matchbrackets")
146-
require("codemirror/addon/edit/closebrackets")
147-
require("codemirror/addon/lint/lint")
148-
require("codemirror/keymap/sublime")
149-
require("codemirror-graphql/hint")
150-
require("codemirror-graphql/lint")
151-
require("codemirror-graphql/mode")
152-
153143
this.editor = CodeMirror(this.domNode, {
154144
value: this.props.value || "",
155145
viewportMargin: Infinity,
@@ -337,15 +327,6 @@ class VariableEditor extends React.Component {
337327
componentDidMount() {
338328
// Lazily require to ensure requiring GraphiQL outside of a Browser context
339329
// does not produce an error.
340-
const CodeMirror = require("codemirror")
341-
require("codemirror/addon/hint/show-hint")
342-
require("codemirror/addon/edit/matchbrackets")
343-
require("codemirror/addon/edit/closebrackets")
344-
require("codemirror/addon/lint/lint")
345-
require("codemirror/keymap/sublime")
346-
require("codemirror-graphql/variables/hint")
347-
require("codemirror-graphql/variables/lint")
348-
require("codemirror-graphql/variables/mode")
349330

350331
this.editor = CodeMirror(this.domNode, {
351332
value: this.props.value || "",

0 commit comments

Comments
 (0)