Skip to content

Releases: Snowflyt/typroof

v0.4.1

06 Feb 12:15
Compare
Choose a tag to compare
  • 🐞 fix: Simply compile-time error message in edge cases to prevent deep type instantiation. (3491d69)

v0.4.0

06 Feb 11:37
Compare
Choose a tag to compare
  • ✨ feat!: Use type-level functions instead to define validators and serializers, aiming to boost compile-time performance. The newly introduced type-level functions (Validator and Serializer) are compatible with the hkt-core V1 standard. As part of this update, the original Validator is now renamed to ValidatorRegistry and StringifySerializer to StringifySerializerRegistry, and these have been migrated from typroof to typroof/plugin for better modularity. (4e48a45)
  • 🦄 refactor!: Relocate several type exports—including Stringify and its related types, ValidatorRegistry, Analyzer, AnalyzerMeta, Match, and ToAnalyze—from typroof to typroof/plugin, enhancing code organization and clarity. (a584e4e)

v0.3.8

29 Jan 08:20
Compare
Choose a tag to compare
  • 🐞 fix: Add (Async)Generator support for Stringify utility type. (e821b89)

v0.3.7

29 Jan 07:13
Compare
Choose a tag to compare
  • ✨ feat: Support custom serializer for Stringify.
  • 🐞 fix: Improve Stringify with wrapped types (Boolean/Number/BigInt/String/Symbol/Object), special types (object, Function, etc.) and global objects (Math, JSON, etc.).

v0.3.6

28 Jan 09:41
Compare
Choose a tag to compare
  • 🐳 chore(dep): Update version of ts-morph (to support TypeScript 5.7).

v0.3.5

22 Dec 09:27
Compare
Choose a tag to compare
  • 🐞 fix: Fix the BUG that Stringify cannot handle {} type correctly.

v0.3.4

18 Dec 12:35
Compare
Choose a tag to compare
  • 🐞 fix: Fix the BUG that Stringify cannot handle circular reference function type correctly.

v0.3.3

18 Dec 12:24
Compare
Choose a tag to compare
  • ✨ feat: Add Stringify support for function overloads.
  • 🐞 fix: Fix the BUG that Stringify cannot handle circular reference type correctly.

v0.3.2

17 Dec 04:24
Compare
Choose a tag to compare
  • ✨ feat: Remove dependency for chalk.

v0.3.0

26 Nov 06:01
Compare
Choose a tag to compare
  • ✨ feat (BREAKING CHANGE): Analyzer is now only called when type-level validation does not pass. Note that the function signature of Analyzer is also changed accordingly.
  • ✨ feat: Assume validation fails when validator evaluates to never.
  • 🐞 fix: Fix the BUG that Stringify evaluates to never when stringifying a function with parameter type never.