@drzl/validation-core 3.22.0 → 3.22.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/README.md +2 -1
- package/dist/index.cjs +12 -1
- package/dist/index.js +12 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -25,7 +25,8 @@ Shared interfaces and helpers used by validation generators.
|
|
|
25
25
|
|
|
26
26
|
- Every dollar speeds up CI hardware and offsets long test runs on my aging laptop.
|
|
27
27
|
- Sponsors get roadmap input and priority responses in GitHub Issues.
|
|
28
|
-
- Prefer a quick overview?
|
|
28
|
+
- Prefer a quick overview? The current goals and thank-yous are at
|
|
29
|
+
https://use-drzl.github.io/drzl/sponsor.
|
|
29
30
|
|
|
30
31
|
## Exports (essentials)
|
|
31
32
|
|
package/dist/index.cjs
CHANGED
|
@@ -1743,7 +1743,18 @@ var COLUMN_FORMATS = {
|
|
|
1743
1743
|
// is refused. A pattern cannot do that arithmetic, and guessing at it turns away working rows.
|
|
1744
1744
|
// Over 3319 probes against each of a signed and an unsigned column: zero values the server takes
|
|
1745
1745
|
// and this refuses.
|
|
1746
|
-
mysqlBigint: "^\\s*[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d*)?\\s*$"
|
|
1746
|
+
mysqlBigint: "^\\s*[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d*)?\\s*$",
|
|
1747
|
+
// A temporal column carried as text, and the only thing that can be said about one: it is not
|
|
1748
|
+
// blank. Unanchored on purpose, so it means "holds at least one non-whitespace character".
|
|
1749
|
+
//
|
|
1750
|
+
// Everything stronger was refused for the reason the analyzer's `format` comment gives: Postgres
|
|
1751
|
+
// reads 'today', 'January 8, 1999', '01/08/1999' and '20200101' as dates, so a date-shaped
|
|
1752
|
+
// pattern turns away rows the server stores. This one turns away nothing: measured on Postgres,
|
|
1753
|
+
// every temporal type accepts a valid value with surrounding whitespace and refuses '' and ' '
|
|
1754
|
+
// alike, so the set this refuses and the set the server refuses are the same set. The analyzer
|
|
1755
|
+
// decides which columns carry it, per engine and per type, since MySQL's `time` takes a blank
|
|
1756
|
+
// and silently stores 00:00:00.
|
|
1757
|
+
temporalText: "\\S"
|
|
1747
1758
|
};
|
|
1748
1759
|
var COERCIBLE_DATE_STRING = "^(?!\\s*[+-])(?!\\s*\\d*\\.?\\d*(?:[eE][+-]?\\d+)?\\s*$)";
|
|
1749
1760
|
function parsesToADate(expr) {
|
package/dist/index.js
CHANGED
|
@@ -1644,7 +1644,18 @@ var COLUMN_FORMATS = {
|
|
|
1644
1644
|
// is refused. A pattern cannot do that arithmetic, and guessing at it turns away working rows.
|
|
1645
1645
|
// Over 3319 probes against each of a signed and an unsigned column: zero values the server takes
|
|
1646
1646
|
// and this refuses.
|
|
1647
|
-
mysqlBigint: "^\\s*[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d*)?\\s*$"
|
|
1647
|
+
mysqlBigint: "^\\s*[+-]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][+-]?\\d*)?\\s*$",
|
|
1648
|
+
// A temporal column carried as text, and the only thing that can be said about one: it is not
|
|
1649
|
+
// blank. Unanchored on purpose, so it means "holds at least one non-whitespace character".
|
|
1650
|
+
//
|
|
1651
|
+
// Everything stronger was refused for the reason the analyzer's `format` comment gives: Postgres
|
|
1652
|
+
// reads 'today', 'January 8, 1999', '01/08/1999' and '20200101' as dates, so a date-shaped
|
|
1653
|
+
// pattern turns away rows the server stores. This one turns away nothing: measured on Postgres,
|
|
1654
|
+
// every temporal type accepts a valid value with surrounding whitespace and refuses '' and ' '
|
|
1655
|
+
// alike, so the set this refuses and the set the server refuses are the same set. The analyzer
|
|
1656
|
+
// decides which columns carry it, per engine and per type, since MySQL's `time` takes a blank
|
|
1657
|
+
// and silently stores 00:00:00.
|
|
1658
|
+
temporalText: "\\S"
|
|
1648
1659
|
};
|
|
1649
1660
|
var COERCIBLE_DATE_STRING = "^(?!\\s*[+-])(?!\\s*\\d*\\.?\\d*(?:[eE][+-]?\\d+)?\\s*$)";
|
|
1650
1661
|
function parsesToADate(expr) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drzl/validation-core",
|
|
3
|
-
"version": "3.22.
|
|
3
|
+
"version": "3.22.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@drzl/analyzer": "^1.21.
|
|
27
|
+
"@drzl/analyzer": "^1.21.2"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"prettier": ">=3"
|