cloudcommerce 2.41.12 → 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 +12 -0
- package/action.yml +5 -5
- package/package.json +4 -4
- package/scripts/release.mjs +17 -20
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
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
|
+
|
|
5
17
|
## [2.41.12](https://github.com/ecomplus/cloud-commerce/compare/v2.41.11...v2.41.12) (2025-04-22)
|
|
6
18
|
|
|
7
19
|
|
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.
|
|
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,7 +28,7 @@
|
|
|
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.
|
|
31
|
+
"@types/node": "^20.17.32",
|
|
32
32
|
"commit-and-tag-version": "^12.5.1",
|
|
33
33
|
"dotenv": "^16.5.0",
|
|
34
34
|
"eslint": "^8.57.1",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"lint-staged": "^15.5.1",
|
|
37
37
|
"tailwindcss": "^3.4.17",
|
|
38
38
|
"ts-node": "^10.9.2",
|
|
39
|
-
"turbo": "^2.5.
|
|
39
|
+
"turbo": "^2.5.2",
|
|
40
40
|
"typescript": "~5.8.3",
|
|
41
41
|
"uglify-js": "^3.19.3",
|
|
42
42
|
"vite": "^5.4.18",
|
|
43
43
|
"vitest": "^2.1.9",
|
|
44
44
|
"zx": "^8.5.3",
|
|
45
|
-
"@cloudcommerce/eslint": "2.41.
|
|
45
|
+
"@cloudcommerce/eslint": "2.41.13"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"fix-install": "bash scripts/pre-install.sh && pnpm i",
|
package/scripts/release.mjs
CHANGED
|
@@ -63,38 +63,35 @@ if (argv.publish) {
|
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
|
|
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
|
-
|
|
85
|
-
await $`
|
|
86
|
-
await $`npm i --save @cloudcommerce/
|
|
87
|
-
await $`
|
|
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`;
|