@webdeveric/utils 0.59.0 → 0.59.1

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.
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isISODateString = exports.ISO_DATE_PATTERN = void 0;
4
4
  const matching_js_1 = require("./factory/matching.js");
5
- exports.ISO_DATE_PATTERN = /^(?<year>[+-]?\d{4,})-(?<month>[01]\d)-(?<day>0[1-9]|[12]\d|3[01])T(?<hour>\d{2}):(?<minute>\d{2}):(?<second>\d{2})(\.(?<timezone>\d{3}Z))?$/;
5
+ exports.ISO_DATE_PATTERN = /^(?<year>\d{4,})-(?<month>[01]\d)-(?<day>0[1-9]|[12]\d|3[01])T(?<hour>\d{2}):(?<minute>\d{2}):(?<second>\d{2})\.(?<timezone>\d{3}Z)$/;
6
6
  exports.isISODateString = (0, matching_js_1.matching)(exports.ISO_DATE_PATTERN);
@@ -1,3 +1,3 @@
1
1
  import { matching } from './factory/matching.js';
2
- export const ISO_DATE_PATTERN = /^(?<year>[+-]?\d{4,})-(?<month>[01]\d)-(?<day>0[1-9]|[12]\d|3[01])T(?<hour>\d{2}):(?<minute>\d{2}):(?<second>\d{2})(\.(?<timezone>\d{3}Z))?$/;
2
+ export const ISO_DATE_PATTERN = /^(?<year>\d{4,})-(?<month>[01]\d)-(?<day>0[1-9]|[12]\d|3[01])T(?<hour>\d{2}):(?<minute>\d{2}):(?<second>\d{2})\.(?<timezone>\d{3}Z)$/;
3
3
  export const isISODateString = matching(ISO_DATE_PATTERN);
@@ -1,9 +1,9 @@
1
1
  import type { Branded } from './branded.js';
2
2
  import type { NumericString } from './common.js';
3
3
  export type DateInput = ConstructorParameters<typeof Date>[0];
4
- export type YearString = Branded<NumericString, 'YearString'>;
5
- export type MonthString = Branded<NumericString, 'MonthString'>;
6
- export type DayString = Branded<NumericString, 'DayString'>;
4
+ export type YearString = Branded<NumericString<number>, 'YearString'>;
5
+ export type MonthString = Branded<NumericString<number>, 'MonthString'>;
6
+ export type DayString = Branded<NumericString<number>, 'DayString'>;
7
7
  export type DateString = Branded<`${YearString}-${MonthString}-${DayString}`, 'DateString'>;
8
8
  export type TimeString = Branded<`${number}:${number}:${number}`, 'TimeString'>;
9
9
  export type ISODateString = Branded<`${DateString}T${TimeString}.${number}Z`, 'ISODateString'>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webdeveric/utils",
3
3
  "description": "Just another collection of utilities.",
4
- "version": "0.59.0",
4
+ "version": "0.59.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -66,7 +66,7 @@
66
66
  "url": "https://github.com/webdeveric/utils/issues"
67
67
  },
68
68
  "homepage": "https://github.com/webdeveric/utils/#readme",
69
- "packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39",
69
+ "packageManager": "pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977",
70
70
  "scripts": {
71
71
  "clean": "rimraf ./dist/",
72
72
  "prebuild": "pnpm clean",
@@ -87,7 +87,7 @@
87
87
  "devDependencies": {
88
88
  "@commitlint/config-conventional": "^19.8.1",
89
89
  "@commitlint/types": "^19.8.1",
90
- "@types/node": "^22.15.17",
90
+ "@types/node": "^22.15.18",
91
91
  "@vitest/coverage-v8": "^3.1.3",
92
92
  "@webdeveric/eslint-config-ts": "^0.11.0",
93
93
  "@webdeveric/prettier-config": "^0.3.0",
@@ -96,12 +96,12 @@
96
96
  "conventional-changelog-conventionalcommits": "^8.0.0",
97
97
  "cspell": "^9.0.1",
98
98
  "eslint": "^8.57.1",
99
- "eslint-config-prettier": "^10.1.3",
100
- "eslint-import-resolver-typescript": "^3.10.1",
99
+ "eslint-config-prettier": "^10.1.5",
100
+ "eslint-import-resolver-typescript": "^4.3.4",
101
101
  "eslint-plugin-import": "^2.31.0",
102
102
  "husky": "^9.1.7",
103
103
  "jsdom": "^26.1.0",
104
- "lint-staged": "^15.5.2",
104
+ "lint-staged": "^16.0.0",
105
105
  "prettier": "^3.5.3",
106
106
  "rimraf": "^6.0.1",
107
107
  "semantic-release": "^24.2.3",