Summary
Upgrade @commercelayer/react-components from React 18 to React 19, remove all existing specs, and write new ones incrementally alongside each core/hooks feature.
Motivation
The hooks package targets React 19. Having react-components on React 18 causes a duplicate React instance error in tests. Aligning on React 19 across the whole v5 monorepo is cleaner than patching the mismatch.
Old tests were written against React 18 patterns and the legacy reducer architecture — not worth migrating. New tests will be written progressively as features land.
Tasks
Notes
New tests will be added per feature as part of subsequent issues (starting with #727).
References
Summary
Upgrade
@commercelayer/react-componentsfrom React 18 to React 19, remove all existing specs, and write new ones incrementally alongside each core/hooks feature.Motivation
The
hookspackage targets React 19. Having react-components on React 18 causes a duplicate React instance error in tests. Aligning on React 19 across the whole v5 monorepo is cleaner than patching the mismatch.Old tests were written against React 18 patterns and the legacy reducer architecture — not worth migrating. New tests will be written progressively as features land.
Tasks
react,react-domdevDependencies to React 19@types/react,@types/react-domto React 19 compatible versionspeerDependenciestoreact: >=19.0.0specs/(exceptutils/helpers andmocks/)pnpm-lock.yamlNotes
New tests will be added per feature as part of subsequent issues (starting with #727).
References
packages/react-components/package.jsonpackages/react-components/specs/