Skip to content

Commit d91b01a

Browse files
Drop support for Julia prior to v1.6 (#767)
* Remove deprecations, weed out dependencies * Drop support for Julia prior to v1.6 * Drop obsolete tests * Bump version to 4.0.0
1 parent 3ae185f commit d91b01a

File tree

10 files changed

+72
-2466
lines changed

10 files changed

+72
-2466
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,9 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
version:
16-
- "1.0"
17-
- "1.1"
18-
- "1.2"
19-
- "1.3"
20-
- "1.4"
21-
- "1.5"
2216
- "1.6"
23-
- "~1.7.0-0"
17+
- "1.7"
18+
- "~1.8.0-0"
2419
- nightly
2520
os:
2621
- ubuntu-latest

Project.toml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,17 @@
11
name = "Compat"
22
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
3-
version = "3.43.0"
3+
version = "4.0.0"
44

55
[deps]
6-
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
76
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
8-
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
9-
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
10-
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
11-
LibGit2 = "76f85450-5226-5b5a-8eaa-529ad045b433"
12-
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
137
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
14-
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
15-
Mmap = "a63ad114-7e13-5084-954f-fe012c677804"
16-
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
17-
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
18-
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
19-
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
20-
SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce"
21-
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
22-
SharedArrays = "1a1011a3-84de-559e-8e89-a11a2f7dc383"
23-
Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"
24-
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
25-
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
26-
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
278
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
28-
Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
299

3010
[compat]
31-
julia = "1"
11+
julia = "1.6"
12+
13+
[extras]
14+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
15+
16+
[targets]
17+
test = ["Test"]

README.md

Lines changed: 0 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -77,132 +77,14 @@ changes in `julia`.
7777
so we return only the most recent exception in that case. ([#29901]) (since
7878
Compat 3.34)
7979

80-
* The methods `Base.include(::Function, ::Module, path)` and
81-
`Base.include_string(::Function, ::Module, code[, filename])` have been added. ([#34595]) (since Compat 3.33)
82-
83-
* Implicit keywords arguments or named tuples is supported using the `@compat` macro, e.g. `@compat f(; x, f.p)` and `@compat (; x, f.p)` is equivalent to `f(; x=x, p=f.p)` and `(; x=x, p=f.p)` respectively. ([#34331]) (since Compat 3.32.0)
84-
8580
* Two argument methods `findmax(f, domain)`, `argmax(f, domain)` and the corresponding `min` versions ([#35316], [#41076]) (since Compat 3.31.1)
8681

8782
* `isunordered(x)` returns true if `x` is value that is normally unordered, such as `NaN` or `missing` ([#35316]) (since Compat 3.31.1)
8883

8984
* `get` accepts tuples and numbers ([#41007], [#41032]) (since Compat 3.31)
9085

91-
* `muladd(A,B,z)` now accepts arrays ([#37065]) (since Compat 3.30)
92-
9386
* `@something` and `@coalesce` as short-circuiting versions of `something` and `coalesce` ([#40729]) (since Compat 3.29)
9487

95-
* `NamedTuple(::Pairs)` ([#37454]) (since Compat 3.28)
96-
97-
* `UUID(::UUID)` and `parse(::Type{UUID}, string)` ([#36018] / [#36199]) (since Compat 3.27)
98-
99-
* `cispi(x)` for accurately calculating `cis(pi * x)` ([#38449]) (since Compat 3.25)
100-
101-
* `startswith(s, r::Regex)` and `endswith(s, r::Regex)` ([#29790]) (since Compat 3.24)
102-
103-
* `sincospi(x)` for calculating the tuple `(sinpi(x), cospi(x))` ([#35816]) (since Compat 3.23)
104-
105-
* `Dates.canonicalize` can now take a `Period` as an input ([#37391]) (since Compat 3.22)
106-
107-
* Import renaming is available through the `@compat` macro, e.g. `@compat import LinearAlgebra as LA` and
108-
`@compat import LinearAlgebra: cholesky as c, lu as l`. *Note:* Import renaming of macros is not
109-
supported due to differences in parsing behavior ([#37396]). (since Compat 3.21).
110-
111-
* `Compat.parseatom(text::AbstractString, pos::Integer; filename="none")` parses a single
112-
atom from `text` starting at index `pos`. Returns a `Tuple` consisting of the
113-
parsed expression and the index to resume parsing from. ([#35243]) (since Compat 3.20)
114-
115-
* `Compat.parseall(text::AbstractString; filename="none")` parses the whole string `text`
116-
and returns the parsed expression. ([#35243]) (since Compat 3.20)
117-
118-
* `mul!(C, A, B, alpha, beta)` now performs in-place multiply add ([#29634]). (since Compat 3.19).
119-
120-
* `reinterpret(reshape, T, a::AbstractArray{S})` reinterprets `a` to have eltype `T` while
121-
inserting or consuming the first dimension depending on the ratio of `sizeof(T)` and `sizeof(S)`.
122-
([#37559]). (since Compat 3.18)
123-
124-
* The composition operator `` now returns a `Compat.ComposedFunction` instead of an anonymous function ([#37517]). (since Compat 3.17)
125-
126-
* New function `addenv` for adding environment mappings into a `Cmd` object, returning the new `Cmd` object ([#37244]). (since Compat 3.16)
127-
128-
* `contains(haystack, needle)` and its one argument partially applied form `contains(haystack)` have been added, it acts like `occursin(needle, haystack)` ([#35132]). (since Compat 3.15)
129-
130-
* `startswith(x)` and `endswith(x)`, returning partially-applied versions of the functions, similar to existing methods like `isequal(x)` ([#35052]). (since Compat 3.15)
131-
132-
* `Compat.Iterators.map` is added. It provides another syntax `Iterators.map(f, iterators...)`
133-
for writing `(f(args...) for args in zip(iterators...))`, i.e. a lazy `map` ([#34352]).
134-
(since Compat 3.14)
135-
136-
* `takewhle` and `dropwhile` are added in `Compat.Iterators` ([#33437]). (since Compat 3.14)
137-
138-
* Curried comparisons `!=(x)`, `>=(x)`, `<=(x)`, `>(x)`, and `<(x)` are defined as, e.g.,
139-
`!=(x) = y -> y != x` ([#30915]). (since Compat 3.14)
140-
141-
* `strides` is defined for Adjoint and Transpose ([#35929]). (since Compat 3.14)
142-
143-
* `Compat.get_num_threads()` adds the functionality of `LinearAlgebra.BLAS.get_num_threads()`, and has matching `Compat.set_num_threads(n)` ([#36360]). (since Compat 3.13.0)
144-
145-
* `@inferred [AllowedType] f(x)` is defined ([#27516]). (since Compat 3.12.0)
146-
147-
* Search a character in a string with `findfirst`, `findnext`, `findlast` and `findprev` ([#31664]). (since Compat 3.12.0)
148-
149-
* `∘(f) = f` is defined ([#34251]). (since Compat 3.11.0)
150-
151-
* `union` supports `Base.OneTo` ([#35577]). (since Compat 3.11.0)
152-
153-
* `get` supports `CartesianIndex` when indexing `AbstractArrays` ([#30268]). (since Compat 3.10.0)
154-
155-
* `similar(::PermutedDimsArray)` now uses the parent ([#35304]). (since Compat 3.9.0)
156-
157-
* `isdisjoint(l, r)` indicates whether two collections are disjoint ([#34427]). (since Compat 3.9.0)
158-
159-
* `mergewith(combine, dicts...)` and `mergewith!(combine, dicts...)` are like
160-
`merge(combine, dicts...)` and `merge!(combine, dicts...)` but without the restriction
161-
that the argument `combine` must be a `Function` ([#34296]). (since Compat 3.9.0).
162-
163-
* `@NamedTuple` macro for convenient `struct`-like syntax for declaring
164-
`NamedTuple` types via `key::Type` declarations ([#34548]). (since Compat 3.8.0)
165-
166-
* `evalpoly(x, (p1, p2, ...))`, the function equivalent to `@evalpoly(x, p1, p2, ...)`
167-
([#32753]). (since Compat 3.7.0)
168-
169-
* `zero(::Irrational)` and `one` now defined ([#34773]). (since Compat 3.6.0)
170-
171-
* `I1:I2`, when `I1` and `I2` are CartesianIndex values, constructs a CartesianIndices
172-
iterator ([#29440]). (Since Compat 3.5.0)
173-
174-
* `oneunit(::CartesianIndex)` replaces `one(::CartesianIndex)` ([#29442]). (Since Compat 3.5.0)
175-
176-
* `ismutable` return `true` iff value `v` is mutable ([#34652]). (since Compat 3.4.0)
177-
178-
* `uuid5` generates a version 5 universally unique identifier (UUID), as specified by RFC 4122 ([#28761]). (since Compat 3.3.0)
179-
180-
* `dot` now has a 3-argument method `dot(x, A, y)` without storing the intermediate result `A*y` ([#32739]). (since Compat 3.2.0)
181-
182-
* `pkgdir(m)` returns the root directory of the package that imported module `m` ([#33128]). (since Compat 3.2.0)
183-
184-
* `filter` can now act on a `Tuple` [#32968]. (since Compat 3.1.0)
185-
186-
* `Base.Order.ReverseOrdering` has a zero arg constructor [#33736]. (since Compat 3.0.0)
187-
188-
* Function composition now supports multiple functions: `∘(f, g, h) = f ∘ g ∘ h`
189-
and splatting `∘(fs...)` for composing an iterable collection of functions ([#33568]). (since Compat 3.0.0)
190-
191-
* `only(x)` returns the one-and-only element of a collection `x` ([#33129]). (since Compat 2.2.0)
192-
193-
* `mod` now accepts a unit range as the second argument ([#32628]). (since Compat 2.2.0)
194-
195-
* `eachrow`, `eachcol`, and `eachslice` to iterate over first, second, or given dimension
196-
of an array ([#29749]). (since Compat 2.2.0)
197-
198-
* `isnothing` for testing if a variable is equal to `nothing` ([#29674]). (since Compat 2.1.0)
199-
200-
* `hasproperty` and `hasfield` ([#28850]). (since Compat 2.0.0)
201-
202-
* `merge` methods with one and `n` `NamedTuple`s ([#29259]). (since Compat 2.0.0)
203-
204-
* `range` supporting `stop` as positional argument ([#28708]). (since Compat 1.3.0)
205-
20688
## Developer tips
20789

20890
One of the most important rules for `Compat.jl` is to avoid breaking user code

0 commit comments

Comments
 (0)