Skip to content

Latest commit

 

History

History
654 lines (386 loc) · 28.1 KB

CHANGELOG.md

File metadata and controls

654 lines (386 loc) · 28.1 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

v6.0.0

🚀 Enhancements

  • Rewrite for 1.0.0 (88decae)
  • Custom logger (ada6e37)
  • Optional fatal support for logger (7c7355d)
  • DeprecateHooks (62f2d38)
  • Hide deprecate warnings on production builds (0861df3)
  • Bundle package (53a2a0e)
  • Advanced deprecation (5b88628)
  • Allow removing registered hooks (#16)
  • Migrate to typescript (d63ea3e)
  • Allow disabling logger (f8fb742)
  • types: Implement strict types (823cdca)
  • HookOnce (225fa8a)
  • mergeHooks helper (#26)
  • pkg: Expose module format (2987b09)
  • ⚠️ Improve type checking (c2e1e22)
  • ⚠️ Drop browser build and use exports field (b626770)
  • ⚠️ Use named exports and expose createHooks (fadfcbd)
  • Drop logger and global error handler (ee6ea87)
  • callHookParallel and callHookWith (#35)
  • Add beforeEach and afterEach spies (#46)
  • Allow registering a hook without showing deprecated message (0fcd787)
  • Add createDebugger utility (#51)
  • Add function name to hook for better dx in stacktraces (#68)
  • Use console.createTask to improve traces where supported (#69)
  • Add removeAllHooks utility (#61)

🔥 Performance

🩹 Fixes

  • Bind hookObj to this context (6f6f7bc)
  • package: Lib ~> dist (34a8d5c)
  • Hook with array or falsy key (7e90de1)
  • Fix package.json (2) (7ff4ce9)
  • Revert back hooks (07f52dc)
  • pkg: Typo in types entry name (#19)
  • build: Exclude regenerator and update target to ie 11 (48acfc5)
  • Typecheck for flatHooks (7800190)
  • Expose types (0ffbaff)
  • Avoid creating extra wrapper when merging hooks (790c1c4)
  • Allow nested hooks type to omit some hooks (#28)
  • Allow type inference for hook, hookOnce and removeHook (#29)
  • Type nested/namespaced hooks (#32)
  • Always return caller result (e9c51df)
  • Handle deprecated hooks after being registred (23d9ff4)
  • Deprecate hooks doesn't have to be passed all hooks (#48)
  • Ensure calling hooks always returns a promise (44679c8)
  • Only specify return type for callHook/callHookParallel (ed0d6a8)
  • Show deprecation warning only once (526e4dc)
  • Accept any hookable (#53)
  • Handle case where hook adds debugger (#54)
  • Allow parallel hooks with unique time strings (#55)
  • Add types subpath export (211ee2e)
  • Shift name out of arg array (#71)
  • Clone hook arrays before calling (#79)
  • Hook callback parameters type (ebf1583)

💅 Refactors

  • Remove items-promise dependency (cc85aec)
  • Use internal _logger reference (c2a286a)
  • Avoid one line ifs (b79063b)
  • Simplify deprecateHooks (ea44f40)
  • Remove clearHook and clearHooks as we have removeHook and removeHooks now (50025fd)
  • ⚠️ Remove mergehooks from Hookable prototype (d50af59)
  • Use unbuild (50f0004)
  • Split debugger (76db216)

📖 Documentation

  • Remove invalid use of callHookParallel (#17)
  • Fix small typo in README (#31)
  • Update context (#44)
  • Update badges (13b0c90)
  • Add removeAllHooks and fix typos (#72)

🌊 Types

  • Work with strict config (#63)

🏡 Chore

✅ Tests

  • Ensure package.json main field is valid (#2)
  • Use es modules (2ddf40c)
  • Import hable.js (293fcbb)
  • Fix vitest type issue (#70)

🎨 Styles

  • Format with prettier (#65)

🤖 CI

⚠️ Breaking Changes

  • ⚠️ Improve type checking (c2e1e22)
  • ⚠️ Drop browser build and use exports field (b626770)
  • ⚠️ Use named exports and expose createHooks (fadfcbd)
  • ⚠️ Remove mergehooks from Hookable prototype (d50af59)

❤️ Contributors

v5.5.3

compare changes

🩹 Fixes

  • Clone hook arrays before calling (#79)

🏡 Chore

❤️ Contributors

v5.5.2

compare changes

📖 Documentation

  • Add removeAllHooks and fix typos (#72)

🌊 Types

  • Work with strict config (#63)

🏡 Chore

  • lint: Run lint:fix to fix formatting (#77)
  • Update dependencies (9443040)

❤️ Contributors

v5.5.1

compare changes

🩹 Fixes

  • Shift name out of arg array (#71)

📖 Documentation

❤️ Contributors

v5.5.0

compare changes

🚀 Enhancements

  • Add function name to hook for better dx in stacktraces (#68)
  • Use console.createTask to improve traces where supported (#69)
  • Add removeAllHooks utility (#61)

🏡 Chore

  • Add latest @types/node package (#66)
  • Add .prettierrc (4b3e99b)
  • Use changelogen for releases (151d16b)
  • Simplify variable names (369a2fe)

✅ Tests

  • Fix vitest type issue (#70)

🎨 Styles

  • Format with prettier (#65)

❤️ Contributors

5.4.2 (2022-11-15)

Bug Fixes

  • add types subpath export (211ee2e)

5.4.1 (2022-10-15)

Bug Fixes

  • accept any hookable (#53) (0eac02c)
  • allow parallel hooks with unique time strings (#55) (ee64dc8)
  • handle case where hook adds debugger (#54) (f6d4475)

5.4.0 (2022-10-13)

Features

5.3.0 (2022-09-02)

Features

  • allow registering a hook without showing deprecated message (0fcd787)

Bug Fixes

  • show deprecation warning only once (526e4dc)

5.2.2 (2022-08-23)

Bug Fixes

  • only specify return type for callHook/callHookParallel (ed0d6a8)

5.2.1 (2022-08-23)

Bug Fixes

  • ensure calling hooks always returns a promise (44679c8)

5.2.0 (2022-08-23)

Features

  • add beforeEach and afterEach spies (#46) (949d8b7)

Bug Fixes

  • deprecate hooks doesn't have to be passed all hooks (#48) (0c4fef0)

5.1.2 (2022-08-23)

Bug Fixes

  • handle deprecated hooks after being registred (23d9ff4)

5.1.1 (2021-12-21)

Bug Fixes

  • always return caller result (e9c51df)

5.1.0 (2021-12-20)

Features

  • callHookParallel and callHookWith (#35) (4a8cc53)

5.0.0 (2021-09-01)

Bug Fixes

5.0.0-2 (2021-08-27)

Bug Fixes

  • allow type inference for hook, hookOnce and removeHook (#29) (22b74d3)

5.0.0-1 (2021-08-27)

Bug Fixes

  • allow nested hooks type to omit some hooks (#28) (75f2a05)

5.0.0-0 (2021-08-26)

⚠ BREAKING CHANGES

  • You should directly handle errors with callHook
  • use named exports and expose createHooks
  • remove mergehooks from Hookable prototype
  • drop browser build and use exports field
  • improve type checking

Features

  • drop browser build and use exports field (b626770)

  • drop logger and global error handler (ee6ea87)

  • improve type checking (c2e1e22)

  • use named exports and expose createHooks (fadfcbd)

  • remove mergehooks from Hookable prototype (d50af59)

4.4.1 (2021-02-26)

Bug Fixes

  • avoid creating extra wrapper when merging hooks (790c1c4)

4.4.0 (2021-01-21)

Features

  • pkg: expose module format (2987b09)

4.3.1 (2020-11-06)

Bug Fixes

4.3.0 (2020-11-06)

Features

4.2.0 (2020-10-23)

Features

Bug Fixes

  • typecheck for flatHooks (7800190)

4.1.2 (2020-08-24)

Bug Fixes

  • build: exclude regenerator and update target to ie 11 (48acfc5)

4.1.1 (2020-04-28)

Bug Fixes

  • pkg: typo in types entry name (fixes #19) (b9ba90f)

4.1.0 (2020-04-17)

Features

  • types: implement strict types (823cdca)

4.0.0 (2020-04-17)

⚠ BREAKING CHANGES

  • only dist and types getting published

Features

3.0.0 (2020-02-25)

Bug Fixes

Features

2.3.0 (2019-09-01)

Features

  • hide deprecate warnings on production builds (0861df3)

2.2.1 (2019-08-21)

2.2.0 (2019-08-21)

Features

2.1.0 (2019-08-21)

Features

  • optional fatal support for logger (7c7355d)

2.0.1 (2019-08-21)

2.0.0 (2019-08-21)

Features

BREAKING CHANGES

  • console is replaced by consola by default

1.0.1 (2019-03-16)

Bug Fixes

1.0.0 (2019-02-11)

Features

BREAKING CHANGES

  • api change

0.0.7 (2018-01-28)

Bug Fixes

  • hook with array or falsy key (7e90de1)

Performance Improvements

0.0.6 (2018-01-26)

Performance Improvements

  • reduce transpiled dist size (df607cf)

0.0.5 (2018-01-26)

Bug Fixes

0.0.4 (2018-01-26)

Performance Improvements

  • handle fn as array faster (ec35edc)

0.0.3 (2018-01-26)

Bug Fixes

  • bind hookObj to this context (6f6f7bc)

Performance Improvements

0.0.2 (2018-01-26)