Vigia

@radix-ui/react-context を 0.x から 1.x へアップグレード

@radix-ui/react-context 0.1.1 と 1.2.2 の公開 API を、TypeScript の型から自動的に比較したものです。シグネチャの変更は破壊的変更の候補であり、確定ではありません。

概要

削除されたインポートパス0
削除されたエクスポート1
変更されたシグネチャ2
削除されたクラス/インターフェースのメンバー0
変更されたクラス/インターフェースのメンバー0
新たに非推奨0
要件の変更(engines、peer 依存関係)2
新しいエクスポート0

削除されたエクスポート

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

変更されたシグネチャ

export変更前変更後
@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]

削除されたクラス/インターフェースのメンバー

検出されませんでした。

変更されたクラス/インターフェースのメンバー

検出されませんでした。

新たに非推奨

検出されませんでした。

要件の変更(engines、peer 依存関係)

変更前変更後
peerDependencies.react^16.8 || ^17.0^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
peerDependencies.@types/react—*

よくある質問

@radix-ui/react-context を 0 から 1 にアップグレードする際の破壊的変更は?

@radix-ui/react-context 0.1.1 と 1.2.2 の間で、Vigia は削除されたエクスポートを 1 件、変更されたシグネチャを 2 件、削除または変更されたクラス/インターフェースのメンバーを 0 件検出しました。

@radix-ui/react-context 1 で非推奨になったものは?

@radix-ui/react-context 1.2.2 では 0 件のエクスポートまたはメンバーが新たに非推奨になりました。

エージェント向け

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