Vigia

将 @graphql-codegen/plugin-helpers 从 7.x 升级到 8.x

根据 TypeScript 类型自动比较 @graphql-codegen/plugin-helpers 7.4.2 与 8.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。

概要

已删除的导入路径0
已删除的导出3
已修改的签名3
已删除的类或接口成员0
已修改的类或接口成员1
新增弃用0
要求变化(engines、peer 依赖)2
新增导出1

已删除的导出

importexportkind之前
@graphql-codegen/plugin-helpersisConfiguredOutputfunction(type: any): type is ConfiguredOutput
@graphql-codegen/plugin-helpersisOutputConfigArrayfunction(type: any): type is OutputConfig[]
@graphql-codegen/plugin-helpersnormalizeImportExtensionfunction({ emitLegacyCommonJSImports, importExtension, }: { emitLegacyCommonJSImports: boolean | undefined; importExtension: "" | `.${string}` | undefined; }): "" | `.${string}`

已修改的签名

export之前之后
@graphql-codegen/plugin-helpers · PluginFunction(schema: GraphQLSchema, documents: DocumentFile[], config: T, info?: { [key: string]: any; outputFile?: string | undefined; allPlugins?: ConfiguredPlugin[] | undefined; pluginContext?: { [key: string]: any; } | undefined; } | undefined) => Promisable<TOutput>(schema: GraphQLSchema, documents: DocumentFile[], config: T, info?: (Partial<PluginInfo> & { [key: string]: any; }) | undefined) => Promisable<TOutput>
@graphql-codegen/plugin-helpers · PluginValidateFn(schema: GraphQLSchema, documents: DocumentFile[], config: T, outputFile: string, allPlugins: ConfiguredPlugin[], pluginContext?: { [key: string]: any; } | undefined) => Promisable<void>(schema: GraphQLSchema, documents: DocumentFile[], config: T, info: PluginInfo) => Promisable<void>
@graphql-codegen/plugin-helpers · normalizeOutputParam(config: OutputConfig | ConfiguredOutput | ConfiguredPlugin[]): ConfiguredOutput(config: ConfiguredOutput | ConfiguredOutput[]): ConfiguredOutput[]

已删除的类或接口成员

未发现。

已修改的类或接口成员

member之前之后
CodegenPlugin.plugin(schema: GraphQLSchema, documents: DocumentFile[], config: T, info?: { [key: string]: any; outputFile?: string | undefined; allPlugins?: ConfiguredPlugin[] | undefined; pluginContext?: { [key: string]: any; } | undefined; } | undefined): Promisable<PluginOutput>(schema: GraphQLSchema, documents: DocumentFile[], config: T, info?: (Partial<PluginInfo> & { [key: string]: any; }) | undefined): Promisable<PluginOutput>

新增弃用

未发现。

要求变化(engines、peer 依赖)

之前之后
engines.node>=16>=22.18.0
peerDependencies.graphql^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0^16.0.0 || ^17.0.0
新增导出 (1)
importexportkind
@graphql-codegen/plugin-helpersPluginInfointerface

把这些数据交给你的 AI 智能体

Vigia 是免费的 MCP 服务器:你的编程智能体在写代码之前就能检查版本、不兼容变更和安全漏洞。无需注册,无需 API 密钥。

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

添加到 Cursor添加到 VS Code★ 在 GitHub 上加星

任何其他 MCP 客户端
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

智能体技能(SKILL.md):告诉智能体何时使用 Vigia · 用于拉取请求的 GitHub Action

常见问题

将 @graphql-codegen/plugin-helpers 从 7 升级到 8 有哪些不兼容变更?

在 @graphql-codegen/plugin-helpers 7.4.2 与 8.0.0 之间,Vigia 发现 3 个已删除的导出、3 个已修改的签名,以及 1 个已删除或修改的类或接口成员。

@graphql-codegen/plugin-helpers 8 中弃用了哪些内容?

@graphql-codegen/plugin-helpers 8.0.0 中有 0 个导出或成员新被标记为弃用。

供智能体使用

GET https://vigia.coredls.cloud/v1/packages/npm/@graphql-codegen/plugin-helpers/upgrade?from=7.4.2&to=8.0.0