kotools / types

Explicit types for Kotlin Multiplatform.
https://types.kotools.org
MIT License
90 stars 6 forks source link

🚚 Rename `value` parameter of `EmailAddress` factory functions #682

Closed LVMVRQUXL closed 4 months ago

LVMVRQUXL commented 4 months ago

πŸ“ Description

Being a keyword used in the Kotlin language, we want to rename the value parameter of the EmailAddress experimental type's factory functions as text. This is an incompatible source change to the experimental API.

// Before
fun EmailAddress.Companion.fromString(value: Any): EmailAddress
fun EmailAddress.Companion.fromString(value: Any, pattern: Any): EmailAddress
fun EmailAddress.Companion.fromStringOrNull(value: Any): EmailAddress?
fun EmailAddress.Companion.fromStringOrNull(value: Any, pattern: Any): EmailAddress?
// After
fun EmailAddress.Companion.fromString(text: Any): EmailAddress
fun EmailAddress.Companion.fromString(text: Any, pattern: Any): EmailAddress
fun EmailAddress.Companion.fromStringOrNull(text: Any): EmailAddress?
fun EmailAddress.Companion.fromStringOrNull(text: Any, pattern: Any): EmailAddress?

πŸ”— Dependencies

This issue is blocked by the following items:

βœ… Checklist