Skip to content

Commit

Permalink
chore: bumped v4.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina committed Sep 9, 2024
1 parent 815122c commit 260f20e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [20.x, 22.x]
os: [ubuntu-latest]

steps:
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mercuriusjs/gateway",
"version": "3.0.1",
"version": "4.0.0",
"description": "A plugin for mercurius federation",
"main": "index.js",
"types": "index.d.ts",
Expand Down Expand Up @@ -38,14 +38,14 @@
"devDependencies": {
"@commitlint/cli": "^17.3.0",
"@commitlint/config-conventional": "^17.3.0",
"@fastify/autoload": "^5.6.0",
"@fastify/cors": "^8.2.0",
"@fastify/autoload": "^6.0.0",
"@fastify/cors": "^9.0.0",
"@sinonjs/fake-timers": "^11.0.0",
"@typescript-eslint/eslint-plugin": "^5.44.0",
"@typescript-eslint/parser": "^5.44.0",
"autocannon": "^7.10.0",
"concurrently": "^8.0.1",
"fastify": "^4.16.0",
"fastify": "^5.0.0-alpha.4",
"husky": "^8.0.2",
"lint-staged": "^13.0.4",
"sinon": "^15.0.0",
Expand All @@ -62,14 +62,14 @@
"*.{js,jsx}": "standard --cache --fix"
},
"dependencies": {
"@mercuriusjs/federation": "^3.0.0",
"@mercuriusjs/subscription-client": "^1.0.0",
"@mercuriusjs/federation": "^4.0.0",
"@mercuriusjs/subscription-client": "^2.0.0",
"fastify-plugin": "^4.3.0",
"graphql": "^16.6.0",
"graphql-ws": "^5.11.2",
"mercurius": "^14.0.0",
"mercurius": "^15.0.0",
"p-map": "^4.0.0",
"single-user-cache": "^0.6.0",
"single-user-cache": "^1.0.0",
"tiny-lru": "^11.0.0",
"use-strict": "1.0.1",
"ws": "^8.11.0"
Expand Down
17 changes: 14 additions & 3 deletions test/subscription-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,9 @@ test('gateway - preSubscriptionParsing hooks should handle errors', async t => {
t.same(data, {
id: 1,
type: 'error',
payload: 'a preSubscriptionParsing error occurred'
payload: [{
message: 'a preSubscriptionParsing error occurred'
}]
})
}
})
Expand Down Expand Up @@ -448,7 +450,9 @@ test('gateway - preSubscriptionExecution hooks should handle errors', async t =>
t.same(data, {
id: 1,
type: 'error',
payload: 'a preSubscriptionExecution error occurred'
payload: [{
message: 'a preSubscriptionExecution error occurred'
}]
})
}
})
Expand Down Expand Up @@ -503,7 +507,14 @@ test('gateway - preGatewaySubscriptionExecution hooks should handle errors', asy
t.same(data, {
id: 1,
type: 'error',
payload: 'a preGatewaySubscriptionExecution error occurred'
payload: [{
message: 'a preGatewaySubscriptionExecution error occurred',
locations: [{
line: 3,
column: 7
}],
path: ['newMessage']
}]
})
}
})
Expand Down
2 changes: 1 addition & 1 deletion test/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function createTestService (port, schema, resolvers = {}) {
routes: true,
subscription: true
})
await service.listen(port)
await service.listen({ port })
return service
}

Expand Down

0 comments on commit 260f20e

Please sign in to comment.