@graphiql/react を 0.x から 1.x へアップグレード
@graphiql/react 0.39.1 と 1.0.0 の公開 API を、TypeScript の型から自動的に比較したものです。シグネチャの変更は破壊的変更の候補であり、確定ではありません。
概要
| 削除されたインポートパス | 0 |
|---|---|
| 削除されたエクスポート | 15 |
| 変更されたシグネチャ | 3 |
| 削除されたクラス/インターフェースのメンバー | 2 |
| 変更されたクラス/インターフェースのメンバー | 1 |
| 新たに非推奨 | 1 |
| 要件の変更(engines、peer 依存関係) | 1 |
| 新しいエクスポート | 45 |
削除されたエクスポート
| import | export | kind | 変更前 |
|---|---|---|---|
@graphiql/react | cn | variable | any |
@graphiql/react | useTheme | function | (): { setTheme: (newTheme: Theme) => void; theme: Theme; } |
@graphiql/react | useStorage | variable | (): any |
@graphiql/react | useCopyQuery | function | (): () => Promise<void> |
@graphiql/react | useMergeQuery | function | (): () => void |
@graphiql/react | useEditorStore | variable | (): { externalFragments: Map<string, any>; shouldPersistHeaders: boolean; initialQuery: string; initialVariables: string; initialHeaders: string; headerEditor?: any; queryEditor?: any; responseEditor?: any; variableEditor?: any; addTab: () => void; changeTab: (index: number) => void; moveTab: (newOrder: TabState[]) => void; closeTab: (index: number) => void; updateActiveTabValues: (partialTab: Partial<Omit<TabState, "id" | "hash" | "title">>) => void; setHeaderEditor: (headerEditor: monaco.editor.IStandaloneCodeEditor) => void; setQueryEditor: (queryEditor: monaco.editor.IStandaloneCodeEditor)… |
@graphiql/react | usePluginStore | variable | (): { plugins: GraphiQLPlugin[]; visiblePlugin: GraphiQLPlugin | null; setVisiblePlugin: (plugin?: string | GraphiQLPlugin | null | undefined) => void; } |
@graphiql/react | useSchemaStore | variable | (): { isFetching: boolean; fetchError: string | null; schema: any; validationErrors: readonly any[]; introspect: () => Promise<void>; } |
@graphiql/react | useEditorContext | function | (): { externalFragments: Map<string, any>; shouldPersistHeaders: boolean; initialQuery: string; initialVariables: string; initialHeaders: string; headerEditor?: any; queryEditor?: any; responseEditor?: any; variableEditor?: any; addTab: () => void; changeTab: (index: number) => void; moveTab: (newOrder: TabState[]) => void; closeTab: (index: number) => void; updateActiveTabValues: (partialTab: Partial<Omit<TabState, "id" | "hash" | "title">>) => void; setHeaderEditor: (headerEditor: monaco.editor.IStandaloneCodeEditor) => void; setQueryEditor: (queryEditor: monaco.editor.IStandaloneCodeEditor)… |
@graphiql/react | usePluginContext | function | (): { plugins: GraphiQLPlugin[]; visiblePlugin: GraphiQLPlugin | null; setVisiblePlugin: (plugin?: string | GraphiQLPlugin | null | undefined) => void; } |
@graphiql/react | useSchemaContext | function | (): { isFetching: boolean; fetchError: string | null; schema: any; validationErrors: readonly any[]; introspect: () => Promise<void>; } |
@graphiql/react | useExecutionStore | variable | (): { isFetching: boolean; isSubscribed: boolean; operationName: string | undefined; run: () => void; stop: () => void; } |
@graphiql/react | useStorageContext | variable | (): any |
@graphiql/react | usePrettifyEditors | function | (): () => Promise<void> |
@graphiql/react | useExecutionContext | function | (): { isFetching: boolean; isSubscribed: boolean; operationName: string | undefined; run: () => void; stop: () => void; } |
変更されたシグネチャ
| export | 変更前 | 変更後 |
|---|---|---|
@graphiql/react · Theme | "light" | "dark" | null | "dark" | "light" | null |
@graphiql/react · KEY_MAP | Readonly<{ prettify: { key: string; keybindings: number[]; }; mergeFragments: { key: string; keybindings: number[]; }; runQuery: { key: string; keybindings: number[]; }; autoComplete: { key: string; }; copyQuery: { key: string; keybindings: number[]; }; refetchSchema: { key: string; }; searchInEditor: { key: string; }; searchInDocs: { key: string; }; }> | Readonly<{ prettify: { key: string; keybindings: number[]; }; mergeFragments: { key: string; keybindings: number[]; }; runQuery: { key: string; keybindings: number[]; }; autoComplete: { key: string; }; copyQuery: { key: string; keybindings: number[]; }; saveQuery: { key: string; keybindings: number[]; }; refetchSchema: { key: string; }; searchInEditor: { key: string; }; searchInDocs: { key: string; }; }> |
@graphiql/react · debounce | <F extends (...args: any[]) => any>(duration: number, fn: F): F | <F extends (...args: any[]) => any>(duration: number, fn: F): DebouncedFn<F> |
削除されたクラス/インターフェースのメンバー
| member | import | 変更前 |
|---|---|---|
SlicesWithActions.monacoTheme | @graphiql/react | any |
SlicesWithActions.overrideOperationName | @graphiql/react | string | null |
変更されたクラス/インターフェースのメンバー
| member | 変更前 | 変更後 |
|---|---|---|
SlicesWithActions.fetcher | Fetcher | any |
新たに非推奨
| export | @deprecated |
|---|---|
@graphiql/react · SlicesWithActions.fetcher | Pass a `transport` instead. The `Fetcher` contract cannot surface HTTP wire metadata (status, headers, timing, size). See `docs/migration/graphiql-6.0.0.md`. |
要件の変更(engines、peer 依存関係)
| 変更前 | 変更後 | |
|---|---|---|
peerDependencies.graphql | ^15.5.0 || ^16.0.0 || ^17.0.0 | ^16.11.0 || ^17.0.0 |
新しいエクスポート (45)
| import | export | kind |
|---|---|---|
@graphiql/react | TopBar | variable |
@graphiql/react | Density | type |
@graphiql/react | FontSize | type |
@graphiql/react | MODIFIER | variable |
@graphiql/react | SaveIcon | variable |
@graphiql/react | CleanupFn | type |
@graphiql/react | Operation | variable |
@graphiql/react | SidePanel | variable |
@graphiql/react | StatusBar | variable |
@graphiql/react | KeycapHint | variable |
@graphiql/react | MethodPill | variable |
@graphiql/react | ModifierKey | type |
@graphiql/react | PanelHeader | variable |
@graphiql/react | SaveHandler | type |
@graphiql/react | TopBarProps | type |
@graphiql/react | ActivityRail | variable |
@graphiql/react | ResponseView | type |
@graphiql/react | typeCategory | function |
@graphiql/react | SettingsTheme | type |
@graphiql/react | VarHeadersTab | type |
@graphiql/react | PortalProvider | variable |
@graphiql/react | SettingsDialog | variable |
@graphiql/react | GraphQLLogoIcon | variable |
@graphiql/react | KeycapHintProps | type |
@graphiql/react | MethodPillProps | type |
@graphiql/react | VarHeadersStrip | variable |
@graphiql/react | ConnectionStatus | type |
@graphiql/react | GraphiQLSettings | type |
@graphiql/react | PanelHeaderProps | type |
@graphiql/react | QueryBuilderIcon | variable |
@graphiql/react | SegmentedControl | function |
@graphiql/react | ActivityRailProps | interface |
@graphiql/react | OnResponseCallback | type |
@graphiql/react | usePortalContainer | function |
@graphiql/react | GraphQLTypeCategory | type |
@graphiql/react | SettingsDialogProps | interface |
@graphiql/react | useGraphiQLSettings | function |
@graphiql/react | OnBeforeSendCallback | type |
@graphiql/react | SETTINGS_STORAGE_KEY | variable |
@graphiql/react | VarHeadersStripProps | type |
@graphiql/react | GraphiQLPluginContext | type |
@graphiql/react | SegmentedControlProps | type |
@graphiql/react | PluginTransportContext | type |
@graphiql/react | SegmentedControlOption | type |
@graphiql/react | useGraphiQLPluginContext | function |
このデータを 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/react を 0 から 1 にアップグレードする際の破壊的変更は?
@graphiql/react 0.39.1 と 1.0.0 の間で、Vigia は削除されたエクスポートを 15 件、変更されたシグネチャを 3 件、削除または変更されたクラス/インターフェースのメンバーを 3 件検出しました。
@graphiql/react 1 で非推奨になったものは?
@graphiql/react 1.0.0 では 1 件のエクスポートまたはメンバーが新たに非推奨になりました。
エージェント向け
GET https://vigia.coredls.cloud/v1/packages/npm/@graphiql/react/upgrade?from=0.39.1&to=1.0.0