@arrirpc/schema 0.71.1 → 0.73.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 +2 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -328,12 +328,12 @@ const User = a.object({
328
328
  });
329
329
  type User = a.infer<typeof User>; // { id: string; email: string; created: Date; }
330
330
 
331
- a.validate({
331
+ a.validate(User, {
332
332
  id: '1',
333
333
  email: 'johndoe@example.com',
334
334
  created: new Date(),
335
335
  }); // true
336
- a.validate({
336
+ a.validate(User, {
337
337
  id: '1',
338
338
  email: null,
339
339
  created: new Date(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arrirpc/schema",
3
- "version": "0.71.1",
3
+ "version": "0.73.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -25,7 +25,7 @@
25
25
  "scule": "^1.3.0",
26
26
  "uncrypto": "^0.1.3",
27
27
  "@standard-schema/spec": "1.0.0-rc.0",
28
- "@arrirpc/type-defs": "0.71.1"
28
+ "@arrirpc/type-defs": "0.73.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "ajv": "^8.17.1",