Repository navigation
Releases
Releases · zhelvis/structure-ts
v1.1.0
v1.0.0
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 onRingBuffer.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 thecapacityis not a safe positive integer.RingBuffer: Replace delete operations withundefinedassignments to improve performance for V8.RingBuffer: Initialization now uses batch creation to prevent "max call stack size exceeded" errors.RingBuffer: Update benchmarks.