Skip to content

Releases: tonioriol/transmutant

v6.0.0

06 Dec 13:39
994c1d3
Compare
Choose a tag to compare

6.0.0 (2024-12-06)

⚠ BREAKING CHANGES

  • Split Schema type definition into two separate types:
    • SchemaItem: represents a single transformation rule
    • Schema: represents an array of SchemaItems

Code Refactoring

  • split Schema type into SchemaItem and Schema (08a9ac5)

v5.0.0

06 Dec 13:06
9073a94
Compare
Choose a tag to compare

5.0.0 (2024-12-06)

⚠ BREAKING CHANGES

  • The extra parameter in transmute() and related types has been renamed to context to better reflect its purpose in providing contextual data for transmutations. This change affects the public API including type definitions, function parameters, and documentation.

Code Refactoring

  • rename extra parameter to context (b8ca220)

v4.0.0

01 Nov 22:09
428e0e5
Compare
Choose a tag to compare

4.0.0 (2024-11-01)

⚠ BREAKING CHANGES

  • types: Changed Extra type parameter default from unknown to undefined for better type inference and runtime behavior alignment.

Code Refactoring

  • types: switch Extra type parameter default to undefined (83c5a56)

v3.1.0

31 Oct 15:46
37c2071
Compare
Choose a tag to compare

3.1.0 (2024-10-31)

Features

  • transmute: infer transmuter extra param based on transmute call (c83b1c0)

v3.0.0

31 Oct 15:01
a9fc738
Compare
Choose a tag to compare

3.0.0 (2024-10-31)

⚠ BREAKING CHANGES

  • Schema type now enforces strict type compatibility between source and target properties. Code with mismatched types in direct property mappings will need to be updated to use TransmuteFn for type conversion or fix the type mismatch.

Features

  • enforce type compatibility in schema mappings (cc26b94)

v2.1.0

30 Oct 10:56
2525084
Compare
Choose a tag to compare

2.1.0 (2024-10-30)

Features

  • enforce strict return types in transformation functions (bb575df)

v2.0.0

28 Oct 13:27
ae835a1
Compare
Choose a tag to compare

2.0.0 (2024-10-28)

⚠ BREAKING CHANGES

  • made the usage of fn or to exclusive. So they can't used both at the same time now.

Features

  • improved type safety for extra param (f8247b1)

v1.0.1

27 Oct 13:45
d3259a6
Compare
Choose a tag to compare

1.0.1 (2024-10-27)

Bug Fixes

v1.0.0

27 Oct 13:35
55bd082
Compare
Choose a tag to compare

1.0.0 (2024-10-27)

Features