Skip to content

Commit 5450e6b

Browse files
authored
[graphiql] remove unused dependencies graphql-language-service and markdown-it (#3655)
* aa * add types/markdown * dedup markdown-it
1 parent e01b6e0 commit 5450e6b

File tree

8 files changed

+29
-69
lines changed

8 files changed

+29
-69
lines changed

.changeset/six-students-grow.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"graphiql": patch
3+
---
4+
5+
remove unused dependencies `graphql-language-service` and `markdown-it`

examples/monaco-graphql-react-vite/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"devDependencies": {
1717
"@vitejs/plugin-react": "^4.3.1",
18-
"vite": "^5.3.4",
18+
"vite": "^5.3.5",
1919
"vite-plugin-monaco-editor": "^1.1.0"
2020
},
2121
"scripts": {

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
},
143143
"resolutions": {
144144
"@babel/traverse": "^7.23.2",
145-
"vscode-languageserver-types": "3.17.3"
145+
"vscode-languageserver-types": "3.17.3",
146+
"markdown-it": "14.1.0"
146147
}
147148
}

packages/graphiql-plugin-code-exporter/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@
4646
"react": "^18.2.0",
4747
"react-dom": "^18.2.0",
4848
"typescript": "^4.6.3",
49-
"vite": "^5.3.4"
49+
"vite": "^5.3.5"
5050
}
5151
}

packages/graphiql-plugin-explorer/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"react": "^18.2.0",
4545
"react-dom": "^18.2.0",
4646
"typescript": "^4.6.3",
47-
"vite": "^5.3.4",
47+
"vite": "^5.3.5",
4848
"vite-plugin-svgr": "^4.2.0"
4949
}
5050
}

packages/graphiql-react/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"set-value": "^4.1.0"
6666
},
6767
"devDependencies": {
68+
"@types/markdown-it": "^14.1.2",
6869
"@babel/helper-string-parser": "^7.19.4",
6970
"@testing-library/react": "14.0.0",
7071
"@types/set-value": "^4.0.1",
@@ -74,7 +75,7 @@
7475
"react": "^18.2.0",
7576
"react-dom": "^18.2.0",
7677
"typescript": "^4.6.3",
77-
"vite": "^5.3.4",
78+
"vite": "^5.3.5",
7879
"vite-plugin-svgr": "^4.2.0"
7980
}
8081
}

