@metalabel/dfos-protocol 0.25.0 → 0.26.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/README.md +6 -1
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -5,9 +5,14 @@ Ed25519 signed chain primitives for cryptographic identity and verifiable conten
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @metalabel/dfos-protocol
|
|
8
|
+
npm install @metalabel/dfos-protocol zod
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
`zod` is a peer dependency. The package exports Zod schema objects directly
|
|
12
|
+
(`IdentityOperation`, `ContentOperation`, `MultikeyPublicKey`, …) so you can
|
|
13
|
+
compose them into your own schemas — which only works if your app and this
|
|
14
|
+
package share one Zod install.
|
|
15
|
+
|
|
11
16
|
## Usage
|
|
12
17
|
|
|
13
18
|
```ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metalabel/dfos-protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "DFOS Protocol — Ed25519 signed chain primitives, services, credentials, and verification",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,7 +57,9 @@
|
|
|
57
57
|
"@ipld/dag-cbor": "^10.0.1",
|
|
58
58
|
"@noble/curves": "^2.2.0",
|
|
59
59
|
"@noble/hashes": "^2.2.0",
|
|
60
|
-
"multiformats": "^14.0.0"
|
|
60
|
+
"multiformats": "^14.0.0"
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
61
63
|
"zod": "^4.4.3"
|
|
62
64
|
},
|
|
63
65
|
"devDependencies": {
|
|
@@ -66,7 +68,8 @@
|
|
|
66
68
|
"ajv-formats": "^3.0.1",
|
|
67
69
|
"tsup": "^8.5.1",
|
|
68
70
|
"tsx": "^4.22.4",
|
|
69
|
-
"vitest": "^4.1.8"
|
|
71
|
+
"vitest": "^4.1.8",
|
|
72
|
+
"zod": "^4.4.3"
|
|
70
73
|
},
|
|
71
74
|
"scripts": {
|
|
72
75
|
"build": "tsup",
|