Skip to content

Bump time from 0.1.42 to 0.2.17#64

Closed
dependabot-preview[bot] wants to merge 1 commit intomasterfrom
dependabot/cargo/time-0.2.17
Closed

Bump time from 0.1.42 to 0.2.17#64
dependabot-preview[bot] wants to merge 1 commit intomasterfrom
dependabot/cargo/time-0.2.17

Conversation

@dependabot-preview
Copy link

Bumps time from 0.1.42 to 0.2.17.

Release notes

Sourced from time's releases.

v0.2.17

No release notes provided.

v0.2.16

No release notes provided.

v0.2.15

No release notes provided.

v0.2.14

No release notes provided.

v0.2.13

No release notes provided.

v0.2.12

No release notes provided.

v0.2.11

No release notes provided.

v0.2.10

No release notes provided.

v0.2.9

No release notes provided.

v0.2.8

No release notes provided.

v0.2.7

All changes are now being reported in the repository's changelog.

v0.2.6

Bug fixes

v0.2.5 introduces a major inconsistency, not just in its behavior for PrimitiveDateTime::using_offset, but also changes its signature, rendering it incapable of being used in const contexts.

Both the behavior and the function signature have been fixed, while still fixing the underlying issue. PrimitiveDateTime::using_offset mentions in the docs that the PrimitiveDateTime is assumed to be UTC, and is converted to the provided offset. This was the previous behavior.

The following functionality had bugs that were fixed (from v0.2.4):

  • OffsetDateTime::timestamp
  • OffsetDateTime::parse
  • Equality, comparison for OffsetDateTime — Subsecond values were not checked previously. They also relied on the faulty timestamp implementation.
  • Hashing of OffsetDateTime — Same as equality and comparison. Additionally, hashes would collide with PrimitiveDateTime if the underlying UTC was the same.
  • Subtraction of two OffsetDateTimes previously disregarded the subsecond values.

All of these changes are now checked in CI, so regressions will be caught.

Changelog

Sourced from time's changelog.

0.2.17 [2020-09-01]

Changed

The following functions are const fn on rustc ≥ 1.46:

  • Date::year
  • Date::month
  • Date::day
  • Date::month_day
  • Date::ordinal
  • Date::as_ymd
  • Date::as_yo
  • Date::julian_day
  • Duration::checked_div
  • PrimitiveDateTime::year
  • PrimitiveDateTime::month
  • PrimitiveDateTime::day
  • PrimitiveDateTime::month_day
  • PrimitiveDateTime::ordinal
  • Weekday::previous
  • Weekday::next

Improvements

  • size_of::<Date>() has been reduced from 8 to 4. As a consequence, size_of::<PrimitiveDatetime>() went from 16 to 12 and size_of::<OffsetDateTime>() from 20 to 16. This change also results in a performance improvement of approximately 30% on the Date::year and Date::ordinal methods.
  • cfg-if has been removed as a dependency.

Fixed

  • cfg flags passed to rustc will no longer collide with other crates (at least unless they're doing something very stupid).
  • The crate will successfully compile with any combination of feature flags. Previously, some combinations would fail.

0.2.16 [2020-05-12]

Added

OffsetDateTimes can now be represented as Unix timestamps with serde. To do this, you can use the time::serde::timestamp and time::serde::timestamp::option modules.

0.2.15 [2020-05-04]

Fixed

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Bumps [time](https://github.com/time-rs/time) from 0.1.42 to 0.2.17.
- [Release notes](https://github.com/time-rs/time/releases)
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md)
- [Commits](https://github.com/time-rs/time/commits/v0.2.17)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Sep 2, 2020
@dependabot-preview
Copy link
Author

Superseded by #65.

@dependabot-preview dependabot-preview bot deleted the dependabot/cargo/time-0.2.17 branch September 8, 2020 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants