formulab 0.28.1 → 0.29.0

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/CHANGELOG.md CHANGED
@@ -5,6 +5,36 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.29.0] - 2026-08-19
9
+
10
+ ### Fixed
11
+
12
+ - **`check:dependency-drift` silently hid every outdated dependency once the Node engine floor
13
+ moved above the machine's own Node version.** `pnpm outdated --format json`'s output can be
14
+ prefixed with a plain-text `WARN Unsupported engine` line that itself contains `{...}`
15
+ characters; the script's naive "parse from the first `{`" recovery grabbed the warning's brace
16
+ instead of the real JSON payload's, so `JSON.parse` failed and the script fell back to an
17
+ unhelpful "check manually" placeholder instead of the actual outdated-package list. Introduced
18
+ by this same release's engine-floor bump (a Node <24 dev machine now always sees that warning).
19
+ Now finds the payload by its own line (`{` alone on a line), which pnpm's pretty-printed JSON
20
+ always starts with, regardless of what precedes it.
21
+
22
+ ### Changed
23
+
24
+ - **Raised the minimum supported `Node.js` version from 20 to 24.** Node 20 reached end-of-life
25
+ on 2026-04-30 and stopped receiving security patches; the release build itself (`publish.yml`)
26
+ was still running on it. `engines.node` is now `>=24` (Active LTS until 2028-04-30), and CI now
27
+ matrixes Node 24 & 26 instead of 20 & 22. No library API changed — this only affects the
28
+ runtime you install the package into.
29
+
30
+ ### Added
31
+
32
+ - Golden reference tests for `electronics/resistor`'s 6-band temperature-coefficient table's six
33
+ previously-unconfirmed colors (black, orange, yellow, green, violet, grey) — cross-checked
34
+ against Panasonic's industrial TCR reference table and Wikipedia's IEC 60062:2016 TCR color
35
+ table, both agreeing with every value already in this table. No values changed; this closes the
36
+ confirmation gap that previously covered only brown/red/blue.
37
+
8
38
  ## [0.28.1] - 2026-08-16
9
39
 
10
40
  Golden reference test coverage for the Metal domain's remaining two functions, a deprecation
package/README.md CHANGED
@@ -16,7 +16,7 @@ A comprehensive collection of engineering formulas and calculations for manufact
16
16
  - **Zero dependencies** — Lightweight and fast
17
17
  - **TypeScript first** — Full type definitions included
18
18
  - **Tree-shakeable** — Import only what you need
