Skip to content

Release notes

Upcoming release

Details on the next release will go here.

0.1.0-next.10 (2025-01-05)

Breaking Changes

  • Remove Provider enum in favor of a provider registry or name-based detection.
    • All references to Provider.* are removed.
    • getProviderFromUrl(url) now returns an object with a .name field (e.g. "YouTube") instead of an enum entry.
    • ProviderIdFunctionMap and ProviderIdUrlFunctionMap no longer needed. Each provider is handled in its own module or by calling convertUrlToEmbedUrl(url).

Enhancements

  • Flexible provider approach:
    • Each provider has a consistent shape (name, getIdFromUrl, getEmbedUrlFromId).
    • A new or custom provider can be added to a registry or used independently without updating an enum.
  • Spotify: Extended detection/embedding beyond just track, album, playlist to also support artist, show, and episode links.
  • Improved TSDoc: Various files now include richer doc comments for Typedoc/TypeDoc generation.

Tests

  • Refactored unit tests to remove references to the old Provider enum.
  • New tests confirm that URL detection works with the new registry approach or direct function calls.

0.1.0-next.9 (2025-01-01)

Maintenance release only, no bug fixes or new features.

Development

0.1.0-next.8 (2024-12-31)

Breaking changes

  • Security: Fixes to mitigate polynomial regex expressions (#24)

    • Limit URL lengths for Loom, EdPuzzle, and Wistia

Development

  • Move from prettier to biome (#27)

  • Move from eslint to oxc (#26) biome (#27)

    Faster linting, as it is rust-based.

0.1.0-next.7 (2023-11-25)

Breaking changes

  • Security: Fixes to mitigate polynomial regex expressions (#17)

    • Add plugins: eslint-plugin-redos-detector (redos-detector)

    • lib(matcher): Cap length to prevent some ReDoS vectors

    • Simplify regexes for EdPuzzle, Loom, Spotify, Wistia, YouTube

    • Remove generic URL regex: This regex is difficult to constrain

      • isValidUrl(): in favor of using URL() constructor directly to test URL validity.

Deprecation notice

  • Regex patterns will be set to be removed in future releases in favor of a typed, URL matching object (interface is to be determined).

0.1.0-next.6 (2023-11-25)

Skipped directly to v0.1.0-next.7 due to publishing error.

0.1.0-next.5 (2023-10-15)

Breaking changes

  • Minimum Node.js version to v18+ (#12)

  • Move from jest to vitest

0.1.0-next.4 (2023-08-26)

  • Prettier: Add css and JS import ordering

0.1.0-next.3 (2023-06-12)

  • package.json: Add typings: 'dist/index.d.ts'

See commits

0.1.0-next.2 (2023-06-12)

See commits

0.1.0-next.1 (2023-06-12)

  • Fix for package.json

See commits

0.1.0-next.0 (2023-06-12)

  • Move to vite (#8)

See commits

0.0.2-next.1 (2022-11-10)

  • Move jest to devDependencies

0.0.2-next.0 (2022-11-06)

  • Move from tsdx to rollup (#43)

0.0.1-next.12 (2021-06-02)

  • Add matcher helper to generate regex matchers
  • Generic URL regular expression

0.0.1: next.0 - next.11