chore: migrate atomFamily from jotai/utils to jotai-family#853
chore: migrate atomFamily from jotai/utils to jotai-family#853mengxi-ream merged 2 commits intomainfrom
Conversation
Add effect and @valibot/to-json-schema as dependencies to resolve import errors from vercel-minimax-ai-provider's beta @AI-SDK packages. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The atomFamily utility from jotai/utils is deprecated and will be removed in Jotai v3. This migrates to the jotai-family package which has an identical API. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 80b4ce9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
PR Review: chore: migrate atomFamily from jotai/utils to jotai-family【Taste Score】🟢 Good taste 【Core Judgment】✅ Worth doing: This is a necessary maintenance task addressing a real deprecation warning and preparing for Jotai v3 compatibility. SummaryThis is a clean, minimal migration from the deprecated Code Quality ✅Strengths:
The change: -import { atomFamily } from 'jotai/utils'
+import { atomFamily } from 'jotai-family'This is exactly how a deprecation migration should look. Dependency Analysis 🔍Primary change (expected):
Transitive dependencies (added automatically by pnpm):
Recommendation: This is acceptable since these are legitimate peer dependencies that were likely already needed but not explicitly resolved. No action required. Potential Issues ❌None identified. The migration is straightforward and safe. Performance Considerations ✅No performance impact - this is a build-time import change only. The Security Concerns ✅No security concerns:
Test Coverage ✅Per the PR description:
This is appropriate coverage for a drop-in replacement with no behavioral changes. Checklist
VerdictApproved ✅ This is a clean, necessary migration. Ship it. 🤖 Review by Claude Code |
Type of Changes
Description
The
atomFamilyutility fromjotai/utilsis deprecated and will be removed in Jotai v3. This PR migrates to the standalonejotai-familypackage which has an identical API.Changes:
jotai-family@1.0.1as a dependencysrc/utils/atoms/provider.tsfromjotai/utilstojotai-familyRelated Issue
N/A - Addresses deprecation warning in console
How Has This Been Tested?
Checklist
Additional Information
The
jotai-familypackage is the official replacement foratomFamilyfromjotai/utils. The API is identical, so this is a drop-in replacement with no behavioral changes.🤖 Generated with Claude Code
Summary by cubic
Migrated atomFamily from jotai/utils to jotai-family to remove the deprecation warning and prep for Jotai v3. Also added missing peer dependencies to fix import errors from the vercel-minimax AI provider beta packages.
Migration
Dependencies
Written for commit 80b4ce9. Summary will update on new commits.