Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump chrono from 0.4.34 to 0.4.38 #893

Closed
wants to merge 3 commits into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 11, 2024

Bumps chrono from 0.4.34 to 0.4.35.

Release notes

Sourced from chrono's releases.

v0.4.35

Most of our efforts have shifted to improving the API for a 0.5 release, for which cleanups and refactorings are landing on the 0.4.x branch.

The most significant changes in this release are two sets of deprecations.

  • We deprecated all timestamp-related methods on NaiveDateTime. The reason is that a timestamp is defined to be in UTC. The NaiveDateTime type doesn't know the offset from UTC, so it was technically wrong to have these methods. The alternative is to use the similar methods on the DateTime<Utc> type, or from the TimeZone trait.

    Converting from NaiveDateTime to DateTime<Utc> is simple with .and_utc(), and in the other direction with .naive_utc().

  • The panicking constructors of TimeDelta (the new name of the Duration type) are deprecated. This was the last part of chrono that defaulted to panicking on error, dating from before rust 1.0.

  • A nice change is that NaiveDate now includes a niche. So now Option<NaiveDate>, Option<NaiveDateTime> and Option<DateTime<Tz>> are the same size as their base types.

  • format::Numeric and format::Fixed are marked as non_exhaustive. This will allow us to improve our formatting and parsing support, and we have reason to believe this breaking change will have little to no impact on users.

Additions

  • Add DateTime::{from_timestamp_micros, from_timestamp_nanos} (#1234)
  • Add getters to Parsed (#1465)

Deprecations

  • Deprecate timestamp methods on NaiveDateTime (#1473)
  • Deprecate panicking constructors of TimeDelta (#1450)

Changes/fixes

  • Use NonZeroI32 inside NaiveDate (#1207)
  • Mark format::Numeric and format::Fixed as non_exhaustive (#1430)
  • Parsed fixes to error values (#1439)
  • Use overflowing_naive_local in DateTime::checked_add* (#1333)
  • Do complete range checks in Parsed::set_* (#1465)

Documentation

  • Rustfmt doctests (#1452)
  • Improve docs for crate features (#1455, thanks @​edmorley)
  • Add more documentation and examples to Parsed (#1439)

Internal

  • Refactor internals module (#1428, #1429, #1431, #1432, #1433, #1438)
  • CI: test cross-compiling to x86_64-unknown-illumos instead of Solaris (#1437)
  • CI: lint Windows target, fix clippy warning (#1441)
  • CI: only run cargo hack check on Linux (#1442)
  • Update windows-bindgen to 0.54 (#1462, #1483)
  • Simplify error value of parse_internal (#1459)
  • Simplify SerdeError (#1458)
  • Simplify NaiveDate::from_isoywd a bit (#1464)

... (truncated)

Commits
  • 9fdb596 Prepare 0.4.35
  • 9e667b6 Deprecate panicking TimeDelta constructors
  • 2c1b0be Tests: replace TimeDelta::milliseconds with try_milliseconds
  • 2bf3302 Tests: replace TimeDelta::seconds with try_seconds
  • f93508f Tests: replace TimeDelta::minutes with try_minutes
  • 9fc931a Tests: replace TimeDelta::hours with try_hours
  • 9f23c08 Tests: replace TimeDelta::days with try_days
  • e8f9b5e Tests: replace TimeDelta::weeks with try_weeks
  • 51a1aa2 Tests: use Days type when it is more appropriate than TimeDelta
  • 4251bd1 Replace TimeDelta::seconds with try_seconds
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot requested a review from cafkafk as a code owner March 11, 2024 23:00
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Mar 11, 2024
@dependabot dependabot bot force-pushed the dependabot/cargo/chrono-0.4.35 branch 2 times, most recently from 042ee1c to c860029 Compare March 21, 2024 08:42
@cafkafk cafkafk force-pushed the dependabot/cargo/chrono-0.4.35 branch from c860029 to cd090aa Compare March 22, 2024 12:54
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 1, 2024

A newer version of chrono exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@gierens gierens force-pushed the dependabot/cargo/chrono-0.4.35 branch from cd090aa to 96376fd Compare July 9, 2024 07:46
@gierens gierens changed the title build(deps): bump chrono from 0.4.34 to 0.4.35 build(deps): bump chrono from 0.4.34 to 0.4.38 Jul 9, 2024
@gierens
Copy link
Member

gierens commented Jul 9, 2024

@cafkafk ... I rebased this again on main, bumped to the current chrono version 0.4.38 and replaced the now deprecated call to NaiveDateTime::from_timestamp_opt ... Should be mergeable now.

@gierens gierens force-pushed the dependabot/cargo/chrono-0.4.35 branch from 96376fd to 74582ed Compare July 9, 2024 07:55
@gierens
Copy link
Member

gierens commented Jul 9, 2024

Ah, forgot the build dependency ... now it should be ready!

dependabot bot and others added 3 commits August 29, 2024 18:00
Bumps [chrono](https://github.com/chronotope/chrono) from 0.4.34 to 0.4.35.
- [Release notes](https://github.com/chronotope/chrono/releases)
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md)
- [Commits](chronotope/chrono@v0.4.34...v0.4.35)

---
updated-dependencies:
- dependency-name: chrono
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@cafkafk cafkafk force-pushed the dependabot/cargo/chrono-0.4.35 branch from 74582ed to 252a118 Compare August 29, 2024 16:00
@cafkafk
Copy link
Member

cafkafk commented Oct 25, 2024

done in #1199

@cafkafk cafkafk closed this Oct 25, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 25, 2024

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/cargo/chrono-0.4.35 branch October 25, 2024 13:22
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 rust Pull requests that update Rust code
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants