chore: lib upgrades (#268)

* Update libs

* Upgrade Typescript

* use flowconfig from 0.61

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
This commit is contained in:
Kacper Wiszczuk
2020-03-18 20:00:31 +01:00
committed by GitHub
parent 88f55e216d
commit b67227d4b4
5 changed files with 620 additions and 421 deletions
+4 -29
View File
@@ -5,14 +5,6 @@
; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/
; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*
; Ignore duplicate module providers
; For RN Apps installed via npm, "Libraries" folder is inside
; "node_modules/react-native" but in the source repo it is in the root
node_modules/react-native/Libraries/react-native/React.js
; Ignore polyfills
node_modules/react-native/Libraries/polyfills/.*
@@ -21,11 +13,10 @@ node_modules/react-native/Libraries/polyfills/.*
node_modules/warning/.*
; Flow doesn't support platforms
.*/Libraries/Utilities/HMRLoadingView.js
.*/Libraries/Utilities/LoadingView.js
[untyped]
.*/node_modules/@react-native-community/cli/.*/.*
.*/node_modules/react-native/Libraries/Lists/SectionList.js
[include]
@@ -44,27 +35,11 @@ module.file_ext=.js
module.file_ext=.json
module.file_ext=.ios.js
module.system=haste
module.system.haste.use_name_reducers=true
# get basename
module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
# strip .js or .js.flow suffix
module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
# strip .ios suffix
module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
module.system.haste.paths.blacklist=.*/__tests__/.*
module.system.haste.paths.blacklist=.*/__mocks__/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/RNTester/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/IntegrationTests/.*
module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation.js
module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
munge_underscores=true
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation'
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
+12 -11
View File
@@ -15,26 +15,27 @@
"integration"
],
"devDependencies": {
"@babel/cli": "^7.1.2",
"@babel/core": "^7.1.2",
"@callstack/eslint-config": "^8.0.0",
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.7",
"@callstack/eslint-config": "^9.1.0",
"@release-it/conventional-changelog": "^1.1.0",
"@types/react": "^16.7.11",
"@types/react-test-renderer": "^16.0.3",
"@types/react": "^16.9.23",
"@types/react-native": "^0.61.23",
"@types/react-test-renderer": "^16.9.2",
"babel-jest": "^25.1.0",
"conventional-changelog-cli": "^2.0.11",
"dedent": "^0.7.0",
"eslint": "^6.7.2",
"eslint": "^6.8.0",
"flow-bin": "^0.107.0",
"flow-copy-source": "^2.0.6",
"jest": "^25.1.0",
"metro-react-native-babel-preset": "^0.52.0",
"react": "16.8.6",
"react-native": "0.60.4",
"react-test-renderer": "16.8.6",
"metro-react-native-babel-preset": "^0.58.0",
"react": "^16.13.0",
"react-native": "^0.61.5",
"react-test-renderer": "^16.13.0",
"release-it": "^12.3.3",
"strip-ansi": "^5.2.0",
"typescript": "^3.7.3"
"typescript": "^3.8.3"
},
"dependencies": {
"pretty-format": "^24.0.0"
@@ -14,7 +14,7 @@ exports[`debug 1`] = `
exports[`debug.deep 1`] = `
"<View
accessible={true}
clickable={true}
focusable={true}
isTVSelectable={true}
onClick={[Function bound touchableHandlePress]}
onResponderGrant={[Function bound touchableHandleResponderGrant]}
@@ -38,7 +38,7 @@ exports[`debug.deep 1`] = `
exports[`debug.deep async test 1`] = `
"<View
accessible={true}
clickable={true}
focusable={true}
isTVSelectable={true}
onClick={[Function bound touchableHandlePress]}
onResponderGrant={[Function bound touchableHandleResponderGrant]}
@@ -28,7 +28,7 @@ exports[`debug 1`] = `
/>
<View
accessible={true}
clickable={true}
focusable={true}
isTVSelectable={true}
onClick={[Function bound touchableHandlePress]}
onResponderGrant={[Function bound touchableHandleResponderGrant]}
@@ -91,7 +91,7 @@ exports[`debug changing component: bananaFresh button message should now be "fre
/>
<View
accessible={true}
clickable={true}
focusable={true}
isTVSelectable={true}
onClick={[Function bound touchableHandlePress]}
onResponderGrant={[Function bound touchableHandleResponderGrant]}
@@ -254,7 +254,7 @@ exports[`debug: with message 1`] = `
/>
<View
accessible={true}
clickable={true}
focusable={true}
isTVSelectable={true}
onClick={[Function bound touchableHandlePress]}
onResponderGrant={[Function bound touchableHandleResponderGrant]}
@@ -292,7 +292,7 @@ exports[`debug: with message 1`] = `
exports[`toJSON 1`] = `
<View
accessible={true}
clickable={false}
focusable={false}
isTVSelectable={true}
onClick={[Function]}
onResponderGrant={[Function]}
+598 -375
View File
File diff suppressed because it is too large Load Diff