File tree Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
1
name = " Compat"
2
2
uuid = " 34da2185-b29b-5c13-b0c7-acf172513d20"
3
- version = " 4.11 .0"
3
+ version = " 4.12 .0"
4
4
5
5
[deps ]
6
6
Dates = " ade2ca70-3891-5945-98fb-dc099432e06a"
Original file line number Diff line number Diff line change @@ -120,6 +120,8 @@ changes in `julia`.
120
120
121
121
* ` pkgversion(m::Module) ` returns the version of the package that loaded a given module ([ #45607 ] ) (since Compat 4.11)
122
122
123
+ * ` VersionNumber(::VersionNumber) ` defined as a no-op constructor ([ #45052 ] ) (since Compat 4.12)
124
+
123
125
## Developer tips
124
126
125
127
One of the most important rules for ` Compat.jl ` is to avoid breaking user code
@@ -172,6 +174,7 @@ Note that you should specify the correct minimum version for `Compat` in the
172
174
[ #43334 ] : https://github.com/JuliaLang/julia/issues/43334
173
175
[ #43354 ] : https://github.com/JuliaLang/julia/issues/43354
174
176
[ #43852 ] : https://github.com/JuliaLang/julia/issues/43852
177
+ [ #45052 ] : https://github.com/JuliaLang/julia/issues/45052
175
178
[ #45607 ] : https://github.com/JuliaLang/julia/issues/45607
176
179
[ #46104 ] : https://github.com/JuliaLang/julia/issues/46104
177
180
[ #48038 ] : https://github.com/JuliaLang/julia/issues/48038
Original file line number Diff line number Diff line change @@ -770,6 +770,11 @@ if VERSION < v"1.7.0-DEV.1187"
770
770
export redirect_stdio
771
771
end
772
772
773
+ # https://github.com/JuliaLang/julia/pull/45052
774
+ if VERSION < v " 1.9.0-DEV.461"
775
+ Base. VersionNumber (v:: VersionNumber ) = v
776
+ end
777
+
773
778
include (" deprecated.jl" )
774
779
775
780
end # module Compat
Original file line number Diff line number Diff line change 728
728
@test_throws LoadError @eval @compat public @bar foo
729
729
@test_throws LoadError @eval @compat publac @bar , foo
730
730
end
731
+
732
+ # https://github.com/JuliaLang/julia/pull/45052
733
+ @testset " VersionNumber no-op constructor" begin
734
+ v = VersionNumber (" 1.2.3" )
735
+ @test VersionNumber (v) === v
736
+ end
You can’t perform that action at this time.
0 commit comments