@imferno/node 3.0.2-fix-catalogue-verified-clauses.71bf1fb → 3.0.2-fix-edition-resolution.37dba57

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.d.ts CHANGED
@@ -48,7 +48,7 @@ export interface SarifLog {
48
48
  * Disk checks are always skipped (there is no package on disk).
49
49
  *
50
50
  * @param files - A map of filename to XML content (e.g. `{ "ASSETMAP.xml": "..." }`)
51
- * @param options - Optional validation options (`coreSpec`, `app2eSpec`, `rules`, `aggregateRepeats`)
51
+ * @param options - Optional validation options (`coreSpec`, `cplSpec`, `app2eSpec`, `rules`, `aggregateRepeats`)
52
52
  * @returns An `ImfReport` with `package`, `cpls`, and `validation` fields.
53
53
  * @throws If the package cannot be parsed or the options are invalid.
54
54
  */
@@ -59,7 +59,7 @@ export declare function buildReport(files: Record<string, string>, options?: Val
59
59
  * `ImfReport` summary. Prefer `validatePath` for new code.
60
60
  *
61
61
  * @param path - Path to the IMP directory
62
- * @param options - Optional validation options (`coreSpec`, `app2eSpec`, `skipDiskChecks`, `rules`, `aggregateRepeats`)
62
+ * @param options - Optional validation options (`coreSpec`, `cplSpec`, `app2eSpec`, `skipDiskChecks`, `rules`, `aggregateRepeats`)
63
63
  * @returns An `ImfReport` with `package`, `cpls`, and `validation` fields.
64
64
  * @throws If the directory cannot be read, the package cannot be parsed, or the options are invalid.
65
65
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imferno/node",
3
- "version": "3.0.2-fix-catalogue-verified-clauses.71bf1fb",
3
+ "version": "3.0.2-fix-edition-resolution.37dba57",
4
4
  "description": "Native Node.js bindings for the imferno SMPTE ST 2067 IMF validator",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -45,12 +45,12 @@
45
45
  "test": "vitest run"
46
46
  },
47
47
  "optionalDependencies": {
48
- "@imferno/node-darwin-arm64": "3.0.2-fix-catalogue-verified-clauses.71bf1fb",
49
- "@imferno/node-darwin-x64": "3.0.2-fix-catalogue-verified-clauses.71bf1fb",
50
- "@imferno/node-linux-x64-gnu": "3.0.2-fix-catalogue-verified-clauses.71bf1fb",
51
- "@imferno/node-linux-arm64-gnu": "3.0.2-fix-catalogue-verified-clauses.71bf1fb",
52
- "@imferno/node-win32-x64-msvc": "3.0.2-fix-catalogue-verified-clauses.71bf1fb",
53
- "@imferno/node-win32-arm64-msvc": "3.0.2-fix-catalogue-verified-clauses.71bf1fb"
48
+ "@imferno/node-darwin-arm64": "3.0.2-fix-edition-resolution.37dba57",
49
+ "@imferno/node-darwin-x64": "3.0.2-fix-edition-resolution.37dba57",
50
+ "@imferno/node-linux-x64-gnu": "3.0.2-fix-edition-resolution.37dba57",
51
+ "@imferno/node-linux-arm64-gnu": "3.0.2-fix-edition-resolution.37dba57",
52
+ "@imferno/node-win32-x64-msvc": "3.0.2-fix-edition-resolution.37dba57",
53
+ "@imferno/node-win32-arm64-msvc": "3.0.2-fix-edition-resolution.37dba57"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"
package/types.d.ts CHANGED
@@ -1460,6 +1460,13 @@ export interface RuleValidationWarning {
1460
1460
  /** Core constraints (ST 2067-2) edition to validate against. `"auto"` detects it from the CPL. */
1461
1461
  export type CoreSpec = "auto" | "v2013" | "v2016" | "v2020";
1462
1462
 
1463
+ /**
1464
+ * Composition Playlist (ST 2067-3) edition to validate against. ST 2067-3:2016
1465
+ * and :2020 share one namespace; `"auto"` applies the newest unless the CPL
1466
+ * uses something only one edition defines, and reports the choice.
1467
+ */
1468
+ export type CplSpec = "auto" | "v2013" | "v2016" | "v2020";
1469
+
1463
1470
  /**
1464
1471
  * App #2E (ST 2067-21) edition to validate against. `"auto"` uses the CPL's
1465
1472
  * ApplicationIdentification; `"none"` skips application-profile validation.
@@ -1470,6 +1477,8 @@ export type App2eSpec = "auto" | "none" | "v2014" | "v2016" | "v2020" | "v2023"
1470
1477
  export interface ValidateOptions {
1471
1478
  /** Core constraints edition. Default: `"auto"`. */
1472
1479
  coreSpec?: CoreSpec;
1480
+ /** Composition Playlist (ST 2067-3) edition. Default: `"auto"`. */
1481
+ cplSpec?: CplSpec;
1473
1482
  /** App #2E edition. Default: `"auto"`. */
1474
1483
  app2eSpec?: App2eSpec;
1475
1484
  /** ESLint-style per-rule severity overrides, keyed by code, rule suffix, glob or `source:<kind>`. */