@bcts/provenance-mark 1.0.0-alpha.13 → 1.0.0-alpha.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcts/provenance-mark",
3
- "version": "1.0.0-alpha.13",
3
+ "version": "1.0.0-alpha.15",
4
4
  "type": "module",
5
5
  "description": "Blockchain Commons Provenance Mark for TypeScript - A cryptographically-secured system for establishing and verifying the authenticity of works",
6
6
  "license": "BSD-2-Clause-Patent",
@@ -44,7 +44,6 @@
44
44
  ],
45
45
  "scripts": {
46
46
  "build": "tsdown",
47
- "dev": "tsdown --watch",
48
47
  "test": "vitest run",
49
48
  "test:watch": "vitest",
50
49
  "lint": "eslint 'src/**/*.ts' 'tests/**/*.ts'",
@@ -69,21 +68,21 @@
69
68
  "@bcts/eslint": "^0.1.0",
70
69
  "@bcts/tsconfig": "^0.1.0",
71
70
  "@eslint/js": "^9.39.2",
72
- "@typescript-eslint/eslint-plugin": "^8.50.1",
73
- "@typescript-eslint/parser": "^8.50.1",
71
+ "@typescript-eslint/eslint-plugin": "^8.52.0",
72
+ "@typescript-eslint/parser": "^8.52.0",
74
73
  "eslint": "^9.39.2",
75
74
  "ts-node": "^10.9.2",
76
- "tsdown": "^0.18.3",
75
+ "tsdown": "^0.18.4",
77
76
  "typedoc": "^0.28.15",
78
77
  "typescript": "^5.9.3",
79
78
  "vitest": "^4.0.16"
80
79
  },
81
80
  "dependencies": {
82
- "@bcts/dcbor": "^1.0.0-alpha.13",
83
- "@bcts/envelope": "^1.0.0-alpha.13",
84
- "@bcts/rand": "^1.0.0-alpha.13",
85
- "@bcts/tags": "^1.0.0-alpha.13",
86
- "@bcts/uniform-resources": "^1.0.0-alpha.13",
81
+ "@bcts/dcbor": "^1.0.0-alpha.15",
82
+ "@bcts/envelope": "^1.0.0-alpha.15",
83
+ "@bcts/rand": "^1.0.0-alpha.15",
84
+ "@bcts/tags": "^1.0.0-alpha.15",
85
+ "@bcts/uniform-resources": "^1.0.0-alpha.15",
87
86
  "@noble/ciphers": "^2.1.1",
88
87
  "@noble/hashes": "^2.0.1"
89
88
  }
package/src/envelope.ts CHANGED
@@ -126,8 +126,8 @@ export function provenanceMarkGeneratorToEnvelope(generator: ProvenanceMarkGener
126
126
  // Create envelope with chain ID as subject
127
127
  let envelope = Envelope.new(generator.chainId());
128
128
 
129
- // Add type assertion
130
- envelope = envelope.addAssertion("isA", "provenance-generator");
129
+ // Add type assertion (using addType() which uses IS_A KnownValue, like Rust's add_type())
130
+ envelope = envelope.addType("provenance-generator");
131
131
 
132
132
  // Add resolution
133
133
  envelope = envelope.addAssertion("res", resolutionToNumber(generator.res()));
package/src/generator.ts CHANGED
@@ -206,8 +206,8 @@ export class ProvenanceMarkGenerator {
206
206
  // Create envelope with chain ID as subject
207
207
  let envelope = Envelope.new(this._chainId);
208
208
 
209
- // Add type assertion
210
- envelope = envelope.addAssertion("isA", "provenance-generator");
209
+ // Add type assertion (using addType() which uses IS_A KnownValue, like Rust's add_type())
210
+ envelope = envelope.addType("provenance-generator");
211
211
 
212
212
  // Add resolution
213
213
  envelope = envelope.addAssertion("res", resolutionToNumber(this._res));