Home › Upgradegidsen › @graphiql/react › 0 → 1 @graphiql/react upgraden van 0.x naar 1.x
Vergelijking van de publieke API van @graphiql/react 0.39.1 en 1.0.0, automatisch berekend uit hun TypeScript-types. Een gewijzigde signatuur is een mogelijke brekende wijziging, geen zekerheid.
Samenvatting Verwijderde importpaden 0 Verwijderde exports 15 Gewijzigde signaturen 3 Verwijderde leden van klassen of interfaces 2 Gewijzigde leden van klassen of interfaces 1 Nieuw als verouderd gemarkeerd 1 Gewijzigde vereisten (engines, peer-afhankelijkheden) 1 Nieuwe exports 45
Verwijderde exports import export kind Voor @graphiql/reactcnvariable any@graphiql/reactuseThemefunction (): { setTheme: (newTheme: Theme) => void; theme: Theme; }@graphiql/reactuseStoragevariable (): any@graphiql/reactuseCopyQueryfunction (): () => Promise<void>@graphiql/reactuseMergeQueryfunction (): () => void@graphiql/reactuseEditorStorevariable (): { 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/reactusePluginStorevariable (): { plugins: GraphiQLPlugin[]; visiblePlugin: GraphiQLPlugin | null; setVisiblePlugin: (plugin?: string | GraphiQLPlugin | null | undefined) => void; }@graphiql/reactuseSchemaStorevariable (): { isFetching: boolean; fetchError: string | null; schema: any; validationErrors: readonly any[]; introspect: () => Promise<void>; }@graphiql/reactuseEditorContextfunction (): { 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/reactusePluginContextfunction (): { plugins: GraphiQLPlugin[]; visiblePlugin: GraphiQLPlugin | null; setVisiblePlugin: (plugin?: string | GraphiQLPlugin | null | undefined) => void; }@graphiql/reactuseSchemaContextfunction (): { isFetching: boolean; fetchError: string | null; schema: any; validationErrors: readonly any[]; introspect: () => Promise<void>; }@graphiql/reactuseExecutionStorevariable (): { isFetching: boolean; isSubscribed: boolean; operationName: string | undefined; run: () => void; stop: () => void; }@graphiql/reactuseStorageContextvariable (): any@graphiql/reactusePrettifyEditorsfunction (): () => Promise<void>@graphiql/reactuseExecutionContextfunction (): { isFetching: boolean; isSubscribed: boolean; operationName: string | undefined; run: () => void; stop: () => void; }
Gewijzigde signaturen export Voor Na @graphiql/react · Theme"light" | "dark" | null"dark" | "light" | null@graphiql/react · KEY_MAPReadonly<{ 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>
Verwijderde leden van klassen of interfaces member import Voor SlicesWithActions.monacoTheme@graphiql/reactanySlicesWithActions.overrideOperationName@graphiql/reactstring | null
Gewijzigde leden van klassen of interfaces member Voor Na SlicesWithActions.fetcherFetcherany
Nieuw als verouderd gemarkeerd export @deprecated @graphiql/react · SlicesWithActions.fetcherPass a `transport` instead. The `Fetcher` contract cannot
surface HTTP wire metadata (status, headers, timing, size). See
`docs/migration/graphiql-6.0.0.md`.
Gewijzigde vereisten (engines, peer-afhankelijkheden) Voor Na peerDependencies.graphql^15.5.0 || ^16.0.0 || ^17.0.0^16.11.0 || ^17.0.0
Nieuwe exports (45) import export kind @graphiql/reactTopBarvariable @graphiql/reactDensitytype @graphiql/reactFontSizetype @graphiql/reactMODIFIERvariable @graphiql/reactSaveIconvariable @graphiql/reactCleanupFntype @graphiql/reactOperationvariable @graphiql/reactSidePanelvariable @graphiql/reactStatusBarvariable @graphiql/reactKeycapHintvariable @graphiql/reactMethodPillvariable @graphiql/reactModifierKeytype @graphiql/reactPanelHeadervariable @graphiql/reactSaveHandlertype @graphiql/reactTopBarPropstype @graphiql/reactActivityRailvariable @graphiql/reactResponseViewtype @graphiql/reacttypeCategoryfunction @graphiql/reactSettingsThemetype @graphiql/reactVarHeadersTabtype @graphiql/reactPortalProvidervariable @graphiql/reactSettingsDialogvariable @graphiql/reactGraphQLLogoIconvariable @graphiql/reactKeycapHintPropstype @graphiql/reactMethodPillPropstype @graphiql/reactVarHeadersStripvariable @graphiql/reactConnectionStatustype @graphiql/reactGraphiQLSettingstype @graphiql/reactPanelHeaderPropstype @graphiql/reactQueryBuilderIconvariable @graphiql/reactSegmentedControlfunction @graphiql/reactActivityRailPropsinterface @graphiql/reactOnResponseCallbacktype @graphiql/reactusePortalContainerfunction @graphiql/reactGraphQLTypeCategorytype @graphiql/reactSettingsDialogPropsinterface @graphiql/reactuseGraphiQLSettingsfunction @graphiql/reactOnBeforeSendCallbacktype @graphiql/reactSETTINGS_STORAGE_KEYvariable @graphiql/reactVarHeadersStripPropstype @graphiql/reactGraphiQLPluginContexttype @graphiql/reactSegmentedControlPropstype @graphiql/reactPluginTransportContexttype @graphiql/reactSegmentedControlOptiontype @graphiql/reactuseGraphiQLPluginContextfunction
Geef je AI-agent deze feiten
Veelgestelde vragen
Wat zijn de brekende wijzigingen bij het upgraden van @graphiql/react van 0 naar 1? Tussen @graphiql/react 0.39.1 en 1.0.0 vond Vigia 15 verwijderde exports, 3 gewijzigde signaturen en 3 verwijderde of gewijzigde leden van klassen of interfaces.
Wat is verouderd in @graphiql/react 1? 1 exports of leden zijn in @graphiql/react 1.0.0 nieuw als verouderd gemarkeerd.
Voor agents
GET https://vigia.coredls.cloud/v1/packages/npm/@graphiql/react/upgrade?from=0.39.1&to=1.0.0