@legendapp/list 2.1.0-next.1 → 3.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,84 @@
1
+ ## 2.0.14
2
+ - Feat: Add dataVersion prop to trigger re-render when mutating the data array in place
3
+
4
+ ## 2.0.13
5
+ - Feat: Allow returning undefined in getFixedItemSize to fall back to estimated size
6
+ - Fix: scrollToIndex viewOffset was being subtracted twice, causing incorrect scroll positioning
7
+ - Fix: Initial container allocation was not applying maintainVisibleContentPosition calculations
8
+ - Fix: updateItemSize was providing full data array to getEstimatedItemSize and getFixedItemSize instead of individual item
9
+
10
+ ## 2.0.12
11
+ - Fix: Scroll velocity calculation was sometimes incorrect when item sizes were very different from estimate
12
+ - Fix: onScroll while scrolling was updating positions without maintainVisibleContentPosition calculations, which was breaking scroll position maintenance
13
+
14
+ ## 2.0.11
15
+ - Fix: Missing React import in a file
16
+
17
+ ## 2.0.10
18
+ - Feat: Add onStickyHeaderChange callback for sticky headers
19
+ - Fix: Items with a falsy value like 0 were not rendering
20
+ - Fix: Column positions sometimes not calculating correctly
21
+ - Perf: updateItemsPositions was not breaking early sometimes
22
+ - Perf: Changed idCache to be an array instead of a Map for better performance
23
+ - Perf: Speed up container reuse lookups
24
+
25
+ ## 2.0.9
26
+ - Fix: Improve initialScrollIndex accuracy and reliability
27
+
28
+ ## 2.0.8
29
+ - Fix: Data changing sometimes left blank spaces because it was ignoring scroll
30
+ - Fix: Toggling between empty and non-empty causing maintainVisibleContentPosition issues
31
+
32
+ ## 2.0.7
33
+ - Fix: Layout not working on react-native-macos because of transform instead of position
34
+
35
+ ## 2.0.6
36
+ - Fix: updateItemPositions edge case with items multiple screen heights long was breaking the loop too early
37
+
38
+ ## 2.0.5
39
+ - Perf: Change updateAllPositions to constrain processing to the scroll range
40
+ - Fix: Crash when using snapTo in some environments
41
+ - Perf: Change Separator to use useIsLastItem which should reduce the number of times it runs
42
+
43
+ ## 2.0.4
44
+ - Fix: Possible crash if refScroller is undefined
45
+
46
+ ## 2.0.3
47
+ - Feat: Set activeStickyIndex for usage in getState()
48
+ - Revert changes from 2.0.1 and 2.0.2 which were buggy in an edge case
49
+
50
+ ## 2.0.2
51
+ - Fix: Performance improvement in 2.0.1 caused a bug in an edge case
52
+
53
+ ## 2.0.1
54
+ - Perf: Improve performance in very long lists (bad release)
55
+
56
+ ## 2.0.0
57
+ Major version release with significant performance improvements and architectural changes:
58
+ - Feat: Complete rewrite of virtualization algorithm for better performance
59
+ - Feat: Add sticky headers support via stickyIndices prop
60
+ - Feat: Add snapToIndices prop for snap-to behavior
61
+ - Feat: Add getItemType prop for better item type handling
62
+ - Feat: Add getFixedItemSize prop for items with known fixed sizes
63
+ - Feat: Add itemsAreEqual prop to reduce re-rendering when data changes
64
+ - Feat: Expose positions in getState()
65
+ - Feat: Add enableAverages prop to control average size calculations
66
+ - Feat: Add viewOffset option to scrollToEnd
67
+ - Feat: Improve maintainScrollAtEnd with more granular options
68
+ - Feat: Add ref function to enable/disable scroll processing
69
+ - Feat: Support lazy rendering directly in LegendList component
70
+ - Perf: Optimize container positioning using transform instead of absolute positioning
71
+ - Perf: Improve scroll buffering algorithm with directional bias
72
+ - Perf: Enable batched updates for better rendering performance
73
+ - Perf: Optimize container allocation and reuse algorithms
74
+ - Perf: Improve average item size calculations
75
+ - Fix: Improve maintainVisibleContentPosition reliability
76
+ - Fix: Better handling of data changes and scroll position maintenance
77
+ - Fix: Improve initial scroll positioning accuracy
78
+ - Fix: Better handling of padding changes
79
+ - Fix: Resolve various edge cases with container recycling
80
+ - Fix: Improve viewability calculations
81
+
1
82
  ## 1.1.4
2
83
  - Feat: Add sizes to getState()
3
84
 
package/animated.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import * as React$1 from 'react';
2
1
  import * as _legendapp_list from '@legendapp/list';
2
+ import * as React from 'react';
3
3
  import { Animated } from 'react-native';
4
4
 
5
- declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: _legendapp_list.LegendListProps<T> & React$1.RefAttributes<_legendapp_list.LegendListRef>) => React.ReactNode) & {
5
+ declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: _legendapp_list.LegendListProps<T> & React.RefAttributes<_legendapp_list.LegendListRef>) => React.ReactNode) & {
6
6
  displayName?: string;
7
7
  }>;
8
8
 
package/animated.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import * as React$1 from 'react';
2
1
  import * as _legendapp_list from '@legendapp/list';
2
+ import * as React from 'react';
3
3
  import { Animated } from 'react-native';
4
4
 
5
- declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: _legendapp_list.LegendListProps<T> & React$1.RefAttributes<_legendapp_list.LegendListRef>) => React.ReactNode) & {
5
+ declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: _legendapp_list.LegendListProps<T> & React.RefAttributes<_legendapp_list.LegendListRef>) => React.ReactNode) & {
6
6
  displayName?: string;
7
7
  }>;
8
8