packages/graphiql/package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@
4848
},
4949
"dependencies": {
5050
"@graphiql/react": "^0.23.0",
51-
"@graphiql/toolkit": "^0.9.2",
52-
"graphql-language-service": "^5.2.2",
53-
"markdown-it": "^14.1.0"
51+
"@graphiql/toolkit": "^0.9.2"
5452
},
5553
"peerDependencies": {
5654
"graphql": "^15.5.0 || ^16.0.0",
@@ -62,7 +60,6 @@
6260
"@testing-library/jest-dom": "5.16.5",
6361
"@testing-library/react": "14.0.0",
6462
"@types/codemirror": "^0.0.90",
65-
"@types/markdown-it": "^13.0.7",
6663
"@types/node": "^16.18.4",
6764
"@types/testing-library__jest-dom": "5.14.5",
6865
"babel-loader": "^9.1.2",

yarn.lock

+16-60
Original file line numberDiff line numberDiff line change
@@ -4349,18 +4349,18 @@
43494349
dependencies:
43504350
"@types/node" "*"
43514351

4352-
"@types/linkify-it@*":
4353-
version "2.1.0"
4354-
resolved "https://registry.yarnpkg.com/@types/linkify-it/-/linkify-it-2.1.0.tgz#ea3dd64c4805597311790b61e872cbd1ed2cd806"
4355-
integrity sha512-Q7DYAOi9O/+cLLhdaSvKdaumWyHbm7HAk/bFwwyTuU0arR5yyCeW5GOoqt4tJTpDRxhpx9Q8kQL6vMpuw9hDSw==
4352+
"@types/linkify-it@^5":
4353+
version "5.0.0"
4354+
resolved "https://registry.yarnpkg.com/@types/linkify-it/-/linkify-it-5.0.0.tgz#21413001973106cda1c3a9b91eedd4ccd5469d76"
4355+
integrity sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==
43564356

4357-
"@types/markdown-it@^13.0.7":
4358-
version "13.0.7"
4359-
resolved "https://registry.yarnpkg.com/@types/markdown-it/-/markdown-it-13.0.7.tgz#4a495115f470075bd4434a0438ac477a49c2e152"
4360-
integrity sha512-U/CBi2YUUcTHBt5tjO2r5QV/x0Po6nsYwQU4Y04fBS6vfoImaiZ6f8bi3CjTCxBPQSO1LMyUqkByzi8AidyxfA==
4357+
"@types/markdown-it@^14.1.2":
4358+
version "14.1.2"
4359+
resolved "https://registry.yarnpkg.com/@types/markdown-it/-/markdown-it-14.1.2.tgz#57f2532a0800067d9b934f3521429a2e8bfb4c61"
4360+
integrity sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==
43614361
dependencies:
4362-
"@types/linkify-it" "*"
4363-
"@types/mdurl" "*"
4362+
"@types/linkify-it" "^5"
4363+
"@types/mdurl" "^2"
43644364

43654365
"@types/mdast@^3.0.0":
43664366
version "3.0.11"
@@ -4376,10 +4376,10 @@
43764376
dependencies:
43774377
"@types/unist" "*"
43784378

4379-
"@types/mdurl@*":
4380-
version "1.0.2"
4381-
resolved "https://registry.yarnpkg.com/@types/mdurl/-/mdurl-1.0.2.tgz#e2ce9d83a613bacf284c7be7d491945e39e1f8e9"
4382-
integrity sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==
4379+
"@types/mdurl@^2":
4380+
version "2.0.0"
4381+
resolved "https://registry.yarnpkg.com/@types/mdurl/-/mdurl-2.0.0.tgz#d43878b5b20222682163ae6f897b20447233bdfd"
4382+
integrity sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==
43834383

43844384
"@types/mime@*":
43854385
version "3.0.1"
@@ -8208,11 +8208,6 @@ entities@^4.4.0, entities@^4.5.0:
82088208
resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48"
82098209
integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==
82108210

8211-
entities@~2.1.0:
8212-
version "2.1.0"
8213-
resolved "https://registry.yarnpkg.com/entities/-/entities-2.1.0.tgz#992d3129cf7df6870b96c57858c249a120f8b8b5"
8214-
integrity sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==
8215-
82168211
envinfo@^7.7.3:
82178212
version "7.8.1"
82188213
resolved "https://registry.yarnpkg.com/envinfo/-/envinfo-7.8.1.tgz#06377e3e5f4d379fea7ac592d5ad8927e0c4d475"
@@ -12349,13 +12344,6 @@ lines-and-columns@^2.0.3:
1234912344
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-2.0.4.tgz#d00318855905d2660d8c0822e3f5a4715855fc42"
1235012345
integrity sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A==
1235112346

12352-
linkify-it@^3.0.1:
12353-
version "3.0.3"
12354-
resolved "https://registry.yarnpkg.com/linkify-it/-/linkify-it-3.0.3.tgz#a98baf44ce45a550efb4d49c769d07524cc2fa2e"
12355-
integrity sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==
12356-
dependencies:
12357-
uc.micro "^1.0.1"
12358-
1235912347
linkify-it@^5.0.0:
1236012348
version "5.0.0"
1236112349
resolved "https://registry.yarnpkg.com/linkify-it/-/linkify-it-5.0.0.tgz#9ef238bfa6dc70bd8e7f9572b52d369af569b421"
@@ -12765,18 +12753,7 @@ map-stream@~0.1.0:
1276512753
resolved "https://registry.yarnpkg.com/map-stream/-/map-stream-0.1.0.tgz#e56aa94c4c8055a16404a0674b78f215f7c8e194"
1276612754
integrity sha1-5WqpTEyAVaFkBKBnS3jyFffI4ZQ=
1276712755

12768-
markdown-it@^12.3.2:
12769-
version "12.3.2"
12770-
resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-12.3.2.tgz#bf92ac92283fe983fe4de8ff8abfb5ad72cd0c90"
12771-
integrity sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==
12772-
dependencies:
12773-
argparse "^2.0.1"
12774-
entities "~2.1.0"
12775-
linkify-it "^3.0.1"
12776-
mdurl "^1.0.1"
12777-
uc.micro "^1.0.5"
12778-
12779-
markdown-it@^14.1.0:
12756+
[email protected], markdown-it@^12.3.2, markdown-it@^14.1.0:
1278012757
version "14.1.0"
1278112758
resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-14.1.0.tgz#3c3c5992883c633db4714ccb4d7b5935d98b7d45"
1278212759
integrity sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==
@@ -12945,11 +12922,6 @@ [email protected]:
1294512922
resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.30.tgz#ce4df6f80af6cfbe218ecd5c552ba13c4dfa08cc"
1294612923
integrity sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==
1294712924

12948-
mdurl@^1.0.1:
12949-
version "1.0.1"
12950-
resolved "https://registry.yarnpkg.com/mdurl/-/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e"
12951-
integrity sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=
12952-
1295312925
mdurl@^2.0.0:
1295412926
version "2.0.0"
1295512927
resolved "https://registry.yarnpkg.com/mdurl/-/mdurl-2.0.0.tgz#80676ec0433025dd3e17ee983d0fe8de5a2237e0"
@@ -17635,11 +17607,6 @@ ua-parser-js@^1.0.2:
1763517607
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-1.0.33.tgz#f21f01233e90e7ed0f059ceab46eb190ff17f8f4"
1763617608
integrity sha512-RqshF7TPTE0XLYAqmjlu5cLLuGdKrNu9O1KLA/qp39QtbZwuzwv1dT46DZSopoUMsYgXpB3Cv8a03FI8b74oFQ==
1763717609

17638-
uc.micro@^1.0.1, uc.micro@^1.0.5:
17639-
version "1.0.6"
17640-
resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.6.tgz#9c411a802a409a91fc6cf74081baba34b24499ac"
17641-
integrity sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==
17642-
1764317610
uc.micro@^2.0.0, uc.micro@^2.1.0:
1764417611
version "2.1.0"
1764517612
resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-2.1.0.tgz#f8d3f7d0ec4c3dea35a7e3c8efa4cb8b45c9e7ee"
@@ -18089,7 +18056,7 @@ vite-plugin-svgr@^4.2.0:
1808918056
"@svgr/core" "^8.1.0"
1809018057
"@svgr/plugin-jsx" "^8.1.0"
1809118058

18092-
vite@^5.0.0:
18059+
vite@^5.0.0, vite@^5.3.5:
1809318060
version "5.3.5"
1809418061
resolved "https://registry.yarnpkg.com/vite/-/vite-5.3.5.tgz#b847f846fb2b6cb6f6f4ed50a830186138cb83d8"
1809518062
integrity sha512-MdjglKR6AQXQb9JGiS7Rc2wC6uMjcm7Go/NHNO63EwiJXfuk9PgqiP/n5IDJCziMkfw9n4Ubp7lttNwz+8ZVKA==
@@ -18100,17 +18067,6 @@ vite@^5.0.0:
1810018067
optionalDependencies:
1810118068
fsevents "~2.3.3"
1810218069

18103-
vite@^5.3.4:
18104-
version "5.3.4"
18105-
resolved "https://registry.yarnpkg.com/vite/-/vite-5.3.4.tgz#b36ebd47c8a5e3a8727046375d5f10bf9fdf8715"
18106-
integrity sha512-Cw+7zL3ZG9/NZBB8C+8QbQZmR54GwqIz+WMI4b3JgdYJvX+ny9AjJXqkGQlDXSXRP9rP0B4tbciRMOVEKulVOA==
18107-
dependencies:
18108-
esbuild "^0.21.3"
18109-
postcss "^8.4.39"
18110-
rollup "^4.13.0"
18111-
optionalDependencies:
18112-
fsevents "~2.3.3"
18113-
1811418070
vitest@^2.0.4:
1811518071
version "2.0.4"
1811618072
resolved "https://registry.yarnpkg.com/vitest/-/vitest-2.0.4.tgz#ac6bfbaee53e502cee864b07a5b2edf1fcba793e"

0 commit comments

Comments
 (0)