Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Release Types v4.0.0 #120

Open
3 tasks
LVMVRQUXL opened this issue Dec 13, 2022 · 2 comments
Open
3 tasks

Release Types v4.0.0 #120

LVMVRQUXL opened this issue Dec 13, 2022 · 2 comments
Assignees
Labels
release New version's publication in production. types Related to Kotools Types library.
Milestone

Comments

@LVMVRQUXL
Copy link
Contributor

Dependencies

Issues of this new version should be done before resolving this issue.

Checklist

  • Upgrade the application's version.
  • Add a new version in changelog.
  • Create a release on the repository.
@LVMVRQUXL LVMVRQUXL added release New version's publication in production. types Related to Kotools Types library. labels Dec 13, 2022
@LVMVRQUXL LVMVRQUXL added this to the Types v4.0.0 milestone Dec 13, 2022
@LVMVRQUXL LVMVRQUXL self-assigned this Dec 13, 2022
@LVMVRQUXL
Copy link
Contributor Author

Here is the new code sample to provide in the README documentation while releasing this version:

import kotools.types.number.StrictlyPositiveInt
import kotools.types.number.toStrictlyPositiveInt
import kotools.types.text.NotBlankString
import kotools.types.text.toNotBlankString

data class Person(val name: NotBlankString, val age: StrictlyPositiveInt)

fun main() {
    val name: NotBlankString = "Somebody".toNotBlankString()
        .getOrThrow()
    val age: StrictlyPositiveInt = 42.toStrictlyPositiveInt()
        .getOrThrow()
    val somebody = Person(name, age)
    println(somebody) // Person(name=Somebody, age=42)
}

@LVMVRQUXL LVMVRQUXL changed the title Release version Types v4.0.0 Release Types v4.0.0 Dec 20, 2022
@LVMVRQUXL
Copy link
Contributor Author

Here is the new code sample to provide in the README documentation while releasing this version:

import kotools.types.number.StrictlyPositiveInt
import kotools.types.number.toStrictlyPositiveInt
import kotools.types.text.NotBlankString
import kotools.types.text.toNotBlankString

data class Person(val name: NotBlankString, val age: StrictlyPositiveInt)

fun main() {
    val name: NotBlankString = "Somebody".toNotBlankString()
        .getOrThrow()
    val age: StrictlyPositiveInt = 42.toStrictlyPositiveInt()
        .getOrThrow()
    val somebody = Person(name, age)
    println(somebody) // Person(name=Somebody, age=42)
}

Done while releasing the beta version (see #146).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release New version's publication in production. types Related to Kotools Types library.
Projects
None yet
Development

No branches or pull requests

1 participant