@williamthorsen/toolbelt.numbers 7.0.1 → 7.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.
- package/.readyup/kits/default.js +2 -2
- package/.readyup/manifest.json +2 -2
- package/CHANGELOG.md +14 -0
- package/README.md +1 -25
- package/dist/esm/3-candidate/index.d.ts +1 -1
- package/dist/esm/3-candidate/index.js +0 -1
- package/package.json +3 -3
- package/dist/esm/3-candidate/types.d.ts +0 -1
- package/dist/esm/3-candidate/types.js +0 -1
package/.readyup/kits/default.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** @noformat
|
|
1
|
+
/** @noformat -- @generated. Do not edit. Compiled by rdy. */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export const __readyupVersion = "0.
|
|
3
|
+
export const __readyupVersion = "0.34.0";
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
// ../adoption/src/conventions/path-predicates.ts
|
package/.readyup/manifest.json
CHANGED
|
@@ -81,10 +81,10 @@
|
|
|
81
81
|
],
|
|
82
82
|
"name": "default",
|
|
83
83
|
"path": "kits/default.js",
|
|
84
|
-
"readyupVersion": "0.
|
|
84
|
+
"readyupVersion": "0.34.0",
|
|
85
85
|
"source": "kits/default.ts",
|
|
86
86
|
"sourceHash": "e6df5682",
|
|
87
|
-
"targetHash": "
|
|
87
|
+
"targetHash": "44b320aa"
|
|
88
88
|
}
|
|
89
89
|
]
|
|
90
90
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 7.0.2 — 2026-08-28
|
|
6
|
+
|
|
7
|
+
### Refactoring
|
|
8
|
+
|
|
9
|
+
- Upgrade eslint-config-typescript to v12.0.1 and satisfy its new rules (#236)
|
|
10
|
+
|
|
11
|
+
Upgrades `@williamthorsen/eslint-config-typescript` to v12 and fixes violations surfaced by the new rules banning unpublished barrels and floating disposables.
|
|
12
|
+
|
|
13
|
+
### Dependencies
|
|
14
|
+
|
|
15
|
+
- Upgrade all deps to latest version
|
|
16
|
+
- Upgrade deps to latest version
|
|
17
|
+
- Upgrade all deps to latest version
|
|
18
|
+
|
|
5
19
|
## 7.0.1 — 2026-08-24
|
|
6
20
|
|
|
7
21
|
### Bug fixes
|
package/README.md
CHANGED
|
@@ -2,31 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Utility functions for working with numbers.
|
|
4
4
|
|
|
5
|
-
<!-- section:release-notes -->
|
|
6
|
-
## Release notes — v7.0.1 (2026-08-24)
|
|
7
|
-
|
|
8
|
-
### Bug fixes
|
|
9
|
-
|
|
10
|
-
- Stop the adoption kits from blanking code after `++`, `!`, and keyword-named members (#208)
|
|
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.
|
|
29
|
-
<!-- /section:release-notes -->
|
|
5
|
+
<!-- section:release-notes --><!-- /section:release-notes -->
|
|
30
6
|
|
|
31
7
|
## Installation
|
|
32
8
|
|
|
@@ -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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@williamthorsen/toolbelt.numbers",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.2",
|
|
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.
|
|
50
|
+
"readyup": "0.34.0",
|
|
51
51
|
"@williamthorsen/toolbelt.adoption": "0.1.0",
|
|
52
|
-
"@williamthorsen/toolbelt.testing": "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 {};
|