Deploy v0.35.0
Reviewed By: davidaurelio Differential Revision: D4177391 fbshipit-source-id: c02cf98ed275b7032103b11eab6d0e189f8d8f24
This commit is contained in:
parent
e87e181998
commit
61d1a4fb39
|
@ -40,11 +40,11 @@ suppress_type=$FlowIssue
|
|||
suppress_type=$FlowFixMe
|
||||
suppress_type=$FixMe
|
||||
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-4]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-4]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-5]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-5]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
||||
|
||||
unsafe.enable_getters_and_setters=true
|
||||
|
||||
[version]
|
||||
^0.34.0
|
||||
^0.35.0
|
||||
|
|
|
@ -40,7 +40,7 @@ export type PassProps<State> = {
|
|||
* this in real apps with user data, but we could maybe pull it out for other internal settings-type
|
||||
* usage.
|
||||
*/
|
||||
function createContainer<Props, State>(
|
||||
function createContainer<Props: Object, State>(
|
||||
Component: ReactClass<Props & {persister: PassProps<State>}>,
|
||||
spec: {
|
||||
cacheKeySuffix: (props: Props) => string,
|
||||
|
|
|
@ -247,7 +247,7 @@ class MessageQueue {
|
|||
const debug = this._debugInfo[cbID >> 1];
|
||||
const module = debug && this._remoteModuleTable[debug[0]];
|
||||
const method = debug && this._remoteMethodTable[debug[0]][debug[1]];
|
||||
if (!callback) {
|
||||
if (callback == null) {
|
||||
let errorMessage = `Callback with id ${cbID}: ${module}.${method}() not found`;
|
||||
if (method) {
|
||||
errorMessage = `The callback ${method}() exists in module ${module}, `
|
||||
|
@ -272,6 +272,7 @@ class MessageQueue {
|
|||
|
||||
this._callbacks[cbID & ~1] = null;
|
||||
this._callbacks[cbID | 1] = null;
|
||||
// $FlowIssue(>=0.35.0) #14551610
|
||||
callback.apply(null, args);
|
||||
|
||||
if (__DEV__) {
|
||||
|
|
|
@ -21,7 +21,7 @@ var invariant = require('fbjs/lib/invariant');
|
|||
// require BackAndroid so it sets the default handler that exits the app if no listeners respond
|
||||
require('BackAndroid');
|
||||
|
||||
function renderApplication<Props>(
|
||||
function renderApplication<Props: Object>(
|
||||
RootComponent: ReactClass<Props>,
|
||||
initialProps: Props,
|
||||
rootTag: any
|
||||
|
|
|
@ -164,7 +164,7 @@
|
|||
"event-target-shim": "^1.0.5",
|
||||
"fbjs": "^0.8.5",
|
||||
"fbjs-scripts": "^0.7.0",
|
||||
"flow-bin": "^0.34.0",
|
||||
"flow-bin": "^0.35.0",
|
||||
"fs-extra": "^0.26.2",
|
||||
"glob": "^5.0.15",
|
||||
"graceful-fs": "^4.1.3",
|
||||
|
@ -221,7 +221,7 @@
|
|||
"eslint-plugin-babel": "^3.3.0",
|
||||
"eslint-plugin-flowtype": "^2.20.0",
|
||||
"eslint-plugin-react": "^6.4.1",
|
||||
"flow-bin": "^0.34.0",
|
||||
"flow-bin": "^0.35.0",
|
||||
"graphlib-dot": "0.6.2",
|
||||
"graphql": "0.6.2",
|
||||
"jest": "16.0.1",
|
||||
|
|
|
@ -110,7 +110,11 @@ class BundleBase {
|
|||
|
||||
setRamGroups(ramGroups: Array<string>) {}
|
||||
|
||||
toJSON(): mixed {
|
||||
toJSON(): {
|
||||
modules: Array<ModuleTransport>,
|
||||
assets: Array<mixed>,
|
||||
mainModuleId: number | void,
|
||||
} {
|
||||
return {
|
||||
modules: this._modules,
|
||||
assets: this._assets,
|
||||
|
|
|
@ -114,11 +114,11 @@ class Module {
|
|||
);
|
||||
}
|
||||
|
||||
getCode(transformOptions: mixed) {
|
||||
getCode(transformOptions: Object) {
|
||||
return this.read(transformOptions).then(({code}) => code);
|
||||
}
|
||||
|
||||
getMap(transformOptions: mixed) {
|
||||
getMap(transformOptions: Object) {
|
||||
return this.read(transformOptions).then(({map}) => map);
|
||||
}
|
||||
|
||||
|
@ -154,7 +154,7 @@ class Module {
|
|||
return this._moduleCache.getPackageForModule(this);
|
||||
}
|
||||
|
||||
getDependencies(transformOptions: mixed) {
|
||||
getDependencies(transformOptions: Object) {
|
||||
return this.read(transformOptions).then(({dependencies}) => dependencies);
|
||||
}
|
||||
|
||||
|
@ -244,7 +244,7 @@ class Module {
|
|||
* dependencies, etc. The overall process is to read the cache first, and if
|
||||
* it's a miss, we let the worker write to the cache and read it again.
|
||||
*/
|
||||
read(transformOptions: mixed): Promise<ReadResult> {
|
||||
read(transformOptions: Object): Promise<ReadResult> {
|
||||
const key = stableObjectHash(transformOptions || {});
|
||||
const promise = this._readPromises.get(key);
|
||||
if (promise != null) {
|
||||
|
|
|
@ -165,6 +165,7 @@ function getReplacements(pkg) {
|
|||
|
||||
// merge with "browser" as default,
|
||||
// "react-native" as override
|
||||
// $FlowFixMe(>=0.35.0) browser and rn should be objects
|
||||
return { ...browser, ...rn };
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue