@svta/cml-drm changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased
1.2.0 - 2026-11-29
Changed
parsePsshListnow reads the size of each box withreadIsoBoxSizeof@svta/cml-iso-bmff. The public API and the results do not change (#696).ensureEncryptedInitnow throws aRangeErrorfor adefaultKidthat does not have 16 bytes, or has an item outside 0 to 255. Earlier releases write 0 for each missing byte, omit the extra bytes, and write the low 8 bits of an item (#756).ensureEncryptedInitnow acceptsschemeTypeas a four-character string, such as'cbcs', anddefaultKidas aUint8Array. The number andnumber[]forms still work, and the output bytes do not change (#698).ensureEncryptedInitnow reads the boxes withreadIsoBoxesof@svta/cml-iso-bmff2.0.0. The function skips a sample entry that the package returns as a raw box. This change does not change the public API or the output bytes (#682).ensureEncryptedInitnow writes the boxes withwriteIsoBoxesof@svta/cml-iso-bmff2.0.0. That function returns one array. This change does not change the public API or the output bytes (#682).@svta/cml-drmnow needs@svta/cml-iso-bmff2.0.0 or later (#698).ensureEncryptedInitnow reads and writes the sample entries in theboxesfield of thestsdbox, as@svta/cml-iso-bmff2.0.0 returns them. For a source with 0 in the reserved fields of its sample entries, the output bytes do not change (#698).ensureEncryptedInitnow writes 0 in the reserved fields of the sample entries that it copies. Earlier releases keep the bytes of the source entry, such as the revision and the vendor of a QuickTime sound description (#698).ensureEncryptedInitnow builds thetencbox withdefaultIsProtectedanddefaultPerSampleIvSize, as@svta/cml-iso-bmff2.0.0 names the fields. The output bytes do not change (#698).
1.1.13 - 2026-11-17
Changed
concatInitDataIdAndCertificateanddecodeFairPlayLicensenow returnUint8Array<ArrayBuffer>. The result passes to Web APIs such asMediaKeySession.updatewithout a cast under TypeScript 6 and later. The type declarations now need TypeScript 5.7 or later.- The README now has a When to use section. The section names the tasks that the package covers and the entry point of each task.
- The README and the
homepagefield ofpackage.jsonnow link to the package page on the website, cml.svta.org/packages/drm.
Fixed
parsePsshListnow returns for a box with a size of 0. The function reads that box to the end of the data.parsePsshListnow reads thelargesizefield of a box with a size of 1.parsePsshListnow stops before a box that ends after the data, or before a box with a size below the size of its header. The function returns the entries before that box and does not throw.parsePsshListnow skips apsshbox that ends before its data size field. Before, the function read the system ID from the bytes after that box.
1.1.12 - 2026-10-18
Changed
- Both overloads of
parsePsshListnow have a doc comment. - Peer dependency ranges are now caret ranges, for example
^1.6.2instead of1.6.2. A later patch or minor release of a peer no longer requires a new release of this package.
1.1.11 - 2026-09-15
Changed
- Update
@svta/cml-iso-bmffto 1.0.6 - Update
@svta/cml-utilsto 1.6.1 - Update
@svta/cml-xmlto 1.2.1
1.1.10 - 2026-09-03
Changed
- Update
@svta/cml-xmlto 1.2.0 - README: a usage example replaces the empty code block.
1.1.9 - 2026-08-11
Changed
- Update
@svta/cml-iso-bmffto 1.0.5
1.1.8 - 2026-07-28
Changed
- Update
@svta/cml-iso-bmffto 1.0.4 - Update
@svta/cml-utilsto 1.6.0 - Update
@svta/cml-xmlto 1.1.6
1.1.7 - 2026-07-21
Fixed
ensureEncryptedInit's sample-entry reader/writer tables are now built inside side-effect-free (/* @__PURE__ */) initializers so consumer bundlers can drop the tables (and their@svta/cml-iso-bmfffactory imports) whenensureEncryptedInitis unused; runtime import behavior is unchanged (follow-up to the module-scope side-effect audit in #382)- The module-scope
MediaKeys.isTypeSupportedprobe is now marked side-effect free so consumer bundlers can drop it whengetSupportedKeySystemConfigurationis unused (#382)
1.1.6 - 2026-05-13
Changed
- Update
@svta/cml-iso-bmffto 1.0.2 - Update
@svta/cml-utilsto 1.5.0 - Update
@svta/cml-xmlto 1.1.4
1.1.5 - 2026-02-11
Fixed
- Loosen
Uint8Arraytype parameter inensureEncryptedInit
Changed
- Update
@svta/cml-iso-bmffto 1.0.1 - Update
@svta/cml-utilsto 1.4.0
1.1.4 - 2026-02-09
Changed
- Update
@svta/cml-iso-bmffto 1.0.0
1.1.3 - 2026-02-04
Changed
- Update
@svta/cml-iso-bmffto 1.0.0-beta.2 - Update
@svta/cml-utilsto 1.3.0 - Update
@svta/cml-xmlto 1.1.2
1.1.2 - 2026-02-03
Changed
- Update
@svta/cml-utilsto 1.2.0
1.1.1 - 2026-01-20
Changed
- Update
@svta/cml-xmlto 1.1.0
1.1.0 - 2025-01-13
Added
- Added
ensureEncryptedInitutility
1.0.2 - 2025-12-26
Changed
- Update
@svta/cml-utilsto 1.1.0 (#279)
1.0.1 - 2025-12-22
Fixed
- Use fixed version numbers for all CML peer dependencies (#277)