Skip to content

Releases: gsantiago/subtitle.js

v4.1.2

02 Jan 17:23
Compare
Choose a tag to compare
  • Implement filter as a Transform stream to fix piping #77 by @marnusw

v4.1.1

14 Aug 14:18
Compare
Choose a tag to compare
  • Remove decimals from ms

v4.0.1

23 Sep 19:42
8c97504
Compare
Choose a tag to compare
  • Update README
  • Add tests for parser errors

v4.0.0

19 Sep 20:03
abf7831
Compare
Choose a tag to compare
  • Fixes #6 by introducing the stream interface (parse, stringify and resync are now stream-based functions)
  • Add parseSync and stringifySync as synchronous version of parse and stringify
  • Add map and filter to manipulate the parse stream
  • Update the nodes tree so it can support more types than just a cue
  • Refactor the internals by creating the Parser and Formatter classes
  • Format types are now "SRT" and "WebVTT" instead of "srt" and "vtt"

v3.0.0

31 Aug 20:17
b55c0aa
Compare
Choose a tag to compare
  • Rewrite the project with TypeScript
  • Fixes #43 and #39
  • Update the API to export only these functions:
    • parse(input: string): Caption[]
    • stringify(captions: Caption[], options?: { format: 'srt' | 'vtt }): string
    • resync(captions: Caption[], time: number): Caption[]
    • parseTimestamp(timestamp: string): number
    • parseTimestamps(timestamps: string): Timestamp
    • formatTimestamp(timestamp: number, options?: { format: 'srt' | 'vtt' }): string
  • parse supports optional indexes

v2.0.5

28 Aug 21:04
3ae2b92
Compare
Choose a tag to compare
  • Remove zero-fill dependency (now subtitle.js has zero dependencies!
  • Rewrite and refactor tests with Jest
  • Add Prettier and remove Standard
  • Remove some devDependencies