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

Update all dependencies #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update all dependencies #23

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 18, 2022

This PR contains the following updates:

Package Type Update Change
actions/checkout action major v3 -> v4
bat dependencies minor 0.21.0 -> 0.25.0
chrono dependencies patch 0.4.26 -> 0.4.39
clap dependencies major 3.2.16 -> 4.0.0
dirs dependencies major 4.0.0 -> 5.0.0
edit dependencies patch 0.1.4 -> 0.1.5
flate2 dependencies patch 1.0.26 -> 1.0.35
lazy_static dependencies minor 1.4.0 -> 1.5.0
quit dependencies major 1.1.4 -> 2.0.0
regex dependencies minor 1.9.1 -> 1.11.1
reqwest dependencies minor 0.11.11 -> 0.12.0
serde (source) dependencies patch 1.0.171 -> 1.0.217
serde_json dependencies patch 1.0.102 -> 1.0.135
tempfile (source) dependencies minor 3.6.0 -> 3.15.0
termsize dependencies patch 0.1.6 -> 0.1.9
which dependencies major 4.3.0 -> 7.0.0

Release Notes

actions/checkout (actions/checkout)

v4

Compare Source

sharkdp/bat (bat)

v0.25.0

Compare Source

Features

Bugfixes

Other

Syntaxes

Themes

bat as a library

  • Changes to syntax_mapping::SyntaxMapping #​2755 (@​cyqsimon)
    • SyntaxMapping::get_syntax_for is now correctly public
    • [BREAKING] SyntaxMapping::{empty,builtin} are removed; use SyntaxMapping::new instead
    • [BREAKING] SyntaxMapping::mappings is replaced by SyntaxMapping::{builtin,custom,all}_mappings
  • Make Controller::run_with_error_handler's error handler FnMut, see #​2831 (@​rhysd)
  • Improve compile time by 20%, see #​2815 (@​dtolnay)
  • Add theme::theme for choosing an appropriate theme based on the
    terminal's color scheme, see #​2896 (@​bash)
    • [BREAKING] Remove HighlightingAssets::default_theme. Use theme::default_theme instead.
  • Add PrettyPrinter::print_with_writer for custom output destinations, see #​3070 (@​kojix2)

v0.24.0

Compare Source

Features

Bugfixes

Other

Syntaxes

bat as a library

  • Add optional output_buffer arg to Controller::run() and Controller::run_with_error_handler(), see #​2618 (@​Piturnah)

v0.23.0

Compare Source

Features

Bugfixes

Other

Syntaxes

Themes

bat as a library

v0.22.1

Compare Source

Bugfixes

  • Bring back pre-processing of ANSI escape characters to so that some common bat use cases starts working again. See #​2308 (@​Enselic)

v0.22.0

Compare Source

Features

Bugfixes

Other

Syntaxes

bat as a library

chronotope/chrono (chrono)

v0.4.39: 0.4.39

Compare Source

What's Changed

v0.4.38

Compare Source

This release bring a ca. 20% improvement to the performance of the formatting code, and a convenient days_since method for the Weekday type.

Chrono 0.4.38 also removes the long deprecated rustc-serialize feature. Support for rustc-serialize will be soft-destabilized in the next Rust edition. Removing the feature will not break existing users of the feature; Cargo will just not update dependents that rely on it to newer versions of chrono.

In chrono 0.4.36 we made an accidental breaking change by switching to derive(Copy) for DateTime instead of a manual implementation. It is reverted in this release.

