build: switch default to ESM
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 27 Dec 2023 11:21:55 +0000 (12:21 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 27 Dec 2023 11:21:55 +0000 (12:21 +0100)
commitd35e571704515a8b729d3455e4784054f07c368f
treee065b3ab75eb6a6eec4a51ae9740e2549c2a608e
parent7b7d96315331635fa3c8a12b03b6893fe91bf8ec
build: switch default to ESM

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
80 files changed:
.eslintrc.cjs [moved from .eslintrc.js with 95% similarity]
.lintstagedrc.js
README.md
benchmarks/benchmarks-types.cjs [moved from benchmarks/benchmarks-types.js with 100% similarity]
benchmarks/benchmarks-utils.cjs [moved from benchmarks/benchmarks-utils.js with 97% similarity]
benchmarks/internal/bench.mjs
benchmarks/internal/cluster-worker.cjs [moved from benchmarks/internal/cluster-worker.js with 67% similarity]
benchmarks/internal/thread-worker.mjs
benchmarks/worker-selection/least.mjs
benchmarks/worker-selection/round-robin.mjs
commitlint.config.js
examples/javascript/dynamicExample.cjs [moved from examples/javascript/dynamicExample.js with 100% similarity]
examples/javascript/fixedExample.cjs [moved from examples/javascript/fixedExample.js with 98% similarity]
examples/javascript/multiFunctionExample.cjs [moved from examples/javascript/multiFunctionExample.js with 94% similarity]
examples/javascript/multiFunctionWorker.cjs [moved from examples/javascript/multiFunctionWorker.js with 100% similarity]
examples/javascript/yourWorker.cjs [moved from examples/javascript/yourWorker.js with 100% similarity]
examples/typescript/pool.ts
package.json
rollup.config.mjs
src/index.ts
src/pools/abstract-pool.ts
src/pools/cluster/dynamic.ts
src/pools/cluster/fixed.ts
src/pools/pool.ts
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
src/pools/selection-strategies/fair-share-worker-choice-strategy.ts
src/pools/selection-strategies/interleaved-weighted-round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/least-busy-worker-choice-strategy.ts
src/pools/selection-strategies/least-elu-worker-choice-strategy.ts
src/pools/selection-strategies/least-used-worker-choice-strategy.ts
src/pools/selection-strategies/round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/worker-choice-strategy-context.ts
src/pools/thread/dynamic.ts
src/pools/thread/fixed.ts
src/pools/utils.ts
src/pools/worker-node.ts
src/pools/worker.ts
src/utility-types.ts
src/utils.ts
src/worker/abstract-worker.ts
src/worker/cluster-worker.ts
src/worker/thread-worker.ts
src/worker/utils.ts
tests/circular-array.test.mjs
tests/deque.test.mjs
tests/pools/abstract-pool.test.mjs
tests/pools/cluster/dynamic.test.mjs
tests/pools/cluster/fixed.test.mjs
tests/pools/selection-strategies/selection-strategies.test.mjs
tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.mjs
tests/pools/selection-strategies/worker-choice-strategy-context.test.mjs
tests/pools/thread/dynamic.test.mjs
tests/pools/thread/fixed.test.mjs
tests/pools/utils.test.mjs
tests/pools/worker-node.test.mjs
tests/test-types.cjs [moved from tests/test-types.js with 100% similarity]
tests/test-utils.cjs [moved from tests/test-utils.js with 98% similarity]
tests/utils.test.mjs
tests/worker-files/cluster/asyncErrorWorker.cjs [moved from tests/worker-files/cluster/asyncErrorWorker.js with 65% similarity]
tests/worker-files/cluster/asyncWorker.cjs [moved from tests/worker-files/cluster/asyncWorker.js with 58% similarity]
tests/worker-files/cluster/echoWorker.cjs [moved from tests/worker-files/cluster/echoWorker.js with 64% similarity]
tests/worker-files/cluster/emptyWorker.cjs [moved from tests/worker-files/cluster/emptyWorker.js with 65% similarity]
tests/worker-files/cluster/errorWorker.cjs [moved from tests/worker-files/cluster/errorWorker.js with 72% similarity]
tests/worker-files/cluster/longRunningWorkerHardBehavior.cjs [moved from tests/worker-files/cluster/longRunningWorkerHardBehavior.js with 58% similarity]
tests/worker-files/cluster/longRunningWorkerSoftBehavior.cjs [moved from tests/worker-files/cluster/longRunningWorkerSoftBehavior.js with 56% similarity]
tests/worker-files/cluster/testMultipleTaskFunctionsWorker.cjs [moved from tests/worker-files/cluster/testMultipleTaskFunctionsWorker.js with 75% similarity]
tests/worker-files/cluster/testWorker.cjs [moved from tests/worker-files/cluster/testWorker.js with 58% similarity]
tests/worker-files/thread/asyncErrorWorker.mjs
tests/worker-files/thread/asyncWorker.mjs
tests/worker-files/thread/echoWorker.mjs
tests/worker-files/thread/emptyWorker.mjs
tests/worker-files/thread/errorWorker.mjs
tests/worker-files/thread/longRunningWorkerHardBehavior.mjs
tests/worker-files/thread/longRunningWorkerSoftBehavior.mjs
tests/worker-files/thread/testMultipleTaskFunctionsWorker.mjs
tests/worker-files/thread/testWorker.mjs
tests/worker/abstract-worker.test.mjs
tests/worker/cluster-worker.test.mjs
tests/worker/thread-worker.test.mjs