Skip to content

Releases: locomotivemtl/charcoal-contrib-embed

0.2.1

25 Jan 16:18
Compare
Choose a tag to compare

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

17 Jan 22:21
Compare
Choose a tag to compare

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() and assertValidFormat() to EmbedRepository.
  • Added class constants FORMAT_* to EmbedRepositoryInterface to standardize supported formats.
  • Cleaned-up block comments.
  • Sorted PHP imports according to PSR-12.
  • Fixed linting issues and improved syntax.

0.1.7

17 Jan 22:14
Compare
Choose a tag to compare

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 a DataInterface 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

05 Dec 14:54
Compare
Choose a tag to compare
Added support for l10n properties

charcoal-contrib-embed 0.1.4

13 Aug 15:04
a1b7237
Compare
Choose a tag to compare

Update composer dependencies upper cap limit for charcoal-property to ~0.7