Upgrading @wordpress/primitives from 4.x to 5.x
Comparison of the public API of @wordpress/primitives 4.57.0 and 5.0.0, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.
Summary
| Removed import paths | 0 |
|---|---|
| Removed exports | 0 |
| Changed signatures | 10 |
| Removed class or interface members | 0 |
| Changed class or interface members | 0 |
| Newly deprecated | 0 |
| Requirement changes (engines, peer dependencies) | 1 |
| New exports | 0 |
Removed exports
None detected.
Changed signatures
| export | Before | After |
|---|---|---|
@wordpress/primitives · G | (props: React.ComponentPropsWithoutRef<"g">): React.JSX.Element | (props: ComponentPropsWithoutRef<"g">): any |
@wordpress/primitives · Defs | (props: React.ComponentPropsWithoutRef<"defs">): React.JSX.Element | (props: ComponentPropsWithoutRef<"defs">): any |
@wordpress/primitives · Line | (props: React.ComponentPropsWithoutRef<"line">): React.JSX.Element | (props: ComponentPropsWithoutRef<"line">): any |
@wordpress/primitives · Path | (props: React.ComponentPropsWithoutRef<"path">): React.JSX.Element | (props: ComponentPropsWithoutRef<"path">): any |
@wordpress/primitives · Rect | (props: React.ComponentPropsWithoutRef<"rect">): React.JSX.Element | (props: ComponentPropsWithoutRef<"rect">): any |
@wordpress/primitives · Stop | (props: React.ComponentPropsWithoutRef<"stop">): React.JSX.Element | (props: ComponentPropsWithoutRef<"stop">): any |
@wordpress/primitives · Circle | (props: React.ComponentPropsWithoutRef<"circle">): React.JSX.Element | (props: ComponentPropsWithoutRef<"circle">): any |
@wordpress/primitives · Polygon | (props: React.ComponentPropsWithoutRef<"polygon">): React.JSX.Element | (props: ComponentPropsWithoutRef<"polygon">): any |
@wordpress/primitives · LinearGradient | (props: React.ComponentPropsWithoutRef<"linearGradient">): React.JSX.Element | (props: ComponentPropsWithoutRef<"linearGradient">): any |
@wordpress/primitives · RadialGradient | (props: React.ComponentPropsWithoutRef<"radialGradient">): React.JSX.Element | (props: ComponentPropsWithoutRef<"radialGradient">): any |
Removed class or interface members
None detected.
Changed class or interface members
None detected.
Newly deprecated
None detected.
Requirement changes (engines, peer dependencies)
| Before | After | |
|---|---|---|
engines.node | >=18.12.0 | >=22.13.0 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What are the breaking changes when upgrading @wordpress/primitives from 4 to 5?
Between @wordpress/primitives 4.57.0 and 5.0.0, Vigia found 0 removed exports, 10 changed signatures and 0 removed or changed class or interface members.
What became deprecated in @wordpress/primitives 5?
0 exports or members are newly marked as deprecated in @wordpress/primitives 5.0.0.
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/@wordpress/primitives/upgrade?from=4.57.0&to=5.0.0