@factoidal/core 0.19.0 → 0.21.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/index.mjs CHANGED
@@ -25,6 +25,7 @@ import { sbm11Api, registerSbm11Source, setDefaultSbm11Reader, mapReader } from
25
25
  import { nodeDefaultReaderFactory } from './lib/sbm11-node.mjs';
26
26
  import { lwsSbm11Reader as lwsSbm11ReaderWith } from './lib/sbm11-lws.mjs';
27
27
  import { nodeSyncTransport } from './lib/sync-http-node.mjs';
28
+ import { nodeCidHost } from './lib/cid-node.mjs';
28
29
 
29
30
  /**
30
31
  * The loaded Lean engine handle: `call(op, args)`, `callBlob`,
@@ -45,6 +46,8 @@ const api = buildApi({
45
46
  engineName: 'lean4-wasm',
46
47
  loadEntry: async () => entryFromEngine(await loadEngine()),
47
48
  storeReaderFor: (root) => (path) => readFileSync(join(root, path)),
49
+ // Name resolution and a GET pinned to one address (issue 1100 item 9).
50
+ cidHost: nodeCidHost,
48
51
  });
49
52
 
50
53
  // RDF and SPARQL
@@ -55,12 +58,28 @@ export const serialize = api.serialize;
55
58
  export const canonicalize = api.canonicalize;
56
59
  export const graphs = api.graphs;
57
60
  export const canonicalHash = api.canonicalHash;
61
+ export const asDefaultGraph = api.asDefaultGraph;
58
62
  export const isomorphic = api.isomorphic;
63
+ export const datasetMerge = api.datasetMerge;
59
64
  export const fromQuads = api.fromQuads;
65
+ // Literal values (https://github.com/danbri/factoidal/issues/1051): synchronous
66
+ // after the engine is loaded.
67
+ export const literalValue = api.literalValue;
68
+ export const isValidLiteral = api.isValidLiteral;
69
+ export const canonicalLiteral = api.canonicalLiteral;
70
+ export const literalFromValue = api.literalFromValue;
60
71
  export const ready = api.ready;
61
72
  export const engineTables = api.engineTables;
73
+ export const sameValue = api.sameValue;
74
+ export const syntaxFor = api.syntaxFor;
75
+ export const splitIri = api.splitIri;
76
+ export const isNCName = api.isNCName;
77
+ export const vocabularies = api.vocabularies;
78
+ export const memberIri = api.memberIri;
79
+ export const memberOrdinal = api.memberOrdinal;
62
80
  export const openDataset = api.openDataset;
63
81
  export const closure = api.closure;
82
+ export const sparqlRlInfer = api.sparqlRlInfer;
64
83
  export const formats = api.formats;
65
84
  export const queryRaw = api.queryRaw;
66
85
  export const queryHdt = api.queryHdt;
@@ -115,6 +134,7 @@ export const explain = api.explain;
115
134
  export const stages = api.stages;
116
135
  export const node = api.node;
117
136
  export const pipe = api.pipe;
137
+ export const graph = api.graph;
118
138
  export const run = api.run;
119
139
  export const rdfsPlusClosure = api.rdfsPlusClosure;
120
140
  export const rhoDfClosure = api.rhoDfClosure;
@@ -156,12 +176,21 @@ export const vcSha256Hex = api.vcSha256Hex;
156
176
  export const vcEd25519SecretToPublic = api.vcEd25519SecretToPublic;
157
177
  export const vcEd25519Sign = api.vcEd25519Sign;
158
178
  export const vcEd25519Verify = api.vcEd25519Verify;
179
+
180
+ // XML Encryption 1.1 and JWE; AES through WebCrypto (lib/cipher-host.mjs)
181
+ export const xmlDecrypt = api.xmlDecrypt;
182
+ export const xmlEncrypt = api.xmlEncrypt;
183
+ export const jweDecrypt = api.jweDecrypt;
184
+ export const jweEncrypt = api.jweEncrypt;
159
185
  export const vcEddsaCreateFromCanonical = api.vcEddsaCreateFromCanonical;
160
186
  export const vcEddsaVerifyFromCanonical = api.vcEddsaVerifyFromCanonical;
161
187
  export const vcCheckCredential = api.vcCheckCredential;
162
188
  export const vcCheckCredentialSubject = api.vcCheckCredentialSubject;
163
189
  export const vcCheckNoDataLoss = api.vcCheckNoDataLoss;
164
190
  export const vcCheckRelatedResourceDigests = api.vcCheckRelatedResourceDigests;
191
+ // Controlled Identifiers v1.0 (https://github.com/danbri/factoidal/issues/1100).
192
+ export const cidValidate = api.cidValidate;
193
+ export const cidRetrieveVerificationMethod = api.cidRetrieveVerificationMethod;
165
194
  export const didKeyResolve = api.didKeyResolve;
166
195
 
167
196
  // Types, probes and metadata
@@ -37,7 +37,7 @@
37
37
  // bytes change.
38
38
 
39
39
  // Stamped by formal/lean4/Wasm/build-wasm.sh step 9 -- do not hand-edit.
40
- const WASM_VERSION = "6dbf38660cb9";
40
+ const WASM_VERSION = "18074526651e";
41
41
 
42
42
  import createModule from './l4factoidal.mjs';
43
43
 
Binary file
@@ -2,17 +2,17 @@
2
2
  "engine": "lean4",
3
3
  "note": "The Lean 4 (L4Factoidal) engine build provenance and claims: the only engine of @factoidal/core since 0.9.0 (issue 713). This committed file is a placeholder. tools/fetch-builds.sh --set web (through tools/stamp-l4-version.mjs) writes the provenance members from the danbri/factoidal-builds release that built the wasm; formal/lean4/Wasm/build-wasm.sh step 9 writes them for a local build. Do not commit a stamped copy.",
4
4
  "stamped": true,
5
- "release": "danbri/factoidal-builds build-b8c6b64b8dc1-web",
6
- "releaseRun": "https://github.com/danbri/factoidal-builds/actions/runs/40525043015",
7
- "gitSha": "b8c6b64b8dc18a6daa2151a61e28dbb9a4707ade",
8
- "builtAt": "2026-10-27T15:28:08Z",
5
+ "release": "danbri/factoidal-builds build-7ab6936b6710-web",
6
+ "releaseRun": "https://github.com/danbri/factoidal-builds/actions/runs/40733510537",
7
+ "gitSha": "7ab6936b6710f2a68517a1fd3a1bf047e96c3c7c",
8
+ "builtAt": "2026-10-28T17:53:09Z",
9
9
  "leanToolchain": "leanprover/lean4:v4.33.1",
10
10
  "emscripten": "6.0.8",
11
11
  "abiVersion": "1",
12
12
  "engineVersion": "l4factoidal-wasm 0.2.0 (dispatch: RDF parse/serialize, SPARQL query+update, RDFS/OWL-RL closures, RDFC-1.0, CL/IKL)",
13
13
  "version": "l4factoidal-wasm 0.2.0 (dispatch: RDF parse/serialize, SPARQL query+update, RDFS/OWL-RL closures, RDFC-1.0, CL/IKL)",
14
- "wasmSha256": "6dbf38660cb9966ae7c65ecdb68a38e83d09c1283415c1486b618f203f3f2f39",
15
- "wasmBytes": 17694204,
14
+ "wasmSha256": "18074526651eb00293b15be5c6d6e117e9d07271f1d104340b9d9ecff3b826c2",
15
+ "wasmBytes": 19211990,
16
16
  "claims": {
17
17
  "source": "formal/lean4 (L4Factoidal): no sorry, no user axioms, no native_decide; W3C behaviour pinned by build-time #guard",
18
18
  "suitesAtBuildSha": "see docs/test-results and formal/lean4/PORT_NOTES.md at gitSha"