shacl-wasm-node 0.3.0 → 0.3.2

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,7 +1,7 @@
1
1
  {
2
2
  "name": "shacl-wasm-node",
3
3
  "description": "WebAssembly bindings for the shacl validation engine (CommonJS, for Node and require())",
4
- "version": "0.3.0",
4
+ "version": "0.3.2",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
package/shacl_wasm.d.ts CHANGED
@@ -14,8 +14,15 @@ export class Report {
14
14
  */
15
15
  toTurtle(): string;
16
16
  /**
17
- * True when nothing in the report has a conformance-blocking severity
18
- * (`sh:Violation`).
17
+ * True when the report holds no result of a conformance-blocking
18
+ * severity.
19
+ *
20
+ * Those are `sh:Violation`, `sh:Warning` and `sh:Info`, which is what
21
+ * the specification defines when a report declares no
22
+ * `sh:conformanceDisallows`. SHACL 1.2's `sh:Debug` and `sh:Trace`
23
+ * report without blocking. Until 0.3.2 this counted violations alone,
24
+ * which is pySHACL's `--allow-warnings` reading rather than its default;
25
+ * a caller who wants that reading can judge `results` by severity.
19
26
  */
20
27
  readonly conforms: boolean;
21
28
  /**
package/shacl_wasm.js CHANGED
@@ -21,8 +21,15 @@ class Report {
21
21
  wasm.__wbg_report_free(ptr, 0);
22
22
  }
23
23
  /**
24
- * True when nothing in the report has a conformance-blocking severity
25
- * (`sh:Violation`).
24
+ * True when the report holds no result of a conformance-blocking
25
+ * severity.
26
+ *
27
+ * Those are `sh:Violation`, `sh:Warning` and `sh:Info`, which is what
28
+ * the specification defines when a report declares no
29
+ * `sh:conformanceDisallows`. SHACL 1.2's `sh:Debug` and `sh:Trace`
30
+ * report without blocking. Until 0.3.2 this counted violations alone,
31
+ * which is pySHACL's `--allow-warnings` reading rather than its default;
32
+ * a caller who wants that reading can judge `results` by severity.
26
33
  * @returns {boolean}
27
34
  */
28
35
  get conforms() {
Binary file