Releases: locomotivemtl/charcoal-contrib-embed
Releases · locomotivemtl/charcoal-contrib-embed
0.2.1
Complete commits list: 0.2.0...0.2.1
Summary:
- Removed call to validateTtl from EmbedRepository->embedData(), as it was making a cURL request for each fetched embed if it hadn't been fetched in 60 minutes (default TTL)
0.2.0
Complete commits list: 0.1.7...0.2.0
Summary:
- Updated Composer requirements:
- PHP ^5.6, ^7.2, ^8.0
- embed/embed ^3.4.10 (supports PHP ^5.6, ^7.0, ^8.0)
- guzzlehttp/guzzle ^6.0 (supports PHP >=5.5) or ^7.0 (supports PHP ^7.2.5)
- locomotivemtl/charcoal-property ^0.8 (supports PHP ^5.6, ^7.0)
- Added methods
isValidFormat()
andassertValidFormat()
toEmbedRepository
. - Added class constants
FORMAT_*
toEmbedRepositoryInterface
to standardize supported formats. - Cleaned-up block comments.
- Sorted PHP imports according to PSR-12.
- Fixed linting issues and improved syntax.
0.1.7
Complete commits list: 0.1.6...0.1.7
Summary:
- Fix formatting of embedable URL
- Prevent unnecessary requests to database
- Fetch embed data from third-party if none returned from database
- Refactor
EmbedAwareTrait::resolveEmbedFormat()
:- Reorganized method to return early instead of nesting.
- Changed signature to allow
$format
to be null. - Fixed edge cases where:
&
are already encoded as&
.Embed
would return aDataInterface
instance that contains no HTML.- HTML might be invalid when processed by
DOMDocument
. - HTML does not contain any
<iframe>
elements. - ID in URL can not be correctly matched by regular expression.
charcoal-contrib-embed 0.1.5
Added support for l10n properties
charcoal-contrib-embed 0.1.4
Update composer dependencies upper cap limit for charcoal-property to ~0.7