Skip to content

Releases: 68publishers/amp-client-js

v1.7.0

14 Nov 12:49
Compare
Choose a tag to compare

1.7.0 - 2024-11-14

Added

  • Added new client event amp:banner:mutated.

Changed

  • Banners are now tracked by MutationObserver to be able to send metric events from cloned banners, or close banners with buttons that were added after rendering.

v1.7.0-beta.7

14 Nov 12:39
Compare
Choose a tag to compare
v1.7.0-beta.7 Pre-release
Pre-release
chore: release v1.7.0-beta.7

v1.7.0-beta.6

17 Oct 01:43
Compare
Choose a tag to compare
v1.7.0-beta.6 Pre-release
Pre-release
chore: release v1.7.0-beta.6

v1.7.0-beta.5

16 Oct 23:51
Compare
Choose a tag to compare
v1.7.0-beta.5 Pre-release
Pre-release
chore: release v1.7.0-beta.5

v1.6.1

11 Oct 00:23
Compare
Choose a tag to compare

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 and metrics.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 and amp:fetch:success. Arguments are now passed as an object, so instead of (banner) => {} it is necessary to write ({ banner }) => {}, respectively ({ response }) => {} in case of events amp:fetch:error and amp:fetch:success.
  • Moved dimensions field from the positionData to the content object of type img according to changes in AMP v2.16.0 API changes.
  • Updated docs.

Removed

  • Removed the metrics.disabledEvents option. Events can now be disabled by putting false next to the event name in the metrics.events option.

v1.6.0

19 Sep 15:14
Compare
Choose a tag to compare

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 option loading is now processed as an expression.

v1.6.0-beta.7

03 Sep 16:29
Compare
Choose a tag to compare
v1.6.0-beta.7 Pre-release
Pre-release
chore: release v1.6.0-beta.7

v1.6.0-beta.6

03 Sep 13:52
Compare
Choose a tag to compare
v1.6.0-beta.6 Pre-release
Pre-release
chore: release v1.6.0-beta.6

v1.6.0-beta.5

03 Sep 13:17
Compare
Choose a tag to compare
v1.6.0-beta.5 Pre-release
Pre-release
chore: release v1.6.0-beta.5

v1.6.0-beta.3

29 Aug 02:56
Compare
Choose a tag to compare
v1.6.0-beta.3 Pre-release
Pre-release
chore: release v1.6.0-beta.3