Releases: ascorbic/unpic
Releases · ascorbic/unpic
v4.2.1
v4.2.0
v4.1.3
v4.1.2
v4.1.1
v4.1.0
v4.0.1
v4.0.0
4.0.0 (2025-01-19)
⚠ BREAKING CHANGES
This is a major release with several breaking changes. See
UPGRADING.md for a detailed migration guide.
New Features
- Added support for provider-specific operations with type safety
- Added support for provider-specific options (e.g., base URLs, project keys)
- Added
fallbackoption to specify a fallback provider if URL isn't recognized
Breaking Changes
-
Removed Features
- Removed delegated URL system
- Removed support for some CDN-specific params in favor of new provider
operations system
-
API Changes
- Removed URL delegation system and canonical URL detection
- Changed
transformUrlsignature to accept operations and provider options
as separate arguments - Updated
parseUrlreturn type structure to use operations and provider
terminology - Added new URL parsing functions:
getExtractorForUrl,
getExtractorForProvider
-
Function Renames
getImageCdnForUrl→getProviderForUrlgetImageCdnForUrlByDomain→getProviderForUrlByDomaingetImageCdnForUrlByPath→getProviderForUrlByPath- Old functions marked as deprecated but still available
-
Type System Changes
- Added generic type support for provider-specific operations
- Updated
UrlTransformerOptionsto support typed provider operations - Removed
ParsedUrltype in favor of newParseURLResult - Added new types for enhanced type safety:
OperationsOperationMapFormatMapImageFormatProviderConfig