strict-ts-lib-v6.0 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-v6.0
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
@@ -645,7 +645,7 @@ interface Number {
645
645
  * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
646
646
  */
647
647
  toExponential(
648
- fractionDigits?: import('ts-type-forge').UintRangeInclusive<1, 100>,
648
+ fractionDigits?: import('ts-type-forge').UintRangeInclusive<0, 100>,
649
649
  ): string;
650
650
 
651
651
  /**
@@ -665,7 +665,7 @@ interface Number {
665
665
  * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
666
666
  */
667
667
  toExponential(
668
- fractionDigits?: import('ts-type-forge').UintRangeInclusive<1, 100>,
668
+ fractionDigits?: import('ts-type-forge').UintRangeInclusive<0, 100>,
669
669
  ): string;
670
670
 
671
671
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strict-ts-lib-v6.0",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "private": false,
5
5
  "description": "Strict TypeScript 6.0.3 standard library (all libs in one package)",
6
6
  "license": "Apache-2.0",