Sitelet https://github.com/limitless-angular/limitless-angular/pull/36
Skip to content

feat(sanity): widen supported sanity dependency majors - #36

Merged
osnoser1 merged 2 commits into
mainfrom
osnoser1/sanity-dependency-compat
Jun 8, 2026
Merged

osnoser1 merged 2 commits into
mainfrom
osnoser1/sanity-dependency-compat

Conversation

@osnoser1

@osnoser1 osnoser1 commented Jun 8, 2026

Copy link
Copy Markdown
Member

Summary

  • Widen Sanity-related peer dependency ranges for @limitless-angular/sanity and helper entrypoints.
  • Support current allowed majors for @sanity/client, @sanity/image-url, @portabletext/toolkit, @portabletext/types, and @sanity/types without dropping existing peer support.
  • Keep @sanity/comlink and @sanity/visual-editing constrained where compatibility checks showed newer majors need more work.
  • Add local image-loader structural types so @sanity/image-url v1 and v2 can both be supported.
  • Update compat consumer generation to resolve helper peer ranges from the helper package manifests.
  • Align example/dev dependency resolution to the recent supported Sanity peer versions.
  • Loosen Portable Text component override maps to Partial<Record<...>>, matching the runtime merge behavior and allowing sparse overrides with @portabletext/types v4.

Why

Angular 18/19 support needs validation against the supported Sanity dependency majors directly. The previous dependency ranges and local examples did not exercise the newest compatible Sanity peer versions, and Portable Text v4 exposed that our component override type was stricter than the renderer behavior.

Validation

  • pnpm --filter @limitless-angular/sanity lint
  • pnpm --filter @limitless-angular/sanity test
  • pnpm --filter @limitless-angular/sanity build
  • pnpm --filter @limitless-angular/angular-compat test
  • pnpm --filter analog-sanity-blog-example build
  • pnpm --filter sanity-example build
  • pnpm turbo run e2e --filter=sanity-presentation-e2e
  • pnpm compat
  • pnpm compat:release-parity
  • pnpm turbo run e2e-studio --filter=sanity-presentation-e2e
  • pnpm turbo run e2e-real-studio --filter=sanity-presentation-e2e

Note: pnpm peers check still reports unrelated existing workspace peer issues outside this Sanity compatibility change.

@netlify

netlify Bot commented Jun 8, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for limitless-angular-sanity-example ready!

Name Link
🔨 Latest commit d076b56
🔍 Latest deploy log https://app.netlify.com/projects/limitless-angular-sanity-example/deploys/6a261a3ae7899d00089fe53c
😎 Deploy Preview https://deploy-preview-36--limitless-angular-sanity-example.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new

pkg-pr-new Bot commented Jun 8, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@limitless-angular/sanity@36

commit: d076b56

@osnoser1
osnoser1 marked this pull request as ready for review June 8, 2026 01:27
@osnoser1
osnoser1 merged commit 1a64d22 into main Jun 8, 2026
15 checks passed
@osnoser1
osnoser1 deleted the osnoser1/sanity-dependency-compat branch June 8, 2026 01:33
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