You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: NEWS.md
+15
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,10 @@ Language changes
37
37
omit the default user depot ([#51448]).
38
38
* Precompilation cache files are now relocatable and their validity is now verified through
39
39
a content hash of their source files instead of their `mtime` ([#49866]).
40
+
* Extensions may now depend on other extensions, if their triggers include all triggers of any
41
+
extension they wish to depend upon (+ at least one other trigger). Ext-to-ext dependencies
42
+
that don't meet this requirement are now blocked from using `Base.get_extension` during pre-
43
+
compilation, to prevent extension cycles [#55557].
40
44
41
45
Compiler/Runtime improvements
42
46
-----------------------------
@@ -139,6 +143,17 @@ Standard library changes
139
143
`length(::Stateful)` method. The last type parameter of `Stateful` is gone, too. Issue: ([#47790]),
140
144
PR: ([#51747]).
141
145
146
+
#### Package Manager
147
+
148
+
* It is now possible to specify "sources" for packages in a `[sources]` section in Project.toml.
149
+
This can be used to add non-registered normal or test dependencies.
150
+
* Pkg now obeys `[compat]` bounds for `julia` and raises an error if the version of the running Julia binary is incompatible with the bounds in `Project.toml`.
151
+
Pkg has always obeyed this compat when working with Registry packages. This change affects mostly local packages
152
+
*`pkg> add` and `Pkg.add` will now add compat entries for new direct dependencies if the active environment is a
153
+
package (has a `name` and `uuid` entry).
154
+
* Dependencies can now be directly added as weak deps or extras via the `pkg> add --weak/extra Foo` or
155
+
`Pkg.add("Foo", target=:weakdeps/:extras)` forms.
156
+
142
157
#### StyledStrings
143
158
144
159
* A new standard library for handling styling in a more comprehensive and structured way ([#49586]).
Complex{T}(x::AbstractIrrational) where {T<:Real} =Complex{T}(T(x))
53
62
54
-
#XXX this may change `DEFAULT_PRECISION`, thus not effect free
55
-
@assume_effects:totalfunctionRational{T}(x::AbstractIrrational) where T<:Integer
63
+
function_irrational_to_rational(::Type{T}, x::AbstractIrrational) where T<:Integer
56
64
o =precision(BigFloat)
57
65
p =256
58
66
whiletrue
@@ -66,13 +74,16 @@ Complex{T}(x::AbstractIrrational) where {T<:Real} = Complex{T}(T(x))
66
74
p +=32
67
75
end
68
76
end
69
-
Rational{BigInt}(x::AbstractIrrational) =throw(ArgumentError("Cannot convert an AbstractIrrational to a Rational{BigInt}: use rationalize(BigInt, x) instead"))
77
+
Rational{T}(x::AbstractIrrational) where {T<:Integer} =_irrational_to_rational(T, x)
78
+
_throw_argument_error_irrational_to_rational_bigint() =throw(ArgumentError("Cannot convert an AbstractIrrational to a Rational{BigInt}: use rationalize(BigInt, x) instead"))
0 commit comments