Skip to content

Latest commit

 

History

History
260 lines (112 loc) · 10.8 KB

CHANGELOG.md

File metadata and controls

260 lines (112 loc) · 10.8 KB

9.3.1 (2022-09-02)

Bug Fixes

9.3.0 (2022-08-09)

Features

  • Allow type-definition of CustomError.data (#366) (23f5b25)

9.2.0 (2022-06-01)

Features

  • Implement ensureUnknownIsError and extend readme. (#363) (0abf81d)

9.1.1 (2022-03-25)

Bug Fixes

9.1.0 (2022-03-24)

Features

  • Allow an arbitrary type as default in unwrapOrDefault. (#359) (ff99448)

9.0.0 (2022-03-23)

Bug Fixes

  • Adjust CustomError.cause type to changes in TypeScript. (#358) (a288ae1)

BREAKING CHANGES

  • This restricts the type of cause to Error | undefined.

8.2.0 (2022-02-22)

Features

8.1.0 (2022-01-17)

Features

8.0.0 (2021-08-24)

Bug Fixes

  • rename ErrorConstructor to CustomErrorConstructor (#340) (d581477)

BREAKING CHANGES

  • ErrorConstructor was renamed to CustomErrorConstructor

If you're currently importing the ErrorConstructor interface from defekt, you will need to change these import to CustomErrorConstructor.

7.3.3 (2021-08-22)

Bug Fixes

7.3.2 (2021-07-23)

Bug Fixes

7.3.1 (2021-07-12)

Bug Fixes

  • Restructure type hierarchy so that types don't conflict internally. (#330) (610302d)

7.3.0 (2021-07-03)

Features

  • Make early returns after error/value checks more convenient (#326) (e27d0e5)

7.2.3 (2021-06-10)

Bug Fixes

  • bump normalize-url from 6.0.0 to 6.0.1 (#321) (719e1e2)

7.2.2 (2021-06-08)

Bug Fixes

  • bump trim-newlines from 3.0.0 to 3.0.1 (#319) (9c45b23)

7.2.1 (2021-06-08)

Bug Fixes

  • bump glob-parent from 5.1.1 to 5.1.2 (#320) (2f28e8d)

7.2.0 (2021-05-25)

Features

  • Add callback to unwrapOrThrow to transform errors. (#314) (c7512d2)

7.1.2 (2021-05-18)

Bug Fixes

  • IsCustomError now works as intended; IsError is now simpler. (#309) (db33b8b)

7.1.1 (2021-05-10)

Bug Fixes

  • bump hosted-git-info from 2.8.8 to 2.8.9 (#306) (15a83e2)

7.1.0 (2021-03-29)

Features

7.0.4 (2021-03-25)

Bug Fixes

  • Fix wrong usage of error constructor in documentation. (#289) (459b063)

7.0.3 (2021-03-25)

Bug Fixes

7.0.2 (2021-03-25)

Bug Fixes

  • Add missing TValue and TError generics to constructors. (#286) (df18c64)

7.0.1 (2021-03-25)

Bug Fixes

7.0.0 (2021-03-25)

Features

  • Rewrite from scratch and add algebraic Result type. (#283) (5f8cafd)

BREAKING CHANGES

  • The old defekt interface is obsolete and has been completely replaced.

6.0.2 (2021-01-20)

Bug Fixes

  • Replace humanize string with own implementation. (#250) (da09278)

6.0.1 (2020-11-26)

Bug Fixes

  • Add readme section regarding isError. (#224) (ec995da)

6.0.0 (2020-11-26)

Bug Fixes

BREAKING CHANGES

  • So far, cause was of type Error. Now it is of type unknown, which better represents the behavior of JavaScript and TypeScript.

5.3.0 (2020-11-26)

Features

5.2.2 (2020-11-03)

Bug Fixes

  • Fix headline for robot section in readme. (#197) (142d81b)

5.2.1 (2020-10-28)

Bug Fixes

5.2.0 (2020-10-13)

Features

5.1.0 (2020-07-13)

Features

  • Add static error code to error constructors. (#148) (b20351a)

5.0.1 (2020-02-03)

Bug Fixes