Aggiornare graphql-yoga da 5.x a 6.x
Confronto dell’API pubblica di graphql-yoga 5.24.6 e 6.0.0, calcolato automaticamente dai tipi TypeScript. Una firma modificata è una possibile modifica incompatibile, non una certezza.
Riepilogo
| Percorsi di import rimossi | 0 |
|---|---|
| Export rimossi | 6 |
| Firme modificate | 3 |
| Membri di classi o interfacce rimossi | 2 |
| Membri di classi o interfacce modificati | 2 |
| Nuove deprecazioni | 0 |
| Requisiti cambiati (engines, dipendenze peer) | 2 |
| Nuovi export | 16 |
Export rimossi
| import | export | kind | Prima |
|---|---|---|---|
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 |
Firme modificate
| export | Prima | Dopo |
|---|---|---|
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… |
Membri di classi o interfacce rimossi
| member | import | Prima |
|---|---|---|
YogaServer.logger | graphql-yoga | YogaLogger |
GraphiQLPluginConfig.logger | graphql-yoga | any |
Membri di classi o interfacce modificati
| member | Prima | Dopo |
|---|---|---|
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> |
Nuove deprecazioni
Nessuna rilevata.
Requisiti cambiati (engines, dipendenze peer)
| Prima | Dopo | |
|---|---|---|
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 |
Nuovi export (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 |
Dai questi dati al tuo agente IA
Vigia è un server MCP gratuito: il tuo agente di programmazione verifica versioni, modifiche incompatibili e vulnerabilità prima di scrivere codice. Senza registrazione né chiave API.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Aggiungi a CursorAggiungi a VS Code★ Stella su GitHub
Qualsiasi altro client MCP
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Skill per agenti (SKILL.md): dice all'agente quando usare Vigia · GitHub Action per le pull request
Domande frequenti
Quali sono le modifiche incompatibili aggiornando graphql-yoga da 5 a 6?
Tra graphql-yoga 5.24.6 e 6.0.0, Vigia ha trovato 6 export rimossi, 3 firme modificate e 4 membri di classi o interfacce rimossi o modificati.
Cosa è stato deprecato in graphql-yoga 6?
0 export o membri risultano ora deprecati in graphql-yoga 6.0.0.
Per gli agenti
GET https://vigia.coredls.cloud/v1/packages/npm/graphql-yoga/upgrade?from=5.24.6&to=6.0.0