Vigia

Upgrading @radix-ui/react-context from 0.x to 1.x

Comparison of the public API of @radix-ui/react-context 0.1.1 and 1.2.2, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.

Summary

Removed import paths0
Removed exports1
Changed signatures2
Removed class or interface members0
Changed class or interface members0
Newly deprecated0
Requirement changes (engines, peer dependencies)2
New exports0

Removed exports

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

Changed signatures

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

Removed class or interface members

None detected.

Changed class or interface members

None detected.

Newly deprecated

None detected.

Requirement changes (engines, peer dependencies)

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

Frequently asked questions

What are the breaking changes when upgrading @radix-ui/react-context from 0 to 1?

Between @radix-ui/react-context 0.1.1 and 1.2.2, Vigia found 1 removed exports, 2 changed signatures and 0 removed or changed class or interface members.

What became deprecated in @radix-ui/react-context 1?

0 exports or members are newly marked as deprecated in @radix-ui/react-context 1.2.2.

For agents

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