Skip to content

Commit

Permalink
Update Changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
Qqwy committed Sep 7, 2021
1 parent 4586fa2 commit 6862062
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,13 @@ You can look at the source code of `Arrays.CommonProtocolImplementations` for so

## Changelog

- 2.0.0 Improves the `Arrays.Protocol` to be more friendly to implement. Specifically:
- Remove implementations for `Access.pop`. Instead, throw an error when people try to use it.
- Similarly, throw an error when `:pop` is used inside `Access.get_and_update`
- Move `empty` from `Access.Behaviour` to `Access.Protocol`.
- Alter handling of `:default`. It is no longer a required setting, and all arrays are able to work with a `default` passed to `resize`.
- Related to above: Replace `Arrays.Protocol.resize/2` with `Arrays.Protocol.resize/3`. (`Arrays.resize/2` will call it with `nil` as third parameter).
- `size` is no longer a required setting. `Arrays.new/2` and `Arrays.empty/1` have been edited to reflect this.
- 1.2.0 - Adds `ErlangArray.from_raw/1` and `ErlangArray.to_raw/1` for interop with `:array`-records created/consumed by other code.
- 1.1.0 - Improved README and general usage examples. Introduces `Arrays.concat/1`, `Arrays.concat/2`, `Arrays.slice/2`, `Arrays.slice/3`.
- 1.0.0 - Stable release. Mayor overhaul, 100% test coverage, 100% documentation.
Expand Down

0 comments on commit 6862062

Please sign in to comment.