Releases: 68publishers/amp-client-js
Releases · 68publishers/amp-client-js
v1.7.0
v1.7.0-beta.7
chore: release v1.7.0-beta.7
v1.7.0-beta.6
chore: release v1.7.0-beta.6
v1.7.0-beta.5
chore: release v1.7.0-beta.5
v1.6.1
1.6.1 - 2024-10-11
Added
- Added support for banners closing.
- HTML banners can be simply closed via any element with a data attribute
data-amp-banner-close=""
. - Added the ability to rename events and their parameters using the
metrics.events
andmetrics.params
options. Parameters can also be overwritten for each event separately. - Added the ability to add custom extra parameters for all events using the
metrics.extraParams
option or for each event separately.
Changed
- Changed arguments that are passed to the listeners
amp:banner:attached
,amp:banner:state-changed
,amp:fetch:error
andamp:fetch:success
. Arguments are now passed as an object, so instead of(banner) => {}
it is necessary to write({ banner }) => {}
, respectively({ response }) => {}
in case of eventsamp:fetch:error
andamp:fetch:success
. - Moved
dimensions
field from thepositionData
to the content object of typeimg
according to changes in AMP v2.16.0 API changes. - Updated docs.
Removed
- Removed the
metrics.disabledEvents
option. Events can now be disabled by puttingfalse
next to the event name in themetrics.events
option.
v1.6.0
1.6.0 - 2024-09-19
Added
- Added support for new banner option
fetchpriority
. - Added support for banner options defined in the AMP administration.
Changed
- Updated docs.
Deprecated
- Deprecated the option
loading-offset
. The optionloading
is now processed as an expression.
v1.6.0-beta.7
chore: release v1.6.0-beta.7
v1.6.0-beta.6
chore: release v1.6.0-beta.6
v1.6.0-beta.5
chore: release v1.6.0-beta.5
v1.6.0-beta.3
chore: release v1.6.0-beta.3