@lage-run/worker-threads-pool
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -5,3 +5,18 @@ { | ||
{ | ||
"date": "Tue, 01 Nov 2022 22:25:35 GMT", | ||
"date": "Tue, 01 Nov 2022 22:48:19 GMT", | ||
"tag": "@lage-run/worker-threads-pool_v0.4.4", | ||
"version": "0.4.4", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"author": "kchau@microsoft.com", | ||
"package": "@lage-run/worker-threads-pool", | ||
"commit": "97b306418acd099a3ed6f3dfc062b513f5fe391c", | ||
"comment": "get rid of third party abort-controller impl" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Tue, 01 Nov 2022 22:25:59 GMT", | ||
"tag": "@lage-run/worker-threads-pool_v0.4.3", | ||
@@ -8,0 +23,0 @@ "version": "0.4.3", |
# Change Log - @lage-run/worker-threads-pool | ||
This log was last generated on Tue, 01 Nov 2022 22:25:35 GMT and should not be manually modified. | ||
This log was last generated on Tue, 01 Nov 2022 22:48:19 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 0.4.4 | ||
Tue, 01 Nov 2022 22:48:19 GMT | ||
### Patches | ||
- get rid of third party abort-controller impl (kchau@microsoft.com) | ||
## 0.4.3 | ||
Tue, 01 Nov 2022 22:25:35 GMT | ||
Tue, 01 Nov 2022 22:25:59 GMT | ||
@@ -11,0 +19,0 @@ ### Patches |
/// <reference types="node" /> | ||
import type { AbortSignal } from "abort-controller"; | ||
/// <reference types="global" /> | ||
import type { Readable } from "stream"; | ||
@@ -4,0 +4,0 @@ import type { Worker, WorkerOptions } from "worker_threads"; |
@@ -1,2 +0,3 @@ | ||
import type { AbortSignal } from "abort-controller"; | ||
/// <reference types="node" /> | ||
/// <reference types="global" /> | ||
export declare function registerWorker(fn: (data: any, abortSignal?: AbortSignal) => Promise<void> | void): void; |
@@ -5,3 +5,2 @@ "use strict"; | ||
const worker_threads_1 = require("worker_threads"); | ||
const abort_controller_1 = require("abort-controller"); | ||
const stdioStreamMarkers_js_1 = require("./stdioStreamMarkers.js"); | ||
@@ -13,3 +12,3 @@ function registerWorker(fn) { | ||
case "start": | ||
abortController = new abort_controller_1.AbortController(); | ||
abortController = new AbortController(); | ||
return message.task && (await start(message.id, message.task, abortController.signal)); | ||
@@ -16,0 +15,0 @@ case "abort": |
/// <reference types="node" /> | ||
/// <reference types="global" /> | ||
import type { Worker } from "worker_threads"; | ||
import type { Readable } from "stream"; | ||
import type { AbortSignal } from "abort-controller"; | ||
export interface PoolStats { | ||
@@ -6,0 +6,0 @@ maxWorkerMemoryUsage: number; |
@@ -6,2 +6,3 @@ /** | ||
/// <reference types="node" /> | ||
/// <reference types="global" /> | ||
import { EventEmitter } from "events"; | ||
@@ -11,3 +12,2 @@ import { Worker } from "worker_threads"; | ||
import type { Readable } from "stream"; | ||
import type { AbortSignal } from "abort-controller"; | ||
import type { WorkerPoolOptions } from "./types/WorkerPoolOptions.js"; | ||
@@ -14,0 +14,0 @@ interface QueueItem { |
{ | ||
"name": "@lage-run/worker-threads-pool", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "A worker_threads pool implementation based on the official Node.js async_hooks documentation", | ||
@@ -18,4 +18,3 @@ "repository": { | ||
"dependencies": { | ||
"@lage-run/logger": "^1.2.2", | ||
"abort-controller": "^3.0.0" | ||
"@lage-run/logger": "^1.2.2" | ||
}, | ||
@@ -22,0 +21,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
49256
1
803
- Removedabort-controller@^3.0.0
- Removedabort-controller@3.0.0(transitive)
- Removedevent-target-shim@5.0.1(transitive)