Vigia

将 graphiql 从 5.x 升级到 6.x

根据 TypeScript 类型自动比较 graphiql 5.4.0 与 6.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。

概要

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

已删除的导出

未发现。

已修改的签名

export之前之后
graphiql · GraphiQLPropsinterfaceGraphiQLInterfaceProps & Omit<ComponentPropsWithoutRef<any>, "children"> & (Omit<ComponentPropsWithoutRef<any>, "children" | "fetcher" | "plugins" | "transport"> & ({ plugins?: readonly GraphiQLPlugin[] | undefined; } & ({ fetcher: Fetcher; transport?: undefined; } | { transport: Transport; fetcher?: undefined; })))
graphiql · GraphiQLInterface({ forcedTheme, isHeadersEditorEnabled, defaultEditorToolsVisibility, children: $children, confirmCloseTab, className, onEditQuery, onEditVariables, onEditHeaders, responseTooltip, showPersistHeadersSettings, }: GraphiQLInterfaceProps): anyFC<GraphiQLInterfaceProps>

已删除的类或接口成员

未发现。

已修改的类或接口成员

未发现。

新增弃用

未发现。

要求变化(engines、peer 依赖)

之前之后
peerDependencies.graphql^15.5.0 || ^16.0.0 || ^17.0.0^16.11.0 || ^17.0.0
新增导出 (3)
importexportkind
graphiqlDEFAULT_PLUGINSvariable
graphiqlCOLLECTIONS_PLUGINvariable
graphiqlQUERY_BUILDER_PLUGINvariable

把这些数据交给你的 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

常见问题

将 graphiql 从 5 升级到 6 有哪些不兼容变更?

在 graphiql 5.4.0 与 6.0.0 之间,Vigia 发现 0 个已删除的导出、2 个已修改的签名,以及 0 个已删除或修改的类或接口成员。

graphiql 6 中弃用了哪些内容?

graphiql 6.0.0 中有 0 个导出或成员新被标记为弃用。

供智能体使用

GET https://vigia.coredls.cloud/v1/packages/npm/graphiql/upgrade?from=5.4.0&to=6.0.0