Changelog
4.0.0 (2025-01-19)
This is a major release with several breaking changes. See UPGRADING.md for a detailed migration guide.
fallback
option to specify a fallback provider if URL isn't recognizedRemoved Features
API Changes
transformUrl
signature to accept operations and provider options
as separate argumentsparseUrl
return type structure to use operations and provider
terminologygetExtractorForUrl
,
getExtractorForProvider
Function Renames
getImageCdnForUrl
→ getProviderForUrl
getImageCdnForUrlByDomain
→ getProviderForUrlByDomain
getImageCdnForUrlByPath
→ getProviderForUrlByPath
Type System Changes
UrlTransformerOptions
to support typed provider operationsParsedUrl
type in favor of new ParseURLResult
Operations
OperationMap
FormatMap
ImageFormat
ProviderConfig