@dfinity/zod-schemas 1.0.0 → 1.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.
Files changed (2) hide show
  1. package/README.md +4 -0
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -47,6 +47,10 @@ Parameters:
47
47
  - `options.additionalProtocols`: - Additional protocols to allow (e.g., "wss:" or "ftp:"). ⚠️ Usage of insecure protocols is discouraged.
48
48
  - `options.allowHttpLocally`: - Whether to allow HTTP for localhost and 127.0.0.1. Default: true.
49
49
 
50
+ Returns:
51
+
52
+ - The Zod schema with URL validation.
53
+
50
54
  Examples:
51
55
 
52
56
  const schema = createUrlSchema({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfinity/zod-schemas",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "A collection of reusable Zod schemas and validators for common data patterns in ICP applications",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/cjs/index.cjs.js",
@@ -16,7 +16,7 @@
16
16
  "ts-declaration": "tsc --emitDeclarationOnly --outDir dist/types",
17
17
  "build": "npm run rmdir && mkdir -p dist && node esbuild.mjs && npm run ts-declaration",
18
18
  "prepack": "npm run build",
19
- "test": "jest"
19
+ "test": "vitest"
20
20
  },
21
21
  "repository": {
22
22
  "type": "git",
@@ -47,7 +47,7 @@
47
47
  "service-nervous-system"
48
48
  ],
49
49
  "peerDependencies": {
50
- "@dfinity/principal": "^2.0.0",
51
- "zod": "^3.25"
50
+ "@dfinity/principal": "*",
51
+ "zod": "3.25"
52
52
  }
53
53
  }