@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