Skip to content

Releases: gammazero/deque

v1.0.0

15 Nov 08:47
610179f
Compare
Choose a tag to compare

What's Changed

  • Add Grow function to grow deque, if necessary, so that it has space for at least n additional items.
  • Add Swap function to exchange two items in deque
  • Allow Insert with out of range indexes, inserting item at front or back of deque.
  • Update required go version to 1.22
  • BREAKING Replace SetMinCapacity with SetBaseCap to set base capacity, so that deque always has space reserved for at least the specified number of items.
  • BREAKING Remove New function as it is not needed to initialize Deque with initial size and base capacity. Use Grow and SetBaseCap for this.

Full Changelog: v0.2.1...v1.0.0

v0.2.1

19 Oct 15:33
ac07eb9
Compare
Choose a tag to compare

What's Changed

  • Fix Clear not zeroing items when buffer full
  • Update index-out-of-range panic messages

Full Changelog: v0.2.0...v0.2.1

v0.2.0

30 May 17:54
d5d0c9a
Compare
Choose a tag to compare
  • Use generics to define Deque instance for a type
  • Require go1.18

Note, this is a breaking change. Upgrading from v0.1.x to v0.2.x requires code changes.

v0.1.2

28 May 02:49
Compare
Choose a tag to compare

Add RIndex function. Same as Index but searches in opposite direction.

v0.1.1

22 Feb 18:52
3969cbf
Compare
Choose a tag to compare
  • Add Index, Insert, Remove for doing operations in the middle of the queue
  • A nil Deque behaves like an empty Deque that cannot store values, with Len() and Cap() returning 0

v0.1.0

08 May 23:45
Compare
Choose a tag to compare
Update readme