diff --git a/.flowconfig b/.flowconfig index 6707ec53291..ff31477a723 100644 --- a/.flowconfig +++ b/.flowconfig @@ -17,4 +17,7 @@ .*/_site/.* [version] -0.91.0 +0.95.1 + +[options] +server.max_workers=4 diff --git a/bench/benchmarks/worker_transfer.js b/bench/benchmarks/worker_transfer.js index 2feb7b9c2a8..e1245ca6808 100644 --- a/bench/benchmarks/worker_transfer.js +++ b/bench/benchmarks/worker_transfer.js @@ -84,5 +84,5 @@ export default class WorkerTransfer extends Benchmark { function barePayload(obj) { // strip all transferables from a worker payload, because we can't transfer them repeatedly in the bench: // as soon as it's transfered once, it's no longer available on the main thread - return JSON.parse(JSON.stringify(obj, (key, value) => ArrayBuffer.isView(value) ? {} : value)); + return JSON.parse(JSON.stringify(obj, (key, value) => ArrayBuffer.isView(value) ? {} : value) || '{}'); } diff --git a/package.json b/package.json index bd2db271441..6df0681cf7a 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "eslint-plugin-import": "^2.14.0", "eslint-plugin-react": "^7.11.1", "execcommand-copy": "^1.1.0", - "flow-bin": "^0.91.0", + "flow-bin": "^0.95.1", "github-slugger": "^1.1.1", "gl": "^4.1.1", "glob": "^7.0.3", diff --git a/src/style-spec/expression/definitions/coercion.js b/src/style-spec/expression/definitions/coercion.js index 03bd1afb923..d56bc3881b0 100644 --- a/src/style-spec/expression/definitions/coercion.js +++ b/src/style-spec/expression/definitions/coercion.js @@ -84,7 +84,7 @@ class Coercion implements Expression { } } } - throw new RuntimeError(error || `Could not parse color from value '${typeof input === 'string' ? input : JSON.stringify(input)}'`); + throw new RuntimeError(error || `Could not parse color from value '${typeof input === 'string' ? input : String(JSON.stringify(input))}'`); } else if (this.type.kind === 'number') { let value = null; for (const arg of this.args) { diff --git a/yarn.lock b/yarn.lock index ed61d2361c4..cf9058f50e1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4934,10 +4934,10 @@ flat-cache@^1.2.1: graceful-fs "^4.1.2" write "^0.2.1" -flow-bin@^0.91.0: - version "0.91.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.91.0.tgz#f5c89729f74b2ccbd47df6fbfadbdcc89cc1e478" - integrity sha512-j+L+xNiUYnZZ27MjVI0y2c9474ZHOvdSQq0Tjwh56mEA7tfxYqp5Dcb6aZSwvs3tGMTjCrZow9aUlZf3OoRyDQ== +flow-bin@^0.95.1: + version "0.95.1" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.95.1.tgz#633113831ccff4b7ee70a2730f63fc43b69ba85f" + integrity sha512-06IOC/pqPMNRYtC6AMZEWYR9Fi6UdBC7gImGinPuNUpPZFnP5E9/0cBCl3DWrH4zz/gSM2HdDilU7vPGpYIr2w== flush-write-stream@^1.0.0: version "1.0.2"