Skip to content

Upgrade zustand to v5 — breaking type changes in stores and tests #27

@EVWorth

Description

@EVWorth

$## Context\n\nPR #21 (dependabot) attempted to upgrade zustand from 4.5.7 to 5.0.12, but the major version bump has breaking type changes.\n\n## Breaking Changes\n\nZustand v5 changed how stores are created/types work. Test mocks no longer overlap with the new types:\n\n- ConnectionState — now requires loading, error, loadProfiles, saveProfile and more\n- ResultState — now requires activeResultIndex, explainResult, explainAnalyze, showExplain and more\n\nAffected test file:\n\n- useQueryExecution.test.ts — Lines 23, 31 — mock objects missing required store properties\n\nLikely code changes needed:\n\n- Store creation API may have changed\n- Test mocks need updated interfaces\n- May need to review create API changes between v4 and v5\n\n## Acceptance Criteria\n\n- [ ] Zustand store types reviewed for v5 changes\n- [ ] All test mocks updated to match new store interfaces\n- [ ] npm run type-check passes\n- [ ] All tests pass\n- [ ] zustand updated to 5.0.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions