valgen 5.18.1 → 5.18.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,6 +1,12 @@
1
1
  ## Changelog
2
2
 
3
- ### [v5.18.1](https://github.com/panates/valgen/compare/v5.18.0...v5.18.1) -
3
+ ### [v5.18.2](https://github.com/panates/valgen/compare/v5.18.1...v5.18.2) -
4
+
5
+ #### 🛠 Refactoring and Updates
6
+
7
+ - refactor: Set precision of toDateString() to "day" @Eray Hanoğlu
8
+
9
+ ### [v5.18.1](https://github.com/panates/valgen/compare/v5.18.0...v5.18.1) - 27 August 2025
4
10
 
5
11
  #### 🪲 Fixes
6
12
 
package/cjs/index.js CHANGED
@@ -117,7 +117,7 @@ const toBoolean = vg.isBoolean({ coerce: true });
117
117
  exports.toBoolean = toBoolean;
118
118
  const toDate = vg.isDate({ coerce: true });
119
119
  exports.toDate = toDate;
120
- const toDateString = vg.isDateString({ coerce: true });
120
+ const toDateString = vg.isDateString({ coerce: true, precisionMin: 'day' });
121
121
  exports.toDateString = toDateString;
122
122
  const toInteger = vg.isInteger({ coerce: true });
123
123
  exports.toInteger = toInteger;
package/esm/index.js CHANGED
@@ -56,7 +56,7 @@ const toArray = vg.isArray(isAny, { coerce: true });
56
56
  const toBigint = vg.isBigint({ coerce: true });
57
57
  const toBoolean = vg.isBoolean({ coerce: true });
58
58
  const toDate = vg.isDate({ coerce: true });
59
- const toDateString = vg.isDateString({ coerce: true });
59
+ const toDateString = vg.isDateString({ coerce: true, precisionMin: 'day' });
60
60
  const toInteger = vg.isInteger({ coerce: true });
61
61
  const toNumber = vg.isNumber({ coerce: true });
62
62
  const toString = vg.isString({ coerce: true });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valgen",
3
3
  "description": "Fast runtime type validator, converter and io (encoding/decoding) library",
4
- "version": "5.18.1",
4
+ "version": "5.18.2",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
7
7
  "dependencies": {