fix: do not allow reserved context keys in ServerContext or UserContext #8207
Annotations
7 errors and 1 warning
Build Packages:
packages/graphql-yoga/__tests__/context.spec.ts#L42
Type 'GraphQLSchemaWithContext<YogaInitialContext & UserContext>' is not assignable to type 'YogaSchemaDefinition<{}, ContextBase> | undefined'.
|
Build Packages:
packages/graphql-yoga/__tests__/context.spec.ts#L43
Type 'UserContext' is not assignable to type 'ContextBase | Promise<ContextBase> | ((initialContext: YogaInitialContext) => ContextBase | Promise<ContextBase>) | undefined'.
|
Build Packages:
packages/graphql-yoga/__tests__/context.spec.ts#L70
Type 'GraphQLSchemaWithContext<YogaInitialContext & UserContext>' is not assignable to type 'YogaSchemaDefinition<{}, ContextBase> | undefined'.
|
Build Packages:
packages/graphql-yoga/__tests__/context.spec.ts#L71
Type 'UserContext' is not assignable to type 'ContextBase | Promise<ContextBase> | ((initialContext: YogaInitialContext) => ContextBase | Promise<ContextBase>) | undefined'.
|
Build Packages:
packages/graphql-yoga/__tests__/context.spec.ts#L106
Type 'GraphQLSchemaWithContext<YogaInitialContext & UserContext>' is not assignable to type 'YogaSchemaDefinition<{}, ContextBase> | undefined'.
|
Build Packages:
packages/graphql-yoga/__tests__/context.spec.ts#L107
Type 'UserContext' is not assignable to type 'ContextBase | Promise<ContextBase> | ((initialContext: YogaInitialContext) => ContextBase | Promise<ContextBase>) | undefined'.
|
Build Packages
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3, pnpm/[email protected], actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The logs for this run have expired and are no longer available.
Loading