@oim-media/core 1.29.1 → 1.30.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/README.md +1 -1
- package/dist/binary.js +1 -7
- package/dist/compatibility.d.ts +1 -1
- package/dist/compatibility.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ URLs only) and `@oim-media/core/generative` and `@oim-media/core/generative/cata
|
|
|
26
26
|
|
|
27
27
|
- `OimMetadataSchema`, `OvmMetadataSchema`, `OIMOrOVMMetadata`: Zod schemas of the
|
|
28
28
|
metadata. Types `OIMMetadata`, `OVMMetadata`, `Slot`, `TextMark`, `Reveal`, ...
|
|
29
|
-
- `CONTRACT_VERSION`: the contract version this build implements (`"1.
|
|
29
|
+
- `CONTRACT_VERSION`: the contract version this build implements (`"1.30.0"`).
|
|
30
30
|
- `BASE_CONTRACT_VERSION`, `PLAYER_CAPABILITIES`, `VERSION_BY_CAPABILITY`, `minVersionFor`.
|
|
31
31
|
- `MAX_SLOTS`, `MAX_MARKS`, `MARK_NAME`, `PALETTE_NAME_PATTERN`, `CSS_GRADIENT_PATTERN`.
|
|
32
32
|
|
package/dist/binary.js
CHANGED
|
@@ -406,13 +406,7 @@ export async function extractOIMMetadataFromStream(stream) {
|
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
//
|
|
410
|
-
// finding tEXt, there is no need to keep reading megabytes of image blindly.
|
|
411
|
-
if (typeStr === 'IDAT') {
|
|
412
|
-
// In OIM the metadata chunk normally precedes IDAT.
|
|
413
|
-
// If it is absent, abort the stream to save transfer.
|
|
414
|
-
break;
|
|
415
|
-
}
|
|
409
|
+
// No early stop at IDAT: since 2.0 the metadata chunk follows the image.
|
|
416
410
|
if (typeStr === 'IEND')
|
|
417
411
|
break;
|
|
418
412
|
offset += totalChunkSize;
|
package/dist/compatibility.d.ts
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
* the format can change without the player being touched. Tying both numbers
|
|
42
42
|
* together would make an internal fix look like a format break.
|
|
43
43
|
*/
|
|
44
|
-
export declare const CONTRACT_VERSION = "1.
|
|
44
|
+
export declare const CONTRACT_VERSION = "1.30.0";
|
|
45
45
|
/**
|
|
46
46
|
* The first version of the format. Whatever requires nothing more requires this.
|
|
47
47
|
*
|
package/dist/compatibility.js
CHANGED
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
* the format can change without the player being touched. Tying both numbers
|
|
42
42
|
* together would make an internal fix look like a format break.
|
|
43
43
|
*/
|
|
44
|
-
export const CONTRACT_VERSION = "1.
|
|
44
|
+
export const CONTRACT_VERSION = "1.30.0";
|
|
45
|
+
// 1.30.0: OIM_Seal, a signed poster seal after the image, before the metadata; readers that do not know it ignore it.
|
|
45
46
|
// 1.29.1: the 1.x to 2.0 upgrade retires the editor-only textRole field; no format change.
|
|
46
47
|
// 1.29.0: a 2.0 image src can be { ref } to a resources entry of kind image.
|
|
47
48
|
// 1.29.0: the player reads 2.0 files and has a poster attribute; 2.0 conformance vectors ship in @oim-media/spec.
|
package/package.json
CHANGED