Passer de graphql-yoga 5.x à 6.x
Comparaison de l’API publique de graphql-yoga 5.24.6 et 6.0.0, calculée automatiquement à partir de leurs types TypeScript. Une signature modifiée est un changement incompatible possible, pas une certitude.
Résumé
| Chemins d’importation supprimés | 0 |
|---|---|
| Exports supprimés | 6 |
| Signatures modifiées | 3 |
| Membres de classes ou d’interfaces supprimés | 2 |
| Membres de classes ou d’interfaces modifiés | 2 |
| Nouvelles dépréciations | 0 |
| Changements d’exigences (engines, dépendances peer) | 2 |
| Nouveaux exports | 16 |
Exports supprimés
| import | export | kind | Avant |
|---|---|---|---|
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 |
Signatures modifiées
| export | Avant | Aprè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… |
Membres de classes ou d’interfaces supprimés
| member | import | Avant |
|---|---|---|
YogaServer.logger | graphql-yoga | YogaLogger |
GraphiQLPluginConfig.logger | graphql-yoga | any |
Membres de classes ou d’interfaces modifiés
| member | Avant | Aprè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> |
Nouvelles dépréciations
Aucun détecté.
Changements d’exigences (engines, dépendances peer)
| Avant | Aprè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 |
Nouveaux exports (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 |
Donnez ces données à votre agent IA
Vigia est un serveur MCP gratuit : votre agent de code vérifie les versions, les changements incompatibles et les vulnérabilités avant d'écrire du code. Sans inscription ni clé d'API.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Ajouter à CursorAjouter à VS Code★ Étoile sur GitHub
Tout autre client MCP
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Skill pour agents (SKILL.md) : indique à l'agent quand utiliser Vigia · GitHub Action pour les pull requests
Questions fréquentes
Quels sont les changements incompatibles en passant de graphql-yoga 5 à 6 ?
Entre graphql-yoga 5.24.6 et 6.0.0, Vigia a trouvé 6 exports supprimés, 3 signatures modifiées et 4 membres de classes ou d’interfaces supprimés ou modifiés.
Qu’est-ce qui a été déprécié dans graphql-yoga 6 ?
0 exports ou membres sont désormais marqués comme dépréciés dans graphql-yoga 6.0.0.
Pour les agents
GET https://vigia.coredls.cloud/v1/packages/npm/graphql-yoga/upgrade?from=5.24.6&to=6.0.0