synckit
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -51,3 +51,3 @@ import { execSync } from 'child_process'; | ||
} catch (e) { | ||
console.warn('`worker_threads` is not available in current environment,\nyou may want to enable it by using `node --experimental-worker` or setting env `NODE_OPTIONS="--experimental-worker"` for better performance'); | ||
console.warn("`worker_threads` is not available in current environment, `Node >= 12` is required"); | ||
} | ||
@@ -54,0 +54,0 @@ const { SYNCKIT_WORKER_THREADS, SYNCKIT_BUFFER_SIZE, SYNCKIT_TIMEOUT } = process.env; |
@@ -22,3 +22,3 @@ "use strict"; | ||
/* istanbul ignore next */ | ||
console.warn('`worker_threads` is not available in current environment,\nyou may want to enable it by using `node --experimental-worker` or setting env `NODE_OPTIONS="--experimental-worker"` for better performance'); | ||
console.warn('`worker_threads` is not available in current environment, `Node >= 12` is required'); | ||
} | ||
@@ -25,0 +25,0 @@ const { SYNCKIT_WORKER_THREADS, SYNCKIT_BUFFER_SIZE, SYNCKIT_TIMEOUT } = process.env; |
{ | ||
"name": "synckit", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "Perform async work synchronously in Node.js using `worker_threads`, or `child_process` as fallback, with first-class TypeScript support.", | ||
@@ -5,0 +5,0 @@ "repository": "git+https://github.com/rx-ts/synckit.git", |
@@ -26,3 +26,2 @@ # synckit | ||
- [API](#api) | ||
- [`Node` compatibility](#node-compatibility) | ||
- [Envs](#envs) | ||
@@ -76,6 +75,2 @@ - [TypeScript](#typescript) | ||
### `Node` compatibility | ||
`worker_threads` is available from `Node 8.10` with flag `--experimental-worker` and only enabled by default from `Node 12.11`, so you may want to enable it by using `node --experimental-worker` or setting env `NODE_OPTIONS="--experimental-worker"` for better performance. | ||
### Envs | ||
@@ -82,0 +77,0 @@ |
Sorry, the diff of this file is not supported yet
25710
109