Skip to content

chore(main): release 4.0.0#154

Merged
ascorbic merged 4 commits intomainfrom
release-please--branches--main
Jan 19, 2025
Merged

chore(main): release 4.0.0#154
ascorbic merged 4 commits intomainfrom
release-please--branches--main

Conversation

@mixie-bot
Copy link
Copy Markdown
Contributor

@mixie-bot mixie-bot bot commented Dec 15, 2024

🤖 I have created a release beep boop

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 fallback option 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 transformUrl signature to accept operations and provider options
      as separate arguments
    • Updated parseUrl return type structure to use operations and provider
      terminology
    • Added new URL parsing functions: getExtractorForUrl,
      getExtractorForProvider
  • Function Renames

    • getImageCdnForUrlgetProviderForUrl
    • getImageCdnForUrlByDomaingetProviderForUrlByDomain
    • getImageCdnForUrlByPathgetProviderForUrlByPath
    • Old functions marked as deprecated but still available
  • Type System Changes

    • Added generic type support for provider-specific operations
    • Updated UrlTransformerOptions to support typed provider operations
    • Removed ParsedUrl type in favor of new ParseURLResult
    • Added new types for enhanced type safety:
      • Operations
      • OperationMap
      • FormatMap
      • ImageFormat
      • ProviderConfig

This PR was generated with Release Please. See documentation.

@mixie-bot mixie-bot bot force-pushed the release-please--branches--main branch from 0153dc3 to ea2882b Compare January 16, 2025 06:52
@mixie-bot mixie-bot bot force-pushed the release-please--branches--main branch from ea2882b to 4169e55 Compare January 19, 2025 15:04
@ascorbic ascorbic merged commit 32b0584 into main Jan 19, 2025
@mixie-bot
Copy link
Copy Markdown
Contributor Author

mixie-bot bot commented Jan 19, 2025

🤖 Created releases:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant