Conversation
BREAKING CHANGE: Updated peer dependencies to Sanity v4 and v5 - Upgraded sanity peer dependency to ^4.0.0 || ^5.0.0 - Upgraded @sanity/ui from ^1.0.0 to ^3.0.0 - Updated react and react-dom to support ^18.0.0 || ^19.0.0 - Requires Node.js v20.19 or later - Replaced useFormBuilder with useFormValue hook - Fixed build script to strip leading paths - Tested and verified compatibility with both v4 and v5 - Bumped version to 3.0.0
- Add GitHub Actions workflows for build verification and npm publishing - Add Dependabot configuration with cooldown periods - Add issue templates (bug report, feature request, question) - Add pull request template - Add CONTRIBUTING.md and CODE_OF_CONDUCT.md - Update README.md with TypeScript usage, troubleshooting, and links - Update CHANGELOG.md with fork attribution - Configure trusted publishing (OIDC) for npm - Auto-generate Git tags from package.json version - Bump version to 3.0.1
- Fix keystroke interruption when entering field for autocomplete input by removing useeffect dependency.
Improve docs for Usage and add missing Chanelogs entries
Learn moreAll Green is an AI agent that automatically: ✅ Addresses code review comments ✅ Fixes failing CI checks ✅ Resolves merge conflicts |
- Migrate from SWC to @sanity/pkg-utils (esbuild + rollup) - Change output directory: lib/ → dist/ - Add dual module exports (ESM .js + CJS .cjs) - Add .js extensions to all ESM imports for Node.js compatibility - Update to TypeScript 5.8.3 with node16 module resolution - Add eslint-config-sanity and prettier-plugin-packagejson - Add npm run link-watch for easier local development - Add format:check script for CI/CD - Update GitHub workflows to check dist/ instead of lib/ - Add dev/ and nul to .gitignore (Windows compatibility) - Add sideEffects: false for better tree-shaking - Add engines field (Node.js >=18) - Standardize code formatting (double quotes → single quotes)
…#5) - Migrate from Prettier to Oxfmt for code formatting - Add Oxlint alongside ESLint for linting - Update documentation to reflect new tooling - Add branching strategy to CONTRIBUTING.md
Owner
|
@srothgan thanks a lot for the comprehensive upgrade! I will have a look over the weekend |
- mostly replaced eslint with oxlint - eslint only for imports - removed unused packages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Overview
This PR adds full support for Sanity Studio v4 and v5, bringing the plugin up to date with the latest Sanity releases while maintaining backward compatibility patterns.
Summary of Changes
Core Compatibility Upgrades (v3.0.0)
Dependency Updates:
sanitypeer dependency to^4.0.0 || ^5.0.0(supports both v4 and v5)@sanity/uifrom^1.0.0to^3.0.0reactandreact-domto support^18.0.0 || ^19.0.0Code Updates:
useFormBuilderhook withuseFormValuehook (required for v4/v5)Bug Fixes & Improvements (v3.0.1 - v3.0.3)
v3.0.1 - Community & DevOps:
v3.0.2 - Critical Bug Fix:
useEffectdependency that was triggering unwanted updatesv3.0.3 - Documentation:
Testing
The plugin has been tested and verified with:
Maintained Fork
Since this repository hasn't been updated since 2023, I've published a maintained fork to help users who need v4/v5 support:
Attribution & Transparency
The fork includes:
Collaboration Commitment
I'm happy to:
Breaking Changes
Version 3.0.0 introduces breaking changes for users on older Sanity versions:
Migration Path:
Files Changed
Core functionality:
src/AutoCompleteInput.tsx- Updated hooks and fixed re-render bugpackage.json- Updated dependencies and metadataDocumentation:
README.md- Enhanced with examples, troubleshooting, succession noticeCHANGELOG.md- Full version historyCONTRIBUTING.md- Contribution guidelinesCODE_OF_CONDUCT.md- Community standardsDevOps:
.github/workflows/verify.yml- Build verification.github/workflows/publish.yml- Automated npm publishing.github/dependabot.yml- Dependency automation.github/ISSUE_TEMPLATE/*- Issue templates.github/PULL_REQUEST_TEMPLATE.md- PR templateRelated Issues
This PR addresses the community need for Sanity Studio v4 and v5 compatibility, which has been a blocker for users upgrading their Sanity installations.
Thank you for creating this useful plugin! I hope these updates are helpful. Open to any feedback or changes you'd like to see.