Skip to content

Releases: mourner/flatqueue

v3.1.0

Choose a tag to compare

@mourner mourner released this 05 Jun 09:17

Add first-class support for typed-array-backed queues via capacity constructor argument — if provided, the queue will be backed by typed arrays (Float64Array for values and Uint32Array for ids by default, configurable):

const q = new FlatQueue(64, /* values */ Uint32Array, /* ids */ Uint16Array);

v3.0.0

Choose a tag to compare

@mourner mourner released this 09 Aug 15:52
  • ⚠️ Drop the legacy UMD bundle. The package is now ESM-only.
  • Make it up to 20% faster on practical use cases with mixed push/pop.
  • Switch to first-class TypeScript types via JSDoc.

v2.0.3

Choose a tag to compare

@mourner mourner released this 29 Mar 15:14

Expose a UMD build for browser CDNs such as JSDelivr and Unpkg to keep backwards compatibility with tools like Observable.

v2.0.0

Choose a tag to compare

@mourner mourner released this 28 Mar 14:03
  • ⚠️ Breaking: Drop the CommonJS entry point. FlatQueue is now ESM-only. fabb09b
  • Add TypeScript types by @pschiffmann in #6
  • Add proper API documentation by @pschiffmann in #5
  • Add shrink method for manually freeing internal memory. #3
  • Slightly improve push performance by removing redundant assignments by @yurivish in #11

v1.2.1

Choose a tag to compare

@mourner mourner released this 27 Apr 18:41

Fix an edge case where peek and peekValue didn't return undefined for an empty queue.

v1.2.0

Choose a tag to compare

@mourner mourner released this 18 Mar 16:31

Do not shrink the underlying arrays on pop and clear, keeping their capacity for reuse. This improves performance of cases where FlatQueue is extensively reused, like Flatbush.

v1.1.0

Choose a tag to compare

@mourner mourner released this 10 Oct 07:29

Add clear method for resetting the queue.