Releases: ampproject/amp-toolbox-php
Releases · ampproject/amp-toolbox-php
0.9.1
0.9.0
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 inMinifyHtml
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
0.8.1
0.8.0
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 toRemoteGetRequest::get()
[#356] - Add
Attribute::DEFER
[#366] - Refactor CLI option retrieval to improve typing [#357] (⚠breaking change)
- Update documentation for
OptimizeHeroImages
[#337]
Bugfixes
Dependencies
- Regenerate validator specs and update
SpecGenerator
andDumper
classes [#384]
Meta
0.7.0
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 amendTagWithExtensionSpec
classes with extension version meta [#297] - Apply
slot="i-amphtml-svc"
toi-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 inDom\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
0.6.0
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
forOptimizeHeroImages
[#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 tovalid
instead ofexperimental
[#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 from2.11.0
to2.11.1
[#250] - Update
yoast/phpunit-polyfills
requirement from^0.2.0
to^0.2.0 || ^1.0.0
[#249]