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
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@

# Changelog

## v1.1.0

* New features
* Add `CircularBuffer.new(enumerable, max_size)` to create a buffer with an
initial set of contents. This allows for CircularBuffers to be created at
the end of a pipeline.
* Add `CircularBuffer.max_size(cb)` to return the max size of the buffer. This
avoids the Dialyzer warning when reaching into the opaque cb type.
* `inspect`ing a CircularBuffer now returns a call to `CircularBuffer.new/2`
that can be copy/pasted.
* Zero-length CircularBuffers can now be created. While not normally useful,
supporting them can remove some edge case code in people's programs and it's
a minimal change to the CircularBuffer codebase.

## v1.0.1

* Changes
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
defmodule CircularBuffer.MixProject do
use Mix.Project

@version "1.0.1"
@version "1.1.0"
@description "General purpose circular buffer"
@source_url "https://github.com/elixir-toniq/circular_buffer"

Expand Down