Releases: tonioriol/transmutant
Releases · tonioriol/transmutant
v6.0.0
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
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
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
3.1.0 (2024-10-31)
Features
- transmute: infer transmuter extra param based on transmute call (c83b1c0)
v3.0.0
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
2.1.0 (2024-10-30)
Features
- enforce strict return types in transformation functions (bb575df)
v2.0.0
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
1.0.1 (2024-10-27)
Bug Fixes
v1.0.0
1.0.0 (2024-10-27)
Features