Skip to content

Commit 4b5a9dc

Browse files
authored
docs: add new value class type converters to CHANGELOG.md
1 parent 73cb2c8 commit 4b5a9dc

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
### New features
8+
9+
* Two new type converters, which handle `value class` mappings, i.e., to map from/to e.g. String to/from value class with a String inside:
10+
* `ValueClassToXConverter`
11+
* `XToValueClassConverter`
12+
13+
The following example now works out-of-the-box and generates the approprate mappings:
14+
```kotlin
15+
@JvmInline value class DataId(val id: String)
16+
17+
@KonvertTo(AdapterClass::class)
18+
class DomainClass(id: DataId)
19+
20+
@KonvertTo(DomainClass::class)
21+
class AdapterClass(id: String)
22+
```
23+
24+
25+
726
## [4.2.0]
827

928
## Breaking Changes

0 commit comments

Comments
 (0)