@speedkit/cli 3.40.0 → 3.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [3.41.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.40.0...v3.41.0) (2026-04-02)
2
+
3
+
4
+ ### Features
5
+
6
+ * **customer-config:** add shopify config plugin and remove custom a2c tracking event ([d96b6cc](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/d96b6cc76685cdc4881f89f5c5de4ac5e1a9e2e5))
7
+
1
8
  # [3.40.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.39.0...v3.40.0) (2026-04-01)
2
9
 
3
10
 
package/README.md CHANGED
@@ -21,7 +21,7 @@ $ npm install -g @speedkit/cli
21
21
  $ sk COMMAND
22
22
  running command...
23
23
  $ sk (--version)
24
- @speedkit/cli/3.40.0 linux-x64 node-v20.20.2
24
+ @speedkit/cli/3.41.0 linux-x64 node-v20.20.2
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -32,7 +32,16 @@
32
32
  /\/backend/i,
33
33
  {{/inline}}
34
34
 
35
+ {{#if isShopify}}
36
+ import { ShopifyPlugin } from "speed-kit-config/ShopifyPlugin";
37
+
38
+ (function() {
39
+ SpeedKit.configPlugins = SpeedKit.configPlugins || [];
40
+ SpeedKit.configPlugins.push(new ShopifyPlugin());
41
+
42
+ {{else}}
35
43
  (function() {
44
+ {{/if}}
36
45
  var ENABLED_HOSTS_CONFIGS = [
37
46
  // Production:
38
47
  {
@@ -237,30 +237,11 @@ import { PredictivePreloading } from 'predictive-preloading/predictivePreloading
237
237
  // },
238
238
  // },
239
239
  {{else}}
240
+
240
241
  {{#if isShopify}}
241
- {
242
- key: "ecAddToCart",
243
- // TODO depending on the used theme different events are in use variant:added, product-ajax:added, product:added
244
- // TODO the correct event can easily spotted by search for the initiator of the /cart/add request after doing a addToCart
245
- on: (callback) => document.addEventListener("product-ajax:added", callback),
246
- append: function (event) {
247
- // TODO depending on the used event the product is exposed under a different property
248
- var product = event.detail.product;
249
-
250
- if (product) {
251
- return {
252
- id: product.product_id,
253
- price: (product.discounted_price ?? product.price) / 100, // price is in cents
254
- currencyCode: window.Shopify?.currency?.active || defaultCurrency,
255
- quantity: product.quantity,
256
- };
257
- }
258
- },
259
- },
260
-
242
+ // No custom ecAddToCart tracking event needed as it is already handled by the speed-kit-config/ShopifyPlugin
261
243
  // No custom ecConversion tracking event as it is already handled by the Speed Kit Extension for Shopify
262
244
  {{else}}
263
-
264
245
  {
265
246
  key: 'ecAddToCart',
266
247
  // TODO: set proper 'on' event listener
@@ -751,5 +751,5 @@
751
751
  ]
752
752
  }
753
753
  },
754
- "version": "3.40.0"
754
+ "version": "3.41.0"
755
755
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@speedkit/cli",
3
3
  "description": "Speed Kit CLI",
4
- "version": "3.40.0",
4
+ "version": "3.41.0",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"