Skip to content

fix(sanity): align workspace dependency versions - #1980

Open
eoinest wants to merge 4 commits into
mainfrom
e/sanity/align-sanity-dependencies
Open

fix(sanity): align workspace dependency versions#1980
eoinest wants to merge 4 commits into
mainfrom
e/sanity/align-sanity-dependencies

Conversation

@eoinest

@eoinest eoinest commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • align gt-sanity's Sanity development and type dependencies with Sanity 5.31.1
  • align its React development peer context with workspace consumers
  • regenerate the pnpm peer dependency graph so workspace consumers receive compatible Sanity types
  • declare the Node.js versions supported by Sanity 5.31.1
  • add a patch changeset for gt-sanity

This fixes both the duplicate Sanity 5.19/5.31 identities and the split React peer variants that made gtPlugin() incompatible with a consumer's defineConfig().

Testing

  • pnpm --filter gt-sanity typecheck
  • pnpm --filter gt-sanity test (149 tests)
  • pnpm --filter gt-sanity build
  • temporary compile check combining defineConfig() from Sanity 5.31.1 with gtPlugin()
  • pnpm exec oxfmt --check packages/sanity/package.json .changeset/align-sanity-workspace.md
  • git diff --check

Notes

PR #1977 is retargeted to this branch as a dependent stacked PR.

Greptile Summary

This PR aligns gt-sanity with the workspace’s Sanity and React versions. The main changes are:

  • Upgrades Sanity development and type dependencies to 5.31.1.
  • Aligns React development dependencies with workspace consumers.
  • Updates the supported Node.js range.
  • Regenerates the pnpm dependency graph.
  • Adds a patch changeset for gt-sanity.

Confidence Score: 5/5

This looks safe to merge.

  • The updated Node.js range matches Sanity 5.31.1 and resolves the reported compatibility gap.
  • No blocking issue remains in the changed code.

Important Files Changed

Filename Overview
packages/sanity/package.json Aligns Sanity and React dependencies and matches the Node.js range required by Sanity 5.31.1.
pnpm-lock.yaml Regenerates workspace resolutions for the updated Sanity and React dependency graph.
.changeset/align-sanity-workspace.md Adds a patch release note for the dependency alignment.

Reviews (3): Last reviewed commit: "fix(sanity): skip obsolete Node engine c..." | Re-trigger Greptile

Comment thread packages/sanity/package.json
@eoinest

eoinest commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

@greptileai

@eoinest

eoinest commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

@greptileai

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.

1 participant