Vigia

Upgrading graphql-yoga from 5.x to 6.x

Comparison of the public API of graphql-yoga 5.24.6 and 6.0.0, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.

Summary

Removed import paths0
Removed exports6
Changed signatures3
Removed class or interface members2
Changed class or interface members2
Newly deprecated0
Requirement changes (engines, peer dependencies)2
New exports16

Removed exports

importexportkindBefore
graphql-yogaisPromisevariableany
graphql-yogamergeSchemasvariableany
graphql-yogamapMaybePromisevariableany
graphql-yogamapAsyncIteratorvariableany
graphql-yogaDisposableSymbolsvariableany
graphql-yogacreateGraphQLErrorvariableany

Changed signatures

exportBeforeAfter
graphql-yoga · MaskError(error: unknown, message: string, isDev?: boolean | undefined) => Error(error: unknown, message: string, isDev?: boolean | undefined, context?: (Partial<YogaInitialContext> & YogaConfigContext) | undefined) => Error
graphql-yoga · maskError(error: unknown, message: string, isDev?: boolean | undefined): Error(error: unknown, message: string, isDev?: boolean | undefined, context?: (Partial<YogaInitialContext> & YogaConfigContext) | undefined): Error
graphql-yoga · YogaServerOptionsOmit<ServerAdapterOptions<TServerContext>, "plugins"> & { logging?: any; maskedErrors?: boolean | Partial<YogaMaskedErrorOpts> | undefined; context?: TUserContext | ((initialContext: YogaInitialContext & TServerContext) => TUserContext | Promise<TUserContext>) | Promise<TUserContext> | undefined; cors?: any; graphqlEndpoint?: string | undefined; healthCheckEndpoint?: string | undefined; landingPage?: boolean | LandingPageRenderer | undefined; graphiql?: GraphiQLOptionsOrFactory<TServerContext> | undefined; renderGraphiQL?: ((options: GraphiQLOptions) => PromiseOrValue<BodyInit>) | undefined; s…Omit<ServerAdapterOptions<TServerContext>, "plugins"> & { logging?: any; requestId?: boolean | RequestIdOptions<TServerContext> | undefined; maskedErrors?: boolean | Partial<YogaMaskedErrorOpts> | undefined; context?: TUserContext | ((initialContext: YogaInitialContext & TServerContext) => TUserContext | Promise<TUserContext>) | Promise<TUserContext> | undefined; cors?: any; graphqlEndpoint?: string | undefined; healthCheckEndpoint?: string | undefined; landingPage?: boolean | LandingPageRenderer | undefined; graphiql?: GraphiQLOptionsOrFactory<TServerContext> | undefined; renderGraphiQL?: ((o…

Removed class or interface members

memberimportBefore
YogaServer.loggergraphql-yogaYogaLogger
GraphiQLPluginConfig.loggergraphql-yogaany

Changed class or interface members

memberBeforeAfter
YogaServer.parseRequest(request: Request, serverContext: any): MaybePromise<{ requestParserResult: GraphQLParams<Record<string, any>, Record<string, any>> | GraphQLParams<Record<string, any>, Record<string, any>>[]; response?: undefined; } | { requestParserResult?: undefined; response: Response; }>(request: Request, serverContext: any, fetchAPI?: any): MaybePromise<{ requestParserResult: GraphQLParams<Record<string, any>, Record<string, any>> | GraphQLParams<Record<string, any>, Record<string, any>>[]; response?: undefined; } | { requestParserResult?: undefined; response: Response; }>
YogaServer.getResultForParams({ params, request, }: { params: GraphQLParams<Record<string, any>, Record<string, any>>; request: Request; }, context: TServerContext): PromiseOrValue<any>({ params, request, }: { params: GraphQLParams<Record<string, any>, Record<string, any>>; request: Request; }, context: TServerContext, fetchAPI?: any): PromiseOrValue<any>

Newly deprecated

None detected.

Requirement changes (engines, peer dependencies)

BeforeAfter
engines.node>=18.0.0>=22.15.0
peerDependencies.graphql^15.2.0 || ^16.0.0 || ^17.0.0^16.0.0 || ^17.0.0
New exports (16)
importexportkind
graphql-yogaLoggervariable
graphql-yogaLogLevelvariable
graphql-yogaLegacyLoggervariable
graphql-yogagetRequestIdfunction
graphql-yogauseRequestIdfunction
graphql-yogaMemoryLogWritervariable
graphql-yogaRequestIdOptionsinterface
graphql-yogaYogaConfigContexttype
graphql-yogaGenerateRequestIdFntype
graphql-yogawithSchemaCoordinatefunction
graphql-yogadefaultRequestIdHeadervariable
graphql-yogacreateLoggerFromLoggingfunction
graphql-yogaGenerateRequestIdPayloadinterface
graphql-yogadefaultGenerateRequestIdvariable
graphql-yogauseConfigInServerContextfunction
graphql-yogaConfigInServerContextOptionsinterface

Give your AI agent these facts

Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

Add to CursorAdd to VS Code★ Star on GitHub

Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests

Frequently asked questions

What are the breaking changes when upgrading graphql-yoga from 5 to 6?

Between graphql-yoga 5.24.6 and 6.0.0, Vigia found 6 removed exports, 3 changed signatures and 4 removed or changed class or interface members.

What became deprecated in graphql-yoga 6?

0 exports or members are newly marked as deprecated in graphql-yoga 6.0.0.

For agents

GET https://vigia.coredls.cloud/v1/packages/npm/graphql-yoga/upgrade?from=5.24.6&to=6.0.0