Skip to content

Commit 54bf21c

Browse files
authored
Upgrade to Node 20 & Name alignment refactor (#152)
* Upgrade to Node 20 * Align with graphql core
1 parent b357adf commit 54bf21c

File tree

3 files changed

+87
-55
lines changed

3 files changed

+87
-55
lines changed

package-lock.json

Lines changed: 79 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "@makerx/graphql-apollo-server",
3-
"version": "1.6.0",
3+
"version": "1.7.0",
44
"private": false,
55
"description": "A set of MakerX plugins for Apollo Server",
66
"author": "MakerX",
77
"license": "MIT",
88
"type": "module",
99
"engines": {
10-
"node": ">=18.0"
10+
"node": ">=20.0"
1111
},
1212
"bugs": {
1313
"url": "https://github.com/MakerXStudio/graphql-apollo-server/issues"
@@ -58,9 +58,9 @@
5858
"@rollup/plugin-typescript": "^12.1.4",
5959
"@tsconfig/node20": "^20.1.6",
6060
"@types/lodash.omit": "^4.5.9",
61-
"@types/node": "24.5.2",
62-
"@typescript-eslint/eslint-plugin": "^8.44.0",
63-
"@typescript-eslint/parser": "^8.44.0",
61+
"@types/node": "20.19.17",
62+
"@typescript-eslint/eslint-plugin": "^8.44.1",
63+
"@typescript-eslint/parser": "^8.44.1",
6464
"@vitest/coverage-v8": "3.2.4",
6565
"better-npm-audit": "^3.11.0",
6666
"copyfiles": "^2.4.1",

src/plugins/graphql-operation-logging-plugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ export interface GraphQLOperationLoggingPluginOptions<TContext extends GraphQLCo
5252
*/
5353
augmentLogEntry?: (ctx: TContext) => Record<string, any>
5454
/**
55-
* Can be used to resolve a custom logger for the plugin
55+
* Can be used to resolve a logger for the plugin
5656
*/
57-
resolveCustomLogger?: (context: TContext) => TLogger
57+
resolveLogger?: (context: TContext) => TLogger
5858
}
5959

6060
/**
@@ -72,7 +72,7 @@ export function graphqlOperationLoggingPlugin<TContext extends GraphQLContext<TL
7272
adjustVariables,
7373
adjustResultData,
7474
augmentLogEntry,
75-
resolveCustomLogger,
75+
resolveLogger: resolveCustomLogger,
7676
}: GraphQLOperationLoggingPluginOptions<TContext, TLogger> = {}): ApolloServerPlugin<TContext> {
7777
return {
7878
contextCreationDidFail: async ({ error }) => {

0 commit comments

Comments
 (0)