cloudcommerce 2.41.11 → 2.41.13

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
@@ -2,6 +2,29 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [2.41.13](https://github.com/ecomplus/cloud-commerce/compare/v2.41.12...v2.41.13) (2025-04-30)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **cli:** Ensure persistent SWR origin set to https on bunny.net edge rule ([03281e8](https://github.com/ecomplus/cloud-commerce/commit/03281e8d47ccd0c6e01bd9080e6c2660b917a354))
11
+ * **deps:** Update non-major dependencies ([#567](https://github.com/ecomplus/cloud-commerce/issues/567)) ([70f5cfb](https://github.com/ecomplus/cloud-commerce/commit/70f5cfbc85e2200186c763e57bb9946263643003))
12
+ * **emails:** Mock default STMP sender to `noreply@e-com.plus` ([eae6e8c](https://github.com/ecomplus/cloud-commerce/commit/eae6e8c419ec227a37d1145b0048cd37d7595cdc))
13
+ * **passport:** Handle email-only passport identification only if doc number is set ([153ea1c](https://github.com/ecomplus/cloud-commerce/commit/153ea1c71ae29dbce672cf3d992afa953bc7e355))
14
+ * **storefront:** Refetch variation prices on cart state update ([9428b9d](https://github.com/ecomplus/cloud-commerce/commit/9428b9dc85e7377a3602eade829a9f5230bc6f2a))
15
+ * **storefront:** Updating checkout vbeta-app script version ([97e57ad](https://github.com/ecomplus/cloud-commerce/commit/97e57ad207707fce71ffef0c9ba38aa6a43014d3))
16
+
17
+ ## [2.41.12](https://github.com/ecomplus/cloud-commerce/compare/v2.41.11...v2.41.12) (2025-04-22)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **deps:** Update non-major dependencies ([#565](https://github.com/ecomplus/cloud-commerce/issues/565)) ([a684290](https://github.com/ecomplus/cloud-commerce/commit/a6842909071afde249f41441717da660bb58c014))
23
+ * **deps:** Update non-major dependencies ([#566](https://github.com/ecomplus/cloud-commerce/issues/566)) ([1a430d5](https://github.com/ecomplus/cloud-commerce/commit/1a430d576e82731ab172c056c2d292f0d7e73119))
24
+ * **discounts:** Multiply kit discount value by qnt groups only when min quantity > 1 ([2aeb46d](https://github.com/ecomplus/cloud-commerce/commit/2aeb46d8b44fa5cb6783cbfa8afbc3c0046266a5))
25
+ * **mandae:** Supporting shipping rules with min kg weight filter ([7bfcba7](https://github.com/ecomplus/cloud-commerce/commit/7bfcba7c52c1d30520c91bbf56a5d17ff1a26adf))
26
+ * **storefront:** Ensure social networks on server data set after global `$storefront` init ([5c4af7d](https://github.com/ecomplus/cloud-commerce/commit/5c4af7dfa626109f6ac02c584529feb88028b509))
27
+
5
28
  ## [2.41.11](https://github.com/ecomplus/cloud-commerce/compare/v2.41.10...v2.41.11) (2025-04-08)
6
29
 
7
30
 
package/action.yml CHANGED
@@ -139,7 +139,7 @@ runs:
139
139
  echo "LIB_PATH=$lib_path" >> $GITHUB_OUTPUT
140
140
  echo "BIN_PATH=${lib_path/\/lib//bin}" >> $GITHUB_OUTPUT
141
141
 
142
- - if: github.event_name == 'push'
142
+ - if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
143
143
  uses: actions/cache@v4
144
144
  id: npm-g-cache
145
145
  with:
@@ -149,7 +149,7 @@ runs:
149
149
  ~/.npm-global/bin
150
150
  key: ${{ runner.os }}-npm-g-firebase-tools-13.35.1-2
151
151
 
152
- - if: github.event_name == 'push'
152
+ - if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
153
153
  name: Ensure firebase-tools is installed
154
154
  shell: bash
155
155
  run: |
@@ -162,7 +162,7 @@ runs:
162
162
  fi
163
163
  fi
164
164
 
165
- - if: github.event_name == 'push'
165
+ - if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
166
166
  uses: dorny/paths-filter@v3.0.2
167
167
  id: changes
168
168
  with:
@@ -174,7 +174,7 @@ runs:
174
174
  ssr:
175
175
  - 'functions/ssr/**'
176
176
 
177
- - if: github.event_name == 'push'
177
+ - if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
178
178
  name: Check functions codebase to deploy
179
179
  shell: bash
180
180
  env:
@@ -262,7 +262,7 @@ runs:
262
262
  echo "ecom_store_id=${ECOM_STORE_ID:-$(cat config.json | jq -r '.storeId')}" >> $GITHUB_ENV
263
263
  echo "git_branch=${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}" >> $GITHUB_ENV
264
264
 
265
- - if: github.event_name == 'push'
265
+ - if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
266
266
  name: Deploy to Firebase live
267
267
  shell: bash
268
268
  env:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloudcommerce",
3
3
  "type": "module",
4
- "version": "2.41.11",
4
+ "version": "2.41.13",
5
5
  "description": "Open fair-code headless commerce platform: API-first, microservices based, event driven and cloud native",
6
6
  "main": "packages/api/lib/index.js",
7
7
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
@@ -28,21 +28,21 @@
28
28
  "@commitlint/cli": "^19.8.0",
29
29
  "@commitlint/config-conventional": "^19.8.0",
30
30
  "@commitlint/rules": "^19.8.0",
31
- "@types/node": "^20.17.28",
32
- "commit-and-tag-version": "^12.5.0",
33
- "dotenv": "^16.4.7",
31
+ "@types/node": "^20.17.32",
32
+ "commit-and-tag-version": "^12.5.1",
33
+ "dotenv": "^16.5.0",
34
34
  "eslint": "^8.57.1",
35
35
  "husky": "^9.1.7",
36
- "lint-staged": "^15.5.0",
36
+ "lint-staged": "^15.5.1",
37
37
  "tailwindcss": "^3.4.17",
38
38
  "ts-node": "^10.9.2",
39
- "turbo": "^2.4.4",
39
+ "turbo": "^2.5.2",
40
40
  "typescript": "~5.8.3",
41
41
  "uglify-js": "^3.19.3",
42
- "vite": "^5.4.17",
42
+ "vite": "^5.4.18",
43
43
  "vitest": "^2.1.9",
44
- "zx": "^8.4.1",
45
- "@cloudcommerce/eslint": "2.41.11"
44
+ "zx": "^8.5.3",
45
+ "@cloudcommerce/eslint": "2.41.13"
46
46
  },
47
47
  "scripts": {
48
48
  "fix-install": "bash scripts/pre-install.sh && pnpm i",
@@ -63,38 +63,35 @@ if (argv.publish) {
63
63
  }
64
64
  });
65
65
  }
66
- for (let ii = 0; ii < storesDirs.length; ii++) {
67
- const storeDir = storesDirs[ii];
68
- cd(`${storeDir}`);
69
- await $`git pull`;
66
+ await Promise.all(storesDirs.map(async (storeDir) => {
67
+ await $`git -C ${storeDir} pull`;
70
68
  for (let iii = 0; iii < functions.length; iii++) {
71
69
  const codebase = functions[iii];
72
- cd(`${storeDir}/functions/${codebase}`);
73
- await $`rm -rf node_modules package-lock.json`;
70
+ const funcDir = `${storeDir}/functions/${codebase}`;
71
+ await $`rm -rf ${funcDir}/node_modules ${funcDir}/package-lock.json`;
74
72
  if (codebase === 'ssr') {
75
- await $`npm i --save @cloudcommerce/{firebase,ssr,api}@${version}`;
76
- await $`npm i --save-dev @cloudcommerce/{storefront,i18n,types}@${version}`;
73
+ await $`npm --prefix ${funcDir} i --save @cloudcommerce/{firebase,ssr,api}@${version}`;
74
+ await $`npm --prefix ${funcDir} i --save-dev @cloudcommerce/{storefront,i18n,types}@${version}`;
77
75
  } else if (codebase === 'many') {
78
- await $`npm i --save @cloudcommerce/{firebase,feeds,passport}@${version}`;
76
+ await $`npm --prefix ${funcDir} i --save @cloudcommerce/{firebase,feeds,passport}@${version}`;
79
77
  } else {
80
- await $`npm i --save @cloudcommerce/{firebase,modules,events}@${version}`;
78
+ await $`npm --prefix ${funcDir} i --save @cloudcommerce/{firebase,modules,events}@${version}`;
81
79
  }
82
- await $`rm -rf node_modules`;
80
+ await $`rm -rf ${funcDir}/node_modules`;
83
81
  }
84
- cd(storeDir);
85
- await $`rm -rf node_modules package-lock.json`;
86
- await $`npm i --save @cloudcommerce/cli@${version}`;
87
- await $`npm i --save-dev @cloudcommerce/eslint@${version}`;
88
- await $`rm -rf node_modules`;
82
+ await $`rm -rf ${storeDir}/node_modules ${storeDir}/package-lock.json`;
83
+ await $`npm --prefix ${storeDir} i --save @cloudcommerce/cli@${version}`;
84
+ await $`npm --prefix ${storeDir} i --save-dev @cloudcommerce/eslint@${version}`;
85
+ await $`rm -rf ${storeDir}/node_modules`;
89
86
  try {
90
- await $`git add package* functions/*/package*`;
91
- await $`git commit -m 'Update to v${version}' \
87
+ await $`git -C ${storeDir} add package* functions/*/package*`;
88
+ await $`git -C ${storeDir} commit -m 'Update to v${version}' \
92
89
  -m 'https://github.com/ecomplus/cloud-commerce/releases/tag/v${version}'`;
93
- await $`git push`;
90
+ await $`git -C ${storeDir} push`;
94
91
  } catch {
95
92
  //
96
93
  }
97
- }
94
+ }));
98
95
  return cd(pwd);
99
96
  });
100
97
  await $`pnpm fix-install`;