Skip to content

fix: widen sanity peer dependency to support v4 and v5#30

Open
torleifhalseth wants to merge 1 commit into
Frontify:mainfrom
torleifhalseth:fix/support-sanity-v5-react-19
Open

fix: widen sanity peer dependency to support v4 and v5#30
torleifhalseth wants to merge 1 commit into
Frontify:mainfrom
torleifhalseth:fix/support-sanity-v5-react-19

Conversation

@torleifhalseth
Copy link
Copy Markdown

Widens the sanity peer dependency from ^3 to ^3 || ^4 || ^5, allowing projects on Sanity v4 or v5 to install the plugin without unmet peer dependency warnings.

The plugin's API surface (definePlugin, AssetSourceComponentProps) is stable across all three major versions, and the devDependency already targets ^4. The react peer dep and @sanity/ui dependency were already updated on main to support React 19 and @sanity/ui@3.

Closes #29

The peer dependency on sanity was pinned to ^3, but the plugin's
API surface (definePlugin, AssetSourceComponentProps) is stable
across Sanity v3, v4, and v5. The devDependency already uses ^4.

This allows projects on Sanity v4 or v5 to install without
unmet peer dependency warnings.

Closes Frontify#29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for Sanity v5 and React 19

1 participant