Skip to content

Releases: softwareventures/date

v5.0.2

Choose a tag to compare

@github-actions github-actions released this 18 May 09:15
5b1d697

5.0.2 (2024-05-18)

Bug Fixes

  • delete pinst from prepack and postpack scripts (5b1d697)

v5.0.1

Choose a tag to compare

@github-actions github-actions released this 18 May 09:13
acc1700

5.0.1 (2024-05-18)

Bug Fixes

  • compatibility with npm >= 10.4 (577a867)

v5.0.0

Choose a tag to compare

@github-actions github-actions released this 16 Feb 05:02
96ed373

5.0.0 (2024-02-16)

⚠ BREAKING CHANGES

  • latest: The latest functions now
    throw Error if both specified Dates
    contain numeric fields that are non-finite.
  • latest: The type parameters of the
    latest functions have been removed. These
    functions now always either return a valid
    Date or throw.
  • earliest: The earliest functions now
    throw Error if both specified Dates
    contain numeric fields that are non-finite.
  • earliest: The type parameters of the
    earliest functions have been removed. These
    functions now always either return a valid
    Date or throw.

Features

  • earliest: normalize Date before returning result (3695908)
  • latest: normalize Date before returning result (96ed373)

v4.1.1

Choose a tag to compare

@github-actions github-actions released this 15 Feb 14:28
ff098a9

4.1.1 (2024-02-15)

v4.1.0

Choose a tag to compare

@github-actions github-actions released this 25 Jan 19:25
5175a5c

4.1.0 (2024-01-25)

Features

  • isDateValid: rename dateIsValid to isDateValid, with an alias for compatibility (c6d89e7)
  • todayDeviceLocal: rename "todayLocal" to "todayDeviceLocal", with an alias for compatibility (6b23e44)

Bug Fixes

  • fromReferenceDays: if referenceDays is non-finite, throw an error (e6237c4)
  • fromReferenceDays: if referenceDays is non-integer, round it down (722a267)
  • normalize: make normalize explicitly an alias of date (f5b670b)
  • toReferenceDays: handle non-integer years and months as sensibly as we can (7a222ac)

v4.0.1

Choose a tag to compare

@github-actions github-actions released this 25 Jan 15:57
046b7f0

4.0.1 (2024-01-25)

v4.0.0

Choose a tag to compare

@github-actions github-actions released this 25 Jan 03:50
530418b

4.0.0 (2024-01-25)

⚠ BREAKING CHANGES

  • Date objects now have a type
    discriminator, in the form of a "type" field, which
    is always set to the string "Date". The isDate and
    isValidDate functions will not consider a value to
    be a Date unless the discriminator is present. Most
    other functions continue to accept objects without
    this field, but if it is present it must be set to
    the string "Date". This is to guard against errors
    caused by similar objects such as DateTimes or
    Timestamps being accidentally passed to date
    functions. The type discriminator also makes it easy
    to discriminate Dates from other types in type
    unions.
  • node: node versions < 18, 19 are no longer
    supported.

Features

  • add aliases with "date" in the name to disambiguate from other date-time functions (dbdd52d)
  • add type discriminator (43016c4)
  • node: drop support for node < 18, 19 (cad0aa8)

v3.1.2

Choose a tag to compare

@github-actions github-actions released this 25 Jan 02:20
6c9dadd

3.1.2 (2024-01-25)

v3.1.1

Choose a tag to compare

@github-actions github-actions released this 25 Jan 02:13
11ddcf2

3.1.1 (2024-01-25)

Bug Fixes

  • deps: correct dependency on is-integer to accept later versions (11ddcf2)

v3.1.0

Choose a tag to compare

@github-actions github-actions released this 25 Jan 02:11
a0b4adb

3.1.0 (2024-01-25)

Features

  • date: add date function, which constructs a date (a0b4adb)