github chakra-ui/zag @zag-js/date-utils@1.20.0

latest releases: @zag-js/tags-input@1.34.1, @zag-js/tour@1.34.1, @zag-js/aria-hidden@1.34.1...
7 months ago

Patch Changes

  • 78dd066 Thanks
    @segunadebayo! - Fix date comparison issues when time components are involved

    This change resolves critical issues with date comparison operations when different date types (CalendarDate,
    CalendarDateTime, ZonedDateTime) are mixed, particularly in scenarios involving time components.

    • Convert now(timeZone) result to CalendarDate to ensure consistent date types without time components across all
      date range preset operations
    • Update constrainValue function to normalize all input dates to CalendarDate before comparison, preventing
      time-component comparison issues
    • Remove redundant date type conversion in getMonthFormatter for cleaner, more efficient code

Don't miss a new zag release

NewReleases is sending notifications on new releases.