Update Rust crate jiff to v0.1.27 #10972
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.1.24->0.1.27Release Notes
BurntSushi/jiff (jiff)
v0.1.27Compare Source
===================
This is a small release with a bug fix for precision loss in some cases when
doing arithmetic on
TimestamporZoned.Bug fixes:
Fix the check for fractional seconds before taking the fast path.
v0.1.26Compare Source
===================
This is a small release with another deprecation and a new API for doing
prefix parsing via
strptime. There's also a bug fix for a corner casewhen dealing with daylight saving time gaps with the
Zoned::withAPI.Deprecations:
Deprecate
ISOWeekDate::to_datein favor ofISOWeekDate::date.Enhancements:
Add
fmt::strtime::BrokenDownTime::parse_prefixfor parsing only a prefix.Bug fixes:
Fix unintuitive behavior of
Zoned::withwhen time falls in a DST gap.v0.1.25Compare Source
===================
This release contains a number of deprecations in preparation for a
jiff 0.2release. The deprecations are meant to facilitate a smoother transition. The
deprecations, when possible, come with new APIs that will permit users to write
forward compatible code that will work in both
jiff 0.1andjiff 0.2.This release also includes a handful of new conversion specifiers in Jiff's
strftimeandstrptimeAPIs. This improves compatibility with the analogousimplementation with GNU libc.
Deprecations:
The
intzmethods onZoned,Timestamp,civil::DateTimeandcivil::Datehave been deprecated in favor of
in_tz.The
EqandPartialEqtrait implementations onSpanhave been deprecatedin favor of using the new
SpanFieldwisetype.Silently assuming days are always 24 hours in some
SpanAPIs has now beendeprecated. This will become an error in
jiff 0.2. To continue assumingdays are 24 hours without a relative reference date, you can use the new
SpanRelativeTo::days_are_24_hoursAPI. Injiff 0.1, you'll seen aWARN-level log message emitted if you're code will be broken by
jiff 0.2.Both
%Vand%:Vhave been deprecated in favor of%Qand%:Q. Injiff 0.2,%Vwill correspond to the ISO 8601 week number and%:Vwillresult in an error. This change was made to improve compatibility with other
strtimeimplementations.%Vand%:Vcontinue to correspond to IANAtime zone identifiers in
jiff 0.1, but using them for parsing or formattingwill result in a WARN-level deprecation message.
Enhancements:
Adds a number of new conversion specifiers to Jiff's
strftimeandstrptimeAPIs. Specifically,%C,%G,%g,%j,%k,%l,%n,%R,%s,%t,%U,%u,%W,%w. Their behavior should match thecorresponding specifiers in GNU libc.
Configuration
📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.