@imferno/node 3.0.2-fix-review-cli-settings.8910c9e → 3.0.2-fix-review-app2e-image.20c2d70

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 CHANGED
@@ -127,13 +127,9 @@ console.log(getVersion()); // e.g. "2.0.0"
127
127
  | `app2eSpec` | `"auto" \| "none" \| "v2014" \| "v2016" \| "v2020" \| "v2023" \| "v2026"` | Application spec version |
128
128
  | `rules` | `Record<string, "off" \| "info" \| "warn" \| "error" \| "critical">` | ESLint-style per-rule severity overrides |
129
129
  | `aggregateRepeats` | `boolean` | Collapse repeated identical findings into one issue with `additional_instances` |
130
- | `skipDiskChecks` | `boolean` | Skip every disk read: asset existence, size and hash checks and MXF checks (path / URI functions only; in-memory input never touches disk) |
131
- | `skipHashes` | `boolean` | Skip hashing the assets; existence and size are still checked (path / URI functions only). Hashes are verified by default, like the CLI |
130
+ | `skipDiskChecks` | `boolean` | Skip file manifest and MXF checks (path / URI functions only; in-memory input never touches disk) |
132
131
  | `credentials` | `S3Credentials \| null` | Explicit S3 credentials (URI functions only) |
133
132
 
134
- An option the function does not accept, or a value of the wrong type, throws
135
- (`null` means not set).
136
-
137
133
  ### TypeScript
138
134
 
