ترقية @radix-ui/react-context من 0.x إلى 1.x
مقارنة الواجهة العامة لـ @radix-ui/react-context بين 0.1.1 و1.2.2، محسوبة تلقائيًا من أنواع TypeScript. التوقيع المعدّل تغيير محتمل غير متوافق، وليس أمرًا مؤكدًا.
الملخص
| مسارات الاستيراد المحذوفة | 0 |
|---|---|
| الصادرات المحذوفة | 1 |
| التوقيعات المعدّلة | 2 |
| أعضاء الأصناف أو الواجهات المحذوفة | 0 |
| أعضاء الأصناف أو الواجهات المعدّلة | 0 |
| موقوفة حديثًا | 0 |
| تغييرات المتطلبات (engines واعتماديات peer) | 2 |
| صادرات جديدة | 0 |
الصادرات المحذوفة
| import | export | kind | قبل |
|---|---|---|---|
@radix-ui/react-context | ScopeHook | type | (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؟
عُلِّم 0 من الصادرات أو الأعضاء حديثًا على أنها موقوفة في @radix-ui/react-context 1.2.2.
للوكلاء
GET https://vigia.coredls.cloud/v1/packages/npm/@radix-ui/react-context/upgrade?from=0.1.1&to=1.2.2