v2.0.0-beta.1
Pre-release
Pre-release
❗ Breaking Changes
- Remove additional fallback when getting the
yearmetadata field forMetadataRetrievermethod.- No longer fallbacks to using
MediaMetadataRetrieverif everything else fails.
- No longer fallbacks to using
- Remove
MediaMetadataPublicFieldsarray & type export.
🎉 Added
- New
updateConfigsfunction.- Customize the max size of the returned base64 image with the
maxImageSizeMBoption.
- Customize the max size of the returned base64 image with the
- New
getBulkMetadatafunction.- Slightly different than
getMetadataas this function won't throw an error. It'll return an object with 2 fields,results&errorswhich contain an array of objects containing the URI & data/error associated with it. - Note: Might be slower than using
getMetadata+Promise.allSettledif you do other things after getting the metadata.
- Slightly different than
- New
saveArtworkfunction.- Allows the user to save the embedded artwork to a file and optionally compress it to save on space.
⚙️ Internal Changes
- Reorganization of code.
- Now "normalize" and put all the field-value pairs inside a map, which we then send the ones we want to return.
- Ensure we release
MetadataRetriever&MediaMetadataRetrieverwhen we're done using them. - Updated example app to use
getBulkMetadata&saveArtworkinstead ofgetMetadata.