@cratestack/validator-zod 0.17.1 → 0.18.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 +1 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -24,7 +24,7 @@ const runtime = new CratestackRpcRuntime("https://api.example.com", {
24
24
  ```
25
25
 
26
26
  Ops with no configured schema pass through unvalidated — this is opt-in per op, not a blanket
27
- gate. On success, the schema's *parsed* output (defaults, `z.coerce`, transforms) becomes the
27
+ gate. On success, the schema's _parsed_ output (defaults, `z.coerce`, transforms) becomes the
28
28
  actual request `input`, not just a type-level assertion. On failure, the chain short-circuits —
29
29
  the real network call never happens — and the call rejects the same way a server-side validation
30
30
  failure would, with an `RpcErrorBody` carrying `code: "invalid_argument"`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratestack/validator-zod",
3
- "version": "0.17.1",
3
+ "version": "0.18.0",
4
4
  "description": "An RpcLink for CrateStack's generated TypeScript RPC client that validates request input against per-op zod schemas.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -40,7 +40,7 @@
40
40
  "lint": "biome check ."
41
41
  },
42
42
  "dependencies": {
43
- "@cratestack/ts-types": "0.17.1"
43
+ "@cratestack/ts-types": "0.18.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "zod": "^3.23.0 || ^4.0.0"