Skip to content

Commit

Permalink
Merge branch 'release/2.0.0' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
cerbero90 committed Oct 5, 2024
2 parents 5199c54 + c5f5c90 commit 7806f0d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ All notable changes to `enum` will be documented in this file.

Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) principles.


## NEXT - YYYY-MM-DD

### Added
- Nothing

### Changed
- Nothing

### Deprecated
- Nothing

Expand All @@ -22,6 +26,33 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi
- Nothing


## 2.0.0 - 2024-10-05

### Added
- Custom and default implementation of magic methods
- The `Meta` attribute and related methods
- Method `value()` to get the value of a backed case or the name of a pure case
- Methods `toArray()`, `map()` to the `CasesCollection`
- Generics in docblocks
- Static analysis

### Changed
- Renamed keys to meta
- `CasesCollection` methods return an instance of the collection whenever possible
- `CasesCollection::groupBy()` groups into instances of the collection
- Filtering methods keep the collection keys
- Renamed methods `CollectsCases::casesBy*()` to `CollectsCases::keyBy*()`
- Renamed `cases()` to `all()` in `CasesCollection`
- Renamed `get()` to `resolveMeta()` in `SelfAware`
- When hydrating from meta, the value is no longer mandatory and it defaults to `true`
- The value for `pluck()` is now mandatory
- Renamed sorting methods
- Introduced PER code style

### Removed
- Parameter `$default` from the `CasesCollection::first()` method


## 1.0.0 - 2022-07-12

### Added
Expand Down

0 comments on commit 7806f0d

Please sign in to comment.