zod-joda 2.0.1 → 2.1.0

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/dist/core.js CHANGED
@@ -1,4 +1,4 @@
1
- import { DateTimeFormatter, Duration, LocalDate, LocalDateTime, LocalTime, ZoneId, ZonedDateTime, } from "@js-joda/core";
1
+ import { DateTimeFormatter, Duration, LocalDate, LocalDateTime, LocalTime, ZonedDateTime, ZoneId, } from "@js-joda/core";
2
2
  export const durationConfig = {
3
3
  parse: (input) => Duration.parse(input),
4
4
  invalidMessage: "Invalid duration",
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ const createParseConstructor = ({ parse, invalidMessage, schemaFormat, example,
4
4
  const inputSchema = string().meta({ example: example(params) });
5
5
  inputSchema._zod.toJSONSchema = () => ({
6
6
  format: schemaFormat,
7
+ type: "string",
7
8
  });
8
9
  return inputSchema.transform((value, context) => {
9
10
  try {
package/dist/mini.js CHANGED
@@ -4,6 +4,7 @@ const createParseConstructor = ({ parse, invalidMessage, schemaFormat, example,
4
4
  const inputSchema = string().register(globalRegistry, { example: example(params) });
5
5
  inputSchema._zod.toJSONSchema = () => ({
6
6
  format: schemaFormat,
7
+ type: "string",
7
8
  });
8
9
  return pipe(inputSchema, transform((value, context) => {
9
10
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zod-joda",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "JS-Joda integration for Zod validation library",
5
5
  "author": "Ben Scholzen 'DASPRiD'",
6
6
  "keywords": [
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@js-joda/core": "^3.2.0 || ^4.0.0 || ^5.0.0",
48
- "zod": "^3.25.56"
48
+ "zod": "^3.25.56 || ^4.0.0"
49
49
  },
50
50
  "peerDependenciesMeta": {
51
51
  "@zod/mini": {
@@ -56,17 +56,17 @@
56
56
  }
57
57
  },
58
58
  "devDependencies": {
59
- "@biomejs/biome": "^1.9.4",
59
+ "@biomejs/biome": "^2.1.3",
60
60
  "@commitlint/cli": "^19.8.1",
61
61
  "@commitlint/config-conventional": "^19.8.1",
62
62
  "@js-joda/core": "^5.6.5",
63
63
  "@tsconfig/node22": "^22.0.2",
64
- "@types/node": "^22.15.30",
64
+ "@types/node": "^24.1.0",
65
65
  "c8": "^10.1.3",
66
- "lefthook": "^1.11.13",
67
- "tsx": "^4.19.4",
66
+ "lefthook": "^1.12.2",
67
+ "tsx": "^4.20.3",
68
68
  "typescript": "^5.8.3",
69
- "zod": "^3.25.56"
69
+ "zod": "^4.0.14"
70
70
  },
71
71
  "packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
72
72
  }