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

Make Dates a weakdep #791

Merged
merged 1 commit into from
Feb 18, 2023
Merged

Make Dates a weakdep #791

merged 1 commit into from
Feb 18, 2023

Conversation

martinholters
Copy link
Member

This is the little brother of #790.

It exploits that Compat only really needs Dates (to extend it) on Julia versions without weakdep support (i.e. before 1.9). So on newer Julia versions, no (unnecessary) dependence on Dates is introduced without loosing anything on older Julia versions.

Should a post-1.9 feature of Dates (or any other stdlib, actually) be added to Compat in the future, the way to do so is probably via a package extension (as proposed in #790), cc @oscardssmith.

This exploits that `Compat` only really needs `Dates` (to extend it) on
Julia versions without weakdep support (i.e. before 1.9). So on newer
Julia versions, no (unnecessary) dependence on `Dates` is introduced
without loosing anything on older Julia versions.

Should a post-1.9 feature of `Dates` (or any other stdlib, actually) be
added to `Compat` in the future, the way to do so is probably via a
package extension.
@codecov
Copy link

codecov bot commented Feb 16, 2023

Codecov Report

Merging #791 (bb27794) into master (b46132b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #791   +/-   ##
=======================================
  Coverage   91.92%   91.92%           
=======================================
  Files           2        2           
  Lines         260      260           
=======================================
  Hits          239      239           
  Misses         21       21           
Impacted Files Coverage Δ
src/Compat.jl 92.46% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@martinholters
Copy link
Member Author

@oscardssmith unless anyone else objects, I'd suggest we merge this and then in #790 try to find a solution for LinearAlgebra only. Ok with you?

@oscardssmith
Copy link
Member

sounds good.

@martinholters martinholters merged commit 4d49a82 into master Feb 18, 2023
@martinholters martinholters deleted the mh/weak-dep-dates branch February 18, 2023 17:49
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.

2 participants