ترقية @graphiql/react من 0.x إلى 1.x
مقارنة الواجهة العامة لـ @graphiql/react بين 0.39.1 و1.0.0، محسوبة تلقائيًا من أنواع 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 |
زوّد وكيل الذكاء الاصطناعي بهذه البيانات
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؟
عُلِّم 1 من الصادرات أو الأعضاء حديثًا على أنها موقوفة في @graphiql/react 1.0.0.
للوكلاء
GET https://vigia.coredls.cloud/v1/packages/npm/@graphiql/react/upgrade?from=0.39.1&to=1.0.0