Aktualizacja graphql-yoga z 5.x do 6.x
Porównanie publicznego API graphql-yoga 5.24.6 i 6.0.0, obliczone automatycznie na podstawie typów TypeScript. Zmieniona sygnatura to możliwa zmiana niekompatybilna, a nie pewność.
Podsumowanie
| Usunięte ścieżki importu | 0 |
|---|---|
| Usunięte eksporty | 6 |
| Zmienione sygnatury | 3 |
| Usunięte składowe klas lub interfejsów | 2 |
| Zmienione składowe klas lub interfejsów | 2 |
| Nowo wycofane | 0 |
| Zmiany wymagań (engines, zależności peer) | 2 |
| Nowe eksporty | 16 |
Usunięte eksporty
| import | export | kind | Przed |
|---|---|---|---|
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 |
Zmienione sygnatury
| export | Przed | Po |
|---|---|---|
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… |
Usunięte składowe klas lub interfejsów
| member | import | Przed |
|---|---|---|
YogaServer.logger | graphql-yoga | YogaLogger |
GraphiQLPluginConfig.logger | graphql-yoga | any |
Zmienione składowe klas lub interfejsów
| member | Przed | Po |
|---|---|---|
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> |
Nowo wycofane
Nie wykryto.
Zmiany wymagań (engines, zależności peer)
| Przed | Po | |
|---|---|---|
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 |
Nowe eksporty (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 |
Przekaż te dane swojemu agentowi AI
Vigia to darmowy serwer MCP: Twój agent programistyczny sprawdza wersje, zmiany łamiące zgodność i podatności, zanim napisze kod. Bez rejestracji i klucza API.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Dodaj do CursorDodaj do VS Code★ Gwiazdka na GitHubie
Dowolny inny klient MCP
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Skill dla agentów (SKILL.md): mówi agentowi, kiedy używać Vigii · GitHub Action dla pull requestów
Najczęściej zadawane pytania
Jakie są zmiany niekompatybilne przy aktualizacji graphql-yoga z 5 do 6?
Między graphql-yoga 5.24.6 a 6.0.0 Vigia znalazła 6 usuniętych eksportów, 3 zmienionych sygnatur i 4 usuniętych lub zmienionych składowych klas lub interfejsów.
Co zostało wycofane w graphql-yoga 6?
0 eksportów lub składowych oznaczono w graphql-yoga 6.0.0 jako wycofane.
Dla agentów
GET https://vigia.coredls.cloud/v1/packages/npm/graphql-yoga/upgrade?from=5.24.6&to=6.0.0