Aktualizacja @radix-ui/react-context z 0.x do 1.x
Porównanie publicznego API @radix-ui/react-context 0.1.1 i 1.2.2, obliczone automatycznie na podstawie typów TypeScript. Zmieniona sygnatura to możliwa zmiana niekompatybilna, a nie pewność.
Podsumowanie
| Usunięte ścieżki importu | 0 |
|---|---|
| Usunięte eksporty | 1 |
| Zmienione sygnatury | 2 |
| Usunięte składowe klas lub interfejsów | 0 |
| Zmienione składowe klas lub interfejsów | 0 |
| Nowo wycofane | 0 |
| Zmiany wymagań (engines, zależności peer) | 2 |
| Nowe eksporty | 0 |
Usunięte eksporty
| import | export | kind | Przed |
|---|---|---|---|
@radix-ui/react-context | ScopeHook | type | (scope: Scope<any>) => { [__scopeProp: string]: Scope<any>; } |
Zmienione sygnatury
| export | Przed | Po |
|---|---|---|
@radix-ui/react-context · createContext | <ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType | undefined): readonly [{ (props: ContextValueType & { children: React.ReactNode; }): JSX.Element; displayName: string; }, (consumerName: string) => ContextValueType] | <ContextValueType extends object | null>(rootComponentName: string): readonly [React.FC<ContextValueType & { children: React.ReactNode; }>, UseContext<ContextValueType>] | <ContextValueType extends object | null>(rootComponentName: string, defaultContext: ContextValueType): readonly [React.FC<ContextValueType & { children: React.ReactNode; }>, UseAssertedContext<ContextValueType>] |
@radix-ui/react-context · createContextScope | (scopeName: string, createContextScopeDeps?: CreateScope[] | undefined): readonly [<ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType | undefined) => readonly [{ (props: ContextValueType & { scope: Scope<ContextValueType>; children: React.ReactNode; }): JSX.Element; displayName: string; }, (consumerName: string, scope: Scope<ContextValueType | undefined>) => ContextValueType], CreateScope] | (scopeName: string, createContextScopeDeps?: CreateScope[] | undefined): readonly [CreateScopedContext, CreateScope] |
Usunięte składowe klas lub interfejsów
Nie wykryto.
Zmienione składowe klas lub interfejsów
Nie wykryto.
Nowo wycofane
Nie wykryto.
Zmiany wymagań (engines, zależności peer)
| Przed | Po | |
|---|---|---|
peerDependencies.react | ^16.8 || ^17.0 | ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc |
peerDependencies.@types/react | — | * |
Najczęściej zadawane pytania
Jakie są zmiany niekompatybilne przy aktualizacji @radix-ui/react-context z 0 do 1?
Między @radix-ui/react-context 0.1.1 a 1.2.2 Vigia znalazła 1 usuniętych eksportów, 2 zmienionych sygnatur i 0 usuniętych lub zmienionych składowych klas lub interfejsów.
Co zostało wycofane w @radix-ui/react-context 1?
0 eksportów lub składowych oznaczono w @radix-ui/react-context 1.2.2 jako wycofane.
Dla agentów
GET https://vigia.coredls.cloud/v1/packages/npm/@radix-ui/react-context/upgrade?from=0.1.1&to=1.2.2