Skip to content

v0.10.0

Latest

Choose a tag to compare

@rockorager rockorager released this 03 Oct 11:31
· 1 commit to main since this release
06bb7b4

Highlights

  • First release for Zig 0.17. Requires Zig 0.17.0.
  • Faster weekday and time-of-day calculations.

Breaking Changes

  • minimum_zig_version is now 0.17.0. Use v0.9.0 for Zig 0.16.
  • POSIX TZ parsing is stricter. Malformed strings that were previously accepted now return error.InvalidPosix, including strings that start with a digit, designations shorter than three characters, and inputs such as UTC,foo.

Fixes and Improvements

  • Don't crash when TZ is set to an empty string. zeit now falls back to UTC, like glibc.
  • Fix an integer overflow when parsing TZ.
  • Fix DST offset assignment when a POSIX TZ string ends with the DST offset.
  • Speed up weekday calculation and shorten the hour/minute/second dependency chain. Benchmarks are in bench/TIME.md.
  • Fix the zig fetch commands and the example in the README.

Pull Requests Included

Full Changelog: v0.9.0...v0.10.0