Skip to content

Changelog

[0.3.0] - 2026-08-09

@media-sdk/core

  • Add MediaCapabilities, MediaOperationCapabilities, and MediaFilterCapabilities types
  • Add capabilities readonly property on PexelsMediaClient and PixabayMediaClient matching the provider capability matrix
  • Add optional capabilities? field on MediaClient interface
  • Add getCapabilities(client) helper with all-false fallback for custom clients
  • Add PhotoSearchFilters and VideoSearchFilters types
  • Extend SearchParams with optional photoFilters and videoFilters
  • Pexels and Pixabay map supported filters to provider wire parameters; unsupported filters throw MediaError with code: "UNSUPPORTED_FILTER"
  • Export isAbortError from the package entry (canonical abort check)
  • Mark Pexels wire types (PexelsPhotoSearchResponse, PexelsVideo, etc.) as @deprecated — removal planned for v1.0
  • Neutral HTTP error messages in FetchHttpClient (no longer Pexels-branded)
  • Remove RequestManager debug console.log lines

@media-sdk/react

  • Add useMediaCapabilities() hook — returns getCapabilities(client) from context
  • useMediaSearch and useMediaVideos forward photoFilters / videoFilters to core unchanged

Error codes

  • UNSUPPORTED_CAPABILITY — method not available on the active provider (e.g. getCuratedPhotos on Pixabay)
  • UNSUPPORTED_FILTER — filter field not supported by the active provider
  • INVALID_FILTER_VALUE — filter value not accepted by the active provider (e.g. unsupported color or orientation)

Full changelog on GitHub