Skip to content

Commit 309d206

Browse files
committed
Update all dependencies
Signed-off-by: Matteo Collina <[email protected]>
1 parent 8d6c319 commit 309d206

File tree

11 files changed

+81
-105
lines changed

11 files changed

+81
-105
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,7 @@ typings/
7272
# lockfiles
7373
package-lock.json
7474
yarn.lock
75-
pnpm-lock.yaml
75+
pnpm-lock.yaml
76+
77+
# tap
78+
.tap

.taprc

Lines changed: 0 additions & 5 deletions
This file was deleted.

lib/subscription-connection.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ module.exports = class SubscriptionConnection {
5656
this.fastify.log.error(err)
5757
this.handleConnectionClose()
5858
}
59+
/* c8 ignore next 3 */
5960
}
6061
}
6162

@@ -168,7 +169,7 @@ module.exports = class SubscriptionConnection {
168169
if (this.keepAlive) {
169170
this.sendKeepAlive()
170171

171-
/* istanbul ignore next */
172+
/* c8 ignore next 3 */
172173
this.keepAliveTimer = setInterval(() => {
173174
this.sendKeepAlive()
174175
}, this.keepAlive)

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,44 +31,44 @@
3131
"@graphql-tools/merge": "^9.0.0",
3232
"@graphql-tools/schema": "^10.0.0",
3333
"@graphql-tools/utils": "^10.0.0",
34-
"@sinonjs/fake-timers": "^11.0.0",
34+
"@sinonjs/fake-timers": "^14.0.0",
3535
"@types/isomorphic-form-data": "^2.0.0",
3636
"@types/node": "^22.0.0",
3737
"@types/ws": "^8.2.0",
38-
"autocannon": "^7.3.0",
39-
"concurrently": "^8.0.1",
38+
"autocannon": "^8.0.0",
39+
"concurrently": "^9.0.0",
4040
"docsify-cli": "^4.4.3",
4141
"eslint": "^9.9.1",
4242
"fastify": "^5.0.0-alpha.4",
4343
"graphql": "^16.0.0",
4444
"graphql-tag": "^2.12.6",
4545
"graphql-ws": "^5.11.2",
46-
"neostandard": "^0.11.4",
46+
"neostandard": "^0.12.0",
4747
"pre-commit": "^1.2.2",
4848
"proxyquire": "^2.1.3",
4949
"semver": "^7.5.0",
50-
"sinon": "^17.0.0",
50+
"sinon": "^19.0.0",
5151
"split2": "^4.0.0",
52-
"tap": "^16.3.0",
53-
"tsd": "^0.30.0",
52+
"tap": "^21.0.0",
53+
"tsd": "^0.31.0",
5454
"typescript": "^5.0.2",
55-
"wait-on": "^7.0.1"
55+
"undici": "^7.0.0",
56+
"wait-on": "^8.0.0"
5657
},
5758
"dependencies": {
5859
"@fastify/error": "^4.0.0",
5960
"@fastify/static": "^8.0.0",
6061
"@fastify/websocket": "^11.0.0",
6162
"fastify-plugin": "^5.0.0",
62-
"graphql-jit": "0.8.6",
63+
"graphql-jit": "0.8.7",
6364
"mqemitter": "^6.0.0",
6465
"p-map": "^4.0.0",
6566
"quick-lru": "^7.0.0",
6667
"readable-stream": "^4.0.0",
6768
"safe-stable-stringify": "^2.3.0",
68-
"secure-json-parse": "^2.7.0",
69+
"secure-json-parse": "^3.0.0",
6970
"single-user-cache": "^1.0.0",
7071
"tiny-lru": "^11.0.0",
71-
"undici": "^6.19.8",
7272
"ws": "^8.2.2"
7373
},
7474
"tsd": {

tap-snapshots/test/errors.js.test.cjs

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,51 @@
55
* Make sure to inspect the output below. Do not ignore changes!
66
*/
77
'use strict'
8-
exports['test/errors.js TAP POST query which throws, with JIT enabled, twice > must match snapshot 1'] = `
8+
exports['test/errors.js > TAP > app.graphql which throws, with JIT enabled, twice > must match snapshot 1'] = `
9+
{
10+
"errors": [
11+
{
12+
"message": "Bad Resolver",
13+
"locations": [
14+
{
15+
"line": 3,
16+
"column": 9
17+
}
18+
],
19+
"path": [
20+
"bad"
21+
]
22+
}
23+
],
24+
"data": {
25+
"bad": null
26+
}
27+
}
28+
`
29+
30+
exports['test/errors.js > TAP > app.graphql which throws, with JIT enabled, twice > must match snapshot 2'] = `
31+
{
32+
"data": {
33+
"bad": null
34+
},
35+
"errors": [
36+
{
37+
"message": "Int cannot represent non-integer value: [function bad]",
38+
"locations": [
39+
{
40+
"line": 3,
41+
"column": 9
42+
}
43+
],
44+
"path": [
45+
"bad"
46+
]
47+
}
48+
]
49+
}
50+
`
51+
52+
exports['test/errors.js > TAP > POST query which throws, with JIT enabled, twice > must match snapshot 1'] = `
953
{
1054
"data": {
1155
"bad": null
@@ -27,7 +71,7 @@ exports['test/errors.js TAP POST query which throws, with JIT enabled, twice > m
2771
}
2872
`
2973

30-
exports['test/errors.js TAP POST query which throws, with JIT enabled, twice > must match snapshot 2'] = `
74+
exports['test/errors.js > TAP > POST query which throws, with JIT enabled, twice > must match snapshot 2'] = `
3175
{
3276
"data": {
3377
"bad": null
@@ -48,11 +92,3 @@ exports['test/errors.js TAP POST query which throws, with JIT enabled, twice > m
4892
]
4993
}
5094
`
51-
52-
exports['test/errors.js TAP app.graphql which throws, with JIT enabled, twice > must match snapshot 1'] = `
53-
{"errors":[{"message":"Bad Resolver","locations":[{"line":3,"column":9}],"path":["bad"]}],"data":{"bad":null}}
54-
`
55-
56-
exports['test/errors.js TAP app.graphql which throws, with JIT enabled, twice > must match snapshot 2'] = `
57-
{"data":{"bad":null},"errors":[{"message":"Int cannot represent non-integer value: [function bad]","locations":[{"line":3,"column":9}],"path":["bad"]}]}
58-
`

tap-snapshots/test/federation.js.test.cjs

Lines changed: 0 additions & 46 deletions
This file was deleted.

tap-snapshots/test/gateway/remote-services.js.test.cjs

Lines changed: 0 additions & 14 deletions
This file was deleted.

tap-snapshots/test/routes.js.test.cjs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Make sure to inspect the output below. Do not ignore changes!
66
*/
77
'use strict'
8-
exports['test/routes.js TAP GET return 200 on resolver error > must match snapshot 1'] = `
8+
exports['test/routes.js > TAP > GET return 200 on resolver error > must match snapshot 1'] = `
99
{
1010
"data": {
1111
"add": null
@@ -27,7 +27,7 @@ exports['test/routes.js TAP GET return 200 on resolver error > must match snapsh
2727
}
2828
`
2929

30-
exports['test/routes.js TAP HTTP mutation with GET errors > must match snapshot 1'] = `
30+
exports['test/routes.js > TAP > HTTP mutation with GET errors > must match snapshot 1'] = `
3131
{
3232
"data": null,
3333
"errors": [
@@ -38,7 +38,12 @@ exports['test/routes.js TAP HTTP mutation with GET errors > must match snapshot
3838
}
3939
`
4040

41-
exports['test/routes.js TAP POST return 200 on resolver error > must match snapshot 1'] = `
41+
exports['test/routes.js > TAP > if ide is graphiql, serve config.js with the correct endpoint > must match snapshot 1'] = `
42+
window.GRAPHQL_ENDPOINT = '/app/graphql';
43+
window.GRAPHIQL_PLUGIN_LIST = []
44+
`
45+
46+
exports['test/routes.js > TAP > POST return 200 on resolver error > must match snapshot 1'] = `
4247
{
4348
"data": {
4449
"add": null
@@ -60,7 +65,7 @@ exports['test/routes.js TAP POST return 200 on resolver error > must match snaps
6065
}
6166
`
6267

63-
exports['test/routes.js TAP POST return 400 on error > must match snapshot 1'] = `
68+
exports['test/routes.js > TAP > POST return 400 on error > must match snapshot 1'] = `
6469
{
6570
"data": null,
6671
"errors": [
@@ -77,12 +82,7 @@ exports['test/routes.js TAP POST return 400 on error > must match snapshot 1'] =
7782
}
7883
`
7984

80-
exports['test/routes.js TAP if ide is graphiql, serve config.js with the correct endpoint > must match snapshot 1'] = `
81-
window.GRAPHQL_ENDPOINT = '/app/graphql';
82-
window.GRAPHIQL_PLUGIN_LIST = []
83-
`
84-
85-
exports['test/routes.js TAP server should return 200 on graphql errors (if field can be null) > must match snapshot 1'] = `
85+
exports['test/routes.js > TAP > server should return 200 on graphql errors (if field can be null) > must match snapshot 1'] = `
8686
{
8787
"data": {
8888
"hello": null
@@ -104,7 +104,7 @@ exports['test/routes.js TAP server should return 200 on graphql errors (if field
104104
}
105105
`
106106

107-
exports['test/routes.js TAP server should return 200 on graphql errors (if field can not be null) > must match snapshot 1'] = `
107+
exports['test/routes.js > TAP > server should return 200 on graphql errors (if field can not be null) > must match snapshot 1'] = `
108108
{
109109
"data": null,
110110
"errors": [

test/app-decorator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ test('scalar should be supported', async (t) => {
628628
return value
629629
},
630630
serialize (value) {
631-
t.pass(value, 4)
631+
t.equal(value, 4)
632632
return value
633633
},
634634
parseLiteral (ast) {

test/errors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,11 +775,11 @@ test('app.graphql which throws, with JIT enabled, twice', async (t) => {
775775

776776
let res = await app.graphql(query, null, { x: 1 })
777777

778-
t.matchSnapshot(JSON.stringify(res), null, 2)
778+
t.matchSnapshot(JSON.stringify(res, null, 2))
779779

780780
res = await app.graphql(query, null, { x: 1 })
781781

782-
t.matchSnapshot(JSON.stringify(res), null, 2)
782+
t.matchSnapshot(JSON.stringify(res, null, 2))
783783

784784
lines.end()
785785

0 commit comments

Comments
 (0)