Skip to content

Releases: unjs/hookable

v6.0.1

18 Dec 15:29
@pi0 pi0

Choose a tag to compare

compare changes

πŸ”₯ Performance

  • Pass name arg to caller seperately (fc96bce)

v6.0.0-rc.2

18 Dec 11:11
@pi0 pi0

Choose a tag to compare

compare changes

🩹 Fixes

  • types: Return type is normal Promise or void (56f47e1)

v6.0.0

18 Dec 12:18
@pi0 pi0

Choose a tag to compare

compare changes

Note

This release makes hookable 20-40x faster (thanks to @negezor) and %79 smaller (-2,258 bytes) when using new HookableCore.

Important

Hook results sometimes might not be a promise. Make sure to await on them.

πŸš€ Enhancements

πŸ”₯ Performance

  • ⚠️ Improve performance, reduce allocations, and avoid promises (#102)

πŸ’… Refactors

πŸ“¦ Build

  • Correct types order in `exports (#122)
  • ⚠️ Esm-only dist (89d1bcb)
  • Add type: "module" (93e5d41)
  • Add "sideEffects": false to package.json (1eb317a)

βœ… Tests

❀️ Contributors

v6.0.0-rc.1

26 Oct 20:46
@pi0 pi0

Choose a tag to compare

See v6.0.0 notes.

v5.5.3

30 Mar 13:33
@pi0 pi0

Choose a tag to compare

compare changes

🩹 Fixes

  • Clone hook arrays before calling (#79)

🏑 Chore

❀️ Contributors

v5.5.2

26 Mar 01:36
@pi0 pi0

Choose a tag to compare

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

10 Mar 16:27
@pi0 pi0

Choose a tag to compare

compare changes

🩹 Fixes

  • Shift name out of arg array (#71)

πŸ“– Documentation

❀️ Contributors

v5.5.0

10 Mar 15:07
@pi0 pi0

Choose a tag to compare

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

v5.0.0

01 Sep 18:07
@pi0 pi0

Choose a tag to compare

Please check Migration Guide and changelog for major changes.

v4.3.1

06 Nov 11:30
@pi0 pi0

Choose a tag to compare

Bug Fixes