19
- - **3,036 tests** — Coverage thresholds: 90% lines, 95% functions, 85% branches ([CI pipeline](https://github.com/iyulab/formulab/actions/workflows/ci.yml))
19
+ - **3,042 tests** — Coverage thresholds: 90% lines, 95% functions, 85% branches ([CI pipeline](https://github.com/iyulab/formulab/actions/workflows/ci.yml))
20
20
  - **Research-based** — Golden reference tests verified against NIOSH 94-110, AIAG/ASTM E2587, JIPM, ASME B16.5, ISO 22514-2, and more
21
21
 
22
22
  ## Verification Status
@@ -115,7 +115,7 @@ Three functions solve NP-hard combinatorial problems using **heuristic** algorit
115
115
 
116
116
  GitHub Actions runs on every push to `main` and every pull request:
117
117
 
118
- - **Matrix**: Node.js 20, 22
118
+ - **Matrix**: Node.js 24, 26
119
119
  - **Steps**: `pnpm install` → `tsc` (type check) → `vitest run --coverage`
120
120
  - **Coverage enforcement**: Fails if below thresholds (lines 90%, functions 95%, branches 85%, statements 90%)
121
121
 
@@ -1 +1 @@
1
- {"version":3,"file":"rebar.d.ts","sourceRoot":"","sources":["../../src/construction/rebar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AA0BrE;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAE1D;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,WAAW,CAe1D"}
1
+ {"version":3,"file":"rebar.d.ts","sourceRoot":"","sources":["../../src/construction/rebar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAqCrE;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAE1D;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,WAAW,CAe1D"}
@@ -8,8 +8,19 @@ import { roundTo } from '../utils.js';
8
8
  * an already-published "standard" figure that differs slightly from that formula (see per-entry
9
9
  * comments) — but the specific standard responsible for those two overrides (KS D 3504? a
10
10
  * particular mill's published table?) is not cited here, and a 2026-08-11 doc audit could not
11
- * confirm it from freely available sources (see claudedocs/issues in this repo). Do not swap
12
- * these for another unconfirmed secondary-source value without resolving which standard applies.
11
+ * confirm it from freely available sources (see claudedocs/issues in this repo).
12
+ *
13
+ * A 2026-08-19 follow-up check found two independently-published Korean rebar unit-weight tables
14
+ * (informational/vendor pages, not the primary KS D 3504 text itself) that closely match D16 and
15
+ * D25's override figures here — but diverge from this table's *formula*-derived entries for D10,
16
+ * D13, D29, and D32 by several percent, and disagree with each other on D22. So the provenance
17
+ * doubt is not confined to D16/D25: the generic-formula entries may also not match the actual
18
+ * published table. No value here has been changed on that basis — neither source names an
19
+ * edition, so neither clears this project's citation bar (see the issue draft for the full
20
+ * comparison).
21
+ *
22
+ * Do not swap ANY of these for another unconfirmed secondary-source value without resolving which
23
+ * standard applies.
13
24
  */
14
25
  const REBAR_UNIT_WEIGHTS = {
15
26
  D10: 0.617, // 10² × 0.00617 = 0.617
@@ -1 +1 @@
1
- {"version":3,"file":"rebar.js","sourceRoot":"","sources":["../../src/construction/rebar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC;;;;;;;;;;;GAWG;AACH,MAAM,kBAAkB,GAA8B;IACpD,GAAG,EAAE,KAAK,EAAG,wBAAwB;IACrC,GAAG,EAAE,IAAI,EAAI,uBAAuB;IACpC,GAAG,EAAE,IAAI,EAAI,4DAA4D;IACzE,GAAG,EAAE,IAAI,EAAI,uBAAuB;IACpC,GAAG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;IACzE,GAAG,EAAE,IAAI,EAAI,uBAAuB;IACpC,GAAG,EAAE,IAAI,EAAI,uBAAuB;CACrC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAe;IAChD,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,WAAW,CAAC,KAAiB;IAC3C,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzC,MAAM,UAAU,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC5C,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;QAC7B,MAAM,IAAI,UAAU,CAAC,uBAAuB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC9D,CAAC;IACD,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,GAAG,QAAQ,EAAE,CAAC,CAAC,CAAC;IAClD,MAAM,WAAW,GAAG,OAAO,CAAC,UAAU,GAAG,WAAW,EAAE,CAAC,CAAC,CAAC;IAEzD,OAAO;QACL,UAAU;QACV,WAAW;QACX,WAAW;KACZ,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"resistor.d.ts","sourceRoot":"","sources":["../../src/electronics/resistor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAa,MAAM,YAAY,CAAC;AA8I3E;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,GAAG,cAAc,CAsDnE"}
1
+ {"version":3,"file":"resistor.d.ts","sourceRoot":"","sources":["../../src/electronics/resistor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAa,MAAM,YAAY,CAAC;AAkJ3E;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,GAAG,cAAc,CAsDnE"}
@@ -55,15 +55,19 @@ const TOLERANCES = {
55
55
  /**
56
56
  * Temperature coefficient values (ppm/C) for the 6th band of a 6-band resistor.
57
57
  *
58
- * brown=100, red=50, blue=10 are corroborated by every source checked (2026-08-11) and are the
59
- * colors this codebase's own tests already pin. The rest of this table (black/orange/yellow/
60
- * green/violet/grey) could not be cross-verified the same way: at least one other published TCR
61
- * color scheme assigns unrelated ppm figures (and even ppm *ranges*, not single values) to the
62
- * same colors, and it was not established whether that is a different edition of IEC 60062, a
63
- * different (non-IEC) marking convention, or a genuine disagreement. Left unchanged — see this
64
- * project's own "don't swap one unsourced value for another" precedent (bendAllowance,
65
- * wbgtCalculate) but flagged here rather than presented as uniformly as settled as the
66
- * digit/multiplier/tolerance tables above, which have no such ambiguity in any source checked.
58
+ * brown=100, red=50, blue=10 were corroborated by every source checked as of 2026-08-11. The
59
+ * remaining six colors (black/orange/yellow/green/violet/grey) were left flagged as unconfirmed
60
+ * at that point, because at least one other published TCR color scheme assigns unrelated ppm
61
+ * figures (and even ppm *ranges*, not single values) to the same colors — that older scheme
62
+ * (black≈1000, brown≈500, red≈200, orange≈100, ...) appears to predate IEC 60062:2016 rather
63
+ * than genuinely disagree with it.
64
+ *
65
+ * @reference IEC 60062:2016 TCR color table. Cross-checked 2026-08-19: Panasonic's industrial TCR
66
+ * reference (industrial.panasonic.com/ww/ds/ss/technical/b27) and Wikipedia's "IEC 60062 color
67
+ * code" article (which cites IEC 60062:2016 directly) both give the full nine-color table and
68
+ * agree with every value already in this object, including the six that were previously
69
+ * unconfirmed — see claudedocs/issues history (formulab repo) for the full corroboration record
70
+ * and why this still isn't the purchased primary IEC text itself.
67
71
  */
68
72
  const TEMP_COEFFICIENTS = {
69
73
  black: 250,
@@ -1 +1 @@
1
- {"version":3,"file":"resistor.js","sourceRoot":"","sources":["../../src/electronics/resistor.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,MAAM,YAAY,GAA8B;IAC9C,KAAK,EAAE,CAAC;IACR,KAAK,EA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C,CAAC,EAAE,CAAC,CAAC,CAAC;QACvC,MAAM,UAAU,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7C,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACrC,SAAS,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACxC,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,MAAM,IAAI,UAAU,CAAC,iCAAiC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAC5E,CAAC;QAED,UAAU,GAAG,CAAC,MAAM,GAAG,GAAG,GAAG,MAAM,GAAG,EAAE,GAAG,MAAM,CAAC,GAAG,UAAU,CAAC;IAClE,CAAC;IAED,MAAM,SAAS,GAAG,gBAAgB,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAErE,OAAO;QACL,UAAU;QACV,SAAS;QACT,SAAS;QACT,SAAS;KACV,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "formulab",
3
- "version": "0.28.1",
3
+ "version": "0.29.0",
4
4
  "description": "Manufacturing & Engineering calculation formulas library - 203 industrial calculations across 15 domains for OEE, Cpk, SPC, FMEA, Nelson Rules, metal weight, CNC machining, GD&T, battery, environmental, pipe flow, logistics, IE time study, and more",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -157,7 +157,7 @@
157
157
  "url": "https://github.com/iyulab/formulab/issues"
158
158
  },
159
159
  "engines": {
160
- "node": ">=20"
160
+ "node": ">=24"
161
161
  },
162
162
  "devDependencies": {
163
163
  "@vitest/coverage-v8": "^4.0.18",