Vigia

Memperbarui @radix-ui/react-context dari 0.x ke 1.x

Perbandingan API publik @radix-ui/react-context 0.1.1 dan 1.2.2, dihitung otomatis dari tipe TypeScript-nya. Tanda tangan yang berubah adalah kemungkinan perubahan tidak kompatibel, bukan kepastian.

Ringkasan

Jalur impor yang dihapus0
Ekspor yang dihapus1
Tanda tangan yang berubah2
Anggota kelas atau antarmuka yang dihapus0
Anggota kelas atau antarmuka yang berubah0
Baru ditandai usang0
Perubahan persyaratan (engines, dependensi peer)2
Ekspor baru0

Ekspor yang dihapus

importexportkindSebelum
@radix-ui/react-contextScopeHooktype(scope: Scope<any>) => { [__scopeProp: string]: Scope<any>; }

Tanda tangan yang berubah

exportSebelumSesudah
@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]

Anggota kelas atau antarmuka yang dihapus

Tidak ada yang terdeteksi.

Anggota kelas atau antarmuka yang berubah

Tidak ada yang terdeteksi.

Baru ditandai usang

Tidak ada yang terdeteksi.

Perubahan persyaratan (engines, dependensi peer)

SebelumSesudah
peerDependencies.react^16.8 || ^17.0^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependencies.@types/react—*

Pertanyaan umum

Apa saja perubahan tidak kompatibel saat memperbarui @radix-ui/react-context dari 0 ke 1?

Antara @radix-ui/react-context 0.1.1 dan 1.2.2, Vigia menemukan 1 ekspor yang dihapus, 2 tanda tangan yang berubah, dan 0 anggota kelas atau antarmuka yang dihapus atau berubah.

Apa yang ditandai usang di @radix-ui/react-context 1?

0 ekspor atau anggota baru ditandai usang di @radix-ui/react-context 1.2.2.

Untuk agen

GET https://vigia.coredls.cloud/v1/packages/npm/@radix-ui/react-context/upgrade?from=0.1.1&to=1.2.2