@kehto/acl 0.10.0 → 0.11.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 +2 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Pure, WASM-ready ACL module for the napplet protocol — zero dependencies, zero side effects.
|
|
4
4
|
|
|
5
5
|
> **Alpha status:** Kehto is an early runtime implementation for a draft NIP-5D
|
|
6
|
-
> protocol.
|
|
6
|
+
> protocol. NAP contracts and capability names are not final; treat this package
|
|
7
7
|
> as current implementation guidance, not as a stable protocol guarantee.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
@@ -87,7 +87,7 @@ check(state, id, CAP_RELAY_WRITE); // true (restored)
|
|
|
87
87
|
### Capability resolution
|
|
88
88
|
- `check` — evaluate identity + capability against state
|
|
89
89
|
- `toKey` — compute the `dTag:hash` composite key
|
|
90
|
-
- `resolveCapabilitiesNub` — map a NIP-5D
|
|
90
|
+
- `resolveCapabilitiesNub` — map a NIP-5D NAP envelope type to the required sender/recipient capabilities across the current supported domains
|
|
91
91
|
|
|
92
92
|
### Migration
|
|
93
93
|
- `migrateAclState` — one-shot migration from the legacy 3-segment `pubkey:dTag:hash` keys to the v1.2 2-segment `dTag:hash` keys; idempotent (returns the same reference when nothing to migrate)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kehto/acl",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Pure, WASM-ready ACL module for the napplet protocol — zero dependencies, zero side effects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@napplet/core": "^0.
|
|
29
|
-
"@napplet/
|
|
28
|
+
"@napplet/core": "^0.12.0",
|
|
29
|
+
"@napplet/nap": "^0.12.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@napplet/core": "^0.
|
|
32
|
+
"@napplet/core": "^0.12.0",
|
|
33
33
|
"tsup": "^8.5.0",
|
|
34
34
|
"typescript": "^5.9.3",
|
|
35
|
-
"@napplet/
|
|
35
|
+
"@napplet/nap": "^0.12.0"
|
|
36
36
|
},
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"repository": {
|