Release notes
Upcoming release
Section titled “Upcoming release”Development
Section titled “Development”-
Type Safety: Improved test suite with built-in type checking (#42)
- Added dedicated Vitest configuration with type checking enabled
- Support for declarative type tests using
.test-d.tsfiles - Isolated package type checking to prevent cross-package type leakage
-
Build System: TypeScript and tooling improvements (#45)
- Updated
moduleResolutionto"bundler"for Vite 5+ compatibility - Added
skipLibCheckto avoid third-party type declaration issues - Fixed package.json exports to include explicit types field
- Applied Biome 2.0 formatting with improved import sorting
- Updated
Documentation
Section titled “Documentation”- README overhaul: Enhanced documentation with:
- Better explanation of utility functions and their usage
- Improved installation instructions for different package managers
- More comprehensive examples for each supported platform
- Clearer structure and formatting
Additional details on the next release will go here.
0.1.0-next.10 (2025-01-05)
Section titled “0.1.0-next.10 (2025-01-05)”Breaking Changes
Section titled “Breaking Changes”- Remove
Providerenum in favor of a provider registry or name-based detection.- All references to
Provider.*are removed. getProviderFromUrl(url)now returns an object with a.namefield (e.g."YouTube") instead of an enum entry.ProviderIdFunctionMapandProviderIdUrlFunctionMapno longer needed. Each provider is handled in its own module or by callingconvertUrlToEmbedUrl(url).
- All references to
Enhancements
Section titled “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.
- Each provider has a consistent shape (
- Spotify: Extended detection/embedding beyond just
track,album,playlistto also supportartist,show, andepisodelinks. - Improved TSDoc: Various files now include richer doc comments for Typedoc/TypeDoc generation.
- Refactored unit tests to remove references to the old
Providerenum. - New tests confirm that URL detection works with the new registry approach or direct function calls.
0.1.0-next.9 (2025-01-01)
Section titled “0.1.0-next.9 (2025-01-01)”Maintenance release only, no bug fixes or new features.
Development
Section titled “Development”- Package manager: yarn classic -> pnpm (#29)
0.1.0-next.8 (2024-12-31)
Section titled “0.1.0-next.8 (2024-12-31)”Breaking changes
Section titled “Breaking changes”-
Security: Fixes to mitigate polynomial regex expressions (#24)
- Limit URL lengths for Loom, EdPuzzle, and Wistia
Development
Section titled “Development”-
Move from
prettiertobiome(#27) -
Move from
eslinttooxc(#26)biome(#27)Faster linting, as it is rust-based.
0.1.0-next.7 (2023-11-25)
Section titled “0.1.0-next.7 (2023-11-25)”Breaking changes
Section titled “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 usingURL()constructor directly to test URL validity.
-
-
Deprecation notice
Section titled “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)
Section titled “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)
Section titled “0.1.0-next.5 (2023-10-15)”Breaking changes
Section titled “Breaking changes”0.1.0-next.4 (2023-08-26)
Section titled “0.1.0-next.4 (2023-08-26)”- Prettier: Add css and JS import ordering
0.1.0-next.3 (2023-06-12)
Section titled “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)
Section titled “0.1.0-next.2 (2023-06-12)”-
Include typings
- Add vite-plugin-dts
See commits
0.1.0-next.1 (2023-06-12)
Section titled “0.1.0-next.1 (2023-06-12)”- Fix for package.json
See commits
0.1.0-next.0 (2023-06-12)
Section titled “0.1.0-next.0 (2023-06-12)”- Move to
vite(#8)
See commits
0.0.2-next.1 (2022-11-10)
Section titled “0.0.2-next.1 (2022-11-10)”- Move
jesttodevDependencies
0.0.2-next.0 (2022-11-06)
Section titled “0.0.2-next.0 (2022-11-06)”- Move from
tsdxtorollup(#43)
0.0.1-next.12 (2021-06-02)
Section titled “0.0.1-next.12 (2021-06-02)”- Add
matcherhelper to generate regex matchers - Generic URL regular expression
0.0.1: next.0 - next.11
Section titled “0.0.1: next.0 - next.11”- Added normal documentation: https://social-embed.git-pull.com/lib/
- YouTube: Move back to single file
- #30: Add loom, wistia and edpuzzle