@cldmv/holdmytask 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/dist/index.cjs +2 -2
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -16,18 +16,17 @@ Use it with callbacks or promises, from ESM or CommonJS, with full TypeScript de
|
|
|
16
16
|
|
|
17
17
|
## ✨ What's New
|
|
18
18
|
|
|
19
|
-
### Latest: v2.1.
|
|
19
|
+
### Latest: v2.1.1 (November 2026)
|
|
20
20
|
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
- [View full v2.1.0 Changelog](https://github.com/CLDMV/holdmytask/blob/master/docs/changelog/v2/v2.1.0.md)
|
|
21
|
+
- **`engines.node` is the runtime floor again** — `engines.node` is back to `>=18.12.0`, the version the package actually needs for `import`, instead of v2.1.0's `>=22.22.0`, so installs on older Node.js no longer get an engine warning. The 22.22.0 development toolchain floor moves to `devEngines`, which only applies to work on this repository. `require()` needs Node.js `^20.19.0 || >=22.13.0`, and its error message now says so ([#94](https://github.com/CLDMV/holdmytask/pull/94)).
|
|
22
|
+
- [View full v2.1.1 Changelog](https://github.com/CLDMV/holdmytask/blob/master/docs/changelog/v2/v2.1.1.md)
|
|
24
23
|
|
|
25
24
|
### Recent Releases
|
|
26
25
|
|
|
26
|
+
- **v2.1.0** (November 2026) — Built with tsup from `src/` into `dist/`, `@cldmv/holdmytask/main` becomes a deprecated alias of the root, and `engines.node` went to `>=22.22.0` ([Changelog](https://github.com/CLDMV/holdmytask/blob/master/docs/changelog/v2/v2.1.0.md))
|
|
27
27
|
- **v2.0.6** (October 2026) — Development dependency updates only (`eslint`, `globals`, `@cldmv/vitest-runner`, `@types/node`); the published package is unchanged ([Changelog](https://github.com/CLDMV/holdmytask/blob/master/docs/changelog/v2/v2.0.6.md))
|
|
28
28
|
- **v2.0.5** (October 2026) — Task-level `postDelay` / `startDelay` honored, failing callback tasks no longer crash the process, and header tooling on fix-headers 2.2.0 ([Changelog](https://github.com/CLDMV/holdmytask/blob/master/docs/changelog/v2/v2.0.5.md))
|
|
29
29
|
- **v2.0.4** (October 2026) — Clearer `require()` error on Node.js without `require(esm)`; `brace-expansion` security patch in development tooling ([Changelog](https://github.com/CLDMV/holdmytask/blob/master/docs/changelog/v2/v2.0.4.md))
|
|
30
|
-
- **v2.0.3** (October 2026) — Development toolchain moves to vitest 5; bundle-size and v4 workflow updates; verbatim Apache-2.0 license text ([Changelog](https://github.com/CLDMV/holdmytask/blob/master/docs/changelog/v2/v2.0.3.md))
|
|
31
30
|
|
|
32
31
|
📚 **For complete version history and detailed release notes, see the [docs/changelog/](https://github.com/CLDMV/holdmytask/tree/master/docs/changelog/) folder.**
|
|
33
32
|
|
|
@@ -54,8 +53,9 @@ Use it with callbacks or promises, from ESM or CommonJS, with full TypeScript de
|
|
|
54
53
|
|
|
55
54
|
### Requirements
|
|
56
55
|
|
|
57
|
-
- **Node.js `>=
|
|
58
|
-
- **CommonJS `require()`**
|
|
56
|
+
- **Node.js `>=18.12.0`** for `import`, as declared in the package's `engines` field
|
|
57
|
+
- **CommonJS `require()`** needs Node.js `^20.19.0 || >=22.13.0`. The CommonJS entry is a thin wrapper that loads the ESM build through Node's synchronous `require(esm)`. On older Node.js versions `require("@cldmv/holdmytask")` throws an `ERR_REQUIRE_ESM` error that names the supported versions; load the package with `import()` instead.
|
|
58
|
+
- **Development**: developing this package needs Node.js 22.22.0 or later (`devEngines`).
|
|
59
59
|
|
|
60
60
|
### Install
|
|
61
61
|
|
|
@@ -130,7 +130,7 @@ import HoldMyTask from "@cldmv/holdmytask";
|
|
|
130
130
|
import * as HoldMyTaskLib from "@cldmv/holdmytask";
|
|
131
131
|
// Uses optimized distribution files
|
|
132
132
|
|
|
133
|
-
// CommonJS (Node.js >=22.
|
|
133
|
+
// CommonJS (Node.js ^20.19.0 || >=22.13.0)
|
|
134
134
|
const HoldMyTask = require("@cldmv/holdmytask"); // the class itself
|
|
135
135
|
const { HoldMyTask: Named } = require("@cldmv/holdmytask"); // or by name
|
|
136
136
|
```
|
package/dist/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
8
|
* -----
|
|
9
9
|
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
-
* @Last modified time: 2026-11-
|
|
10
|
+
* @Last modified time: 2026-11-01T16:28:46-08:00 (1793579326)
|
|
11
11
|
* -----
|
|
12
12
|
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
13
|
*
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
// early with a message that says what to do instead.
|
|
35
35
|
if (!process.features?.require_module) {
|
|
36
36
|
const error = new Error(
|
|
37
|
-
`@cldmv/holdmytask: require() needs Node.js >=22.
|
|
37
|
+
`@cldmv/holdmytask: require() needs Node.js ^20.19.0 or >=22.13.0 (this is ${process.version}). On older Node.js, load the package with import() instead.`
|
|
38
38
|
);
|
|
39
39
|
error.code = "ERR_REQUIRE_ESM";
|
|
40
40
|
throw error;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cldmv/holdmytask",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "A tiny task queue that waits until your task is ready",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -26,7 +26,14 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
|
-
"node": ">=
|
|
29
|
+
"node": ">=18.12.0"
|
|
30
|
+
},
|
|
31
|
+
"devEngines": {
|
|
32
|
+
"runtime": {
|
|
33
|
+
"name": "node",
|
|
34
|
+
"version": ">=22.22.0",
|
|
35
|
+
"onFail": "error"
|
|
36
|
+
}
|
|
30
37
|
},
|
|
31
38
|
"scripts": {
|
|
32
39
|
"test": "node tests/run-vitest.mjs && npm run test:cjs",
|