Releases: commercelayer/drop-in.js
v2.4.1
What's Changed
🚀 Enhancement
- Update all dependencies to the latest minor by @marcomontalbano in #68
📝 Documentation
- Suggesting major version instead of freezing the version by @marcomontalbano in #67
Full Changelog: v2.4.0...v2.4.1
v2.4.0
What's Changed
🚀 Enhancement
- Update dependencies by @marcomontalbano in #65
- Add support to "bundles" by @marcomontalbano in #64
Bundle support
We added a new kind
attribute to the cl-add-to-cart
, cl-price
, and cl-availability
components.
This new attribute indicates whether the code
attribute refers to an sku
(default) or a bundle
.
Important
This feature is not fully implement on the cl-availability
component. When kind
is equal to bundle
no information will be displayed and the component will be rendered as an empty box without any size.
cl-price
<cl-price kind="bundle" code="CLGETTINGSTARTED">
<cl-price-amount type="compare-at"></cl-price-amount>
<cl-price-amount type="price"></cl-price-amount>
</cl-price>
cl-add-to-cart
<cl-add-to-cart kind="bundle" code="CLGETTINGSTARTED" quantity="2">
Add to cart
</cl-add-to-cart>
Full Changelog: v2.3.0...v2.4.0
v2.3.0
What's Changed
🚀 Enhancement
- Migrate to the new authentication endpoint by introducing the auth.js package by @marcomontalbano in #62
- Add support to "subscriptions" by @marcomontalbano in #63
Full Changelog: v2.2.0...v2.3.0
v2.2.0
What's Changed
🚀 Enhancement
- Update dependencies + Storybook v8 + Stencil v4.13 by @marcomontalbano in #61
Full Changelog: v2.1.0...v2.2.0
v2.1.0
What's Changed
🚀 Enhancement
- Update all dependencies to the latest by @marcomontalbano in #47
- The
cl-cart
component now supports express payments (Apple Pay e Google Pay) by @marcomontalbano in #54 - Add
rule
prop to thecl-availability
component by @marcomontalbano in #57
🐛 Bug Fix
- Empty fields when there are no results by @marcomontalbano in #53
📝 Documentation
- Add link to the repository by @marcomontalbano in #45
- Update log messages to improve understandability by @marcomontalbano in #52
- Add scope selector to the documentation by @marcomontalbano in #55
Express checkout
cl-cart
component now supports express checkout buttons for both Apple Pay and Google Pay via Stripe. To enable this feature, you need to activate the auto_payments
option on your Commerce Layer Stripe gateway and configure the necessary settings in your Stripe dashboard.
Full Changelog: v2.0.2...v2.1.0
v2.0.2
What's Changed
🚀 Enhancement
- Update all dependencies to latest by @marcomontalbano in #43
Full Changelog: v2.0.1...v2.0.2
v2.0.1
What's Changed
🐛 Bug Fix
- Add expires to customer cookie and revoke token when logout by @marcomontalbano in #42
Full Changelog: v2.0.0...v2.0.1
v2.0.0
What's Changed
💥 Breaking Change
- Rename
returnUrl
toorderReturnUrl
by @marcomontalbano in #39
🚀 Enhancement
- Integrate with Commerce Layer's Identity and My Account by @marcomontalbano in #35
- Add comments to
@Prop
and generate docs based on them by @marcomontalbano in #37 - Update all dependencies to the latest by @marcomontalbano in #40
📝 Documentation
- Update documentation for Identity and My account by @sfiorucci in #38
Full Changelog: v1.4.0...v2.0.0-beta.0
Breaking Changes
Rename returnUrl
to orderReturnUrl
<script>
(function() {
window.commercelayerConfig = {
clientId: 'kuSKPbeKbU9LG9LjndzieKWRcfiXFuEfO0OYHXKH9J8',
slug: 'drop-in-js',
scope: 'market:11709',
- returnUrl: 'https://example.com'
+ orderReturnUrl: 'https://example.com'
}
}());
</script>
The accessToken
stored in the cookie has changed
If you were using the accessToken
stored in the cookie, you need to know that the cookie value is now a JSON.stringified object.
Below is an example:
{
"type": "guest",
"accessToken": "eyJhbGciOiJIUzUxMiJ9...",
"scope": "market:11709"
}
v2.0.0-beta.0
What's Changed
💥 Breaking Change
- Rename
returnUrl
toorderReturnUrl
by @marcomontalbano in #39
🚀 Enhancement
- Integrate with Commerce Layer's Identity by @marcomontalbano in #35
- Add comments to
@Prop
and generate docs based on them by @marcomontalbano in #37 - Update all dependencies to the latest by @marcomontalbano in #40
📝 Documentation
- Update documentation for Identity and My account by @sfiorucci in #38
Full Changelog: v1.4.0...v2.0.0-beta.0
v1.4.0
What's Changed
🚀 Enhancement
- Update all dependencies to the latest by @marcomontalbano in #31
- Reduce cart requests by @marcomontalbano in #33
📝 Documentation
- Move the minicart to a dedicated page by @marcomontalbano in #32
Full Changelog: v1.3.2...v1.4.0