Skip to content

Releases: ampproject/amp-toolbox-php

0.9.1

02 Dec 22:22
e3fcdd9
Compare
Choose a tag to compare

Bugfixes

  • Re-add Attribute::DEFER constant [#430]

0.9.0

02 Dec 19:16
c39d0ed
Compare
Choose a tag to compare

Changes

  • Add TemporaryFileCachedRemoteGetRequest to cache cURL request [#414]

Bugfixes

  • Disable whitespace collapsing by default in MinifyHtml transformer [#429]
  • Use Str helper class to normalize whitespace in MinifyHtml transformer [#421]

Meta

  • Sync spec test suite [#426]

Work-in-progress

  • [WIP] Add AMP Validator [#312]

Note: The AMP Validator is not fully working yet, but parts of its code improvements are needed for other PRs in other repositories.

0.8.2

27 Oct 12:35
fe72826
Compare
Choose a tag to compare

Bugfixes

  • Fix OptimizeViewport order in Optimizer configuration [#396]

0.8.1

26 Oct 10:00
5a40ad6
Compare
Choose a tag to compare

Bugfixes

  • Fix logic for converting the attribute value to string when using Dom\Element::setAttribute() [#394]

0.8.0

23 Oct 06:54
6197885
Compare
Choose a tag to compare

Changes

  • Add AutoExtensions transformer [#210], [#381]
  • Add OptimizeViewport transformer [#373]
  • Add ProtectEsiTags Document filter [#343], [#369]
  • Turn TagWithExtensionSpec into an abstract class [#358] (⚠breaking change)
  • Add $headers argument to RemoteGetRequest::get() [#356]
  • Add Attribute::DEFER [#366]
  • Refactor CLI option retrieval to improve typing [#357] (⚠breaking change)
  • Update documentation for OptimizeHeroImages [#337]

Bugfixes

  • Only merge CSS rules for display:none [#335]
  • Fix PHP 8.1 compatibility issues [#374]

Dependencies

  • Regenerate validator specs and update SpecGenerator and Dumper classes [#384]

Meta

  • Fix outdated PHPStan version in GHA workflow [#368]
  • Sync spec test suite [#375]

0.7.0

27 Aug 16:31
24d3c42
Compare
Choose a tag to compare

Changes

  • Add MinifyHtml transformer [#251]
  • Add MinifyHtml to list of default transformers [#330]
  • Add amp-script minification [#281]
  • Optimize mustache template detection logic in MinifyHtml transformer [#309]
  • Refactor Dom\Document class using filters [#271] (⚠breaking change)
  • Consume bundles.config.extensions.json to amend TagWithExtensionSpec classes with extension version meta [#297]
  • Apply slot="i-amphtml-svc" to i-amphtml-sizer elements. [#316]
  • Allow CSS max byte count enforcement in TransformedIdentifier transformer to be configured [#319]

Bugfixes

  • Preserve mustache tag wrapped in comment inside template element [#305]
  • Add LIBXML_SCHEMA_CREATE flag in Dom\Document filter [#322]
  • Fix missing amp binary in the distribution package [#310]

Dependencies

  • Update validator spec - 2021-07-29 [#296]
  • Regenerate validator spec with new Extension constants [#298]
  • Update sirbrillig/phpcs-variable-analysis requirement from 2.11.1 to 2.11.2 [#273]

Meta

  • Migrate PHPUnit configuration file over to latest schema [#332]
  • Prepare tests for running in process isolation [#329]
  • Add randomly-ordered unit test run to GHA workflow [#328]
  • Disable the Codecov annotations check [#307]
  • Sync spec test suite [#266, #278, #287]

0.6.0

27 Oct 12:40
500012f
Compare
Choose a tag to compare

Changes

  • Add validator spec via code generation [#100, #221]
  • Add option to detect malformed byte sequences [#200]
  • Add comment about mb_detect_encoding() performance [#186]
  • Add SSR support for fluid layout [#181]
  • Add resource hints transformers [#179]
  • Deprecate PreloadHeroImage for OptimizeHeroImages [#262]
  • Disable AMP runtime preloading by default [#261]
  • Add support for amp-onerror on transformed pages (with ESM scripts) [#211, #218]

Bugfixes

  • Correct sort of transformers to fix preload hero images [#209]
  • Skip broken boilerplate error handler spec test [#229]
  • Use maxBytes from Spec instead of hard-coding it [#231]
  • Point OptimizeAmpBind spec tests to valid instead of experimental [#174]

Dependencies

  • Update validator spec - 2021-06-24 [#258]
  • Sync local fallback files [#216]
  • Sync spec test suite [#166, #206, #215, #235, #240, #244, #257]
  • Update sirbrillig/phpcs-variable-analysis requirement from 2.11.0 to 2.11.1 [#250]
  • Update yoast/phpunit-polyfills requirement from ^0.2.0 to ^0.2.0 || ^1.0.0 [#249]

Meta

  • Upgrade to GitHub-native Dependabot [#172]
  • Add codecov token [#230]
  • Add WPCS for inline doc and comments [#254]

0.5.2

06 May 06:37
062370f
Compare
Choose a tag to compare

Bugfixes

  • Skip detecting ASCII when charset is set to "US-ASCII" [#183]

0.5.1

04 May 16:19
f954085
Compare
Choose a tag to compare

Bugfixes

  • Fix collection of preload nodes when v0.js is preloaded [#180]

0.5.0

29 Apr 19:03
41790b0
Compare
Choose a tag to compare

Changes

  • Add OptimizeAmpBind transformer [#162]
  • Add toArray() to transformer configuration [#154]
  • Add missing constants for AMP-WP #6112 [#169]

Meta

  • Replace Codecov bash uploader with GHA counterpart [#158]
  • Fix covers annotation for CLI exceptions and improve overall coverage [#167]