Skip to content

Conversation

@arv
Copy link
Contributor

@arv arv commented Dec 2, 2025

Replaces #65

renchris and others added 2 commits December 2, 2025 10:47
BREAKING CHANGE: Drops support for React 16, 17, and 18. Requires React 19+.

- Remove `import {unstable_batchedUpdates} from 'react-dom'`
- Remove `unstable_batchedUpdates()` wrapper in `doCallback()`
- Update comment to explain React 19+ automatic batching
- Update peerDependencies to require React 19

React 18+ introduced automatic batching for all state updates,
making `unstable_batchedUpdates` unnecessary. The React team has
indicated this API will be removed in a future version.

Closes #56
- Updated package.json to replace web-test-runner with vitest for testing.
- Modified test scripts to use vitest commands.
- Updated devDependencies to include vitest and related packages.
- Refactored index.test.tsx to use vitest's expect and test functions.
- Added vitest configuration file for browser testing setup.
- Removed web-test-runner configuration file as it is no longer needed.
@arv arv force-pushed the feat/react-19-automatic-batching branch from 45c90c3 to 505b586 Compare December 2, 2025 09:52
@arv arv merged commit aa59d7f into main Dec 2, 2025
4 checks passed
@arv arv deleted the feat/react-19-automatic-batching branch December 2, 2025 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants