Skip to content

Commit

Permalink
chore: prepare for release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsey committed Dec 31, 2022
1 parent b084714 commit a4b4876
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,29 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 2.0.0 - TBD
## 2.0.0 - 2022-12-31

### Added

* Add support for CollectionInterface::reduce().
* Add support for `CollectionInterface::reduce()` ([#87](https://github.com/ramsey/collection/pull/87))
* All exceptions now implement a base `CollectionException` interface
* Introduce `Sort` enum
* Support `column()`, `sort()`, and `where()` on non-object collection types

### Changed

* Minimum PHP version supported is 8.1
* Every method now has parameter and return type hints; if extending classes or
implementing interfaces, you may need to change method signatures to upgrade
* The second parameter of `CollectionInterface::sort()` now uses the new `Sort`
enum instead of a string
* Audit all template annotations and clean up Psalm and PHPStan types for
correctness; if using static analysis in projects, this may require changes to
your type annotations
* `ArrayInterface` no longer extends `\Serializable`, and the `serialize()` and
`unserialize()` methods have been removed from `AbstractArray`; however,
`AbstractArray` still supports serialization through implementing `__serialize()`
and `__unserialize()`

## 1.3.0 - 2022-12-27

Expand Down

0 comments on commit a4b4876

Please sign in to comment.