Removals
Additions
Fixes
  • Return error when rounding with a zero duration (#​1474, thanks @​Dav1dde)
  • Manually implement Copy for DateTime if offset is Copy (#​1573)
Internal
  • Inline test_encodable_json and test_decodable_json functions (#​1550)
  • CI: Reduce combinations in cargo hack check (#​1553)
  • Refactor formatting code (#​1335)
  • Optimize number formatting (#​1558)
  • Only package files needed for building and testing (#​1554)

Thanks to all contributors on behalf of the chrono team, @​djc and @​pitdicker!

v0.4.37

Compare Source

Version 0.4.36 introduced an unexpected breaking change and was yanked. In it LocalResult was renamed to MappedLocalTime to avoid the impression that it is a Result type were some of the results are errors. For backwards compatibility a type alias with the old name was added.

As it turns out there is one case where a type alias behaves differently from the regular enum: you can't import enum variants from a type alias with use chrono::LocalResult::*. With 0.4.37 we make the new name MappedLocalTime the alias, but keep using it in function signatures and the documentation as much as possible.

See also the release notes of chrono 0.4.36 from yesterday for the yanked release.

v0.4.36

Compare Source

This release un-deprecates the methods on TimeDelta that were deprecated with the 0.4.35 release because of the churn they are causing for the ecosystem.

New is the DateTime::with_time() method. As an example of when it is useful:

use chrono::{Local, NaiveTime};
// Today at 12:00:00
let today_noon = Local::now().with_time(NaiveTime::from_hms_opt(12, 0, 0).unwrap());
Additions
Deprecations
  • Revert TimeDelta deprecations (#​1543)
  • Deprecate TimeStamp::timestamp_subsec_nanos, which was missed in the 0.4.35 release (#​1486)
Documentation
  • Correct version number of deprecation notices (#​1486)
  • Fix some typos (#​1505)
  • Slightly improve serde documentation (#​1519)
  • Main documentation: simplify links and reflow text (#​1535)
Internal
  • CI: Lint benchmarks (#​1489)
  • Remove unnessary Copy and Send impls (#​1492, thanks @​erickt)
  • Backport streamlined NaiveDate unit tests (#​1500, thanks @​Zomtir)
  • Rename LocalResult to TzResolution, add alias (#​1501)
  • Update windows-bindgen to 0.55 (#​1504)
  • Avoid duplicate imports, which generate warnings on nightly (#​1507)
  • Add extra debug assertions to NaiveDate::from_yof (#​1518)
  • Some small simplifications to DateTime::date_naive and NaiveDate::diff_months (#​1530)
  • Remove unwrap in Unix Local type (#​1533)
  • Use different method to ignore feature-dependent doctests (#​1534)

Thanks to all contributors on behalf of the chrono team, @​djc and @​pitdicker!

v0.4.35

Compare Source

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
Internal

Thanks to all contributors on behalf of the chrono team, @​djc and @​pitdicker!

v0.4.34

Compare Source

Notable changes
  • In chrono 0.4.34 we finished the work to make all methods const where doing so is supported by rust 1.61.
  • We renamed the Duration type to TimeDelta. This removes the confusion between chrono's type and the later Duration type in the standard library. It will remain available under the old name as a type alias for compatibility.
  • The Windows implementation of Local is rewritten. The new version avoids panics when the date is outside of the range supported by windows (the years 1601 to 30828), and gives more accurate results during DST transitions.
  • The Display format of TimeDelta is modified to conform better to ISO 8601. Previously it converted all values greater than 24 hours to a value with days. This is not correct, as doing so changes the duration from an 'accurate' to a 'nominal' representation to use ISO 8601 terms.
Fixes
Additions
Changes
  • Rename Duration to TimeDelta, add type alias (#​1406)
  • Make TimeDelta methods const (#​1337)
  • Make remaining methods of NaiveDate, NaiveWeek, NaiveTime and NaiveDateTime const where possible (#​1337)
  • Make methods on DateTime const where possible (#​1400)
  • Make Display format of TimeDelta conform better to ISO 8601 (#​1328)
Documentation
Internal
  • Switch branch names: 0.4.x releases are the main branch, work on 0.5 happens in the 0.5.x branch (#​1390, #​1402).
  • Don't use deprecated method in impl Arbitrary for DateTime and set up CI test (#​1336)
  • Remove workaround for Rust < 1.61 (#​1393)
  • Bump codecov/codecov-action from 3 to 4 (#​1404)
  • Remove partial support for handling -0000 offset (#​1411)
  • Move TOO_LONG error out of parse_internal (#​1419)

Thanks to all contributors on behalf of the chrono team, @​djc and @​pitdicker!

v0.4.33

Compare Source

This release fixes the broken docrs.rs build of chrono 0.4.32.

What's Changed

v0.4.32

Compare Source

In this release we shipped part of the effort to reduce the number of methods that could unexpectedly panic, notably for the DateTime and Duration types.

Chrono internally stores the value of a DateTime in UTC, and transparently converts it to the local value as required. For example adding a second to a DateTime needs to be done in UTC to get the correct result, but adding a day needs to be done in local time to be correct. What happens when the value is near the edge of the representable range, and the implicit conversions pushes it beyond the representable range? Many methods could panic on such inputs, including formatting the value for Debug output.

In chrono 0.4.32 the range of NaiveDate, NaiveDateTime and DateTime is made slightly smaller. This allows us to always do the implicit conversion, and in many cases return the expected result. Specifically the range is now from January 1, -262144 until December 31, 262143, one year less on both sides than before. We expect this may trip up tests if you hardcoded the MIN and MAX dates.

Duration had a similar issue. The range of this type was pretty arbitrary picked to match the range of an i64 in milliseconds. Negating an i64::MIN pushes a value out of range, and in the same way negating Duration::MIN could push it out of our defined range and cause a panic. This turns out to be somewhat common and hidden behind many layers of abstraction. We adjusted the type to have a minimum value of -Duration::MAX instead and prevent the panic case.

Other highlights:

  • Duration gained new fallible initialization methods.
  • Better support for rkyv.
  • Most methods on NaiveDateTime are now const.
  • We had to bump our MSRV to 1.61 to keep building with our dependencies. This will also allow us to make more methods on DateTime const in a future release.

Complete list of changes:

Fixes
  • Fix panic in TimeZone::from_local_datetime (#​1071)
  • Fix out of range panics in DateTime getters and setters (#​1317, #​1329)
Additions
Changes
  • Fix panic in Duration::MIN.abs() (adjust Duration::MIN by 1 millisecond) (#​1334)
  • Bump MSRV to 1.61 (#​1347)
  • Update windows-targets requirement from 0.48 to 0.52 (#​1360)
  • Update windows-bindgen to 0.52 (#​1379)
Deprecations
  • Deprecate standalone format functions (#​1306)
Documentation
Rkyv support

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.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/all branch 3 times, most recently from b697866 to cefb3a4 Compare August 21, 2022 23:19
@renovate renovate bot force-pushed the renovate/all branch 4 times, most recently from b072fae to e33f912 Compare September 2, 2022 03:41
@hwittenborn
Copy link
Member

#22 needs to be merged before this, add several deps are changed in that.

@renovate renovate bot force-pushed the renovate/all branch 3 times, most recently from 314b68f to dd71530 Compare September 13, 2022 01:21
@renovate renovate bot force-pushed the renovate/all branch 3 times, most recently from 0856ca7 to c054f4d Compare September 22, 2022 18:36
@hwittenborn hwittenborn force-pushed the main branch 2 times, most recently from 8e46bcb to 8026ecb Compare September 25, 2022 06:33
@renovate renovate bot force-pushed the renovate/all branch 9 times, most recently from a5c580a to 4223636 Compare October 1, 2022 20:45
@renovate renovate bot force-pushed the renovate/all branch 5 times, most recently from c38b670 to 0641c2e Compare October 10, 2022 18:47
@renovate renovate bot force-pushed the renovate/all branch 4 times, most recently from f8e12ba to 50f8ea1 Compare October 28, 2024 19:46
@renovate renovate bot force-pushed the renovate/all branch 2 times, most recently from 9ecccbe to a6a44b1 Compare November 1, 2024 03:22
@renovate renovate bot force-pushed the renovate/all branch 4 times, most recently from 031664c to e30b789 Compare November 14, 2024 15:26
@renovate renovate bot force-pushed the renovate/all branch 2 times, most recently from fad1d56 to 6434c45 Compare November 17, 2024 15:36
@renovate renovate bot force-pushed the renovate/all branch 3 times, most recently from afbbed3 to 5f980db Compare December 5, 2024 23:21
@renovate renovate bot force-pushed the renovate/all branch 2 times, most recently from e88ff4b to dd29ee9 Compare December 11, 2024 04:43
@renovate renovate bot force-pushed the renovate/all branch 4 times, most recently from dcdba3f to 8ccb59c Compare December 21, 2024 19:44
@renovate renovate bot force-pushed the renovate/all branch 4 times, most recently from 7f7563d to 1e0ac65 Compare December 31, 2024 18:53
@renovate renovate bot force-pushed the renovate/all branch 3 times, most recently from a02a3e6 to 3631be8 Compare January 8, 2025 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant