diff --git a/.flowconfig b/.flowconfig index cac9d598..e9fe3622 100644 --- a/.flowconfig +++ b/.flowconfig @@ -5,14 +5,6 @@ ; Ignore "BUCK" generated dirs /\.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=/node_modules/react-native/Libraries/.* -module.system.haste.paths.whitelist=/node_modules/react-native/RNTester/.* -module.system.haste.paths.whitelist=/node_modules/react-native/IntegrationTests/.* -module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/react-native/react-native-implementation.js -module.system.haste.paths.blacklist=/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$' -> '/node_modules/react-native/Libraries/react-native/react-native-implementation' +module.name_mapper='^react-native/\(.*\)$' -> '/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\)$' -> '/node_modules/react-native/Libraries/Image/RelativeImageStub' suppress_type=$FlowIssue suppress_type=$FlowFixMe diff --git a/package.json b/package.json index 812ffdde..37c9208c 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/__tests__/__snapshots__/debug.test.js.snap b/src/__tests__/__snapshots__/debug.test.js.snap index a6bc7d29..74be14b3 100644 --- a/src/__tests__/__snapshots__/debug.test.js.snap +++ b/src/__tests__/__snapshots__/debug.test.js.snap @@ -14,7 +14,7 @@ exports[`debug 1`] = ` exports[`debug.deep 1`] = ` "