Skip to content

Releases

v3.0.0

Choose a tag to compare

@cldmv-bot cldmv-bot released this 29 Nov 04:00
v3.0.0
33c6045

@cldmv/holdmytask v3.0.0 Changelog

Release Date: November 2026
Release Type: Major
Branch: release/3.0.0


Overview

v3.0.0 switches the CommonJS entry to the generic index.cjs shim used across the CLDMV libraries. require("@cldmv/holdmytask") now returns the module object, the same exports import gives, instead of the HoldMyTask class with the aliases attached as properties.

This is the only breaking change, and it only affects code that uses require() and treats the result as the class. ESM import is unchanged, and so is the queue itself.


💥 Breaking Changes

require("@cldmv/holdmytask") returns the module object (#116, fixes #115)

The ESM entry exports several distinct values: the HoldMyTask class (also exported as default, queue, Queue, TaskManager, TaskQueue, QueueManager and TaskProcessor) and the four create* factories. With more than one distinct value, the shim hands back the module object:

const holdmytask = require("@cldmv/holdmytask");
// => { default, HoldMyTask, queue, Queue, TaskManager, TaskQueue, QueueManager, TaskProcessor,
//      createHoldMyTask, createQueue, createTaskManager, createTaskProcessor }

const { HoldMyTask } = require("@cldmv/holdmytask");
const queue = new HoldMyTask();
  • new (require(x))() becomes new (require(x).HoldMyTask)(), or const { HoldMyTask } = require(x).
  • Anything read off the class through the result, such as require(x).someStatic, goes through .HoldMyTask.
  • require(x).HoldMyTask, .queue, .Queue, .TaskManager, .TaskQueue, .QueueManager and .TaskProcessor keep working, and destructuring them works as before.
  • require(x).default, createHoldMyTask, createQueue, createTaskManager and createTaskProcessor are newly available.

src/index.cjs is now the same small file as in other CLDMV libraries (Node version guard, then require("./index.mjs")), and the build still copies it unchanged to dist/index.cjs. The CommonJS entry test expects the module object and checks that every export matches the ESM entry.


🔧 CI & tooling

  • ci.yml adopts the CLDMV/.github v4.46.0 concurrency block, so superseded runs on next, hotfixes and the release PRs are cancelled (#117, fixes #114).
  • ci.yml is synced with the v4.43.0 template, so the release PR no longer reruns the matrix on a commit its push run already tested (#112).
  • The sync-release-notes.yml companion workflow is added (#110).
  • dist/ is now built one file per module instead of bundled with tsup: esbuild minifies each src/**/*.mjs file in place (bundle: false, names kept, source maps written next to the output), so dist/ mirrors src/ and shares code through plain relative imports. dist/index.mjs imports dist/hold-my-task.mjs and dist/utils.mjs, and the deprecated dist/main.mjs alias re-exports dist/index.mjs. The exports map is unchanged, and require(), import and @cldmv/holdmytask/main resolve to the same values as before; the published tarball now holds a few more, smaller files under dist/, still without source maps (#119, fixes #113).
  • New test:dist script builds the package and runs the vitest suite against dist/, and npm test now includes it (#103).

📚 Documentation

  • NEW: docs/changelog/v3/v3.0.0.md: this changelog.
  • README: the CommonJS example shows the module object, and the testing section lists test:dist.
  • README What's New promoted to v3.0.0.

🔧 Dependencies

  • The CLDMV dev tools move together: @cldmv/vitest-runner 1.5.6 → 1.11.4, @cldmv/configs 1.4.0 → 1.5.0 and @cldmv/fix-headers 2.2.4 → 2.6.1, with @html-eslint/eslint-plugin and @html-eslint/parser 0.67 → 0.69. File headers are restamped (@Filename no longer has a leading slash) and .github/dependabot.yml is synced to the CLDMV/.github v4.47.0 groups (#120). This supersedes the earlier @cldmv/fix-headers 2.2.6 bump (#106).
  • vitest, @vitest/coverage-v8 and @vitest/ui resolve to 5.1.x in the lockfile (#105).
  • tsup is replaced by esbuild ^0.28.2 as the build tool (#119).
  • All of the above are development only; the package still has no runtime dependencies.

Upgrade notes

  • require("@cldmv/holdmytask") no longer returns the HoldMyTask class. Use const { HoldMyTask } = require("@cldmv/holdmytask"), and read anything class-level through HoldMyTask.
  • The existing alias names work as before; default and the create* factories are new.
  • ESM import is unchanged.

coverage

Metric Coverage
Statements 80.8%
Branches 75.4%
Functions 73.4%
Lines 81.9%

Avg: 77.8% · 9cb475d · Node lts/*

👥 Contributors

v2.1.2

Choose a tag to compare

@cldmv-bot cldmv-bot released this 07 Nov 05:09
v2.1.2
1be7998

HoldMyTask v2.1.2 Changelog

Release Date: November 2026
Release Type: Patch
Branch: release/2.1.2


Overview

v2.1.2 is a development-tooling release. The test config now resolves the package through the holdmytask-dev export condition the way it was meant to, and the type scripts use the fleet names types:check and types:build.

No library code changed. The queue, its options and the published files are the same as in v2.1.1, and nothing changes for anyone installing the package.


🔧 CI & tooling

Tests run against src/ through devCondition() (#99)

.configs/vitest.config.mjs set test.nodeOptions to pass --conditions=holdmytask-dev to the test workers, but vitest has no such option, so the condition never reached them. The config now builds on devCondition() from @cldmv/configs (bumped to ^1.4.0), which sets the resolver conditions and the worker execArgv, so Node's own resolver picks src/ through the holdmytask-dev export condition too.

Type scripts renamed to types:check and types:build (#101)

  • test:types is now types:check (tsc --noEmit on .configs/tsconfig.dts.jsonc), and CI's type-check step runs it.
  • build:types is now types:build, which emits the declarations. build:ci and precommit use the new names.
  • The .prettierignore comment and the CI comments name the new scripts.

📚 Documentation

🔧 Dependencies

  • @cldmv/configs ^1.3.0 → ^1.4.0, for devCondition() (#99). Development dependency only.

Upgrade notes

  • No breaking changes; drop-in for v2.1.1. No library code changed.
  • If you run npm run test:types or npm run build:types locally or in your own scripts, use types:check and types:build.

coverage

Metric Coverage
Statements 80.8%
Branches 75.4%
Functions 73.4%
Lines 81.9%

Avg: 77.8% · 7523421 · Node lts/*

👥 Contributors

v2.1.1

Choose a tag to compare

@cldmv-bot cldmv-bot released this 02 Nov 02:42
v2.1.1
b6e9601

HoldMyTask v2.1.1 Changelog

Release Date: November 2026
Release Type: Patch
Branch: release/2.1.1


Overview

v2.1.1 sets engines.node back to the Node.js version the package needs at runtime, >=18.12.0, instead of the 22.22.0 development toolchain floor that v2.1.0 put there. The 22.22.0 floor moves to npm's devEngines, which only applies when you work on this repository.

The queue, its options and the exports are the same as in v2.1.0. Installs on Node.js 18.12 through 22.21 no longer get an EBADENGINE warning.


🐛 Bug Fixes

engines.node is the runtime floor again (#94)

v2.1.0 raised engines.node from >=18.12 to >=22.22.0 because the development toolchain (tsup 9 among others) doesn't run on earlier 22.x releases. The published package doesn't need any of that toolchain, so the floor was stricter than the code. engines.node is >=18.12.0 again, and the bundles are built for node18 (tsup target, was node20).

import works on Node.js 18.12.0 and later. require("@cldmv/holdmytask") loads the ES module build synchronously, which needs require(esm): Node.js ^20.19.0 or >=22.13.0. On a Node.js without it, the CommonJS entry now says exactly that (require() needs Node.js ^20.19.0 or >=22.13.0, code ERR_REQUIRE_ESM) and points to import(); v2.1.0's message asked for 22.22.0.

📦 Requirements

  • Runtime: Node.js 18.12.0 or later for import (engines.node is >=18.12.0, was >=22.22.0). require() needs Node.js ^20.19.0 or >=22.13.0; use import() on older versions.
  • Development: working on this repository needs Node.js 22.22.0 or later, declared in devEngines.runtime with onFail: "error". This doesn't affect anyone installing the package.

🔧 CI & tooling

  • The CI and publish workflows keep min_node_version at 22.22.0; its description and a comment now say it's the dev toolchain floor and should match devEngines, not engines (#94, #96).

📚 Documentation

  • NEW: docs/changelog/v2/v2.1.1.md: this changelog.
  • README: the requirements list the import floor, the require() range and the development floor separately, and the CommonJS example names the require() range (#94).
  • The v2.1.0 changelog lists its Node.js floor under Requirements instead of Breaking Changes (#93).
  • README What's New promoted to v2.1.1.

Upgrade notes

  • No breaking changes; drop-in for v2.1.0. Apart from the CommonJS entry's error message and the node18 build target, no library code changed.
  • If you stayed on v2.0.6 because of v2.1.0's 22.22.0 floor, v2.1.1 installs on Node.js 18.12 and later again. @cldmv/holdmytask/main is still a deprecated alias, as in v2.1.0.

coverage

Metric Coverage
Statements 80.8%
Branches 75.4%
Functions 73.4%
Lines 81.9%

Avg: 77.8% · aed3573 · Node lts/*

👥 Contributors

v2.1.0

Choose a tag to compare

@cldmv-bot cldmv-bot released this 02 Nov 00:15
v2.1.0
e84563f

HoldMyTask v2.1.0 Changelog

Release Date: November 2026
Release Type: Minor
Branch: release/2.1.0


Overview

v2.1.0 moves the package to the CLDMV library layout. The published entries are now built by tsup from src/index.mjs and src/index.cjs into dist/, the holdmytask-dev export condition moves onto the package root, the development-only devcheck.mjs is gone, and @cldmv/holdmytask/main stays as a deprecated alias of the root. The queue itself (src/hold-my-task.mjs, src/utils.mjs) is unchanged, and the root import and require() return the same exports as v2.0.6.

The supported Node.js range changes: engines.node goes from >=18.12 to >=22.22.0. See Requirements and the upgrade notes.


📦 Requirements

Node.js >=22.22.0 is now required (#89)

engines.node was >=18.12 in v2.0.6, with CommonJS require() documented as needing ^20.19.0 or >=22.12.0. Both are now >=22.22.0. The new build toolchain no longer runs on Node.js 18 or 20 (tsup 9 alone declares ^22.18.0 || ^24.11.0 || >=26.0.0), so older versions can't be built or tested any more. The floor is set to 22.22.0, the oldest version the CI matrix now builds and tests. The ERR_REQUIRE_ESM message that require() throws on a Node.js without require(esm) now names >=22.22.0.

The queue code has no new runtime dependency on Node.js 22.22, but older versions are no longer tested or supported. npm prints an EBADENGINE warning when installing on an older Node.js, and the install fails when engine-strict is set.


✨ Features

Library layout: src/ entries and a tsup build (#89)

The root index.mjs / index.cjs moved to src/index.mjs / src/index.cjs. The ESM entry now imports ./hold-my-task.mjs directly instead of importing the package by its own name (@cldmv/holdmytask/main), so nothing in the package imports itself.

The old build.mjs only copied src/ into dist/; it is replaced by tsup (tsup.config.mjs):

  • dist/index.mjs is the ESM bundle, minified with function and class names kept, so HoldMyTask.name and stack traces read the same.
  • dist/index.cjs is not a second bundle. It is a verbatim copy of src/index.cjs, a thin wrapper that loads ./index.mjs through Node's synchronous require(esm) and maps it to the historical CommonJS shape (the class as module.exports, plus the aliases as properties).
  • dist/main.mjs is the deprecated ./main alias, built with ./index.mjs external so it imports dist/index.mjs instead of carrying its own copy.

package.json follows: main / module point at dist/, types at types/src/index.d.mts, files ships dist/ (without source maps) and types/src/, and prepack runs the build so dist/ is never committed. The stray test:run / test:coverage scripts that called vitest directly are gone.

holdmytask-dev export condition on the package root (#89)

The holdmytask-dev condition used to sit only on ./main. It is now on ".", for both import (./src/index.mjs) and require (./src/index.cjs). Running Node.js with --conditions=holdmytask-dev in a checkout of this repository loads the unbuilt source; without it, the root resolves to the built dist/ files. Installed copies are unaffected, since they only ship dist/.

@cldmv/holdmytask/main is a deprecated alias (#89)

./main still resolves, but it now re-exports the package root and emits a one-time DeprecationWarning with the code CLDMV_HOLDMYTASK_MAIN. Its HoldMyTask is the same class the root exports, as it was before; the alias also exposes the root's factories and class aliases, which the old ./main did not. It stays ESM-only, as before. node --no-deprecation silences the warning, and the code lets an application filter it.

package.json sideEffects now lists src/main.mjs and dist/main.mjs, so bundlers keep the warning instead of tree-shaking it away. The alias will be removed in the next major version; import @cldmv/holdmytask instead.

devcheck.mjs removed (#89)

The root entry used to start a fire-and-forget devcheck.mjs import that, in a checkout of this repository, exited with setup instructions when src/ was present but the holdmytask-dev condition was not set. It is gone, along with its test. The condition already chooses between src/ and dist/, and both are valid; a checkout with no build and no condition now fails with ERR_MODULE_NOT_FOUND naming dist/, which npm run build fixes. The published package never shipped devcheck.mjs, so installed copies see no difference.


🔧 CI & tooling

  • Coverage builds with npm run build:ci (coverage_build_command), and build:ci now runs lint and format:check before the type and tsup builds (#89).
  • The bundle-size check measures the real dist/**.mjs / dist/**.cjs output (#89).
  • The CI and publish test matrices start at Node.js 22.22.0, the new package floor (#89).
  • A .prettierignore keeps format:check off generated types/, the lockfile, dist/, coverage/ and workflow YAML (#90).
  • Declarations are generated from src/ into types/src/. The stale root types/index.d.mts and types/build.* files are gone, and dist/, tmp/, coverage/, examples/ and tsup.config.mjs are excluded from declaration output. The generated index.d.mts now declares HoldMyTask before exporting it, which CodeQL flagged (#91).
  • Tests: the node --test CommonJS suite builds first and checks both dist/ and src/, the CommonJS export shape and the condition routing; new vitest cases cover the ./main alias (same class, one warning with the right code) and the async factories (#89).

📚 Documentation

  • The README imports @cldmv/holdmytask instead of the ./main subpath, documents the holdmytask-dev condition for import and require(), adds a section on the deprecated ./main alias, and states the >=22.22.0 requirement (#89).
  • NEW: docs/changelog/v2/v2.1.0.md — this changelog.

🔧 Dependencies

All of these are development dependencies; the package still has no runtime dependencies.

  • tsup ^9.0.0 added as the build tool (#89).
  • typescript ^7.0.2 → ^6.0.3. TypeScript 7's JavaScript declaration emit isn't complete yet, so the declarations are generated with TypeScript 6 (#91).
  • overrides for katex (>=0.19.1 <1.0.0, 0.16.47 → 0.19.1) and minimatch (^11.0.3, 10.2.6 → 11.0.3) clear the dev-only advisories that come in through eslint and @eslint/markdown (#91).
  • Toolchain refresh (#90): @cldmv/configs 1.2.4 → 1.3.0, @cldmv/fix-headers 2.2.0 → 2.2.4, @cldmv/vitest-runner 1.5.3 → 1.5.6, vitest / @vitest/coverage-v8 / @vitest/ui 5.0.3 → 5.0.5, eslint 10.12.0 → 10.14.0, @eslint/css 2.0.0 → 2.0.1, @eslint/json 2.1.0 → 2.1.1, @html-eslint/eslint-plugin and @html-eslint/parser 0.66.1 → 0.67.0, @types/node 26.6.4 → 26.6.6, globals 17.13.0 → 17.14.0, plus transitive fixes from npm audit fix (vite 8.3.2 → 8.3.5 among them).
  • prettier 3.9.9 → 3.9.10 (#72).

Upgrade notes

  • Node.js >=22.22.0 is required. Upgrade Node.js before upgrading the package. On an older Node.js, stay on v2.0.6.
  • Replace import … from "@cldmv/holdmytask/main" with import … from "@cldmv/holdmytask". The old subpath keeps working until the next major, but prints a DeprecationWarning (CLDMV_HOLDMYTASK_MAIN) once per process.
  • No other API change: the root import, require() and the TypeScript declarations resolved through exports expose the same names as v2.0.6. Code that deep-imported a file path such as types/index.d.mts or dist/hold-my-task.mjs instead of using exports must switch to the package root.

Closes #81.


coverage

Metric Coverage
Statements 80.8%
Branches 75.4%
Functions 73.4%
Lines 81.9%

Avg: 77.8% · 238f433 · Node lts/*

👥 Contributors

v2.0.6

Choose a tag to compare

@cldmv-bot cldmv-bot released this 12 Oct 07:37
v2.0.6
865c06b

HoldMyTask v2.0.6 Changelog

Release Date: October 2026
Release Type: Patch


Overview

v2.0.6 is a development-dependency release: eslint moves to 10.12.0, globals to 17.13.0, @cldmv/vitest-runner to 1.5.3 and @types/node to 26.6.4. The test runner now declares Node.js 22.12 as its minimum and brings chalk 6 with it.

The published package is unchanged. The net diff against v2.0.5 is the lockfile and the version field of package.json, no source, type declaration or declared range was edited, and the package has no runtime dependencies. Every package that moved is a development dependency or a transitive of one. The automated lint and format commit that closed out the next branch (2c6cdec) rewrote 23 generated types/ files, and the result is byte-identical to the declarations shipped in v2.0.5, so types/ has no net change.


🔧 Dependencies

All updates are development-only and lockfile-only: the ranges in package.json already allowed the new versions.

  • eslint 10.11.0 → 10.12.0 (#64).
  • globals 17.12.0 → 17.13.0 (#66).
  • @cldmv/vitest-runner 1.5.1 → 1.5.3 (#65). Version 1.5.3 makes the runner's CommonJS entry fail with a clear error on a Node.js version without require(esm) and raises its engines.node from >=20.19.0 to >=22.12.0. The locked package's license field also changes from MIT to Apache-2.0. Its chalk dependency moves from ^5.4.1 to ^6.0.1: the nested chalk 5.6.2 copy is gone and a single top-level chalk 6.0.1 takes its place, whose engines changes from ^12.17.0 || ^14.13 || >=16.0.0 to >=22. chalk is reached only through the test runner.
  • @types/node 26.6.3 → 26.6.4 (#65).

Node.js floors

The package's own engines.node stays >=18.12, and that range describes who can install and run HoldMyTask; none of the updated packages is part of the published files. The development toolchain already needed Node.js 22.12 (vitest 5, @cldmv/fix-headers) and the CI matrix starts at 22.12.0, so CI and contributors are unaffected; @cldmv/vitest-runner now declares the same floor.


📚 Documentation


Upgrade notes

No changes for consumers: drop-in for v2.0.5.


coverage

Metric Coverage
Statements 80.7%
Branches 75.2%
Functions 72.7%
Lines 81.8%

Avg: 77.6% · 4adb394 · Node lts/*

👥 Contributors

v2.0.5

Choose a tag to compare

@cldmv-bot cldmv-bot released this 05 Oct 04:05
v2.0.5
c988b5b

HoldMyTask v2.0.5 Changelog

Release Date: October 2026
Release Type: Patch
Branch: release/2.0.5


Overview

v2.0.5 fixes three long-standing problems in how the queue reads its options and reports failures. The documented task-level postDelay / startDelay options now actually work (the old delay / start names become deprecated aliases), a callback-style task failure no longer crashes the process when no error listener is attached, and a priorities key that is not an integer is now reported instead of being dropped silently. The README was rewritten to the CLDMV layout and every example now uses the current API.

Runtime behavior changes in a few observable ways, all described below: code that still passes delay or start to enqueue() now receives a deprecation warning event, a task-level completion delay is now enforced even when the task's priority has no postDelay of its own, a callback-style task failure is no longer thrown as an unhandled error event, and a non-integer priority key now produces an invalid-priority warning. No option was removed and no exported signature changed.


🐛 Bug Fixes

Task-level postDelay / startDelay are honored; delay / start are deprecated aliases (#55)

enqueue() only read the task-level delay and start options, although its JSDoc already pointed at postDelay. Passing the documented name gave no delay at all. enqueue() now treats postDelay and startDelay as the current task-level names, matching the names already used in priorities, coalescing.defaults and coalescing.keys. delay and start still work and map onto the new names; when both forms are given, the current name wins. postDelay: -1 bypasses an active delay period exactly as delay: -1 did, and the caller's options object is never mutated. getPriorityConfig() and getCoalescingConfig() accept both names in their taskOptions argument.

New warning: each deprecated task-level alias now emits a warning event of type "deprecation" (with deprecated and replacement fields), in the same shape the priority and coalescing levels already used. The warning fires once per alias per queue instance, not once per task, so a hot enqueue path does not flood listeners. No warning is emitted when the replacement name is also present.

Scheduler fix: the delay gate between tasks used to require the completed task's priority to have a positive postDelay. A task-level completion delay on a priority without one was recorded but never enforced, which was true of the old delay name as well. The gate now relies on the computed next-available time alone, so a task-level postDelay (or delay) takes effect regardless of the priority's configuration. Code that relied on a task-level delay being ignored in that situation will now see the delay applied. Closes #51.

Callback-style task failures no longer require an error listener (#56)

When a callback-style task failed, timed out, was aborted or expired, the queue emitted error. HoldMyTask is an EventEmitter, so with no error listener that emit threw: the process crashed (an unhandled rejection for failures, an uncaught exception from the scheduler for expiry), and for failures the task's callback never ran. Task-failure error events are now emitted only when at least one error listener is attached. The failure always reaches the task's callback with the documented payload ({ type: "error", error }, { type: "timeout", message }, { type: "canceled", message: "Task was aborted" }, or the expiry error).

Listeners that are attached see the same events as before. The difference is for queues without one: a callback task failure is no longer thrown. An error thrown by the callback itself is still emitted unconditionally, so a bug inside a callback is not silently swallowed, and the error events for invalid enqueue() arguments and rejected configurePriority() / configureCoalescingKey() input are unchanged. Promise-style tasks are unchanged and report failures only through the rejected promise. Closes #53.

Non-integer priority keys are reported instead of dropped silently (#57)

The constructor ran priorities (and the deprecated delays) keys through parseInt and discarded anything that came back NaN, so a config such as priorities: { high: { postDelay: 100 } } did nothing, and a key such as "2.5" was truncated without notice. Any non-integer key now emits a warning event of type "invalid-priority" with message, option ("priorities" or "delays"), key and priority fields. A key that cannot be read as a number is still ignored (priority: null); a fractional key keeps its historical meaning, the truncated priority, but is reported. Integer keys, including negative ones, are unaffected. The constructor still never throws for configuration, so a config that constructed fine on v2.0.4 still constructs fine. Closes #54.


🧪 Tests

  • New suites: TaskLevelDelayNames (#55), CallbackErrorWithoutListener (#56) and PriorityKeyValidation (#57).
  • PostDelayAfterAwait (#59) adds deterministic fake-timer coverage for postDelay when the next task is enqueued after awaiting the previous one: promise API after await, promise API in the resolving microtask, and callback API enqueuing from the completion callback, in both smart-scheduling and polling modes. All cases pass on the current code; the report in #52 could not be reproduced, and the issue is closed with these tests as regression coverage.

📚 Documentation

  • The README was restructured to the CLDMV layout and every example was updated from deprecated option names to the current API (#50). It now documents the task-level postDelay / startDelay options, the optional error listener for callback-style tasks, both warning event types (deprecation and invalid-priority), and a table of every deprecated option with its replacement.
  • The JSDoc and generated types/ declarations for enqueue() list postDelay and startDelay, with delay and start marked deprecated.
  • NEW: docs/changelog/v2/v2.0.5.md — this changelog.

🔧 Dependencies

Both are dev dependencies and affect only the npm run fix:headers script, which extends @cldmv/configs/fix-headers.json. Only package.json and the lockfile changed; no file headers were restamped and the published package is unaffected.

  • @cldmv/fix-headers ^2.1.1 → ^2.2.0, in two steps. 2.1.4 (#61) no longer writes a JavaScript comment into JSON or Markdown files, processes every repeated --input, and never walks dependency folders such as node_modules. 2.2.0 (#62) makes @Last modified by follow edits to a file's content only, so a run that merely rewrites a header keeps the recorded editor.
  • @cldmv/configs ^1.2.0 → ^1.2.4 (#62). The shared fix-headers config now sets forceAuthorUpdate and forceLastModifiedAuthorUpdate to false, so @Author keeps the file's creator and @Last modified by changes only with real content edits. The 1.2.1 and 1.2.2 releases of that package only changed its own CI.

Upgrade notes

No breaking API changes — drop-in for v2.0.4, with these behavior differences to check:

  • Replace task-level delay with postDelay and start with startDelay in enqueue() calls. The old names keep working, but each emits one deprecation warning per queue instance.
  • A task-level postDelay (or delay) is now enforced even when the task's priority has no postDelay. If a queue depended on that delay being ignored, remove it from the task options.
  • A callback-style task failure is no longer thrown when no error listener is attached; handle failures in the task callback, or attach an error listener if the queue-level event is wanted.
  • Check priorities / delays configs for non-integer keys. They behave as before, but now emit an invalid-priority warning.

coverage

Metric Coverage
Statements 80.7%
Branches 75.2%
Functions 72.7%
Lines 81.8%

Avg: 77.6% · 9e5a70b · Node lts/*

👥 Contributors

v1.6.2

Choose a tag to compare

@cldmv-bot cldmv-bot released this 15 Nov 21:06
v1.6.2
8432536

HoldMyTask v1.6.2 Changelog

Release Date: August 2026
Release Type: Patch


Overview

v1.6.2 moves the repository onto the CLDMV v4 staging-branch release workflow and the shared @cldmv/vitest-runner test setup, and refreshes the development toolchain. No runtime code changed: nothing under src/, index.mjs, index.cjs or devcheck.mjs is touched.


🔧 CI & tooling

v4 release workflow (#5)

The .github/workflows/ set for the v4 flow was added (CI, publish, next and hotfixes release, release notifications, CodeQL, dependency review, scorecard, CLA, labeler, stale, tag health and the rest), together with a .github/dependabot.yml that targets next.

Test runner

Test files were renamed from *.vest.mjs to the shared *.test.vitest.mjs naming convention and are now run through tests/run-vitest.mjs and @cldmv/vitest-runner. The vitest configuration anchors its project root to the package directory, raises the test timeout to 30 seconds, uses the dot reporter, and collects v8 coverage for src/**. New scripts: test:watch, coverage, ci:coverage, lint:fix, format and format:check.

The Common Aliases test file was marked describe.skip for this release. It assumed HoldMyTask and its aliases are constructors, but the package entry exported async factory functions under those names at the time (#3). It was un-skipped in v2.0.0 once that was resolved.

🔧 Dependencies

  • Development dependencies were moved forward: eslint 10, @eslint/js 10, @eslint/json 2, @eslint/markdown 8, @eslint/css 1.4, @html-eslint/* 0.64, typescript 7, vitest and @vitest/ui 4.1, and globals 17. @cldmv/vitest-runner and @vitest/coverage-v8 were added.

Upgrade notes

No breaking changes in this release. Note that the package entry still exports async factory functions rather than the class, as it did in v1.6.1; see the upgrade notes there and in v2.0.0.

v1.6.1

Choose a tag to compare

@cldmv-bot cldmv-bot released this 15 Nov 21:06
v1.6.1
69ee1e8

HoldMyTask v1.6.1 Changelog

Release Date: November 2025
Release Type: Patch


Overview

This release reworks the package entry point (index.mjs) so the development-environment check runs before the library is loaded, and fixes a misleading message in that check.


💥 Breaking Changes

The package entry now exports async factories instead of the class

In index.mjs the default export is now an async function, createHoldMyTask(options), that dynamically imports @cldmv/holdmytask/main and resolves to a new HoldMyTask instance. The named exports createQueue, createTaskManager and createTaskProcessor work the same way, and HoldMyTask, queue, Queue, TaskManager, TaskQueue, QueueManager and TaskProcessor are now aliases of these factories rather than of the HoldMyTask class. The previous export * re-export from @cldmv/holdmytask/main was removed. index.cjs still reads HoldMyTask from index.mjs, so it receives the factory as well. Code that did new HoldMyTask(options) or new Queue(options) against the package entry must now await the factory instead; the class itself is still available from the @cldmv/holdmytask/main subpath export.

import createHoldMyTask, { createQueue } from "@cldmv/holdmytask";

const queue = await createHoldMyTask({ concurrency: 5 });
const other = await createQueue({ concurrency: 3 });

🐛 Bug Fixes

The error message printed by devcheck.mjs when the development environment is not configured said the setup makes "slothlet" load from src/; it now refers to "this module". The development check in index.mjs is also imported by relative path (./devcheck.mjs) instead of the package specifier.


Upgrade notes

Despite being a patch version, this release changes what the package entry exports. If you construct the queue with new HoldMyTask(...) (or one of the aliases) from @cldmv/holdmytask, switch to await createHoldMyTask(...) (or the matching create* function), or import the class from @cldmv/holdmytask/main. Everything else is unchanged.

v2.0.4

Choose a tag to compare

@cldmv-bot cldmv-bot released this 03 Oct 18:43
v2.0.4
bdeb033

HoldMyTask v2.0.4 Changelog

Release Date: October 2026
Release Type: Patch


Overview

v2.0.4 makes the CommonJS entry fail clearly on Node.js versions that cannot require() an ES module, picks up a fix for a medium-severity denial-of-service advisory in brace-expansion (a development-time dependency), and moves two development tools forward. Behavior on supported Node.js versions is unchanged.


🐛 Bug Fixes

CommonJS entry requires the ESM entry directly and fails clearly on older Node.js (#48)

index.cjs is a thin wrapper that loads index.mjs through Node's synchronous require(esm). It now calls require("./index.mjs") directly instead of going through createRequire, and checks process.features.require_module first. On a Node.js version without require(esm) (before 20.19 and 22.12), require("@cldmv/holdmytask") used to die with a bare ERR_REQUIRE_ESM; it now throws an error with the same code and a message that names the supported versions (^20.19.0 or >=22.12.0) and suggests loading the package with import() instead. On Node.js versions that support require(esm) the module resolves exactly as before. The new tests/cjs/entry.test.cjs runs under node --test (through the new test:cjs script, also part of npm test and npm run coverage) and checks that require() and import return the same object and that the error appears when require(esm) is disabled.


🔒 Security & supply chain

brace-expansion 5.0.9 → 5.0.12 (#44)

Fixes GHSA-q2hr-2g5m-vwhr (CVE-2026-102277, medium, CVSS 5.3): expanding {a},b}-shaped input took quadratic time in the number of literal } characters, so an untrusted pattern could block the event loop. brace-expansion is a development-only dependency, pulled in solely by minimatch in the lint and test toolchain, and the package has no runtime dependencies, so the shipped code never loaded it. The update clears the open Dependabot alert on the lockfile.

🔧 Dependencies

  • @eslint/css 1.4.0 → 2.0.0 (development; #43). The major release adds meta.languages to the CSS rules. npm run lint passes unchanged with the repo's css/recommended configuration.
  • prettier 3.9.6 → 3.9.9 (development; #41). Lockfile-only: the ^3.0.0 range in package.json already allowed it.

🔧 CI & tooling

  • The header comments in the generated types/*.d.mts files and their source maps were refreshed to the shared file-header format. Only comments changed; no type declarations differ from v2.0.3.

Upgrade notes

No breaking changes — drop-in for v2.0.3. The only runtime-visible difference is the clearer error for require() on Node.js versions that already could not load the package.


coverage

Metric Coverage
Statements 79.7%
Branches 73.6%
Functions 71.1%
Lines 80.7%

Avg: 76.2% · dc7821b · Node lts/*

👥 Contributors

v2.0.3

Choose a tag to compare

@cldmv-bot cldmv-bot released this 03 Oct 06:14
v2.0.3
4a44f13

HoldMyTask v2.0.3 Changelog

Release Date: October 2026
Release Type: Patch


Overview

v2.0.3 moves the development toolchain to vitest 5, brings the CI workflows up to the current CLDMV v4 templates, and adopts uniform file headers and the verbatim Apache-2.0 license text. No runtime code changed: the only edits under src/, index.mjs, index.cjs, devcheck.mjs and build.mjs are header comments.


🔧 CI & tooling

v4 workflow sync (#34, #35, #39, #40)

The workflows were synced with the CLDMV/.github v4.29 templates. New workflows are bundle-size, release-merge, provenance, pr-notify, member-auto-merge and dependabot-recreate. The bundle-size job no longer double-counts files, and the in-repo "Required PR Check" mirror job now runs instead of being skipped, so a skipped run can no longer satisfy the required check.

Dependabot grouping

.github/dependabot.yml gained vitest, eslint and prettier groups. @vitest/coverage-v8 pins an exact vitest peer, so a partial bump fails npm ci; grouping the family keeps the versions in step.

File headers (#38)

The shared @cldmv/fix-headers configuration was adopted (npm run fix:headers), and uniform headers were stamped on the source, test and example files. Only comments changed.

📚 Documentation

  • The LICENSE file was restored to the verbatim Apache-2.0 text (#33).

🔧 Dependencies

All development dependencies:

  • vitest, @vitest/coverage-v8 and @vitest/ui 4.1 → 5.0 (#29); the three are bumped together because their peer ranges are exact.
  • The minor group (#37): eslint 10.9.1 → 10.11.0, @eslint/json 2.0.1 → 2.1.0, @html-eslint/* 0.65 → 0.66, and @cldmv/vitest-runner 1.2.0 → 1.5.1 in the lockfile.
  • @types/node 26.4.0 → 26.4.1 (#27).
  • @cldmv/fix-headers and @cldmv/configs were added.

Upgrade notes

No breaking changes — drop-in for v2.0.2. No runtime code changed.


coverage

Metric Coverage
Statements 79.8%
Branches 73.7%
Functions 71.1%
Lines 80.7%

Avg: 76.3% · 3b0eeec · Node lts/*

👥 Contributors