@williamthorsen/toolbelt.numbers 7.0.1 → 7.0.3

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.
@@ -1,6 +1,6 @@
1
- /** @noformat @generated. Do not edit. Compiled by rdy. */
1
+ /** @noformat -- @generated. Do not edit. Compiled by rdy. */
2
2
  /* eslint-disable */
3
- export const __readyupVersion = "0.32.0";
3
+ export const __readyupVersion = "0.34.0";
4
4
 
5
5
 
6
6
  // ../adoption/src/conventions/path-predicates.ts
@@ -19,7 +19,7 @@
19
19
  "path": "../../adoption/src/conventions/site-handoffs.ts"
20
20
  },
21
21
  {
22
- "hash": "781c3f53",
22
+ "hash": "3a124dad",
23
23
  "kind": "module",
24
24
  "path": "../../adoption/src/kits/defineAdoptionKit.ts"
25
25
  },
@@ -81,10 +81,10 @@
81
81
  ],
82
82
  "name": "default",
83
83
  "path": "kits/default.js",
84
- "readyupVersion": "0.32.0",
84
+ "readyupVersion": "0.34.0",
85
85
  "source": "kits/default.ts",
86
86
  "sourceHash": "e6df5682",
87
- "targetHash": "5f2a7b74"
87
+ "targetHash": "44b320aa"
88
88
  }
89
89
  ]
90
90
  }
package/CHANGELOG.md CHANGED
@@ -2,6 +2,28 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## 7.0.3 — 2026-08-30
6
+
7
+ ### Bug fixes
8
+
9
+ - Reject a check declaring a kind its detector never produces (#246)
10
+
11
+ Fixes an issue where an adoption check could declare a kind its kit's detector never produces. `Kind` was inferred from `checks` and `detect` together, so a typo in a check's `kinds` widened `Kind` rather than failing.
12
+
13
+ ## 7.0.2 — 2026-08-28
14
+
15
+ ### Refactoring
16
+
17
+ - Upgrade eslint-config-typescript to v12.0.1 and satisfy its new rules (#236)
18
+
19
+ Upgrades `@williamthorsen/eslint-config-typescript` to v12 and fixes violations surfaced by the new rules banning unpublished barrels and floating disposables.
20
+
21
+ ### Dependencies
22
+
23
+ - Upgrade all deps to latest version
24
+ - Upgrade deps to latest version
25
+ - Upgrade all deps to latest version
26
+
5
27
  ## 7.0.1 — 2026-08-24
6
28
 
7
29
  ### Bug fixes
package/README.md CHANGED
@@ -3,29 +3,13 @@
3
3
  Utility functions for working with numbers.
4
4
 
5
5
  <!-- section:release-notes -->
6
- ## Release notes — v7.0.1 (2026-08-24)
6
+ ## Release notes — v7.0.3 (2026-08-30)
7
7
 
8
8
  ### Bug fixes
9
9
 
10
- - Stop the adoption kits from blanking code after `++`, `!`, and keyword-named members (#208)
10
+ - Reject a check declaring a kind its detector never produces (#246)
11
11
 
12
- Fixes an issue where the `errors`, `numbers`, and `vitest` adoption kits stopped reading a line's code after a postfix `++`, a non-null `!`, or a property spelled like a keyword. The source blanker each kit runs before its anchor scan read the `/` that followed as the opening of a regular expression and blanked to the line's next `/`, so a replaceable idiom written after one of the three went unreported.
13
-
14
- `@williamthorsen/toolbelt.adoption` now takes `blankNonCode` and `getLineAtOffset` from `readyup/check-utils` in place of the copies it held, which had fallen behind readyup's on those three cases.
15
-
16
- ### Internal
17
-
18
- - Migrate the adoption kits onto FindingOutcome and add check ids (#217)
19
-
20
- Upgrades `readyup` to 0.32.0 and migrates `defineAdoptionKit` onto the `FindingOutcome` that `buildFindingReport` returns as of 0.31.0.
21
-
22
- Gives every adoption check an `id`, which a consumer's `rdy-ignore` pragma names to suppress that one check; a pragma naming none still silences every check on the line. The kits of `@williamthorsen/toolbelt.errors`, `@williamthorsen/toolbelt.numbers`, and `@williamthorsen/toolbelt.vitest` each declare ids, and `defineAdoptionKit` refuses a kit that gives one id to two checks.
23
-
24
- - Hold this repo to its own adoption kits and exempt each package's implementation (#218)
25
-
26
- Removes the exemption that kept this repository out of its own adoption kits. `rdy run --packages` now covers this repo like any other project.
27
-
28
- Each package's own implementation stays exempt, but that exemption now covers the function alone rather than the whole repository.
12
+ Fixes an issue where an adoption check could declare a kind its kit's detector never produces. `Kind` was inferred from `checks` and `detect` together, so a typo in a check's `kinds` widened `Kind` rather than failing.
29
13
  <!-- /section:release-notes -->
30
14
 
31
15
  ## Installation
@@ -1,3 +1,4 @@
1
+ export type { Seed } from '../internal/evaluateSeed.js';
1
2
  export { clamp, type ClampBounds } from './clamp.js';
2
3
  export { generateRandom } from './generateRandom.js';
3
4
  export { isIntegerString, safeParseInteger } from './integer-string.js';
@@ -6,4 +7,3 @@ export { pickInteger } from './pickInteger.js';
6
7
  export { round } from './round.js';
7
8
  export { scale } from './scale.js';
8
9
  export { IntSeededRng, SeededRng } from './seeded-rng.js';
9
- export * from './types.js';
@@ -6,4 +6,3 @@ export { pickInteger } from "./pickInteger.js";
6
6
  export { round } from "./round.js";
7
7
  export { scale } from "./scale.js";
8
8
  export { IntSeededRng, SeededRng } from "./seeded-rng.js";
9
- export * from "./types.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@williamthorsen/toolbelt.numbers",
3
- "version": "7.0.1",
3
+ "version": "7.0.3",
4
4
  "description": "Utility functions for working with numbers",
5
5
  "keywords": [
6
6
  "esm",
@@ -47,9 +47,9 @@
47
47
  ],
48
48
  "devDependencies": {
49
49
  "esbuild": "0.28.2",
50
- "readyup": "0.32.0",
50
+ "readyup": "0.34.0",
51
51
  "@williamthorsen/toolbelt.adoption": "0.1.0",
52
- "@williamthorsen/toolbelt.testing": "0.3.0"
52
+ "@williamthorsen/toolbelt.testing": "0.5.0"
53
53
  },
54
54
  "engines": {
55
55
  "node": ">=24.0.0"
@@ -1 +0,0 @@
1
- export type { Seed } from '../internal/evaluateSeed.js';
@@ -1 +0,0 @@
1
- export {};