Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 31 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,43 @@
Changelog is now in the [Github Release Notes](https://github.com/JuliaCollections/DataStructures.jl/releases).

Starting from version 0.19.0, CHANGELOG.md is managed in a format that follows <https://keepachangelog.com/en/1.1.0/>.

<!-- links start -->
[Unreleased]: https://github.com/JuliaCollections/DataStructures.jl/compare/v0.19.0...HEAD
[0.19.0]: https://github.com/JuliaCollections/DataStructures.jl/compare/v0.18.22...v0.19.0
[0.19.1]: https://github.com/JuliaCollections/DataStructures.jl/compare/v0.19.0...v0.19.1
[0.19.2]: https://github.com/JuliaCollections/DataStructures.jl/compare/v0.19.1...v0.19.2
[0.19.3]: https://github.com/JuliaCollections/DataStructures.jl/compare/v0.19.1...v0.19.3
[0.19.3]: https://github.com/JuliaCollections/DataStructures.jl/compare/v0.19.2...v0.19.3
[0.19.4]: https://github.com/JuliaCollections/DataStructures.jl/compare/v0.19.3...v0.19.4
[0.19.5]: https://github.com/JuliaCollections/DataStructures.jl/compare/v0.19.4...v0.19.5
[0.19.6]: https://github.com/JuliaCollections/DataStructures.jl/compare/v0.19.5...v0.19.6
[0.19.7]: https://github.com/JuliaCollections/DataStructures.jl/compare/v0.19.6...v0.19.7
<!-- links end -->

[0.19.7]
====================

## Fixed
- # Fixed #969: Error when working with empty `SortedSet`

## Changed:
- # Changed #983: `IntSet` and `SparseIntSet` now subtype `AbstractSet{Int}`

[0.19.6]
====================

## Changed:
- # Changed #973: OrderedCollections v2 is now considered compatible. As we re-export some of the OrderedCollections API, that does mean that you may technically see changes in behaviour of DataStructures.jl, these should be extremely rare and can be fixed by adding a direct dependency on OrderedCollections "^1"

## Added
- # Added #977: docs for array-as-heap functions (`heappop!`, `heappush!`)


[0.19.5]
====================

## Fixed
- # Fixed #971: dict performance for non-concrete values and keys


[0.19.4]
====================

Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "DataStructures"
uuid = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
version = "0.19.6"
version = "0.19.7"

[deps]
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
Expand Down
4 changes: 4 additions & 0 deletions src/balanced_tree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1015,6 +1015,9 @@ function BalancedTree23{K,D,Ord}(::Val{true},
push!(m.useddatacells, lengthdata)
firsttrip = false
end
if firsttrip # no data items in tree, so return empty m.
return m
end
resize!(m.tree, 0)
height = 0
belowlevlength = lengthdata
Expand Down Expand Up @@ -1055,6 +1058,7 @@ function BalancedTree23{K,D,Ord}(::Val{true},
child_belowaddress[3], 0,
m.data[child_keyaddress[2]].k,
m.data[child_keyaddress[3]].k))

myaddress = length(m.tree)
if height == 0
replaceparent!(m.data, child_belowaddress[1], myaddress)
Expand Down
4 changes: 3 additions & 1 deletion test/test_sorted_containers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -300,14 +300,16 @@ function testSortedDictMethods()
my_assert(typeof(m09a) == SortedDict{Int,Any,ForwardOrdering})
m09b = SortedDict([(1,2), (3,'a')]) # test issue 239
my_assert(typeof(m09a) == SortedDict{Int,Any,ForwardOrdering})

my_assert(m0 == m02)
my_assert(isequal(m0, m02))
my_assert(m1 == m01)
my_assert(isequal(m1, m01))
my_assert(m1 == m11)
my_assert(isequal(m1, m11))

m10 = union(SortedSet(), SortedSet()) # test issue 969
my_assert(length(m10) == 0)

# Test Exceptions
@test_throws ArgumentError SortedDict([1,2,3,4])
@test_throws BoundsError SortedDict{Int,Int}([1,2,3,4])
Expand Down
Loading