@shopify/flash-list 1.2.0 → 1.2.1

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
@@ -7,6 +7,11 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.1] - 2022-08-03
11
+
12
+ - Fixed crash when `estimatedListSize` is used in an empty list
13
+ - https://github.com/Shopify/flash-list/pull/546
14
+
10
15
  ## [1.2.0] - 2022-07-18
11
16
 
12
17
  - Fixed out of bound read from data
package/README.md CHANGED
@@ -55,8 +55,9 @@ To avoid common pitfalls, you can also follow these steps for migrating from `Fl
55
55
 
56
56
  1. Switch from `FlatList` to `FlashList` and render the list once. You should see a warning about missing `estimatedItemSize` and a suggestion. Set this value as the prop directly.
57
57
  2. **Important**: Scan your [`renderItem`](https://shopify.github.io/flash-list/docs/usage/#renderitem) hierarchy for explicit `key` prop definitions and remove them. If you’re doing a `.map()` use indices as keys.
58
- 3. If your list has heterogenous views, pass their types to `FlashList` using [`getItemType`](https://shopify.github.io/flash-list/docs/usage/#getitemtype) prop to improve performance.
59
- 4. Do not test performance with JS dev mode on. Make sure you’re in release mode. `FlashList` can appear slower while in dev mode due to a small render buffer.
58
+ 3. Check your [`renderItem`](https://shopify.github.io/flash-list/docs/usage/#renderitem) hierarchy for components that make use of `useState` and verify whether that state would need to be reset if a different item is passed to that component (see [Recycling](https://shopify.github.io/flash-list/docs/recycling))
59
+ 4. If your list has heterogenous views, pass their types to `FlashList` using [`getItemType`](https://shopify.github.io/flash-list/docs/usage/#getitemtype) prop to improve performance.
60
+ 5. Do not test performance with JS dev mode on. Make sure you’re in release mode. `FlashList` can appear slower while in dev mode due to a small render buffer.
60
61
 
61
62
  ## App / Playground
62
63
 
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
10
10
  s.license = package['license']
11
11
  s.author = package['author']
12
12
  s.platforms = { :ios => '11.0', :tvos => '12.0' }
13
- s.source = { git: 'https://github.com/shopify/flash-list.git', tag: 'v#{s.version}' }
13
+ s.source = { git: 'https://github.com/shopify/flash-list.git', tag: "v#{s.version}" }
14
14
  s.source_files = 'ios/Sources/**/*'
15
15
  s.requires_arc = true
16
16
  s.swift_version = '5.0'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopify/flash-list",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "keywords": [
5
5
  "react-native"
6
6
  ],
@@ -75,7 +75,7 @@
75
75
  "jestSetup.js"
76
76
  ],
77
77
  "dependencies": {
78
- "recyclerlistview": "4.1.1",
78
+ "recyclerlistview": "4.1.2",
79
79
  "tslib": "2.4.0"
80
80
  }
81
81
  }