Actualizar graphql-yoga de 5.x a 6.x
Comparación de la API pública de graphql-yoga 5.24.6 y 6.0.0, calculada automáticamente a partir de sus tipos TypeScript. Una firma modificada es un posible cambio incompatible, no una certeza.
Resumen
| Rutas de importación eliminadas | 0 |
|---|---|
| Exports eliminados | 6 |
| Firmas modificadas | 3 |
| Miembros de clases o interfaces eliminados | 2 |
| Miembros de clases o interfaces modificados | 2 |
| Nuevas deprecaciones | 0 |
| Cambios de requisitos (engines, dependencias peer) | 2 |
| Exports nuevos | 16 |
Exports eliminados
| import | export | kind | Antes |
|---|---|---|---|
graphql-yoga | isPromise | variable | any |
graphql-yoga | mergeSchemas | variable | any |
graphql-yoga | mapMaybePromise | variable | any |
graphql-yoga | mapAsyncIterator | variable | any |
graphql-yoga | DisposableSymbols | variable | any |
graphql-yoga | createGraphQLError | variable | any |
Firmas modificadas
| export | Antes | Después |
|---|---|---|
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 · YogaServerOptions | Omit<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… |
Miembros de clases o interfaces eliminados
| member | import | Antes |
|---|---|---|
YogaServer.logger | graphql-yoga | YogaLogger |
GraphiQLPluginConfig.logger | graphql-yoga | any |
Miembros de clases o interfaces modificados
| member | Antes | Después |
|---|---|---|
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> |
Nuevas deprecaciones
No se detectaron.
Cambios de requisitos (engines, dependencias peer)
| Antes | Después | |
|---|---|---|
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 |
Exports nuevos (16)
| import | export | kind |
|---|---|---|
graphql-yoga | Logger | variable |
graphql-yoga | LogLevel | variable |
graphql-yoga | LegacyLogger | variable |
graphql-yoga | getRequestId | function |
graphql-yoga | useRequestId | function |
graphql-yoga | MemoryLogWriter | variable |
graphql-yoga | RequestIdOptions | interface |
graphql-yoga | YogaConfigContext | type |
graphql-yoga | GenerateRequestIdFn | type |
graphql-yoga | withSchemaCoordinate | function |
graphql-yoga | defaultRequestIdHeader | variable |
graphql-yoga | createLoggerFromLogging | function |
graphql-yoga | GenerateRequestIdPayload | interface |
graphql-yoga | defaultGenerateRequestId | variable |
graphql-yoga | useConfigInServerContext | function |
graphql-yoga | ConfigInServerContextOptions | interface |
Dale estos datos a tu agente de IA
Vigia es un servidor MCP gratuito: tu agente de programación verifica versiones, cambios incompatibles y vulnerabilidades antes de escribir código. Sin registro ni clave de API.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Agregar a CursorAgregar a VS Code★ Estrella en GitHub
Cualquier otro cliente MCP
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Skill para agentes (SKILL.md): le indica al agente cuándo usar Vigia · GitHub Action para pull requests
Preguntas frecuentes
¿Cuáles son los cambios incompatibles al actualizar graphql-yoga de 5 a 6?
Entre graphql-yoga 5.24.6 y 6.0.0, Vigia encontró 6 exports eliminados, 3 firmas modificadas y 4 miembros de clases o interfaces eliminados o modificados.
¿Qué quedó deprecado en graphql-yoga 6?
0 exports o miembros quedaron marcados como deprecados en graphql-yoga 6.0.0.
Para agentes
GET https://vigia.coredls.cloud/v1/packages/npm/graphql-yoga/upgrade?from=5.24.6&to=6.0.0