Skip to content

v0.5.0

Latest

Choose a tag to compare

@Davoodeh Davoodeh released this 22 Oct 04:03

Add

  • Weekday for getting weekday of a date and weeks of given durations based on
    various initial days
  • more tm and jtm methods to convert between C and Rust more easily:
    • Date::from_jtm_yday and Date::from_jtm_mday
    • MonthDay::from_jtm and MonthDay::to_jtm_mday
    • Month::from_jtm_mon and Month::to_jtm_mon
    • Ordinal::from_tm_yday and Ordinal::to_tm_yday
    • Year::from_jtm_year and Year::to_jtm_year
  • support for core::ffi int types in codegen::resolve_type and cffi
  • IYmd (as a replacement for the removed IntYmd).
  • rlib type
  • support From<SystemTime> on std feature
  • support jiff feature

Remove

  • Date::update_jtm not to have mut references or pointer to FFI if not
    necessary
  • deprecated MonthDay::LEAP_LAST_MONTH_DAY_MAX.
  • deprecated MonthDay::NON_LEAP_LAST_MONTH_DAY_MAX.
  • IntYmd (replaced with IYmd).

Fix

  • Ordering not define (not publicly) in C headers
  • cffi not being able to determine const of pointers correctly in functions
    (patterns in general).
  • test --all-features being broken since v0.4.1 (4395e9d, "Add tm
    support for C")
  • wasm-opt complaining about --enable-bulk-memory missing for some setups
  • Date::add_days_strict not taking IDayDiff::MAX (previous actual maximum
    was around IDayDiff::MAX - self.ordinal)
  • add_*_strict methods on Date and MonthDay having wrong did_saturate
  • Date::add_months* method not working with negative values

Full Changelog: v0.4.2...v0.5.0