diff --git a/NEWS.md b/NEWS.md new file mode 100644 index 00000000..61842496 --- /dev/null +++ b/NEWS.md @@ -0,0 +1,48 @@ +# CategoricalArrays.jl v1.0.0 Release Notes + +## Breaking changes + +* `unique(::CategoricalArray)` and `levels(::CategoricalArray)` return + a `CategoricalArray` instead of unwrapping values, consistent with + `unique(::AbstractArray)` in Base and `levels(::AbstractArray)` in DataAPI + ([#358](https://github.com/JuliaData/CategoricalArrays.jl/pull/358), + [#425](https://github.com/JuliaData/CategoricalArrays.jl/pull/425)). + +* `cut` always closes the last interval on the right + ([#409](https://github.com/JuliaData/CategoricalArrays.jl/pull/409)). + +* `cut(x, breaks)` rounds breaks to generate shorter labels + ([#422](https://github.com/JuliaData/CategoricalArrays.jl/pull/422)). + +* `cut(x, ngroups)` takes breaks from actual values instead of using + quantile estimates which are generally longer + ([#416](https://github.com/JuliaData/CategoricalArrays.jl/pull/416)) + This only changes group labels, not their contents. + +* `T(::CategoricalArray{U})` and `convert(T, ::CategoricalArray{U})` + now consistently return an `Array{U}` for `T` in `Array`, `Vector`, `Matrix`. + This avoids creating `Array{<:CategoricalValue}` objects unless explicitly requested + ([#420](https://github.com/JuliaData/CategoricalArrays.jl/pull/420)). + + +* All deprecations have been removed + ([#419](https://github.com/JuliaData/CategoricalArrays.jl/pull/419)). + +## New features + +* Support reading from and writing to Arrow files + ([#415](https://github.com/JuliaData/CategoricalArrays.jl/pull/415)). + +* Improve performance of `recode` + ([#407](https://github.com/JuliaData/CategoricalArrays.jl/pull/407)). + +* Support weighted quantiles in `cut` + ([#423](https://github.com/JuliaData/CategoricalArrays.jl/pull/423)). + +## Bug fixes + +* Fix performance regression on Julia 1.11 and above + ([#418](https://github.com/JuliaData/CategoricalArrays.jl/pull/418)). + +* Fix `cut` corner cases with duplicated breaks + ([#410](https://github.com/JuliaData/CategoricalArrays.jl/pull/410)). diff --git a/Project.toml b/Project.toml index a9262e93..83d5ba30 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "CategoricalArrays" uuid = "324d7699-5711-5eae-9e2f-1d82baa6b597" -version = "0.10.8" +version = "1.0.0" [deps] Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"