Changelog
[0.3.0] - 2026-08-09
@media-sdk/core
- Add
MediaCapabilities,MediaOperationCapabilities, andMediaFilterCapabilitiestypes - Add
capabilitiesreadonly property onPexelsMediaClientandPixabayMediaClientmatching the provider capability matrix - Add optional
capabilities?field onMediaClientinterface - Add
getCapabilities(client)helper with all-false fallback for custom clients - Add
PhotoSearchFiltersandVideoSearchFilterstypes - Extend
SearchParamswith optionalphotoFiltersandvideoFilters - Pexels and Pixabay map supported filters to provider wire parameters; unsupported filters throw
MediaErrorwithcode: "UNSUPPORTED_FILTER" - Export
isAbortErrorfrom 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
RequestManagerdebugconsole.loglines
@media-sdk/react
- Add
useMediaCapabilities()hook — returnsgetCapabilities(client)from context useMediaSearchanduseMediaVideosforwardphotoFilters/videoFiltersto core unchanged
Error codes
UNSUPPORTED_CAPABILITY— method not available on the active provider (e.g.getCuratedPhotoson Pixabay)UNSUPPORTED_FILTER— filter field not supported by the active providerINVALID_FILTER_VALUE— filter value not accepted by the active provider (e.g. unsupported color or orientation)