Skip to content

Releases: chasegiunta/wrap-aware

1.3.1

20 Mar 22:39
Compare
Choose a tag to compare
  • Fix performance issue

Full Changelog: 1.3.0...1.3.1

1.3.0

18 Mar 22:35
82f54aa
Compare
Choose a tag to compare

What's Changed

  • Account for dynamic padding on flex container #2

Full Changelog: 1.2.1...1.3.0

1.2.1

11 Mar 15:12
Compare
Choose a tag to compare
  • Fix wrapping detection for reverse-wrapped items when using align-items: flex-end

Full Changelog: 1.2.0...1.2.1

1.2.0

11 Mar 01:19
Compare
Choose a tag to compare
  • Fix issue preventing wrap detection when flex items have unequal heights
  • Several performance optimizations:
    • Added debouncing: The ResizeObserver callback is now debounced with a 16ms delay (approximately matching a 60fps refresh rate), which reduces the frequency of calculations during resize operations.

    • Added dimension caching: The library now stores the previous dimensions of each flex container and skips recalculations if the dimensions haven't changed, which avoids unnecessary processing.

    • Reduced layout thrashing: Added rect caching to avoid multiple costly calls to getBoundingClientRect() for the same elements during a single calculation cycle.

    • Optimized DOM operations: Added the updateAttributeEfficiently helper function which only modifies attributes when necessary, reducing DOM updates and potential reflows.

    • Improved wrap-reverse detection: The algorithm for grouping items by their position now looks for nearest matches within a tolerance range, which is more efficient than the previous approach.

    • Batch calculations: Measurements are now batched together to minimize the number of reflows caused by reading layout properties.

Full Changelog: 1.1.0...1.2.0

1.1.0

10 Mar 22:11
Compare
Choose a tag to compare
  • Add support for detection when wrapping flex items in the reverse direction

Full Changelog: v1.0.6...1.1.0

1.0.6

23 Sep 23:29
338fb94
Compare
Choose a tag to compare
  • Fix CJS require

1.0.5

23 Sep 23:21
Compare
Choose a tag to compare

Initial Release