139
135
  The package ships precise declarations, generated from the Rust types (no
package/codes.d.ts CHANGED
@@ -185,6 +185,11 @@ export declare const codes: {
185
185
  readonly HtIrvParameterBMax: "ST2067-21/HtIrvParameterBMax";
186
186
  readonly HtIrvParameterBRecommended: "ST2067-21/HtIrvParameterBRecommended";
187
187
  readonly J2K8KResolution: "ST2067-21/J2K8KResolution";
188
+ readonly RefLevelMissing: "ST2067-21/RefLevelMissing";
189
+ readonly DisplayF2Offset: "ST2067-21/DisplayF2Offset";
190
+ readonly J2CLayoutValue: "ST2067-21/J2CLayoutValue";
191
+ readonly PictureEssenceCoding: "ST2067-21/PictureEssenceCoding";
192
+ readonly HtCodestreamConstraints: "ST2067-21/HtCodestreamConstraints";
188
193
  };
189
194
  readonly ST2067_201: {
190
195
  readonly CodecForbidden: "ST2067-201/CodecForbidden";
package/codes.js CHANGED
@@ -185,6 +185,11 @@ const codes = {
185
185
  HtIrvParameterBMax: "ST2067-21/HtIrvParameterBMax",
186
186
  HtIrvParameterBRecommended: "ST2067-21/HtIrvParameterBRecommended",
187
187
  J2K8KResolution: "ST2067-21/J2K8KResolution",
188
+ RefLevelMissing: "ST2067-21/RefLevelMissing",
189
+ DisplayF2Offset: "ST2067-21/DisplayF2Offset",
190
+ J2CLayoutValue: "ST2067-21/J2CLayoutValue",
191
+ PictureEssenceCoding: "ST2067-21/PictureEssenceCoding",
192
+ HtCodestreamConstraints: "ST2067-21/HtCodestreamConstraints",
188
193
  },
189
194
  ST2067_201: {
190
195
  CodecForbidden: "ST2067-201/CodecForbidden",
package/index.d.ts CHANGED
@@ -15,16 +15,8 @@ export { codes } from "./codes";
15
15
 
16
16
  /** Options for validating a package on disk (`validatePath`, `buildReportFromPath`). */
17
17
  export interface PathValidateOptions extends ValidateOptions {
18
- /**
19
- * Skip every disk read: asset presence, size and hash checks and MXF
20
- * header checks (implies `skipHashes`). Only the XML is validated. Default: `false`.
21
- */
18
+ /** Skip file-manifest (size/presence) and MXF header checks. Default: `false`. */
22
19
  skipDiskChecks?: boolean;
23
- /**
24
- * Skip hashing the assets against their Packing List `<Hash>`; presence and
25
- * size are still checked. Hashing reads every asset. Default: `false`.
26
- */
27
- skipHashes?: boolean;
28
20
  }
29
21
 
30
22
  /** Explicit S3 credentials for `s3://` URIs. Omit to use the default AWS credential chain. */
@@ -67,7 +59,7 @@ export declare function buildReport(files: Record<string, string>, options?: Val
67
59
  * `ImfReport` summary. Prefer `validatePath` for new code.
68
60
  *
69
61
  * @param path - Path to the IMP directory
70
- * @param options - Optional validation options (`coreSpec`, `cplSpec`, `iabSpec`, `app2eSpec`, `skipDiskChecks`, `skipHashes`, `rules`, `aggregateRepeats`)
62
+ * @param options - Optional validation options (`coreSpec`, `cplSpec`, `iabSpec`, `app2eSpec`, `skipDiskChecks`, `rules`, `aggregateRepeats`)
71
63
  * @returns An `ImfReport` with `package`, `cpls`, and `validation` fields.
72
64
  * @throws If the directory cannot be read, the package cannot be parsed, or the options are invalid.
73
65
  */
@@ -147,22 +139,17 @@ export declare function toSarif(report: ValidationResult | ValidationReport): Sa
147
139
  * @param files - A map of filename to XML content
148
140
  * @param options - Optional validation options
149
141
  * @returns `{ package, validation }` — the full parsed package and all findings.
150
- * @throws Only if the options are invalid (wrong type, unknown key).
142
+ * @throws Only if the options are invalid.
151
143
  */
152
144
  export declare function validate(files: Record<string, string>, options?: ValidateOptions | undefined | null): ValidationResult
153
145
 
154
146
  /**
155
147
  * Parse and validate an IMF package directory on disk.
156
148
  *
157
- * Like the CLI, checks every asset's presence and size and hashes it against
158
- * its Packing List `<Hash>` unless `skipHashes` (or `skipDiskChecks`) is set.
159
- * Hashing reads every asset and blocks until done.
160
- *
161
149
  * @param path - Path to the IMP directory
162
150
  * @param options - Optional validation options
163
151
  * @returns `{ package, validation }` — the full parsed package and all findings.
164
- * @throws If the directory cannot be read or the options are invalid
165
- * (wrong type, unknown key).
152
+ * @throws If the directory cannot be read or the options are invalid.
166
153
  */
167
154
  export declare function validatePath(path: string, options?: PathValidateOptions | undefined | null): ValidationResult
168
155
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imferno/node",
3
- "version": "3.0.2-fix-review-cli-settings.8910c9e",
3
+ "version": "3.0.2-fix-review-app2e-image.20c2d70",
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-review-cli-settings.8910c9e",
49
- "@imferno/node-darwin-x64": "3.0.2-fix-review-cli-settings.8910c9e",
50
- "@imferno/node-linux-x64-gnu": "3.0.2-fix-review-cli-settings.8910c9e",
51
- "@imferno/node-linux-arm64-gnu": "3.0.2-fix-review-cli-settings.8910c9e",
52
- "@imferno/node-win32-x64-msvc": "3.0.2-fix-review-cli-settings.8910c9e",
53
- "@imferno/node-win32-arm64-msvc": "3.0.2-fix-review-cli-settings.8910c9e"
48
+ "@imferno/node-darwin-arm64": "3.0.2-fix-review-app2e-image.20c2d70",
49
+ "@imferno/node-darwin-x64": "3.0.2-fix-review-app2e-image.20c2d70",
50
+ "@imferno/node-linux-x64-gnu": "3.0.2-fix-review-app2e-image.20c2d70",
51
+ "@imferno/node-linux-arm64-gnu": "3.0.2-fix-review-app2e-image.20c2d70",
52
+ "@imferno/node-win32-x64-msvc": "3.0.2-fix-review-app2e-image.20c2d70",
53
+ "@imferno/node-win32-arm64-msvc": "3.0.2-fix-review-app2e-image.20c2d70"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"
package/types.d.ts CHANGED
@@ -6,18 +6,6 @@
6
6
  * ship their own copy: the WASM build serialises some CPL fields in camelCase.
7
7
  */
8
8
 
9
- export type RuleValidationReason =
10
- | {
11
- kind: "unknown_source";
12
- variant: string;
13
- }
14
- | {
15
- kind: "matches_nothing";
16
- }
17
- | {
18
- hint: string;
19
- kind: "unsupported_pattern";
20
- };
21
9
  /**
22
10
  * A SMPTE IMF UUID, serialised as a bare UUID string (e.g. "0eb3d1b9-b77b-4d3f-bbe5-7c69b15dca85")
23
11
  */
@@ -132,6 +120,7 @@ export type VideoCodec =
132
120
  | "Jpeg2000Imf8k"
133
121
  | "Jpeg2000Broadcast"
134
122
  | "Jpeg2000Ht"
123
+ | "Jpeg2000HtNode"
135
124
  | "Vc5"
136
125
  | "Mpeg2"
137
126
  | "H264"
@@ -218,6 +207,18 @@ export type MimeType =
218
207
  * Mirrors ESLint's `"off"` / `"warn"` / `"error"` vocabulary, extended with the two IMF severity levels.
219
208
  */
220
209
  export type RuleSeverity = "off" | "info" | "warn" | "error" | "critical";
210
+ export type RuleValidationReason =
211
+ | {
212
+ kind: "unknown_source";
213
+ variant: string;
214
+ }
215
+ | {
216
+ kind: "matches_nothing";
217
+ }
218
+ | {
219
+ hint: string;
220
+ kind: "unsupported_pattern";
221
+ };
221
222
 
222
223
  /**
223
224
  * @deprecated
@@ -228,10 +229,6 @@ export type RuleSeverity = "off" | "info" | "warn" | "error" | "critical";
228
229
  export interface ImfReport {
229
230
  cpls: CplReport[];
230
231
  package: PackageSummary;
231
- /**
232
- * Keys of the `rules` option that select no rule (typos, unknown editions); they were ignored. Absent when every key matched.
233
- */
234
- ruleWarnings?: RuleValidationWarning[];
235
232
  validation: ValidationReport;
236
233
  }
237
234
  export interface CplReport {
@@ -322,18 +319,6 @@ export interface UnreferencedAsset {
322
319
  id: string;
323
320
  path: string;
324
321
  }
325
- /**
326
- * A diagnostic about a `RulesConfig` key that the engine couldn't match.
327
- *
328
- * Produced by `RulesConfig::validate`. Operators can use these at config-load time to catch typos before any validation work runs.
329
- */
330
- export interface RuleValidationWarning {
331
- /**
332
- * The configured key that triggered the warning.
333
- */
334
- key: string;
335
- reason: RuleValidationReason;
336
- }
337
322
  /**
338
323
  * Comprehensive validation report
339
324
  */
@@ -1460,6 +1445,18 @@ export interface ValidationResult {
1460
1445
  rule_warnings?: RuleValidationWarning[];
1461
1446
  validation: ValidationReport;
1462
1447
  }
1448
+ /**
1449
+ * A diagnostic about a `RulesConfig` key that the engine couldn't match.
1450
+ *
1451
+ * Produced by `RulesConfig::validate`. Operators can use these at config-load time to catch typos before any validation work runs.
1452
+ */
1453
+ export interface RuleValidationWarning {
1454
+ /**
1455
+ * The configured key that triggered the warning.
1456
+ */
1457
+ key: string;
1458
+ reason: RuleValidationReason;
1459
+ }
1463
1460
 
1464
1461
  /**
1465
1462
  * Core constraints (ST 2067-2) edition to validate against. `"auto"` detects