preconditions 4.0.0 → 4.0.2

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/package.json +2 -2
package/CHANGELOG.md ADDED
@@ -0,0 +1,56 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [4.0.2] - 2026-05-15
9
+
10
+ ### Changed
11
+
12
+ - **`errr`** raised to **5.2.0** (see [errr changelog](https://github.com/corybill/errr/blob/master/CHANGELOG.md)).
13
+
14
+ ### Added
15
+
16
+ - This **`CHANGELOG.md`**.
17
+
18
+ ## [4.0.1] - 2026-05-15
19
+
20
+ ### Changed
21
+
22
+ - **`errr`** raised from 5.0.x to **5.1.0** (e.g. `formatDebugParams` and related debug-stack helpers in errr).
23
+
24
+ ## [4.0.0] - 2026-05-15
25
+
26
+ ### Added
27
+
28
+ - **ESM** package layout (`"type": "module"`) with explicit **`exports`**: `import` → `lib/preconditions.js`, `require` → `lib/preconditions.cjs` (CommonJS consumers still use `require("preconditions")` unchanged).
29
+ - **`lib/util/type-checks.js`** — native type checks replacing the **`core-util-is`** dependency.
30
+ - **`eslint.config.js`** — ESLint 9 flat config.
31
+ - **GitHub Actions** CI (`.github/workflows/ci.yml`) on Node.js **24.x** and **25.x**; `actions/checkout@v5`, `actions/setup-node@v6`.
32
+ - **`npm overrides`** for dev dependency trees (e.g. maddox + mocha) to keep audits clean.
33
+
34
+ ### Changed
35
+
36
+ - **Minimum Node.js** is **24** (`engines.node`: `>=24.0.0`).
37
+ - **`errr`** updated to **5.x** (fluent builder API remains; `ErrrDecorator` still uses `Errr.newError`, `.debug`, `.appendTo`, `.throw`).
38
+ - **Dev tooling**: Mocha 11, Chai 5, **Maddox 4** (default export wrapper in `spec/maddox.js`), jsdoc-to-markdown 9.
39
+ - **Singleton** message formatting uses `node:util` **`format`** instead of `util.format.apply`.
40
+ - README build badge points to GitHub Actions instead of Travis CI.
41
+
42
+ ### Removed
43
+
44
+ - **`core-util-is`** dependency.
45
+ - **`.travis.yml`** (replaced by GitHub Actions).
46
+ - Legacy scripts such as **`coverage`** that referenced a missing `bin/maddox-cov.js`.
47
+
48
+ ### Breaking
49
+
50
+ - **Node < 24** is not supported.
51
+ - **`errr` 5.x** is required as a runtime dependency; upgrade errr in consuming apps if they pin it tightly.
52
+ - **`core-util-is`** is no longer a transitive dependency.
53
+
54
+ [4.0.2]: https://github.com/corybill/preconditions/compare/v4.0.1...v4.0.2
55
+ [4.0.1]: https://github.com/corybill/preconditions/compare/v4.0.0...v4.0.1
56
+ [4.0.0]: https://github.com/corybill/preconditions/compare/v3.0.2...v4.0.0
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "default": "./lib/preconditions.js"
11
11
  }
12
12
  },
13
- "version": "4.0.0",
13
+ "version": "4.0.2",
14
14
  "description": "Support for Precondition error checking in Node.js.",
15
15
  "homepage": "https://github.com/corybill/preconditions",
16
16
  "bugs": {
@@ -38,7 +38,7 @@
38
38
  "url": "https://github.com/corybill/preconditions.git"
39
39
  },
40
40
  "dependencies": {
41
- "errr": "^5.0.0"
41
+ "errr": "^5.2.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@eslint/js": "^9.39.1",