Skip to content

Commit a2b7f05

Browse files
timheilmancacieprins
authored andcommitted
build: replace express-graphql with graphql-http and graphql-playgrou… (cypress-io#1521)
* build: replace express-graphql with graphql-http and graphql-playground-middleware-express toward resolution of issue cypress-io#1420 and cypress-io#1508 * fix: go ahead and preempt provision of GET at /graphql by graphql-http with graphql-playground-middleware-express, rather than serving it from GET /gql-playground. This preserves functionality closer to as it was with express-graphql. * fix: whoops did not mean to modify database.json * Update backend/app.ts Co-authored-by: Cacie Prins <[email protected]> * style: do not pollute type system with one-off inline types * fix: consume rename commited on github from reviewer suggestion * style: do not pollute Query.ts either with one-off inline types * build: empty commit to clear perhaps spurious circleCI failure on firefox all specs passing on firefox locally. --------- Co-authored-by: Cacie Prins <[email protected]>
1 parent d4bd582 commit a2b7f05

File tree

2 files changed

+6
-43
lines changed

2 files changed

+6
-43
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106
"eslint-plugin-cypress": "2.15.1",
107107
"eslint-plugin-prettier": "^5.0.0",
108108
"express": "4.19.2",
109-
"express-graphql": "0.12.0",
110109
"express-jwt": "6.1.2",
111110
"express-paginate": "1.0.2",
112111
"express-session": "1.18.0",

yarn.lock

+6-42
Original file line numberDiff line numberDiff line change
@@ -4712,7 +4712,7 @@ abbrev@^2.0.0:
47124712
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-2.0.0.tgz#cf59829b8b4f03f89dda2771cb7f3653828c89bf"
47134713
integrity sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==
47144714

4715-
accepts@^1.3.7, accepts@~1.3.8:
4715+
accepts@~1.3.8:
47164716
version "1.3.8"
47174717
resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e"
47184718
integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==
@@ -5950,7 +5950,7 @@ [email protected], content-disposition@^0.5.4:
59505950
dependencies:
59515951
safe-buffer "5.2.1"
59525952

5953-
content-type@^1.0.4, content-type@~1.0.4, content-type@~1.0.5:
5953+
content-type@~1.0.4, content-type@~1.0.5:
59545954
version "1.0.5"
59555955
resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918"
59565956
integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==
@@ -6397,11 +6397,6 @@ [email protected], depd@~2.0.0:
63976397
resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df"
63986398
integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==
63996399

6400-
depd@~1.1.2:
6401-
version "1.1.2"
6402-
resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9"
6403-
integrity sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==
6404-
64056400
dequal@^2.0.3:
64066401
version "2.0.3"
64076402
resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be"
@@ -7198,16 +7193,6 @@ exponential-backoff@^3.1.1:
71987193
resolved "https://registry.yarnpkg.com/exponential-backoff/-/exponential-backoff-3.1.1.tgz#64ac7526fe341ab18a39016cd22c787d01e00bf6"
71997194
integrity sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw==
72007195

7201-
7202-
version "0.12.0"
7203-
resolved "https://registry.yarnpkg.com/express-graphql/-/express-graphql-0.12.0.tgz#58deabc309909ca2c9fe2f83f5fbe94429aa23df"
7204-
integrity sha512-DwYaJQy0amdy3pgNtiTDuGGM2BLdj+YO2SgbKoLliCfuHv3VVTt7vNG/ZqK2hRYjtYHE2t2KB705EU94mE64zg==
7205-
dependencies:
7206-
accepts "^1.3.7"
7207-
content-type "^1.0.4"
7208-
http-errors "1.8.0"
7209-
raw-body "^2.4.1"
7210-
72117196
72127197
version "6.1.2"
72137198
resolved "https://registry.yarnpkg.com/express-jwt/-/express-jwt-6.1.2.tgz#4a6cc11d1dcff6f23126dd79ec5b2b441333e78b"
@@ -7927,9 +7912,9 @@ graphemer@^1.4.0:
79277912
integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==
79287913

79297914
graphql-http@^1.22.0:
7930-
version "1.22.1"
7931-
resolved "https://registry.yarnpkg.com/graphql-http/-/graphql-http-1.22.1.tgz#3857ac75366e55db189cfe09ade9cc4c4f2cfd09"
7932-
integrity sha512-4Jor+LRbA7SfSaw7dfDUs2UBzvWg3cKrykfHRgKsOIvQaLuf+QOcG2t3Mx5N9GzSNJcuqMqJWz0ta5+BryEmXg==
7915+
version "1.22.0"
7916+
resolved "https://registry.yarnpkg.com/graphql-http/-/graphql-http-1.22.0.tgz#967bad279747ba5e1c9dd85b644c6b4f3dfa88f2"
7917+
integrity sha512-9RBUlGJWBFqz9LwfpmAbjJL/8j/HCNkZwPBU5+Bfmwez+1Ay43DocMNQYpIWsWqH0Ftv6PTNAh2aRnnMCBJgLw==
79337918

79347919
graphql-playground-html@^1.6.30:
79357920
version "1.6.30"
@@ -8115,17 +8100,6 @@ http-cache-semantics@^4.1.0, http-cache-semantics@^4.1.1:
81158100
resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz#abe02fcb2985460bf0323be664436ec3476a6d5a"
81168101
integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==
81178102

8118-
8119-
version "1.8.0"
8120-
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.8.0.tgz#75d1bbe497e1044f51e4ee9e704a62f28d336507"
8121-
integrity sha512-4I8r0C5JDhT5VkvI47QktDW75rNlGVsUf/8hzjCC/wkWI/jdTRmBb9aI7erSG82r1bjKY3F6k28WnsVxB1C73A==
8122-
dependencies:
8123-
depd "~1.1.2"
8124-
inherits "2.0.4"
8125-
setprototypeof "1.2.0"
8126-
statuses ">= 1.5.0 < 2"
8127-
toidentifier "1.0.0"
8128-
81298103
81308104
version "2.0.0"
81318105
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3"
@@ -11145,7 +11119,7 @@ range-parser@~1.2.1:
1114511119
resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031"
1114611120
integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==
1114711121

11148-
[email protected], raw-body@^2.4.1:
11122+
1114911123
version "2.5.2"
1115011124
resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.2.tgz#99febd83b90e08975087e8f1f9419a149366b68a"
1115111125
integrity sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==
@@ -12130,11 +12104,6 @@ [email protected]:
1213012104
resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63"
1213112105
integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==
1213212106

12133-
"statuses@>= 1.5.0 < 2":
12134-
version "1.5.0"
12135-
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
12136-
integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==
12137-
1213812107
std-env@^3.3.3:
1213912108
version "3.7.0"
1214012109
resolved "https://registry.yarnpkg.com/std-env/-/std-env-3.7.0.tgz#c9f7386ced6ecf13360b6c6c55b8aaa4ef7481d2"
@@ -12533,11 +12502,6 @@ to-regex@^3.0.1, to-regex@^3.0.2:
1253312502
regex-not "^1.0.2"
1253412503
safe-regex "^1.1.0"
1253512504

12536-
12537-
version "1.0.0"
12538-
resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553"
12539-
integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==
12540-
1254112505
1254212506
version "1.0.1"
1254312507
resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35"

0 commit comments

Comments
 (0)