Skip to content

Latest commit

 

History

History
117 lines (82 loc) · 6.82 KB

File metadata and controls

117 lines (82 loc) · 6.82 KB

2.1.1 (2026-04-09)

2.1.0 (2026-04-09)

Bug Fixes

  • add tslib dep required by rollup typescript plugin (b2545ef)
  • ci: fetch full git history for semantic-release tag detection (5e9b443)
  • ci: use Node 22 for semantic-release compatibility (94d7945)
  • lazy-init AbortController for Strict Mode compat (8d53a6a)
  • replace commitizen with czg, add npm test hook (3579f0c)
  • restore version to 2.0.0 and clean CHANGELOG after semantic-release misconfiguration (e3af7c8)
  • update deps to resolve audit vulnerabilities (49aca1d)

Features

  • add useAbortSignal hook (8f2a570)

1.0.0 (2026-04-09)

  • feat!: add useAbortController and convert to named exports (#1211) (e792955)

Bug Fixes

  • add tslib dep required by rollup typescript plugin (b2545ef)
  • ci: fetch full git history for semantic-release tag detection (5e9b443)
  • ci: use Node 22 for semantic-release compatibility (94d7945)
  • lazy-init AbortController for Strict Mode compat (8d53a6a)
  • replace commitizen with czg, add npm test hook (3579f0c)
  • restore version to 2.0.0 and clean CHANGELOG after semantic-release misconfiguration (e3af7c8)
  • update deps to resolve audit vulnerabilities (49aca1d)

Features

  • add useAbortSignal hook (8f2a570)
  • update project structure and configurations to use typescript (2aa8a3a)
  • use readonly in return value type (#15) (ce87172)

BREAKING CHANGES

  • Default export replaced with named exports
  • Add useAbortController hook for auto-abort on unmount
  • Convert useIsMountedRef to named export
  • Add full test coverage for new hook
  • Update README with examples and migration guide
  • Add CHANGELOG.md
  • Bump version to 2.0.0
  • Published to npm

1.0.0 (2026-04-09)

  • feat!: add useAbortController and convert to named exports (#1211) (e792955)

Bug Fixes

  • add tslib dep required by rollup typescript plugin (b2545ef)
  • ci: use Node 22 for semantic-release compatibility (94d7945)
  • lazy-init AbortController for Strict Mode compat (8d53a6a)
  • replace commitizen with czg, add npm test hook (3579f0c)
  • restore version to 2.0.0 and clean CHANGELOG after semantic-release misconfiguration (e3af7c8)
  • update deps to resolve audit vulnerabilities (49aca1d)

Features

  • add useAbortSignal hook (8f2a570)
  • update project structure and configurations to use typescript (2aa8a3a)
  • use readonly in return value type (#15) (ce87172)

BREAKING CHANGES

  • Default export replaced with named exports
  • Add useAbortController hook for auto-abort on unmount
  • Convert useIsMountedRef to named export
  • Add full test coverage for new hook
  • Update README with examples and migration guide
  • Add CHANGELOG.md
  • Bump version to 2.0.0
  • Published to npm

Changelog

All notable changes to this project will be documented in this file.

[2.0.0] - 2026-02-01

Added

  • useAbortController - New hook that automatically aborts on component unmount
    • Returns an AbortController instance
    • Auto-cleanup when component unmounts
    • Perfect for fetch requests and async operations
    • Full test coverage

Changed

  • BREAKING: Converted from default export to named exports
    • Old: import useIsMountedRef from 'use-is-mounted-ref'
    • New: import { useIsMountedRef } from 'use-is-mounted-ref'
    • Improves tree-shaking and explicit imports
    • Both hooks now exported as named exports

Migration Guide

- import useIsMountedRef from 'use-is-mounted-ref';
+ import { useIsMountedRef } from 'use-is-mounted-ref';
+ import { useAbortController } from 'use-is-mounted-ref';

[1.5.0] - Previous releases

See git history for previous changes.