Skip to content

Releases: YLfjuk/core

@ylfjuk/[email protected]

04 Feb 19:05
Compare
Choose a tag to compare

Patch Changes

@ylfjuk-core/[email protected]

04 Feb 19:05
Compare
Choose a tag to compare

Patch Changes

Features πŸ†•

  • Added Types

    • SafeRecord | A record that emulates the noUncheckedIndexedAccess tsconfig setting
    • Result
    • ResultData | Extracts the data from a Result type
    • ResultError | Extracts the error from a Result type
  • Modified Types

    • ValueOf | Add support for arrays
    • Extend

Chores 🧹

@ylfjuk/[email protected]

23 Jan 08:21
78db8c7
Compare
Choose a tag to compare

Patch Changes

@ylfjuk-core/[email protected]

23 Jan 08:21
78db8c7
Compare
Choose a tag to compare

Patch Changes

Features πŸ†•

  • Added Types

    • Box | Boxes union types
    • Equal | Returns if two types are strictly equal
    • LessThanEqual | Returns if a number is less than or equal to another number | ⚠️ Floats Unsupported
  • Modified Types

    • ArrayOfN | Fill now accepts any type

@ylfjuk/[email protected]

20 Dec 09:26
Compare
Choose a tag to compare

Patch Changes

@ylfjuk-core/[email protected]

20 Dec 09:26
Compare
Choose a tag to compare

Patch Changes

Features πŸ†•

  • Added Utilities:
    • toggle | toggles between elements in an array

@ylfjuk/[email protected]

19 Dec 18:15
Compare
Choose a tag to compare

Patch Changes

@ylfjuk-core/[email protected]

19 Dec 18:15
Compare
Choose a tag to compare

Patch Changes

Features πŸ†•

  • Added types
    • Increment | Increments a N ∈ β„• number by 1 | ⚠️ Negative/Floats Unsupported

Fixes 🩹

  • Renamed IsNatural to IsPositiveOrZero to describe it better (breaking πŸ’₯)

@ylfjuk/[email protected]

18 Dec 21:33
Compare
Choose a tag to compare

Patch Changes

@ylfjuk-core/[email protected]

18 Dec 21:33
Compare
Choose a tag to compare

Patch Changes

Chores 🧹

  • The package now ensures that it only exports types

Features πŸ†•

  • Added types

    • Abs | Returns the absolute value of a number
    • ArrayOfN | Returns an array of n length
    • AtLeastOne | Requires at least one of the fields in an object
    • ExactlyOne | Requires exactly one of the fields in an object
    • IsNatural | Returns if the number is an element of the Natural numbers group
    • IsTuple | Return if an array is a tuple
    • LessThan | Returns if a number is less than another number | ⚠️ Floats Unsupported
    • PickBy | Picks the fields of an object where the value matches the condition
  • Modified Types

    • Primitive | Added support for symbol type
    • MaskLiterals | Trailing changes from the Primitive type modification