Releases: homerchen19/use-undo
Releases · homerchen19/use-undo
v1.2.0
What's Changed
Toolchain Modernization
- Package manager: yarn → pnpm
- Build tool: microbundle → vite (library mode)
- Test runner: jest → vitest
- Dependencies: updated all devDependencies to latest versions
Improvements
- Added
exportsfield to package.json for modern Node.js module resolution - Output formats: ESM (
.mjs) + CJS (.cjs) with bundled TypeScript declarations - Dropped UMD build (no longer needed for modern workflows)
- Improved type safety with discriminated union for internal action types
No Breaking Changes
The public API (useUndo, State<T>, Actions<T>) is unchanged. This is a fully backwards-compatible release.