@svta/cml-webvtt 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.1.0 - 2026-12-01
Changed
- The
reuseCueparameter ofWebVttParser.parse()no longer has an effect. The parser always keeps the current cue and region between calls. Theparse()form with two arguments is now deprecated. - 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/webvtt.
Fixed
- The published package includes
NOTICE.md. WebVttParser.parse()no longer throws aTypeErrorif a chunk ends inside a cue.WebVttTransformStreamno longer fails if a chunk ends inside a cue.- A REGION block that spans two chunks no longer loses the region settings.
- The parser no longer reads the block after a REGION block with no settings as region settings.
- The parser no longer reports an empty style sheet for a STYLE block with no lines.
- If a region setting or a cue setting occurs more than once, the parser now uses the last valid value.
- The parser now ignores a
lineorpositioncue setting with an invalid alignment, such asline:42%,left. - The
positioncue setting no longer accepts the alignmentauto. - The parser no longer reports a signature error for a file with only CR line breaks.
- The parser no longer replaces the text
u2029in a cue with a line break. The parser now replaces the U+2029 paragraph separator, the same as the U+2028 line separator. - The parser now ends the header at a line with
-->. The cue of that line is no longer lost (#785). - A line with
-->now ends a REGION, STYLE, or NOTE block. The cue of that line is no longer lost (#785). - A timing line after a malformed timing line now starts a new cue (#785).
- The parser now reads a REGION or STYLE block that follows a NOTE block (#785).
- The parser now keeps a cue with an identifier that starts with
REGIONorSTYLE(#785). - The parser no longer reports an error for a file that contains only the
WEBVTTsignature with no line break (#785). - The parser now reads the last block of an input that does not end with a line break (#785).
- The parser no longer drops a timing line after cue text on the last line of the input (#785).
1.0.10 - 2026-10-18
Changed
- README: the usage example prints its results instead of calling an undefined
assert. - 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.0.9 - 2026-09-15
Changed
- Update
@svta/cml-utilsto 1.6.1
1.0.8 - 2026-07-28
Changed
- Update
@svta/cml-utilsto 1.6.0
1.0.7 - 2026-07-21
Fixed
WebVttTransformStreamno longer reads the bareTransformStreamglobal at module scope: importing only non-stream exports is now fully tree-shakeable, and importing the package never throws on runtimes without the Web Streams API. InstantiatingWebVttTransformStreamon such runtimes throws a descriptive error instead (#382)
1.0.6 - 2026-05-13
Changed
- Update
@svta/cml-utilsto 1.5.0
1.0.5 - 2026-02-11
Changed
- Update
@svta/cml-utilsto 1.4.0
1.0.4 - 2026-02-04
Changed
- Update
@svta/cml-utilsto 1.3.0
1.0.3 - 2026-02-03
Changed
- Update
@svta/cml-utilsto 1.2.0
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)