@shopify/flash-list 1.0.1 → 1.0.4
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 +11 -0
- package/README.md +2 -4
- package/android/build.gradle +13 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,17 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.0.3] - 2022-07-01
|
|
11
|
+
|
|
12
|
+
- Add kotlin-gradle-plugin to buildscript in project build.gradle
|
|
13
|
+
- https://github.com/Shopify/flash-list/pull/481
|
|
14
|
+
|
|
15
|
+
## [1.0.2] - 2022-06-30
|
|
16
|
+
|
|
17
|
+
- Minor changes
|
|
18
|
+
|
|
19
|
+
## [1.0.1] - 2022-06-30
|
|
20
|
+
|
|
10
21
|
- `data` prop change will force update items only if `renderItem` is also updated
|
|
11
22
|
- https://github.com/Shopify/flash-list/pull/453
|
|
12
23
|
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+

|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
<a href="https://shopify.github.io/flash-list/">Website</a> •
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<a href="https://shopify.github.io/flash-list/docs/">Getting started</a> •
|
|
7
7
|
<a href="https://shopify.github.io/flash-list/docs/usage">Usage</a> •
|
|
8
8
|
<a href="https://shopify.github.io/flash-list/docs/performance-troubleshooting">Performance</a> •
|
|
9
|
-
<a href="https://shopify.github.io/flash-list/performant-components">Writing performant components</a> •
|
|
9
|
+
<a href="https://shopify.github.io/flash-list/docs/fundamentals/performant-components">Writing performant components</a> •
|
|
10
10
|
<a href="https://shopify.github.io/flash-list/docs/known-issues">Known Issues</a>
|
|
11
11
|
<br><br>
|
|
12
12
|
|
|
@@ -20,8 +20,6 @@ Swap from FlatList in seconds. Get instant performance.
|
|
|
20
20
|
|
|
21
21
|
Add the package to your project via `yarn add @shopify/flash-list` and run `pod install` in the `ios` directory.
|
|
22
22
|
|
|
23
|
-
If you get the error `Plugin with id 'kotlin-android' not found` while building on Android, go to `android/build.gradle` and add `classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0")` inside your `dependencies` block. Please change the plugin version as per your needs.
|
|
24
|
-
|
|
25
23
|
## Usage
|
|
26
24
|
|
|
27
25
|
We recommend reading the detailed documentation for using `FlashList` [here](https://shopify.github.io/flash-list/docs/usage).
|
package/android/build.gradle
CHANGED
|
@@ -9,11 +9,23 @@ def _compileSdkVersion = _ext.has('compileSdkVersion') ? _ext.compileSdkVersion
|
|
|
9
9
|
def _buildToolsVersion = _ext.has('buildToolsVersion') ? _ext.buildToolsVersion : '30.0.2'
|
|
10
10
|
def _minSdkVersion = _ext.has('minSdkVersion') ? _ext.minSdkVersion : 21
|
|
11
11
|
def _targetSdkVersion = _ext.has('targetSdkVersion') ? _ext.targetSdkVersion : 30
|
|
12
|
-
def _kotlinVersion = _ext.has('kotlinVersion') ? _ext.kotlinVersion : '1.5.30'
|
|
13
12
|
def _junitVersion = _ext.has('junitVersion') ? _ext.junitVersion : '4.13.2'
|
|
14
13
|
def _mockitoVersion = _ext.has('mockitoVersion') ? _ext.mockitoVersion : '3.2.0'
|
|
15
14
|
def _androidTestRunnerVersion = _ext.has('androidTestRunnerVersion') ? _ext.androidTestRunnerVersion : '1.1.0'
|
|
16
15
|
|
|
16
|
+
buildscript {
|
|
17
|
+
// buildscript is evaluated before any other task is executed, so this must be defined here
|
|
18
|
+
ext._kotlinVersion = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get('kotlinVersion') : '1.5.30'
|
|
19
|
+
|
|
20
|
+
repositories {
|
|
21
|
+
mavenCentral()
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
dependencies {
|
|
25
|
+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${_kotlinVersion}")
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
17
29
|
android {
|
|
18
30
|
compileSdkVersion _compileSdkVersion
|
|
19
31
|
buildToolsVersion _buildToolsVersion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/flash-list",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"react-native"
|
|
6
6
|
],
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"description": "FlashList is a more performant FlatList replacement",
|
|
12
12
|
"author": "shopify",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"homepage": "https://
|
|
14
|
+
"homepage": "https://shopify.github.io/flash-list/",
|
|
15
15
|
"main": "dist/index.js",
|
|
16
16
|
"types": "dist/index.d.ts",
|
|
17
17
|
"scripts": {
|
|
18
|
-
"up": "
|
|
18
|
+
"up": "bundle install && yarn fixture-up && yarn e2e-up && yarn build && yarn fixture-web-up",
|
|
19
19
|
"fixture-web-up": "cd fixture/web-app && yarn && cd ../../",
|
|
20
20
|
"fixture-up": "cd fixture && yarn && cd ios && bundle exec pod install && cd ../../",
|
|
21
21
|
"e2e-up": "cd fixture/ios && brew tap wix/brew && brew install applesimutils && cd ../../",
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
"@babel/core": "^7.18.5",
|
|
48
48
|
"@babel/runtime": "^7.18.3",
|
|
49
49
|
"@quilted/react-testing": "^0.5.14",
|
|
50
|
-
"@react-native-community/eslint-config": "^3.0.
|
|
50
|
+
"@react-native-community/eslint-config": "^3.0.3",
|
|
51
51
|
"@shopify/eslint-plugin": "^41.3.1",
|
|
52
52
|
"@types/jest": "^28.1.3",
|
|
53
53
|
"@types/react-native": "0.67.6",
|
|
54
54
|
"babel-jest": "^28.1.1",
|
|
55
55
|
"enhanced-resolve": "^5.9.3",
|
|
56
56
|
"eslint": "8.18.0",
|
|
57
|
-
"gh-pages": "^
|
|
57
|
+
"gh-pages": "^4.0.0",
|
|
58
58
|
"jest": "^28.1.1",
|
|
59
59
|
"metro-react-native-babel-preset": "^0.71.1",
|
|
60
60
|
"react": "17.0.2",
|