Update to Sanity v4, update dependencies, fix TypeScript build error #73
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.
Description of changes
Hi! I'm simply looking to get this plugin up to the Sanity v4. It's okay if you don't want to merge this PR, but I figured I'd do my due diligence here 😄
Fixes #72
How to validate the changes
Most of the changes are simply updating to latest version, which I did test the plugin still worked as well as I knew how. Additionally, I had to make a the small changes to
src/hooks/usePageTree.tsandsrc/hooks/usePageTreeItem.tsto get the typescript not to error out. Thanks!✅ Definition of Done
This checklist helps with risk management during software development. It is not a mandatory list to fully check off, but a basis for thinking about quality, safety, and best practices. Feel free to adapt it for your own project — as long as the risks are consciously managed.
📄 Documentation & Knowledge Sharing
README.md🧪 Testing & Quality
📊 Monitoring & Performance
🔐 Security & Privacy
🧩 Traceability & Readiness
[R2025-1234] Meaningful title)TODOs remain in the code (unless followed up with a Jira ticket)🤝 Review & Collaboration