Skip to content

@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 ​

  • parsePsshList now reads the size of each box with readIsoBoxSize of @svta/cml-iso-bmff. The public API and the results do not change (#696).
  • ensureEncryptedInit now throws a RangeError for a defaultKid that 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).
  • ensureEncryptedInit now accepts schemeType as a four-character string, such as 'cbcs', and defaultKid as a Uint8Array. The number and number[] forms still work, and the output bytes do not change (#698).
  • ensureEncryptedInit now reads the boxes with readIsoBoxes of @svta/cml-iso-bmff 2.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).
  • ensureEncryptedInit now writes the boxes with writeIsoBoxes of @svta/cml-iso-bmff 2.0.0. That function returns one array. This change does not change the public API or the output bytes (#682).
  • @svta/cml-drm now needs @svta/cml-iso-bmff 2.0.0 or later (#698).
  • ensureEncryptedInit now reads and writes the sample entries in the boxes field of the stsd box, as @svta/cml-iso-bmff 2.0.0 returns them. For a source with 0 in the reserved fields of its sample entries, the output bytes do not change (#698).
  • ensureEncryptedInit now 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).
  • ensureEncryptedInit now builds the tenc box with defaultIsProtected and defaultPerSampleIvSize, as @svta/cml-iso-bmff 2.0.0 names the fields. The output bytes do not change (#698).

1.1.13 - 2026-11-17 ​

Changed ​

  • concatInitDataIdAndCertificate and decodeFairPlayLicense now return Uint8Array<ArrayBuffer>. The result passes to Web APIs such as MediaKeySession.update without 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 homepage field of package.json now link to the package page on the website, cml.svta.org/packages/drm.

Fixed ​

  • parsePsshList now returns for a box with a size of 0. The function reads that box to the end of the data.
  • parsePsshList now reads the largesize field of a box with a size of 1.
  • parsePsshList now 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.
  • parsePsshList now skips a pssh box 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 parsePsshList now have a doc comment.
  • Peer dependency ranges are now caret ranges, for example ^1.6.2 instead of 1.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-bmff to 1.0.6
  • Update @svta/cml-utils to 1.6.1
  • Update @svta/cml-xml to 1.2.1

1.1.10 - 2026-09-03 ​

Changed ​

  • Update @svta/cml-xml to 1.2.0
  • README: a usage example replaces the empty code block.

1.1.9 - 2026-08-11 ​

Changed ​

  • Update @svta/cml-iso-bmff to 1.0.5

1.1.8 - 2026-07-28 ​

Changed ​

  • Update @svta/cml-iso-bmff to 1.0.4
  • Update @svta/cml-utils to 1.6.0
  • Update @svta/cml-xml to 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-bmff factory imports) when ensureEncryptedInit is unused; runtime import behavior is unchanged (follow-up to the module-scope side-effect audit in #382)
  • The module-scope MediaKeys.isTypeSupported probe is now marked side-effect free so consumer bundlers can drop it when getSupportedKeySystemConfiguration is unused (#382)

1.1.6 - 2026-05-13 ​

Changed ​

  • Update @svta/cml-iso-bmff to 1.0.2
  • Update @svta/cml-utils to 1.5.0
  • Update @svta/cml-xml to 1.1.4

1.1.5 - 2026-02-11 ​

Fixed ​

  • Loosen Uint8Array type parameter in ensureEncryptedInit

Changed ​

  • Update @svta/cml-iso-bmff to 1.0.1
  • Update @svta/cml-utils to 1.4.0

1.1.4 - 2026-02-09 ​

Changed ​

  • Update @svta/cml-iso-bmff to 1.0.0

1.1.3 - 2026-02-04 ​

Changed ​

  • Update @svta/cml-iso-bmff to 1.0.0-beta.2
  • Update @svta/cml-utils to 1.3.0
  • Update @svta/cml-xml to 1.1.2

1.1.2 - 2026-02-03 ​

Changed ​

  • Update @svta/cml-utils to 1.2.0

1.1.1 - 2026-01-20 ​

Changed ​

  • Update @svta/cml-xml to 1.1.0

1.1.0 - 2025-01-13 ​

Added ​

  • Added ensureEncryptedInit utility

1.0.2 - 2025-12-26 ​

Changed ​

  • Update @svta/cml-utils to 1.1.0 (#279)

1.0.1 - 2025-12-22 ​

Fixed ​

  • Use fixed version numbers for all CML peer dependencies (#277)

1.0.0 - 2025-10-24 ​

Changed ​

  • Remove CommonJS exports (#192)
  • Convert to mono-repo (#238)
  • Produce single bundled export for each package (#260)

A Streaming Video Technology Alliance project.