Release notes
Upcoming release
0.1.0-next.11 (2026-01-01)
Enhancements
- YouTube Shorts support: Added detection and handling for YouTube Shorts URLs (#51)
- New
isYouTubeShortsUrl()helper to detect/shorts/VIDEO_IDpatterns - New
YOUTUBE_SHORTS_DIMENSIONSconstant for portrait aspect ratio (347×616) - Updated
youTubeUrlRegexto capture Shorts video IDs - Fixed regex to properly handle URL fragments (
#) in addition to query parameters
- New
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
-
Domain migration: Documentation links updated from
social-embed.git-pull.comtosocial-embed.org -
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)
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
- 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.
Tests
- 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)
Maintenance release only, no bug fixes or new features.
Development
- Package manager: yarn classic -> pnpm (#29)
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
prettiertobiome(#27) -
Move from
eslinttooxc(#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 usingURL()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
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)
-
Include typings
- Add vite-plugin-dts
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
jesttodevDependencies
0.0.2-next.0 (2022-11-06)
- Move from
tsdxtorollup(#43)
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
- Added normal documentation: https://social-embed.org/lib/
- YouTube: Move back to single file
- #30: Add loom, wistia and edpuzzle