Comparing version 4.2.0 to 4.2.1
@@ -5,2 +5,9 @@ # Changelog | ||
### [4.2.1](https://github.com/piscinajs/piscina/compare/v4.2.0...v4.2.1) (2023-12-13) | ||
### Bug Fixes | ||
* default minThreads with odd CPU count ([#457](https://github.com/piscinajs/piscina/issues/457)) ([f4edf87](https://github.com/piscinajs/piscina/commit/f4edf87c8c4883e06ab70e99a8a5050eded89c5d)) | ||
## [4.2.0](https://github.com/piscinajs/piscina/compare/v4.1.0...v4.2.0) (2023-11-19) | ||
@@ -7,0 +14,0 @@ |
{ | ||
"name": "piscina", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "A fast, efficient Node.js Worker Thread Pool implementation", | ||
@@ -46,4 +46,4 @@ "main": "./dist/src/index.js", | ||
"tap": "^16.3.7", | ||
"ts-node": "^9.1.1", | ||
"typescript": "5.1.6" | ||
"ts-node": "^10.9.2", | ||
"typescript": "5.3.2" | ||
}, | ||
@@ -50,0 +50,0 @@ "dependencies": { |
@@ -77,3 +77,3 @@ "use strict"; | ||
name: 'default', | ||
minThreads: Math.max(cpuCount / 2, 1), | ||
minThreads: Math.max(Math.floor(cpuCount / 2), 1), | ||
maxThreads: cpuCount * 1.5, | ||
@@ -80,0 +80,0 @@ idleTimeout: 0, |
{ | ||
"name": "piscina", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "A fast, efficient Node.js Worker Thread Pool implementation", | ||
@@ -46,4 +46,4 @@ "main": "./dist/src/index.js", | ||
"tap": "^16.3.7", | ||
"ts-node": "^9.1.1", | ||
"typescript": "5.1.6" | ||
"ts-node": "^10.9.2", | ||
"typescript": "5.3.2" | ||
}, | ||
@@ -50,0 +50,0 @@ "dependencies": { |
@@ -146,3 +146,3 @@ import { Worker, MessageChannel, MessagePort, receiveMessageOnPort } from 'worker_threads'; | ||
name: 'default', | ||
minThreads: Math.max(cpuCount / 2, 1), | ||
minThreads: Math.max(Math.floor(cpuCount / 2), 1), | ||
maxThreads: cpuCount * 1.5, | ||
@@ -149,0 +149,0 @@ idleTimeout: 0, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
248572