strict-ts-lib-v5.8 0.6.1 → 0.6.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # strict-ts-lib-v5.8
2
2
 
3
+ ## 0.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 68452d4: Allow `0` as `toExponential`'s `fractionDigits`: the parameter type becomes `UintRangeInclusive<0, 100>`. ECMA-262 accepts 0–100 — `(1).toExponential(0)` is legal and returns `'1e+0'` — so the previous lower bound of 1 rejected a valid call.
8
+
3
9
  ## 0.6.1
4
10
 
5
11
  ### Patch Changes
@@ -647,7 +647,7 @@ interface Number {
647
647
  * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
648
648
  */
649
649
  toExponential(
650
- fractionDigits?: import('ts-type-forge').UintRangeInclusive<1, 100>,
650
+ fractionDigits?: import('ts-type-forge').UintRangeInclusive<0, 100>,
651
651
  ): string;
652
652
 
653
653
  /**
@@ -667,7 +667,7 @@ interface Number {
667
667
  * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
668
668
  */
669
669
  toExponential(
670
- fractionDigits?: import('ts-type-forge').UintRangeInclusive<1, 100>,
670
+ fractionDigits?: import('ts-type-forge').UintRangeInclusive<0, 100>,
671
671
  ): string;
672
672
 
673
673
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strict-ts-lib-v5.8",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "private": false,
5
5
  "description": "Strict TypeScript 5.8.3 standard library (all libs in one package)",
6
6
  "license": "Apache-2.0",