Releases: 68publishers/amp-client-js
Releases 路 68publishers/amp-client-js
v1.5.0
1.5.0 - 2024-04-04
Added
- Added
embed
mode for banners rendering. Embed banners are rendered in iframes and can be enabled via data attributedata-amp-mode="embed"
. - Added a new JS client for use in iframes. It is not intended for direct use on a website.
- Added the property
AMPClientFactory.version
that returns the package version in semver format. - Added attributes
width
andheight
for images if a dimensions are returned by the API.
Changed
- The package has been refactored from CommonJS to ESM.
- Updated dependencies.
- The property
version
on the client now returns an object of typeClientVersion
instead of a simple semver string. - Updated docs.
v1.5.0-beta.4
chore: release v1.5.0-beta.4
v1.4.0
1.4.0 - 2023-12-14
Added
- Added property
version
in the client. - Added integration with server-side rendered banners.
- Added ability to provide custom options for each banner. Options can be passed via data attributes
data-amp-option-<optionName>="<optionValue>"
and can be retrieved in event handlers. - Added support for native lazy loading. Feature can be enabled through banner options
loading=lazy
andloading-offset=<offset>
(for multiple positions only).
Changed
- Property
banner.data
is now deprecated. To access information about a position use propertybanner.positionData
. For example, replacebanner.data.displayType
withbanner.positionData.displayType
. - The default templates have been modified and moved to the
./src/template
directory. - Updated docs.
v1.5.0-beta.3
chore: release v1.5.0-beta.3
v1.5.0-beta.2
chore: release v1.5.0-beta.2
v1.5.0-beta.1
chore: release v1.5.0-beta.1
v1.5.0-beta.0
chore: release v1.5.0-beta.0
v1.4.0-beta.2
chore: release v1.4.0-beta.2
v1.4.0-beta.1
chore: release v1.4.0-beta.1