Skip to content

Releases: homerchen19/use-undo

v1.2.0

25 Mar 03:27

Choose a tag to compare

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 exports field 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.

v1.1.1

23 Nov 07:16

Choose a tag to compare

Chore

  • Update dep for React 18 (#41)