chore(deps): update rust crate time to 0.3.36#6323
Merged
Conversation
9d7323b to
a51ac3d
Compare
|
GNU testsuite comparison: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.3->0.3.36Release Notes
time-rs/time (time)
v0.3.36Compare Source
# Fixed
FormatItemcan be used as part of an import path. See #675 for details.v0.3.35Compare Source
Added
Duration::checked_negext::InstantExt, which provides methods for usingtime::Durationwithstd::time::InstantChanged
Instantis deprecated. It is recommended to usestd::time::Instantdirectly, importingtime::ext::InstantExtfor interoperability withtime::Duration.FormatItemhas been renamed toBorrowedFormatItem, avoiding confusion withOwnedFormatItem.An alias has been added for backwards compatibility.
Fixed
Durationis documented correctly. The previous documentationcontained an off-by-one error.
v0.3.34Compare Source
Fixed
Computing the local offset on Windows works again. It was broken in some cases in v0.3.32 and
v0.3.33.
v0.3.33Compare Source
Fixed
Builds targeting
wasm32-unknown-unknownnow work again.v0.3.32Compare Source
Added
Date::replace_ordinalPrimitiveDateTime::replace_ordinalOffsetDateTime::replace_ordinalOffsetDateTimeas a Unix timestamp with subsecond precision for serde.time::serde::timestamp::millisecondstime::serde::timestamp::microsecondstime::serde::timestamp::nanosecondsChanged
Duration::time_fnis deprecated.v0.3.31Compare Source
Added
OffsetDateTime::new_in_offsetOffsetDateTime::new_utcChanged
UtcOffsethas been expanded from ±23:59:59 to ±25:59:59. This is to supportthe full POSIX range while permitting infallible negation.
v0.3.30Compare Source
Added
powerfmt::smart_display::SmartDisplayhas been added for the main types in the library. Theseimplementations ensure that values follow the requested fill, width, and alignment when using
format!or similar macros.Displayis implemented in terms ofSmartDisplay.Fixed
NumericalDurationorNumericalStdDuration.v0.3.29Compare Source
Added
Datehas been added. BothDateandOption<Date>are four bytes.Second::per(Day), which returnsthe number of seconds in one day. See the types in the [
time::convertmodule][time::convert module] for moreinformation.
Changed
--cfg unsound_local_offsethas been removed.#![feature(no_coverage)]was previously used internally for code coverage. It is no longer used,so it has been removed.
modifier::OffsetHourhas been changed. This was unintentionally changed inv0.3.17 and went unnoticed until now. The sign is now only present if needed by default, as was
the case previously. This does not affect any situation where
format_description!orformat_description::parseis used.Fixed
std::time::Durationto/from anOffsetDateTimewill not result ininteger overflow internally. It will still panic if the result is out of range.
v0.3.28Compare Source
Added
Iso8601format description have been added. Thisavoids the need to manually configure the format.
[end]component has been added. This is ignored during formatting, but is used to indicatethe end of input when parsing. If any input remains after this component, an error is returned.
This is useful when using the
[first]component, as it avoids the need to reorder variants.Changed
versions of MacOS do not meet the requirements for the exemption.
UnexpectedTrailingCharacterserror variant has been moved toParseFromDescription. Allpreviously-existing locations of this variant have been deprecated and will no longer be returned.
v0.3.27Compare Source
This sets the
serdedependency requirement to>= 1.0.184where the binaries have been removed.v0.3.26Compare Source
This release contains only a single change.
serdeis required to be a version prior to 1.0.171.This is due to the decision by the maintainer of
serdeto include pre-built binaries that areexecuted without the end user's knowledge. As of the time of publishing, the included binary has not
even been reproduced. This is a security risk, and the
timeproject strongly opposes thisdecision. While this may break some users' builds due to conflicting versions, it is a necessary
step to ensure the security.
v0.3.25Compare Source
Fixed
Time::replace_millisecondswould panic on some out-of-range values. This hasbeen fixed.
v0.3.24Compare Source
Added
subsecondcomponent is taken into account when parsing theunix_timestampcomponent. Ifdata is conflicting, the
subsecondvalue takes precedence.Timewith only thehourcomponent is now supported. Theminuteandsecond, andsubsecondcomponents are assumed to be zero.Changed
Parsedhas been improved.before being rejected in the final step. Now, invalid values are rejected as soon as they are
encountered. This affects the error variant returned, which may cause minor breakage for any code
(incorrectly) relying on the exact error variant.
Time, an error is returned if components are present but not consecutive. Forexample, if
hoursandsecondsare present,minuteswill not be assumed to be zero.Fixed
Duration::checked_divcould return a slightly incorrect result in somecases. This has been fixed.
v0.3.23Compare Source
Added
Date::next_occurrenceDate::prev_occurrenceDate::nth_next_occurrenceDate::nth_prev_occurrenceWeekday::nth_prevMonth::nth_nextMonth::nth_prevChanged
The minimum supported Rust version policy has been updated. See the README for
details.
Fixed
Duration::abscorrectly returnsDuration::MAXwhen near the minimum value. The nanosecondsvalue was previously incorrect.
in some cases.
v0.3.22Compare Source
Added
OffsetDateTime::checked_to_offsetv0.3.21Compare Source
Added
time::serde::format_description!macro.Weekday::nth_nextChanged
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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 has been generated by Mend Renovate. View repository job log here.