Skip to content

v1.0.0

Choose a tag to compare

@zhelvis zhelvis released this 01 Sep 06:00
· 2 commits to main since this release

Added

  • Queue: A queue data structure for TypeScript, useful for implementing FIFO (first-in, first-out) behavior.
  • Add playground example for RingBuffer.
  • History: Array-like structure with undo/redo functionality based on RingBuffer.
  • computeDiff: Function to compute deep differences between two structures, returning an array of changes.
  • applyDiff: Function to apply a computed diff to a structure.
  • revertDiff: Function to revert a structure to its previous state using a diff.

Changed

  • RingBuffer: Constructor now throws an error if the capacity is not a safe positive integer.
  • RingBuffer: Replace delete operations with undefined assignments to improve performance for V8.
  • RingBuffer: Initialization now uses batch creation to prevent "max call stack size exceeded" errors.
  • RingBuffer: Update benchmarks.