From: Jérôme Benoit Date: Tue, 12 Sep 2023 00:51:55 +0000 (+0200) Subject: Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/fastify-cluster... X-Git-Tag: v2.6.45~26^2~13 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=8a11c8fd0b8be823629d0475ee16362b0bb31d25;hp=e8dfbdc023db3a09c31d96dd9c04f7163b557c15;p=poolifier.git Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/fastify-cluster/fastify-4.23.0 into combined-prs-branch --- diff --git a/benchmarks/internal/cluster-worker.mjs b/benchmarks/internal/cluster-worker.mjs index f6b3b056..69a7ad15 100644 --- a/benchmarks/internal/cluster-worker.mjs +++ b/benchmarks/internal/cluster-worker.mjs @@ -1,4 +1,4 @@ -import { isPrimary } from 'cluster' +import { isPrimary } from 'node:cluster' import { ClusterWorker } from '../../lib/index.mjs' import { executeTaskFunction } from '../benchmarks-utils.mjs' import { TaskFunctions } from '../benchmarks-types.mjs' diff --git a/benchmarks/internal/thread-worker.mjs b/benchmarks/internal/thread-worker.mjs index 94250a3a..7af5fa63 100644 --- a/benchmarks/internal/thread-worker.mjs +++ b/benchmarks/internal/thread-worker.mjs @@ -1,4 +1,4 @@ -import { isMainThread } from 'worker_threads' +import { isMainThread } from 'node:worker_threads' import { ThreadWorker } from '../../lib/index.mjs' import { executeTaskFunction } from '../benchmarks-utils.mjs' import { TaskFunctions } from '../benchmarks-types.mjs' diff --git a/benchmarks/versus-external-pools/functions/function-to-bench.js b/benchmarks/versus-external-pools/functions/function-to-bench.js index ecc39a1c..ff13bc9e 100644 --- a/benchmarks/versus-external-pools/functions/function-to-bench.js +++ b/benchmarks/versus-external-pools/functions/function-to-bench.js @@ -6,8 +6,8 @@ * @returns {*} The result. */ const functionToBench = data => { - const crypto = require('crypto') - const fs = require('fs') + const crypto = require('node:crypto') + const fs = require('node:fs') const TaskTypes = { CPU_INTENSIVE: 'CPU_INTENSIVE', IO_INTENSIVE: 'IO_INTENSIVE' diff --git a/benchmarks/versus-external-pools/package.json b/benchmarks/versus-external-pools/package.json index 739af9b9..b6ba6fa3 100644 --- a/benchmarks/versus-external-pools/package.json +++ b/benchmarks/versus-external-pools/package.json @@ -12,7 +12,7 @@ }, "volta": { "node": "18.17.1", - "pnpm": "8.7.4" + "pnpm": "8.7.5" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" diff --git a/examples/javascript/yourWorker.js b/examples/javascript/yourWorker.js index c21f911d..cc462f7f 100644 --- a/examples/javascript/yourWorker.js +++ b/examples/javascript/yourWorker.js @@ -1,5 +1,5 @@ 'use strict' -const { isMainThread } = require('worker_threads') +const { isMainThread } = require('node:worker_threads') const { ThreadWorker } = require('poolifier') const debug = false diff --git a/examples/typescript/http-client-pool/package.json b/examples/typescript/http-client-pool/package.json index bb3b3ca5..50f24da6 100644 --- a/examples/typescript/http-client-pool/package.json +++ b/examples/typescript/http-client-pool/package.json @@ -7,7 +7,7 @@ "type": "module", "volta": { "node": "20.6.1", - "pnpm": "8.7.4" + "pnpm": "8.7.5" }, "scripts": { "build": "pnpm build:clean && tsc", @@ -25,7 +25,7 @@ "poolifier": "^2.6.44" }, "devDependencies": { - "@types/node": "^20.5.9", + "@types/node": "^20.6.0", "typescript": "^5.2.2" } } diff --git a/examples/typescript/http-client-pool/pnpm-lock.yaml b/examples/typescript/http-client-pool/pnpm-lock.yaml index beaad630..6e40c960 100644 --- a/examples/typescript/http-client-pool/pnpm-lock.yaml +++ b/examples/typescript/http-client-pool/pnpm-lock.yaml @@ -17,16 +17,16 @@ dependencies: devDependencies: '@types/node': - specifier: ^20.5.9 - version: 20.5.9 + specifier: ^20.6.0 + version: 20.6.0 typescript: specifier: ^5.2.2 version: 5.2.2 packages: - /@types/node@20.5.9: - resolution: {integrity: sha512-PcGNd//40kHAS3sTlzKB9C9XL4K0sTup8nbG5lC14kzEteTNuAFh9u5nA0o5TWnSG2r/JNPRXFVcHJIIeRlmqQ==} + /@types/node@20.6.0: + resolution: {integrity: sha512-najjVq5KN2vsH2U/xyh2opaSEz6cZMR2SetLIlxlj08nOcmPOemJmUK2o4kUzfLqfrWE0PIrNeE16XhYDd3nqg==} dev: true /asynckit@0.4.0: diff --git a/examples/typescript/http-server-pool/express-cluster/package.json b/examples/typescript/http-server-pool/express-cluster/package.json index 35538120..82122e0c 100644 --- a/examples/typescript/http-server-pool/express-cluster/package.json +++ b/examples/typescript/http-server-pool/express-cluster/package.json @@ -7,7 +7,7 @@ "type": "module", "volta": { "node": "20.6.1", - "pnpm": "8.7.4" + "pnpm": "8.7.5" }, "scripts": { "build": "rollup --config", @@ -27,9 +27,9 @@ "devDependencies": { "@rollup/plugin-typescript": "^11.1.3", "@types/express": "^4.17.17", - "@types/node": "^20.5.9", + "@types/node": "^20.6.0", "autocannon": "^7.12.0", - "rollup": "^3.29.0", + "rollup": "^3.29.1", "rollup-plugin-delete": "^2.0.0", "tslib": "^2.6.2", "typescript": "^5.2.2" diff --git a/examples/typescript/http-server-pool/express-cluster/pnpm-lock.yaml b/examples/typescript/http-server-pool/express-cluster/pnpm-lock.yaml index f62ea454..da41c177 100644 --- a/examples/typescript/http-server-pool/express-cluster/pnpm-lock.yaml +++ b/examples/typescript/http-server-pool/express-cluster/pnpm-lock.yaml @@ -15,19 +15,19 @@ dependencies: devDependencies: '@rollup/plugin-typescript': specifier: ^11.1.3 - version: 11.1.3(rollup@3.29.0)(tslib@2.6.2)(typescript@5.2.2) + version: 11.1.3(rollup@3.29.1)(tslib@2.6.2)(typescript@5.2.2) '@types/express': specifier: ^4.17.17 version: 4.17.17 '@types/node': - specifier: ^20.5.9 - version: 20.5.9 + specifier: ^20.6.0 + version: 20.6.0 autocannon: specifier: ^7.12.0 version: 7.12.0 rollup: - specifier: ^3.29.0 - version: 3.29.0 + specifier: ^3.29.1 + version: 3.29.1 rollup-plugin-delete: specifier: ^2.0.0 version: 2.0.0 @@ -72,7 +72,7 @@ packages: fastq: 1.15.0 dev: true - /@rollup/plugin-typescript@11.1.3(rollup@3.29.0)(tslib@2.6.2)(typescript@5.2.2): + /@rollup/plugin-typescript@11.1.3(rollup@3.29.1)(tslib@2.6.2)(typescript@5.2.2): resolution: {integrity: sha512-8o6cNgN44kQBcpsUJTbTXMTtb87oR1O0zgP3Dxm71hrNgparap3VujgofEilTYJo+ivf2ke6uy3/E5QEaiRlDA==} engines: {node: '>=14.0.0'} peerDependencies: @@ -85,14 +85,14 @@ packages: tslib: optional: true dependencies: - '@rollup/pluginutils': 5.0.4(rollup@3.29.0) + '@rollup/pluginutils': 5.0.4(rollup@3.29.1) resolve: 1.22.4 - rollup: 3.29.0 + rollup: 3.29.1 tslib: 2.6.2 typescript: 5.2.2 dev: true - /@rollup/pluginutils@5.0.4(rollup@3.29.0): + /@rollup/pluginutils@5.0.4(rollup@3.29.1): resolution: {integrity: sha512-0KJnIoRI8A+a1dqOYLxH8vBf8bphDmty5QvIm2hqm7oFCFYKCAZWWd2hXgMibaPsNDhI0AtpYfQZJG47pt/k4g==} engines: {node: '>=14.0.0'} peerDependencies: @@ -104,20 +104,20 @@ packages: '@types/estree': 1.0.1 estree-walker: 2.0.2 picomatch: 2.3.1 - rollup: 3.29.0 + rollup: 3.29.1 dev: true /@types/body-parser@1.19.2: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.36 - '@types/node': 20.5.9 + '@types/node': 20.6.0 dev: true /@types/connect@3.4.36: resolution: {integrity: sha512-P63Zd/JUGq+PdrM1lv0Wv5SBYeA2+CORvbrXbngriYY0jzLUWfQMQQxOhjONEz/wlHOAxOdY7CY65rgQdTjq2w==} dependencies: - '@types/node': 20.5.9 + '@types/node': 20.6.0 dev: true /@types/estree@1.0.1: @@ -127,7 +127,7 @@ packages: /@types/express-serve-static-core@4.17.36: resolution: {integrity: sha512-zbivROJ0ZqLAtMzgzIUC4oNqDG9iF0lSsAqpOD9kbs5xcIM3dTiyuHvBc7R8MtWBp3AAWGaovJa+wzWPjLYW7Q==} dependencies: - '@types/node': 20.5.9 + '@types/node': 20.6.0 '@types/qs': 6.9.8 '@types/range-parser': 1.2.4 '@types/send': 0.17.1 @@ -146,7 +146,7 @@ packages: resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} dependencies: '@types/minimatch': 5.1.2 - '@types/node': 20.5.9 + '@types/node': 20.6.0 dev: true /@types/http-errors@2.0.1: @@ -165,8 +165,8 @@ packages: resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==} dev: true - /@types/node@20.5.9: - resolution: {integrity: sha512-PcGNd//40kHAS3sTlzKB9C9XL4K0sTup8nbG5lC14kzEteTNuAFh9u5nA0o5TWnSG2r/JNPRXFVcHJIIeRlmqQ==} + /@types/node@20.6.0: + resolution: {integrity: sha512-najjVq5KN2vsH2U/xyh2opaSEz6cZMR2SetLIlxlj08nOcmPOemJmUK2o4kUzfLqfrWE0PIrNeE16XhYDd3nqg==} dev: true /@types/qs@6.9.8: @@ -181,7 +181,7 @@ packages: resolution: {integrity: sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==} dependencies: '@types/mime': 1.3.2 - '@types/node': 20.5.9 + '@types/node': 20.6.0 dev: true /@types/serve-static@1.15.2: @@ -189,7 +189,7 @@ packages: dependencies: '@types/http-errors': 2.0.1 '@types/mime': 3.0.1 - '@types/node': 20.5.9 + '@types/node': 20.6.0 dev: true /accepts@1.3.8: @@ -990,8 +990,8 @@ packages: del: 5.1.0 dev: true - /rollup@3.29.0: - resolution: {integrity: sha512-nszM8DINnx1vSS+TpbWKMkxem0CDWk3cSit/WWCBVs9/JZ1I/XLwOsiUglYuYReaeWWSsW9kge5zE5NZtf/a4w==} + /rollup@3.29.1: + resolution: {integrity: sha512-c+ebvQz0VIH4KhhCpDsI+Bik0eT8ZFEVZEYw0cGMVqIP8zc+gnwl7iXCamTw7vzv2MeuZFZfdx5JJIq+ehzDlg==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} hasBin: true optionalDependencies: diff --git a/examples/typescript/http-server-pool/express-cluster/src/worker.ts b/examples/typescript/http-server-pool/express-cluster/src/worker.ts index da1066c4..c5fe74ac 100644 --- a/examples/typescript/http-server-pool/express-cluster/src/worker.ts +++ b/examples/typescript/http-server-pool/express-cluster/src/worker.ts @@ -1,5 +1,5 @@ -import type { Server } from 'http' -import type { AddressInfo } from 'net' +import type { Server } from 'node:http' +import type { AddressInfo } from 'node:net' import { ClusterWorker } from 'poolifier' import express, { type Express, type Request, type Response } from 'express' import { type WorkerData, type WorkerResponse } from './types.js' diff --git a/examples/typescript/http-server-pool/express-hybrid/package.json b/examples/typescript/http-server-pool/express-hybrid/package.json index 5db0b2f4..1f48275b 100644 --- a/examples/typescript/http-server-pool/express-hybrid/package.json +++ b/examples/typescript/http-server-pool/express-hybrid/package.json @@ -7,7 +7,7 @@ "type": "module", "volta": { "node": "20.6.1", - "pnpm": "8.7.4" + "pnpm": "8.7.5" }, "scripts": { "build": "rollup --config", diff --git a/examples/typescript/http-server-pool/express-hybrid/src/express-worker.ts b/examples/typescript/http-server-pool/express-hybrid/src/express-worker.ts index db05cdbe..c7ca23ad 100644 --- a/examples/typescript/http-server-pool/express-hybrid/src/express-worker.ts +++ b/examples/typescript/http-server-pool/express-hybrid/src/express-worker.ts @@ -1,5 +1,5 @@ -import type { Server } from 'http' -import type { AddressInfo } from 'net' +import type { Server } from 'node:http' +import type { AddressInfo } from 'node:net' import { ClusterWorker, DynamicThreadPool, diff --git a/examples/typescript/http-server-pool/express-worker_threads/package.json b/examples/typescript/http-server-pool/express-worker_threads/package.json index 2cc2bdd2..1f0f9c1d 100644 --- a/examples/typescript/http-server-pool/express-worker_threads/package.json +++ b/examples/typescript/http-server-pool/express-worker_threads/package.json @@ -7,7 +7,7 @@ "type": "module", "volta": { "node": "20.6.1", - "pnpm": "8.7.4" + "pnpm": "8.7.5" }, "scripts": { "build": "pnpm build:clean && tsc", diff --git a/examples/typescript/http-server-pool/fastify-cluster/package.json b/examples/typescript/http-server-pool/fastify-cluster/package.json index 9ae7e634..030aa4c7 100644 --- a/examples/typescript/http-server-pool/fastify-cluster/package.json +++ b/examples/typescript/http-server-pool/fastify-cluster/package.json @@ -7,7 +7,7 @@ "type": "module", "volta": { "node": "20.6.1", - "pnpm": "8.7.4" + "pnpm": "8.7.5" }, "scripts": { "build": "rollup --config", @@ -28,7 +28,7 @@ "@rollup/plugin-typescript": "^11.1.3", "@types/node": "^20.5.9", "autocannon": "^7.12.0", - "rollup": "^3.29.0", + "rollup": "^3.29.1", "rollup-plugin-delete": "^2.0.0", "tslib": "^2.6.2", "typescript": "^5.2.2" diff --git a/examples/typescript/http-server-pool/fastify-cluster/pnpm-lock.yaml b/examples/typescript/http-server-pool/fastify-cluster/pnpm-lock.yaml index 26767072..d59b2697 100644 --- a/examples/typescript/http-server-pool/fastify-cluster/pnpm-lock.yaml +++ b/examples/typescript/http-server-pool/fastify-cluster/pnpm-lock.yaml @@ -15,7 +15,7 @@ dependencies: devDependencies: '@rollup/plugin-typescript': specifier: ^11.1.3 - version: 11.1.3(rollup@3.29.0)(tslib@2.6.2)(typescript@5.2.2) + version: 11.1.3(rollup@3.29.1)(tslib@2.6.2)(typescript@5.2.2) '@types/node': specifier: ^20.5.9 version: 20.5.9 @@ -23,8 +23,8 @@ devDependencies: specifier: ^7.12.0 version: 7.12.0 rollup: - specifier: ^3.29.0 - version: 3.29.0 + specifier: ^3.29.1 + version: 3.29.1 rollup-plugin-delete: specifier: ^2.0.0 version: 2.0.0 @@ -91,7 +91,7 @@ packages: fastq: 1.15.0 dev: true - /@rollup/plugin-typescript@11.1.3(rollup@3.29.0)(tslib@2.6.2)(typescript@5.2.2): + /@rollup/plugin-typescript@11.1.3(rollup@3.29.1)(tslib@2.6.2)(typescript@5.2.2): resolution: {integrity: sha512-8o6cNgN44kQBcpsUJTbTXMTtb87oR1O0zgP3Dxm71hrNgparap3VujgofEilTYJo+ivf2ke6uy3/E5QEaiRlDA==} engines: {node: '>=14.0.0'} peerDependencies: @@ -104,14 +104,14 @@ packages: tslib: optional: true dependencies: - '@rollup/pluginutils': 5.0.4(rollup@3.29.0) + '@rollup/pluginutils': 5.0.4(rollup@3.29.1) resolve: 1.22.4 - rollup: 3.29.0 + rollup: 3.29.1 tslib: 2.6.2 typescript: 5.2.2 dev: true - /@rollup/pluginutils@5.0.4(rollup@3.29.0): + /@rollup/pluginutils@5.0.4(rollup@3.29.1): resolution: {integrity: sha512-0KJnIoRI8A+a1dqOYLxH8vBf8bphDmty5QvIm2hqm7oFCFYKCAZWWd2hXgMibaPsNDhI0AtpYfQZJG47pt/k4g==} engines: {node: '>=14.0.0'} peerDependencies: @@ -123,7 +123,7 @@ packages: '@types/estree': 1.0.1 estree-walker: 2.0.2 picomatch: 2.3.1 - rollup: 3.29.0 + rollup: 3.29.1 dev: true /@types/estree@1.0.1: @@ -923,8 +923,8 @@ packages: del: 5.1.0 dev: true - /rollup@3.29.0: - resolution: {integrity: sha512-nszM8DINnx1vSS+TpbWKMkxem0CDWk3cSit/WWCBVs9/JZ1I/XLwOsiUglYuYReaeWWSsW9kge5zE5NZtf/a4w==} + /rollup@3.29.1: + resolution: {integrity: sha512-c+ebvQz0VIH4KhhCpDsI+Bik0eT8ZFEVZEYw0cGMVqIP8zc+gnwl7iXCamTw7vzv2MeuZFZfdx5JJIq+ehzDlg==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} hasBin: true optionalDependencies: diff --git a/examples/typescript/http-server-pool/fastify-hybrid/package.json b/examples/typescript/http-server-pool/fastify-hybrid/package.json index 0d168002..d5729c22 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/package.json +++ b/examples/typescript/http-server-pool/fastify-hybrid/package.json @@ -7,7 +7,7 @@ "type": "module", "volta": { "node": "20.6.1", - "pnpm": "8.7.4" + "pnpm": "8.7.5" }, "scripts": { "build": "rollup --config", @@ -21,15 +21,15 @@ "author": "", "license": "ISC", "dependencies": { - "fastify": "^4.22.2", + "fastify": "^4.23.0", "fastify-plugin": "^4.5.1", "poolifier": "^2.6.44" }, "devDependencies": { "@rollup/plugin-typescript": "^11.1.3", - "@types/node": "^20.5.9", + "@types/node": "^20.6.0", "autocannon": "^7.12.0", - "rollup": "^3.29.0", + "rollup": "^3.29.1", "rollup-plugin-delete": "^2.0.0", "tslib": "^2.6.2", "typescript": "^5.2.2" diff --git a/examples/typescript/http-server-pool/fastify-hybrid/pnpm-lock.yaml b/examples/typescript/http-server-pool/fastify-hybrid/pnpm-lock.yaml index d1147e65..40d6777b 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/pnpm-lock.yaml +++ b/examples/typescript/http-server-pool/fastify-hybrid/pnpm-lock.yaml @@ -6,8 +6,8 @@ settings: dependencies: fastify: - specifier: ^4.22.2 - version: 4.22.2 + specifier: ^4.23.0 + version: 4.23.0 fastify-plugin: specifier: ^4.5.1 version: 4.5.1 @@ -18,16 +18,16 @@ dependencies: devDependencies: '@rollup/plugin-typescript': specifier: ^11.1.3 - version: 11.1.3(rollup@3.29.0)(tslib@2.6.2)(typescript@5.2.2) + version: 11.1.3(rollup@3.29.1)(tslib@2.6.2)(typescript@5.2.2) '@types/node': - specifier: ^20.5.9 - version: 20.5.9 + specifier: ^20.6.0 + version: 20.6.0 autocannon: specifier: ^7.12.0 version: 7.12.0 rollup: - specifier: ^3.29.0 - version: 3.29.0 + specifier: ^3.29.1 + version: 3.29.1 rollup-plugin-delete: specifier: ^2.0.0 version: 2.0.0 @@ -94,7 +94,7 @@ packages: fastq: 1.15.0 dev: true - /@rollup/plugin-typescript@11.1.3(rollup@3.29.0)(tslib@2.6.2)(typescript@5.2.2): + /@rollup/plugin-typescript@11.1.3(rollup@3.29.1)(tslib@2.6.2)(typescript@5.2.2): resolution: {integrity: sha512-8o6cNgN44kQBcpsUJTbTXMTtb87oR1O0zgP3Dxm71hrNgparap3VujgofEilTYJo+ivf2ke6uy3/E5QEaiRlDA==} engines: {node: '>=14.0.0'} peerDependencies: @@ -107,14 +107,14 @@ packages: tslib: optional: true dependencies: - '@rollup/pluginutils': 5.0.4(rollup@3.29.0) + '@rollup/pluginutils': 5.0.4(rollup@3.29.1) resolve: 1.22.4 - rollup: 3.29.0 + rollup: 3.29.1 tslib: 2.6.2 typescript: 5.2.2 dev: true - /@rollup/pluginutils@5.0.4(rollup@3.29.0): + /@rollup/pluginutils@5.0.4(rollup@3.29.1): resolution: {integrity: sha512-0KJnIoRI8A+a1dqOYLxH8vBf8bphDmty5QvIm2hqm7oFCFYKCAZWWd2hXgMibaPsNDhI0AtpYfQZJG47pt/k4g==} engines: {node: '>=14.0.0'} peerDependencies: @@ -126,7 +126,7 @@ packages: '@types/estree': 1.0.1 estree-walker: 2.0.2 picomatch: 2.3.1 - rollup: 3.29.0 + rollup: 3.29.1 dev: true /@types/estree@1.0.1: @@ -137,15 +137,15 @@ packages: resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} dependencies: '@types/minimatch': 5.1.2 - '@types/node': 20.5.9 + '@types/node': 20.6.0 dev: true /@types/minimatch@5.1.2: resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==} dev: true - /@types/node@20.5.9: - resolution: {integrity: sha512-PcGNd//40kHAS3sTlzKB9C9XL4K0sTup8nbG5lC14kzEteTNuAFh9u5nA0o5TWnSG2r/JNPRXFVcHJIIeRlmqQ==} + /@types/node@20.6.0: + resolution: {integrity: sha512-najjVq5KN2vsH2U/xyh2opaSEz6cZMR2SetLIlxlj08nOcmPOemJmUK2o4kUzfLqfrWE0PIrNeE16XhYDd3nqg==} dev: true /abort-controller@3.0.0: @@ -455,8 +455,8 @@ packages: resolution: {integrity: sha512-stRHYGeuqpEZTL1Ef0Ovr2ltazUT9g844X5z/zEBFLG8RYlpDiOCIG+ATvYEp+/zmc7sN29mcIMp8gvYplYPIQ==} dev: false - /fastify@4.22.2: - resolution: {integrity: sha512-rK8mF/1mZJHH6H/L22OhmilTgrp5XMkk3RHcSy03LC+TJ6+wLhbq+4U62bjns15VzIbBNgxTqAForBqtGAa0NQ==} + /fastify@4.23.0: + resolution: {integrity: sha512-u4aQUjAqf+GQQI+IeIJtzOKCJHtdwPlGxzopq/Kv6QcEdJ7xuJFSQ5Bi7+uJ+F8990jWECLzRcAyZ4pVsloRpQ==} dependencies: '@fastify/ajv-compiler': 3.5.0 '@fastify/error': 3.3.0 @@ -473,7 +473,7 @@ packages: rfdc: 1.3.0 secure-json-parse: 2.7.0 semver: 7.5.4 - tiny-lru: 11.0.1 + toad-cache: 3.2.0 transitivePeerDependencies: - supports-color dev: false @@ -930,8 +930,8 @@ packages: del: 5.1.0 dev: true - /rollup@3.29.0: - resolution: {integrity: sha512-nszM8DINnx1vSS+TpbWKMkxem0CDWk3cSit/WWCBVs9/JZ1I/XLwOsiUglYuYReaeWWSsW9kge5zE5NZtf/a4w==} + /rollup@3.29.1: + resolution: {integrity: sha512-c+ebvQz0VIH4KhhCpDsI+Bik0eT8ZFEVZEYw0cGMVqIP8zc+gnwl7iXCamTw7vzv2MeuZFZfdx5JJIq+ehzDlg==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} hasBin: true optionalDependencies: @@ -1041,11 +1041,6 @@ packages: engines: {node: '>=8'} dev: true - /tiny-lru@11.0.1: - resolution: {integrity: sha512-iNgFugVuQgBKrqeO/mpiTTgmBsTP0WL6yeuLfLs/Ctf0pI/ixGqIRm8sDCwMcXGe9WWvt2sGXI5mNqZbValmJg==} - engines: {node: '>=12'} - dev: false - /to-regex-range@5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} @@ -1053,6 +1048,11 @@ packages: is-number: 7.0.0 dev: true + /toad-cache@3.2.0: + resolution: {integrity: sha512-Hj5zSqBS6OHbZoQk9IU8VqIr+0JUpwzunnwSlFJhG8aJSInYUMEuzItl3kJsGteTPd1qtflafdRHlRtUazYeqg==} + engines: {node: '>=12'} + dev: false + /tslib@2.6.2: resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} dev: true diff --git a/examples/typescript/http-server-pool/fastify-hybrid/src/fastify-poolifier.ts b/examples/typescript/http-server-pool/fastify-hybrid/src/fastify-poolifier.ts index 7426ed46..2d137580 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/src/fastify-poolifier.ts +++ b/examples/typescript/http-server-pool/fastify-hybrid/src/fastify-poolifier.ts @@ -1,4 +1,4 @@ -import type { TransferListItem } from 'worker_threads' +import type { TransferListItem } from 'node:worker_threads' import { DynamicThreadPool, availableParallelism } from 'poolifier' import { type FastifyPluginCallback } from 'fastify' import fp from 'fastify-plugin' diff --git a/examples/typescript/http-server-pool/fastify-worker_threads/package.json b/examples/typescript/http-server-pool/fastify-worker_threads/package.json index e45772d9..65e36fe3 100644 --- a/examples/typescript/http-server-pool/fastify-worker_threads/package.json +++ b/examples/typescript/http-server-pool/fastify-worker_threads/package.json @@ -7,7 +7,7 @@ "type": "module", "volta": { "node": "20.6.1", - "pnpm": "8.7.4" + "pnpm": "8.7.5" }, "scripts": { "build": "pnpm build:clean && tsc", diff --git a/examples/typescript/http-server-pool/fastify-worker_threads/src/fastify-poolifier.ts b/examples/typescript/http-server-pool/fastify-worker_threads/src/fastify-poolifier.ts index 85e22c12..74c0c168 100644 --- a/examples/typescript/http-server-pool/fastify-worker_threads/src/fastify-poolifier.ts +++ b/examples/typescript/http-server-pool/fastify-worker_threads/src/fastify-poolifier.ts @@ -1,4 +1,4 @@ -import type { TransferListItem } from 'worker_threads' +import type { TransferListItem } from 'node:worker_threads' import { DynamicThreadPool, availableParallelism } from 'poolifier' import { type FastifyPluginCallback } from 'fastify' import fp from 'fastify-plugin' diff --git a/examples/typescript/pool.ts b/examples/typescript/pool.ts index 93774422..3d9d9e6f 100644 --- a/examples/typescript/pool.ts +++ b/examples/typescript/pool.ts @@ -1,5 +1,5 @@ -import { dirname, extname, join } from 'path' -import { fileURLToPath } from 'url' +import { dirname, extname, join } from 'node:path' +import { fileURLToPath } from 'node:url' import type { MyData, MyResponse } from './worker' import { DynamicThreadPool, diff --git a/examples/typescript/smtp-client-pool/package.json b/examples/typescript/smtp-client-pool/package.json index 09a73889..2faeb876 100644 --- a/examples/typescript/smtp-client-pool/package.json +++ b/examples/typescript/smtp-client-pool/package.json @@ -7,7 +7,7 @@ "type": "module", "volta": { "node": "20.6.1", - "pnpm": "8.7.4" + "pnpm": "8.7.5" }, "scripts": { "build": "pnpm build:clean && tsc", @@ -24,7 +24,7 @@ }, "devDependencies": { "@types/node": "^20.5.9", - "@types/nodemailer": "^6.4.9", + "@types/nodemailer": "^6.4.10", "typescript": "^5.2.2" } } diff --git a/examples/typescript/smtp-client-pool/pnpm-lock.yaml b/examples/typescript/smtp-client-pool/pnpm-lock.yaml index a7f346d0..05f5a97e 100644 --- a/examples/typescript/smtp-client-pool/pnpm-lock.yaml +++ b/examples/typescript/smtp-client-pool/pnpm-lock.yaml @@ -17,8 +17,8 @@ devDependencies: specifier: ^20.5.9 version: 20.5.9 '@types/nodemailer': - specifier: ^6.4.9 - version: 6.4.9 + specifier: ^6.4.10 + version: 6.4.10 typescript: specifier: ^5.2.2 version: 5.2.2 @@ -29,8 +29,8 @@ packages: resolution: {integrity: sha512-PcGNd//40kHAS3sTlzKB9C9XL4K0sTup8nbG5lC14kzEteTNuAFh9u5nA0o5TWnSG2r/JNPRXFVcHJIIeRlmqQ==} dev: true - /@types/nodemailer@6.4.9: - resolution: {integrity: sha512-XYG8Gv+sHjaOtUpiuytahMy2mM3rectgroNbs6R3djZEKmPNiIJwe9KqOJBGzKKnNZNKvnuvmugBgpq3w/S0ig==} + /@types/nodemailer@6.4.10: + resolution: {integrity: sha512-oPW/IdhkU3FyZc1dzeqmS+MBjrjZNiiINnrEOrWALzccJlP5xTlbkNr2YnTnnyj9Eqm5ofjRoASEbrCYpA7BrA==} dependencies: '@types/node': 20.5.9 dev: true diff --git a/examples/typescript/websocket-server-pool/ws-cluster/package.json b/examples/typescript/websocket-server-pool/ws-cluster/package.json index 6d38afea..57620d75 100644 --- a/examples/typescript/websocket-server-pool/ws-cluster/package.json +++ b/examples/typescript/websocket-server-pool/ws-cluster/package.json @@ -7,7 +7,7 @@ "type": "module", "volta": { "node": "20.6.1", - "pnpm": "8.7.4" + "pnpm": "8.7.5" }, "scripts": { "build": "rollup --config", @@ -25,9 +25,9 @@ }, "devDependencies": { "@rollup/plugin-typescript": "^11.1.3", - "@types/node": "^20.5.9", + "@types/node": "^20.6.0", "@types/ws": "^8.5.5", - "rollup": "^3.29.0", + "rollup": "^3.29.1", "rollup-plugin-delete": "^2.0.0", "tslib": "^2.6.2", "typescript": "^5.2.2" diff --git a/examples/typescript/websocket-server-pool/ws-cluster/pnpm-lock.yaml b/examples/typescript/websocket-server-pool/ws-cluster/pnpm-lock.yaml index a24050e3..236aaa2a 100644 --- a/examples/typescript/websocket-server-pool/ws-cluster/pnpm-lock.yaml +++ b/examples/typescript/websocket-server-pool/ws-cluster/pnpm-lock.yaml @@ -23,16 +23,16 @@ optionalDependencies: devDependencies: '@rollup/plugin-typescript': specifier: ^11.1.3 - version: 11.1.3(rollup@3.29.0)(tslib@2.6.2)(typescript@5.2.2) + version: 11.1.3(rollup@3.29.1)(tslib@2.6.2)(typescript@5.2.2) '@types/node': - specifier: ^20.5.9 - version: 20.5.9 + specifier: ^20.6.0 + version: 20.6.0 '@types/ws': specifier: ^8.5.5 version: 8.5.5 rollup: - specifier: ^3.29.0 - version: 3.29.0 + specifier: ^3.29.1 + version: 3.29.1 rollup-plugin-delete: specifier: ^2.0.0 version: 2.0.0 @@ -66,7 +66,7 @@ packages: fastq: 1.15.0 dev: true - /@rollup/plugin-typescript@11.1.3(rollup@3.29.0)(tslib@2.6.2)(typescript@5.2.2): + /@rollup/plugin-typescript@11.1.3(rollup@3.29.1)(tslib@2.6.2)(typescript@5.2.2): resolution: {integrity: sha512-8o6cNgN44kQBcpsUJTbTXMTtb87oR1O0zgP3Dxm71hrNgparap3VujgofEilTYJo+ivf2ke6uy3/E5QEaiRlDA==} engines: {node: '>=14.0.0'} peerDependencies: @@ -79,14 +79,14 @@ packages: tslib: optional: true dependencies: - '@rollup/pluginutils': 5.0.4(rollup@3.29.0) + '@rollup/pluginutils': 5.0.4(rollup@3.29.1) resolve: 1.22.4 - rollup: 3.29.0 + rollup: 3.29.1 tslib: 2.6.2 typescript: 5.2.2 dev: true - /@rollup/pluginutils@5.0.4(rollup@3.29.0): + /@rollup/pluginutils@5.0.4(rollup@3.29.1): resolution: {integrity: sha512-0KJnIoRI8A+a1dqOYLxH8vBf8bphDmty5QvIm2hqm7oFCFYKCAZWWd2hXgMibaPsNDhI0AtpYfQZJG47pt/k4g==} engines: {node: '>=14.0.0'} peerDependencies: @@ -98,7 +98,7 @@ packages: '@types/estree': 1.0.1 estree-walker: 2.0.2 picomatch: 2.3.1 - rollup: 3.29.0 + rollup: 3.29.1 dev: true /@types/estree@1.0.1: @@ -109,21 +109,21 @@ packages: resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} dependencies: '@types/minimatch': 5.1.2 - '@types/node': 20.5.9 + '@types/node': 20.6.0 dev: true /@types/minimatch@5.1.2: resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==} dev: true - /@types/node@20.5.9: - resolution: {integrity: sha512-PcGNd//40kHAS3sTlzKB9C9XL4K0sTup8nbG5lC14kzEteTNuAFh9u5nA0o5TWnSG2r/JNPRXFVcHJIIeRlmqQ==} + /@types/node@20.6.0: + resolution: {integrity: sha512-najjVq5KN2vsH2U/xyh2opaSEz6cZMR2SetLIlxlj08nOcmPOemJmUK2o4kUzfLqfrWE0PIrNeE16XhYDd3nqg==} dev: true /@types/ws@8.5.5: resolution: {integrity: sha512-lwhs8hktwxSjf9UaZ9tG5M03PGogvFaH8gUgLNbN9HKIg0dvv6q+gkSuJ8HN4/VbyxkuLzCjlN7GquQ0gUJfIg==} dependencies: - '@types/node': 20.5.9 + '@types/node': 20.6.0 dev: true /aggregate-error@3.1.0: @@ -431,8 +431,8 @@ packages: del: 5.1.0 dev: true - /rollup@3.29.0: - resolution: {integrity: sha512-nszM8DINnx1vSS+TpbWKMkxem0CDWk3cSit/WWCBVs9/JZ1I/XLwOsiUglYuYReaeWWSsW9kge5zE5NZtf/a4w==} + /rollup@3.29.1: + resolution: {integrity: sha512-c+ebvQz0VIH4KhhCpDsI+Bik0eT8ZFEVZEYw0cGMVqIP8zc+gnwl7iXCamTw7vzv2MeuZFZfdx5JJIq+ehzDlg==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} hasBin: true optionalDependencies: diff --git a/examples/typescript/websocket-server-pool/ws-hybrid/package.json b/examples/typescript/websocket-server-pool/ws-hybrid/package.json index 35bcbd52..9964bd02 100644 --- a/examples/typescript/websocket-server-pool/ws-hybrid/package.json +++ b/examples/typescript/websocket-server-pool/ws-hybrid/package.json @@ -7,7 +7,7 @@ "type": "module", "volta": { "node": "20.6.1", - "pnpm": "8.7.4" + "pnpm": "8.7.5" }, "scripts": { "build": "rollup --config", diff --git a/examples/typescript/websocket-server-pool/ws-worker_threads/package.json b/examples/typescript/websocket-server-pool/ws-worker_threads/package.json index 47220008..e9e40955 100644 --- a/examples/typescript/websocket-server-pool/ws-worker_threads/package.json +++ b/examples/typescript/websocket-server-pool/ws-worker_threads/package.json @@ -7,7 +7,7 @@ "type": "module", "volta": { "node": "20.6.1", - "pnpm": "8.7.4" + "pnpm": "8.7.5" }, "scripts": { "build": "pnpm build:clean && tsc", diff --git a/package.json b/package.json index b14ef8a5..44b34154 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ }, "volta": { "node": "20.6.1", - "pnpm": "8.7.4" + "pnpm": "8.7.5" }, "repository": { "type": "git", @@ -109,8 +109,8 @@ "@rollup/plugin-terser": "^0.4.3", "@rollup/plugin-typescript": "^11.1.3", "@types/node": "^20.6.0", - "@typescript-eslint/eslint-plugin": "^6.6.0", - "@typescript-eslint/parser": "^6.6.0", + "@typescript-eslint/eslint-plugin": "^6.7.0", + "@typescript-eslint/parser": "^6.7.0", "benny": "^3.7.1", "c8": "^8.0.1", "eslint": "^8.49.0", @@ -119,8 +119,8 @@ "eslint-define-config": "^1.23.0", "eslint-import-resolver-typescript": "^3.6.0", "eslint-plugin-import": "^2.28.1", - "eslint-plugin-jsdoc": "^46.5.1", - "eslint-plugin-n": "^16.0.2", + "eslint-plugin-jsdoc": "^46.6.0", + "eslint-plugin-n": "^16.1.0", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-spellcheck": "^0.0.20", "eslint-plugin-tsdoc": "^0.2.17", @@ -132,11 +132,11 @@ "mochawesome": "^7.1.3", "prettier": "^3.0.3", "release-it": "^16.1.5", - "rollup": "^3.29.0", + "rollup": "^3.29.1", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-command": "^1.1.3", "rollup-plugin-delete": "^2.0.0", - "rollup-plugin-dts": "^6.0.1", + "rollup-plugin-dts": "^6.0.2", "sinon": "^15.2.0", "source-map-support": "^0.5.21", "ts-standard": "^12.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a3bcf734..0f3a198d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -25,19 +25,19 @@ devDependencies: version: 4.0.0(release-it@16.1.5) '@rollup/plugin-terser': specifier: ^0.4.3 - version: 0.4.3(rollup@3.29.0) + version: 0.4.3(rollup@3.29.1) '@rollup/plugin-typescript': specifier: ^11.1.3 - version: 11.1.3(rollup@3.29.0)(typescript@5.2.2) + version: 11.1.3(rollup@3.29.1)(typescript@5.2.2) '@types/node': specifier: ^20.6.0 version: 20.6.0 '@typescript-eslint/eslint-plugin': - specifier: ^6.6.0 - version: 6.6.0(@typescript-eslint/parser@6.6.0)(eslint@8.49.0)(typescript@5.2.2) + specifier: ^6.7.0 + version: 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) '@typescript-eslint/parser': - specifier: ^6.6.0 - version: 6.6.0(eslint@8.49.0)(typescript@5.2.2) + specifier: ^6.7.0 + version: 6.7.0(eslint@8.49.0)(typescript@5.2.2) benny: specifier: ^3.7.1 version: 3.7.1 @@ -49,25 +49,25 @@ devDependencies: version: 8.49.0 eslint-config-standard: specifier: ^17.1.0 - version: 17.1.0(eslint-plugin-import@2.28.1)(eslint-plugin-n@16.0.2)(eslint-plugin-promise@6.1.1)(eslint@8.49.0) + version: 17.1.0(eslint-plugin-import@2.28.1)(eslint-plugin-n@16.1.0)(eslint-plugin-promise@6.1.1)(eslint@8.49.0) eslint-config-standard-with-typescript: specifier: ^39.0.0 - version: 39.0.0(@typescript-eslint/eslint-plugin@6.6.0)(eslint-plugin-import@2.28.1)(eslint-plugin-n@16.0.2)(eslint-plugin-promise@6.1.1)(eslint@8.49.0)(typescript@5.2.2) + version: 39.0.0(@typescript-eslint/eslint-plugin@6.7.0)(eslint-plugin-import@2.28.1)(eslint-plugin-n@16.1.0)(eslint-plugin-promise@6.1.1)(eslint@8.49.0)(typescript@5.2.2) eslint-define-config: specifier: ^1.23.0 version: 1.23.0 eslint-import-resolver-typescript: specifier: ^3.6.0 - version: 3.6.0(@typescript-eslint/parser@6.6.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) + version: 3.6.0(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) eslint-plugin-import: specifier: ^2.28.1 - version: 2.28.1(@typescript-eslint/parser@6.6.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) + version: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) eslint-plugin-jsdoc: - specifier: ^46.5.1 - version: 46.5.1(eslint@8.49.0) + specifier: ^46.6.0 + version: 46.6.0(eslint@8.49.0) eslint-plugin-n: - specifier: ^16.0.2 - version: 16.0.2(eslint@8.49.0) + specifier: ^16.1.0 + version: 16.1.0(eslint@8.49.0) eslint-plugin-promise: specifier: ^6.1.1 version: 6.1.1(eslint@8.49.0) @@ -102,8 +102,8 @@ devDependencies: specifier: ^16.1.5 version: 16.1.5 rollup: - specifier: ^3.29.0 - version: 3.29.0 + specifier: ^3.29.1 + version: 3.29.1 rollup-plugin-analyzer: specifier: ^4.0.0 version: 4.0.0 @@ -114,8 +114,8 @@ devDependencies: specifier: ^2.0.0 version: 2.0.0 rollup-plugin-dts: - specifier: ^6.0.1 - version: 6.0.1(rollup@3.29.0)(typescript@5.2.2) + specifier: ^6.0.2 + version: 6.0.2(rollup@3.29.1)(typescript@5.2.2) sinon: specifier: ^15.2.0 version: 15.2.0 @@ -795,7 +795,7 @@ packages: string-template: 1.0.0 dev: true - /@rollup/plugin-terser@0.4.3(rollup@3.29.0): + /@rollup/plugin-terser@0.4.3(rollup@3.29.1): resolution: {integrity: sha512-EF0oejTMtkyhrkwCdg0HJ0IpkcaVg1MMSf2olHb2Jp+1mnLM04OhjpJWGma4HobiDTF0WCyViWuvadyE9ch2XA==} engines: {node: '>=14.0.0'} peerDependencies: @@ -804,13 +804,13 @@ packages: rollup: optional: true dependencies: - rollup: 3.29.0 + rollup: 3.29.1 serialize-javascript: 6.0.1 smob: 1.4.0 terser: 5.19.4 dev: true - /@rollup/plugin-typescript@11.1.3(rollup@3.29.0)(typescript@5.2.2): + /@rollup/plugin-typescript@11.1.3(rollup@3.29.1)(typescript@5.2.2): resolution: {integrity: sha512-8o6cNgN44kQBcpsUJTbTXMTtb87oR1O0zgP3Dxm71hrNgparap3VujgofEilTYJo+ivf2ke6uy3/E5QEaiRlDA==} engines: {node: '>=14.0.0'} peerDependencies: @@ -823,13 +823,13 @@ packages: tslib: optional: true dependencies: - '@rollup/pluginutils': 5.0.4(rollup@3.29.0) + '@rollup/pluginutils': 5.0.4(rollup@3.29.1) resolve: 1.22.4 - rollup: 3.29.0 + rollup: 3.29.1 typescript: 5.2.2 dev: true - /@rollup/pluginutils@5.0.4(rollup@3.29.0): + /@rollup/pluginutils@5.0.4(rollup@3.29.1): resolution: {integrity: sha512-0KJnIoRI8A+a1dqOYLxH8vBf8bphDmty5QvIm2hqm7oFCFYKCAZWWd2hXgMibaPsNDhI0AtpYfQZJG47pt/k4g==} engines: {node: '>=14.0.0'} peerDependencies: @@ -841,7 +841,7 @@ packages: '@types/estree': 1.0.1 estree-walker: 2.0.2 picomatch: 2.3.1 - rollup: 3.29.0 + rollup: 3.29.1 dev: true /@sinclair/typebox@0.27.8: @@ -1015,8 +1015,8 @@ packages: - supports-color dev: true - /@typescript-eslint/eslint-plugin@6.6.0(@typescript-eslint/parser@6.6.0)(eslint@8.49.0)(typescript@5.2.2): - resolution: {integrity: sha512-CW9YDGTQnNYMIo5lMeuiIG08p4E0cXrXTbcZ2saT/ETE7dWUrNxlijsQeU04qAAKkILiLzdQz+cGFxCJjaZUmA==} + /@typescript-eslint/eslint-plugin@6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2): + resolution: {integrity: sha512-gUqtknHm0TDs1LhY12K2NA3Rmlmp88jK9Tx8vGZMfHeNMLE3GH2e9TRub+y+SOjuYgtOmok+wt1AyDPZqxbNag==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -1027,11 +1027,11 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.8.0 - '@typescript-eslint/parser': 6.6.0(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/scope-manager': 6.6.0 - '@typescript-eslint/type-utils': 6.6.0(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/utils': 6.6.0(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/visitor-keys': 6.6.0 + '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/scope-manager': 6.7.0 + '@typescript-eslint/type-utils': 6.7.0(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/utils': 6.7.0(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/visitor-keys': 6.7.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.49.0 graphemer: 1.4.0 @@ -1064,8 +1064,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.6.0(eslint@8.49.0)(typescript@5.2.2): - resolution: {integrity: sha512-setq5aJgUwtzGrhW177/i+DMLqBaJbdwGj2CPIVFFLE0NCliy5ujIdLHd2D1ysmlmsjdL2GWW+hR85neEfc12w==} + /@typescript-eslint/parser@6.7.0(eslint@8.49.0)(typescript@5.2.2): + resolution: {integrity: sha512-jZKYwqNpNm5kzPVP5z1JXAuxjtl2uG+5NpaMocFPTNC2EdYIgbXIPImObOkhbONxtFTTdoZstLZefbaK+wXZng==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1074,10 +1074,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.6.0 - '@typescript-eslint/types': 6.6.0 - '@typescript-eslint/typescript-estree': 6.6.0(typescript@5.2.2) - '@typescript-eslint/visitor-keys': 6.6.0 + '@typescript-eslint/scope-manager': 6.7.0 + '@typescript-eslint/types': 6.7.0 + '@typescript-eslint/typescript-estree': 6.7.0(typescript@5.2.2) + '@typescript-eslint/visitor-keys': 6.7.0 debug: 4.3.4(supports-color@8.1.1) eslint: 8.49.0 typescript: 5.2.2 @@ -1093,12 +1093,12 @@ packages: '@typescript-eslint/visitor-keys': 5.62.0 dev: true - /@typescript-eslint/scope-manager@6.6.0: - resolution: {integrity: sha512-pT08u5W/GT4KjPUmEtc2kSYvrH8x89cVzkA0Sy2aaOUIw6YxOIjA8ilwLr/1fLjOedX1QAuBpG9XggWqIIfERw==} + /@typescript-eslint/scope-manager@6.7.0: + resolution: {integrity: sha512-lAT1Uau20lQyjoLUQ5FUMSX/dS07qux9rYd5FGzKz/Kf8W8ccuvMyldb8hadHdK/qOI7aikvQWqulnEq2nCEYA==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.6.0 - '@typescript-eslint/visitor-keys': 6.6.0 + '@typescript-eslint/types': 6.7.0 + '@typescript-eslint/visitor-keys': 6.7.0 dev: true /@typescript-eslint/type-utils@5.62.0(eslint@8.49.0)(typescript@5.2.2): @@ -1121,8 +1121,8 @@ packages: - supports-color dev: true - /@typescript-eslint/type-utils@6.6.0(eslint@8.49.0)(typescript@5.2.2): - resolution: {integrity: sha512-8m16fwAcEnQc69IpeDyokNO+D5spo0w1jepWWY2Q6y5ZKNuj5EhVQXjtVAeDDqvW6Yg7dhclbsz6rTtOvcwpHg==} + /@typescript-eslint/type-utils@6.7.0(eslint@8.49.0)(typescript@5.2.2): + resolution: {integrity: sha512-f/QabJgDAlpSz3qduCyQT0Fw7hHpmhOzY/Rv6zO3yO+HVIdPfIWhrQoAyG+uZVtWAIS85zAyzgAFfyEr+MgBpg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1131,8 +1131,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.6.0(typescript@5.2.2) - '@typescript-eslint/utils': 6.6.0(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/typescript-estree': 6.7.0(typescript@5.2.2) + '@typescript-eslint/utils': 6.7.0(eslint@8.49.0)(typescript@5.2.2) debug: 4.3.4(supports-color@8.1.1) eslint: 8.49.0 ts-api-utils: 1.0.3(typescript@5.2.2) @@ -1146,8 +1146,8 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@typescript-eslint/types@6.6.0: - resolution: {integrity: sha512-CB6QpJQ6BAHlJXdwUmiaXDBmTqIE2bzGTDLADgvqtHWuhfNP3rAOK7kAgRMAET5rDRr9Utt+qAzRBdu3AhR3sg==} + /@typescript-eslint/types@6.7.0: + resolution: {integrity: sha512-ihPfvOp7pOcN/ysoj0RpBPOx3HQTJTrIN8UZK+WFd3/iDeFHHqeyYxa4hQk4rMhsz9H9mXpR61IzwlBVGXtl9Q==} engines: {node: ^16.0.0 || >=18.0.0} dev: true @@ -1172,8 +1172,8 @@ packages: - supports-color dev: true - /@typescript-eslint/typescript-estree@6.6.0(typescript@5.2.2): - resolution: {integrity: sha512-hMcTQ6Al8MP2E6JKBAaSxSVw5bDhdmbCEhGW/V8QXkb9oNsFkA4SBuOMYVPxD3jbtQ4R/vSODBsr76R6fP3tbA==} + /@typescript-eslint/typescript-estree@6.7.0(typescript@5.2.2): + resolution: {integrity: sha512-dPvkXj3n6e9yd/0LfojNU8VMUGHWiLuBZvbM6V6QYD+2qxqInE7J+J/ieY2iGwR9ivf/R/haWGkIj04WVUeiSQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' @@ -1181,8 +1181,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 6.6.0 - '@typescript-eslint/visitor-keys': 6.6.0 + '@typescript-eslint/types': 6.7.0 + '@typescript-eslint/visitor-keys': 6.7.0 debug: 4.3.4(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 @@ -1213,8 +1213,8 @@ packages: - typescript dev: true - /@typescript-eslint/utils@6.6.0(eslint@8.49.0)(typescript@5.2.2): - resolution: {integrity: sha512-mPHFoNa2bPIWWglWYdR0QfY9GN0CfvvXX1Sv6DlSTive3jlMTUy+an67//Gysc+0Me9pjitrq0LJp0nGtLgftw==} + /@typescript-eslint/utils@6.7.0(eslint@8.49.0)(typescript@5.2.2): + resolution: {integrity: sha512-MfCq3cM0vh2slSikQYqK2Gq52gvOhe57vD2RM3V4gQRZYX4rDPnKLu5p6cm89+LJiGlwEXU8hkYxhqqEC/V3qA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1222,9 +1222,9 @@ packages: '@eslint-community/eslint-utils': 4.4.0(eslint@8.49.0) '@types/json-schema': 7.0.12 '@types/semver': 7.5.1 - '@typescript-eslint/scope-manager': 6.6.0 - '@typescript-eslint/types': 6.6.0 - '@typescript-eslint/typescript-estree': 6.6.0(typescript@5.2.2) + '@typescript-eslint/scope-manager': 6.7.0 + '@typescript-eslint/types': 6.7.0 + '@typescript-eslint/typescript-estree': 6.7.0(typescript@5.2.2) eslint: 8.49.0 semver: 7.5.4 transitivePeerDependencies: @@ -1240,11 +1240,11 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@typescript-eslint/visitor-keys@6.6.0: - resolution: {integrity: sha512-L61uJT26cMOfFQ+lMZKoJNbAEckLe539VhTxiGHrWl5XSKQgA0RTBZJW2HFPy5T0ZvPVSD93QsrTKDkfNwJGyQ==} + /@typescript-eslint/visitor-keys@6.7.0: + resolution: {integrity: sha512-/C1RVgKFDmGMcVGeD8HjKv2bd72oI1KxQDeY8uc66gw9R0OK0eMq48cA+jv9/2Ag6cdrsUGySm1yzYmfz0hxwQ==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.6.0 + '@typescript-eslint/types': 6.7.0 eslint-visitor-keys: 3.4.3 dev: true @@ -2447,7 +2447,7 @@ packages: - supports-color dev: true - /eslint-config-standard-with-typescript@39.0.0(@typescript-eslint/eslint-plugin@6.6.0)(eslint-plugin-import@2.28.1)(eslint-plugin-n@16.0.2)(eslint-plugin-promise@6.1.1)(eslint@8.49.0)(typescript@5.2.2): + /eslint-config-standard-with-typescript@39.0.0(@typescript-eslint/eslint-plugin@6.7.0)(eslint-plugin-import@2.28.1)(eslint-plugin-n@16.1.0)(eslint-plugin-promise@6.1.1)(eslint@8.49.0)(typescript@5.2.2): resolution: {integrity: sha512-CiV2LS4NUeeRmDTDf1ocUMpMxitSyW0g+Y/N7ecElwGj188GahbcQgqfBNyVsIXQxHlZVBlOjkbg3oUI0R3KBg==} peerDependencies: '@typescript-eslint/eslint-plugin': ^6.4.0 @@ -2457,12 +2457,12 @@ packages: eslint-plugin-promise: ^6.0.0 typescript: '*' dependencies: - '@typescript-eslint/eslint-plugin': 6.6.0(@typescript-eslint/parser@6.6.0)(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/parser': 6.6.0(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/eslint-plugin': 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.2.2) eslint: 8.49.0 - eslint-config-standard: 17.1.0(eslint-plugin-import@2.28.1)(eslint-plugin-n@16.0.2)(eslint-plugin-promise@6.1.1)(eslint@8.49.0) - eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.6.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) - eslint-plugin-n: 16.0.2(eslint@8.49.0) + eslint-config-standard: 17.1.0(eslint-plugin-import@2.28.1)(eslint-plugin-n@16.1.0)(eslint-plugin-promise@6.1.1)(eslint@8.49.0) + eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) + eslint-plugin-n: 16.1.0(eslint@8.49.0) eslint-plugin-promise: 6.1.1(eslint@8.49.0) typescript: 5.2.2 transitivePeerDependencies: @@ -2483,7 +2483,7 @@ packages: eslint-plugin-promise: 6.1.1(eslint@8.49.0) dev: true - /eslint-config-standard@17.1.0(eslint-plugin-import@2.28.1)(eslint-plugin-n@16.0.2)(eslint-plugin-promise@6.1.1)(eslint@8.49.0): + /eslint-config-standard@17.1.0(eslint-plugin-import@2.28.1)(eslint-plugin-n@16.1.0)(eslint-plugin-promise@6.1.1)(eslint@8.49.0): resolution: {integrity: sha512-IwHwmaBNtDK4zDHQukFDW5u/aTb8+meQWZvNFWkiGmbWjD6bqyuSSBxxXKkCftCUzc1zwCH2m/baCNDLGmuO5Q==} engines: {node: '>=12.0.0'} peerDependencies: @@ -2493,8 +2493,8 @@ packages: eslint-plugin-promise: ^6.0.0 dependencies: eslint: 8.49.0 - eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.6.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) - eslint-plugin-n: 16.0.2(eslint@8.49.0) + eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) + eslint-plugin-n: 16.1.0(eslint@8.49.0) eslint-plugin-promise: 6.1.1(eslint@8.49.0) dev: true @@ -2513,7 +2513,7 @@ packages: - supports-color dev: true - /eslint-import-resolver-typescript@3.6.0(@typescript-eslint/parser@6.6.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0): + /eslint-import-resolver-typescript@3.6.0(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0): resolution: {integrity: sha512-QTHR9ddNnn35RTxlaEnx2gCxqFlF2SEN0SE2d17SqwyM7YOSI2GHWRYp5BiRkObTUNYPupC/3Fq2a0PpT+EKpg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -2523,8 +2523,8 @@ packages: debug: 4.3.4(supports-color@8.1.1) enhanced-resolve: 5.15.0 eslint: 8.49.0 - eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.6.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) - eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.6.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) + eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) + eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) fast-glob: 3.3.1 get-tsconfig: 4.7.0 is-core-module: 2.13.0 @@ -2561,12 +2561,12 @@ packages: debug: 3.2.7 eslint: 8.49.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.6.0(@typescript-eslint/parser@6.6.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) + eslint-import-resolver-typescript: 3.6.0(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) transitivePeerDependencies: - supports-color dev: true - /eslint-module-utils@2.8.0(@typescript-eslint/parser@6.6.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0): + /eslint-module-utils@2.8.0(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0): resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==} engines: {node: '>=4'} peerDependencies: @@ -2587,11 +2587,11 @@ packages: eslint-import-resolver-webpack: optional: true dependencies: - '@typescript-eslint/parser': 6.6.0(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.2.2) debug: 3.2.7 eslint: 8.49.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.6.0(@typescript-eslint/parser@6.6.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) + eslint-import-resolver-typescript: 3.6.0(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) transitivePeerDependencies: - supports-color dev: true @@ -2653,7 +2653,7 @@ packages: - supports-color dev: true - /eslint-plugin-import@2.28.1(@typescript-eslint/parser@6.6.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0): + /eslint-plugin-import@2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0): resolution: {integrity: sha512-9I9hFlITvOV55alzoKBI+K9q74kv0iKMeY6av5+umsNwayt59fz692daGyjR+oStBQgx6nwR9rXldDev3Clw+A==} engines: {node: '>=4'} peerDependencies: @@ -2663,7 +2663,7 @@ packages: '@typescript-eslint/parser': optional: true dependencies: - '@typescript-eslint/parser': 6.6.0(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.2.2) array-includes: 3.1.7 array.prototype.findlastindex: 1.2.3 array.prototype.flat: 1.3.2 @@ -2672,7 +2672,7 @@ packages: doctrine: 2.1.0 eslint: 8.49.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.6.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) + eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) has: 1.0.3 is-core-module: 2.13.0 is-glob: 4.0.3 @@ -2688,8 +2688,8 @@ packages: - supports-color dev: true - /eslint-plugin-jsdoc@46.5.1(eslint@8.49.0): - resolution: {integrity: sha512-CPbvKprmEuJYoxMj5g8gXfPqUGgcqMM6jpH06Kp4pn5Uy5MrPkFKzoD7UFp2E4RBzfXbJz1+TeuEivwFVMkXBg==} + /eslint-plugin-jsdoc@46.6.0(eslint@8.49.0): + resolution: {integrity: sha512-T/1gzsvnX45qABzyPEonEhFDttkTn7Igm/X89TXIkTLBOsNl2GYtyBqQPZGXZZ8J5VBzEhiCMvI2P2kXX4dnFw==} engines: {node: '>=16'} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -2725,8 +2725,8 @@ packages: semver: 7.5.4 dev: true - /eslint-plugin-n@16.0.2(eslint@8.49.0): - resolution: {integrity: sha512-Y66uDfUNbBzypsr0kELWrIz+5skicECrLUqlWuXawNSLUq3ltGlCwu6phboYYOTSnoTdHgTLrc+5Ydo6KjzZog==} + /eslint-plugin-n@16.1.0(eslint@8.49.0): + resolution: {integrity: sha512-3wv/TooBst0N4ND+pnvffHuz9gNPmk/NkLwAxOt2JykTl/hcuECe6yhTtLJcZjIxtZwN+GX92ACp/QTLpHA3Hg==} engines: {node: '>=16.0.0'} peerDependencies: eslint: '>=7.0.0' @@ -2735,6 +2735,7 @@ packages: builtins: 5.0.1 eslint: 8.49.0 eslint-plugin-es-x: 7.2.0(eslint@8.49.0) + get-tsconfig: 4.7.0 ignore: 5.2.4 is-core-module: 2.13.0 minimatch: 3.1.2 @@ -5529,22 +5530,22 @@ packages: del: 5.1.0 dev: true - /rollup-plugin-dts@6.0.1(rollup@3.29.0)(typescript@5.2.2): - resolution: {integrity: sha512-XJbCldVrp4TLc2Hg4DfrRiJgzJ73uhZB0sPSDizgdlrhSJ1bsIkkRMkwRKNQYgkbfMz4CHLdbnFKVivHE0vsPA==} - engines: {node: '>=16'} + /rollup-plugin-dts@6.0.2(rollup@3.29.1)(typescript@5.2.2): + resolution: {integrity: sha512-GYCCy9DyE5csSuUObktJBpjNpW2iLZMabNDIiAqzQWBl7l/WHzjvtAXevf8Lftk8EA920tuxeB/g8dM8MVMR6A==} + engines: {node: '>=v16'} peerDependencies: rollup: ^3.25 typescript: ^4.5 || ^5.0 dependencies: magic-string: 0.30.3 - rollup: 3.29.0 + rollup: 3.29.1 typescript: 5.2.2 optionalDependencies: '@babel/code-frame': 7.22.13 dev: true - /rollup@3.29.0: - resolution: {integrity: sha512-nszM8DINnx1vSS+TpbWKMkxem0CDWk3cSit/WWCBVs9/JZ1I/XLwOsiUglYuYReaeWWSsW9kge5zE5NZtf/a4w==} + /rollup@3.29.1: + resolution: {integrity: sha512-c+ebvQz0VIH4KhhCpDsI+Bik0eT8ZFEVZEYw0cGMVqIP8zc+gnwl7iXCamTw7vzv2MeuZFZfdx5JJIq+ehzDlg==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} hasBin: true optionalDependencies: diff --git a/tests/pools/abstract/abstract-pool.test.js b/tests/pools/abstract/abstract-pool.test.js index a206948f..bedb1c6c 100644 --- a/tests/pools/abstract/abstract-pool.test.js +++ b/tests/pools/abstract/abstract-pool.test.js @@ -1,4 +1,4 @@ -const { EventEmitter } = require('events') +const { EventEmitter } = require('node:events') const { expect } = require('expect') const sinon = require('sinon') const { diff --git a/tests/pools/abstract/worker-node.test.js b/tests/pools/abstract/worker-node.test.js index 4b325f43..c57ce953 100644 --- a/tests/pools/abstract/worker-node.test.js +++ b/tests/pools/abstract/worker-node.test.js @@ -1,5 +1,5 @@ -const { MessageChannel, Worker } = require('worker_threads') -const cluster = require('cluster') +const { MessageChannel, Worker } = require('node:worker_threads') +const cluster = require('node:cluster') const { expect } = require('expect') const { WorkerNode } = require('../../../lib/pools/worker-node') const { WorkerTypes } = require('../../../lib') diff --git a/tests/utils.test.js b/tests/utils.test.js index 426985a2..5041f102 100644 --- a/tests/utils.test.js +++ b/tests/utils.test.js @@ -1,7 +1,7 @@ -const { randomInt } = require('crypto') -const { Worker } = require('worker_threads') -const cluster = require('cluster') -const os = require('os') +const { randomInt } = require('node:crypto') +const { Worker } = require('node:worker_threads') +const cluster = require('node:cluster') +const os = require('node:os') const { expect } = require('expect') const { CircularArray,