All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
- 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
andcallHookWith
(#35)- Add
beforeEach
andafterEach
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)
- Minor refactor (e4083aa)
- Handle fn as array faster (ec35edc)
- Reduce transpiled dist size (df607cf)
- Use for in for hookObj (3c8e2e7)
- 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
andremoveHook
(#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)
- Remove items-promise dependency (cc85aec)
- Use internal _logger reference (c2a286a)
- Avoid one line ifs (b79063b)
- Simplify deprecateHooks (ea44f40)
- Remove
clearHook
andclearHooks
as we haveremoveHook
andremoveHooks
now (50025fd) ⚠️ Remove mergehooks from Hookable prototype (d50af59)- Use unbuild (50f0004)
- Split debugger (76db216)
- Remove invalid use of
callHookParallel
(#17) - Fix small typo in README (#31)
- Update context (#44)
- Update badges (13b0c90)
- Add
removeAllHooks
and fix typos (#72)
- Work with strict config (#63)
- release: 0.0.2 (01a3857)
- release: 0.0.3 (374282a)
- release: 0.0.4 (ff454df)
- release: 0.0.5 (fb51c14)
- release: 0.0.6 (6b21906)
- Update readme (29236d0)
- release: 0.0.7 (a72a9cc)
- release: 1.0.0 (a0e5c7a)
- release: 1.0.1 (c4f8783)
- release: 2.0.0 (71db2f6)
- release: 2.0.1 (69b4795)
- release: 2.1.0 (2860582)
- release: 2.2.0 (55cf5c0)
- release: 2.2.1 (59e7482)
- Remove unnecessary binds (95ca9e9)
- release: 2.3.0 (791542b)
- Add ts types (3943d93)
- Add babel-jest for fixing test (0d30bd4)
- Update renovate (da6859f)
- Add jest transform (3fb5251)
- Update yarn lock (fb84112)
- Use prepublishOnly (1c2b340)
- Upgrade eslint packages (179b614)
- Fix coverage report (75d900a)
- release: 3.0.0 (1a5cbc7)
- Rename to hookable (9c62ae9)
- Add @RGBboy to creadits (fbe4306)
- Update dependencies (1f296a4)
- Update repo (81ce3c7)
- Fix test and eslint (3d3b199)
- Use github actions (f28dacd)
- release: 4.0.0 (7fd52df)
- release: 4.1.0 (add4cd9)
- Remove unused badge (6adec04)
- release: 4.1.1 (2b15871)
- readme: Fix url (#21)
- release: 4.1.2 (85d66a7)
- Update dependencies (00a071a)
- release: 4.2.0 (7393a92)
- Update dependencies (9020f43)
- release: 4.3.0 (e521dfb)
- Update repo and improve dist (191b7e2)
- release: 4.3.1 (f69f8a7)
- Fix ci (48bb82c)
- release: 4.4.0 (4d9fc75)
- release: 4.4.1 (2ae8c9b)
- Update org (ae9e030)
- Update dev dependencies (8b845fd)
- Fix eslint issues (a225469)
- Update github action (9219ce0)
- release: 5.0.0-0 (b730909)
- Add migration guide (7e29e07)
- release: 5.0.0-1 (3071d29)
- release: 5.0.0-2 (739d483)
- release: 5.0.0 (f05c66c)
- Add codecov action (0188c21)
- release: 5.1.0 (bd49129)
- release: 5.1.1 (b053d3e)
- Migrate to pnpm + vitest (#45)
- release: 5.1.2 (2ca03b8)
- Remove jest config (203db13)
- Update repo (5a46409)
- release: 5.2.0 (5738def)
- release: 5.2.1 (4459dc6)
- release: 5.2.2 (daf5c96)
- release: 5.3.0 (22a2f77)
- release: 5.4.0 (1793beb)
- Update dependencies (a61f494)
- release: 5.4.1 (4cfc67a)
- release: 5.4.2 (c3c2413)
- Add latest
@types/node
package (#66) - Add
.prettierrc
(4b3e99b) - Use changelogen for releases (151d16b)
- Simplify variable names (369a2fe)
- release: V5.5.0 (eb3b1c5)
- release: V5.5.1 (2a492ff)
- lint: Run lint:fix to fix formatting (#77)
- Update dependencies (9443040)
- release: V5.5.2 (aff2fa5)
- Update deps (8b5765f)
- release: V5.5.3 (ddc01ba)
- Ensure package.json main field is valid (#2)
- Use es modules (2ddf40c)
- Import hable.js (293fcbb)
- Fix vitest type issue (#70)
- Format with prettier (#65)
- Update ci config (e8b664f)
⚠️ 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)
- Hemengke [email protected]
- Pooya Parsa (@pi0)
- Daniel Roe (@danielroe)
- Rafał Chłodnicki (@rchl)
- Vinccool96 [email protected]
- Nozomu Ikuta (@NozomuIkuta)
- Sébastien Chopin [email protected]
- Markthree (@markthree)
- Alex Barker (@abarke)
- Voraczech (@voraczech)
- Matthieu Sieben
- Clark Du [email protected]
- Clone hook arrays before calling (#79)
- Update deps (8b5765f)
- Pooya Parsa (@pi0)
- Daniel Roe [email protected]
- Add
removeAllHooks
and fix typos (#72)
- Work with strict config (#63)
- Pooya Parsa (@pi0)
- Rafał Chłodnicki (@rchl)
- Vinccool96 [email protected]
- Nozomu Ikuta
- Shift name out of arg array (#71)
- Update badges (13b0c90)
- Daniel Roe [email protected]
- Sébastien Chopin [email protected]
- Add function name to hook for better dx in stacktraces (#68)
- Use
console.createTask
to improve traces where supported (#69) - Add
removeAllHooks
utility (#61)
- Add latest
@types/node
package (#66) - Add
.prettierrc
(4b3e99b) - Use changelogen for releases (151d16b)
- Simplify variable names (369a2fe)
- Fix vitest type issue (#70)
- Format with prettier (#65)
- Nozomu Ikuta
- Pooya Parsa (@pi0)
- Daniel Roe [email protected]
5.4.2 (2022-11-15)
- add types subpath export (211ee2e)
5.4.1 (2022-10-15)
- 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)
5.3.0 (2022-09-02)
- allow registering a hook without showing deprecated message (0fcd787)
- show deprecation warning only once (526e4dc)
5.2.2 (2022-08-23)
- only specify return type for
callHook
/callHookParallel
(ed0d6a8)
5.2.1 (2022-08-23)
- ensure calling hooks always returns a promise (44679c8)
5.2.0 (2022-08-23)
5.1.2 (2022-08-23)
- handle deprecated hooks after being registred (23d9ff4)
5.1.1 (2021-12-21)
- always return caller result (e9c51df)
5.1.0 (2021-12-20)
5.0.0 (2021-09-01)
5.0.0-2 (2021-08-27)
5.0.0-1 (2021-08-27)
5.0.0-0 (2021-08-26)
- 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
-
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)
- avoid creating extra wrapper when merging hooks (790c1c4)
4.4.0 (2021-01-21)
- pkg: expose module format (2987b09)
4.3.1 (2020-11-06)
- expose types (0ffbaff)
4.3.0 (2020-11-06)
4.2.0 (2020-10-23)
- hookOnce (225fa8a)
- typecheck for flatHooks (7800190)
4.1.2 (2020-08-24)
- build: exclude regenerator and update target to ie 11 (48acfc5)
4.1.1 (2020-04-28)
4.1.0 (2020-04-17)
- types: implement strict types (823cdca)
4.0.0 (2020-04-17)
- only dist and types getting published
- allow disabling logger (f8fb742)
- allow removing registered hooks (#16) (4134c31)
- migrate to typescript (d63ea3e)
3.0.0 (2020-02-25)
- revert back hooks (07f52dc)
2.3.0 (2019-09-01)
- hide deprecate warnings on production builds (0861df3)
2.2.1 (2019-08-21)
2.2.0 (2019-08-21)
- deprecateHooks (62f2d38)
2.1.0 (2019-08-21)
- optional fatal support for logger (7c7355d)
2.0.1 (2019-08-21)
2.0.0 (2019-08-21)
- custom logger (ada6e37)
- console is replaced by consola by default
1.0.1 (2019-03-16)
- fix package.json (2) (7ff4ce9)
1.0.0 (2019-02-11)
- rewrite for 1.0.0 (88decae)
- api change
0.0.7 (2018-01-28)
- hook with array or falsy key (7e90de1)
- use for in for hookObj (3c8e2e7)
0.0.6 (2018-01-26)
- reduce transpiled dist size (df607cf)
0.0.5 (2018-01-26)
- package: lib ~> dist (34a8d5c)
0.0.4 (2018-01-26)
- handle fn as array faster (ec35edc)
0.0.3 (2018-01-26)
- bind hookObj to this context (6f6f7bc)
- minor refactor (e4083aa)