Skip to content

Update dependencies #1396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from Apr 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,26 @@
"graphql": "16.6.0"
},
"dependencies": {
"@graphql-tools/schema": "8.3.1",
"@radix-ui/react-aspect-ratio": "^1.0.2",
"@graphql-tools/schema": "9.0.17",
"@radix-ui/react-aspect-ratio": "1.0.2",
"@radix-ui/react-icons": "1.3.0",
"@reach/router": "1.3.4",
"@weknow/gatsby-remark-twitter": "0.2.3",
"assert": "2.0.0",
"clsx": "^1.2.1",
"codemirror": "5.65.1",
"codemirror-graphql": "1.2.11",
"gatsby": "5.5.0",
"clsx": "1.2.1",
"codemirror": "6.0.1",
"codemirror-graphql": "2.0.5",
"gatsby": "5.8.1",
"gatsby-plugin-anchor-links": "1.2.1",
"gatsby-plugin-feed": "5.5.0",
"gatsby-plugin-google-analytics": "5.5.0",
"gatsby-plugin-less": "7.5.0",
"gatsby-plugin-feed": "5.8.0",
"gatsby-plugin-google-analytics": "5.8.0",
"gatsby-plugin-less": "7.8.0",
"gatsby-plugin-webfonts": "2.3.2",
"gatsby-source-filesystem": "5.5.0",
"gatsby-transformer-remark": "6.5.0",
"gatsby-source-filesystem": "5.8.0",
"gatsby-transformer-remark": "6.8.0",
"globby": "11.0.4",
"graphql": "16.6.0",
"marked": "4.2.2",
"marked": "4.3.0",
"numbro": "2.3.6",
"parser-front-matter": "1.6.4",
"prism-react-renderer": "1.3.5",
Expand All @@ -47,17 +47,17 @@
"devDependencies": {
"@svgr/webpack": "^7.0.0",
"@tailwindcss/typography": "^0.5.9",
"@types/codemirror": "5.60.5",
"@types/codemirror": "5.60.7",
"@types/prismjs": "1.26.0",
"@typescript-eslint/parser": "^5.57.0",
"@typescript-eslint/parser": "^5.57.1",
"autoprefixer": "^10.4.14",
"eslint": "^8.37.0",
"eslint-plugin-tailwindcss": "^3.10.3",
"eslint": "^8.38.0",
"eslint-plugin-tailwindcss": "^3.11.0",
"gatsby-plugin-postcss": "^6.8.0",
"gatsby-plugin-svgr": "^3.0.0-beta.0",
"postcss": "^8.4.21",
"prettier": "2.7.1",
"prettier": "2.8.7",
"tailwindcss": "^3.3.1",
"typescript": "^5.0.3"
"typescript": "^5.0.4"
}
}
21 changes: 1 addition & 20 deletions src/components/Marked/MiniGraphiQL.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import React from "react"
import { marked } from "marked"
import * as CodeMirror from "codemirror"

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

Expand Down Expand Up @@ -139,17 +140,6 @@ class QueryEditor extends React.Component {
}

componentDidMount() {
var CodeMirror = require("codemirror")
require("codemirror/addon/hint/show-hint")
require("codemirror/addon/comment/comment")
require("codemirror/addon/edit/matchbrackets")
require("codemirror/addon/edit/closebrackets")
require("codemirror/addon/lint/lint")
require("codemirror/keymap/sublime")
require("codemirror-graphql/hint")
require("codemirror-graphql/lint")
require("codemirror-graphql/mode")

this.editor = CodeMirror(this.domNode, {
value: this.props.value || "",
viewportMargin: Infinity,
Expand Down Expand Up @@ -337,15 +327,6 @@ class VariableEditor extends React.Component {
componentDidMount() {
// Lazily require to ensure requiring GraphiQL outside of a Browser context
// does not produce an error.
const CodeMirror = require("codemirror")
require("codemirror/addon/hint/show-hint")
require("codemirror/addon/edit/matchbrackets")
require("codemirror/addon/edit/closebrackets")
require("codemirror/addon/lint/lint")
require("codemirror/keymap/sublime")
require("codemirror-graphql/variables/hint")
require("codemirror-graphql/variables/lint")
require("codemirror-graphql/variables/mode")

this.editor = CodeMirror(this.domNode, {
value: this.props.value || "",
Expand Down
Loading