@domain-first/types 1.0.5 → 1.0.6

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 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -42,11 +42,7 @@ class UserId extends defineValueObject(
42
42
 
43
43
  class User extends defineEntity(
44
44
  // id schema
45
- z.custom<UserId>(
46
- // every Entity and Value Object has a static `is` method
47
- // for type-safe instance checks
48
- UserId.is,
49
- ),
45
+ z.instanceof(UserId),
50
46
  // model schema
51
47
  z.object({ name: z.string().nonempty() }),
52
48
  ) {}
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "ddd",
13
13
  "domain-driven"
14
14
  ],
15
- "version": "1.0.5",
15
+ "version": "1.0.6",
16
16
  "type": "module",
17
17
  "repository": {
18
18
  "type": "git",