cloudcommerce 2.10.4 → 2.10.6
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 +15 -0
- package/ecomplus-stores/barradoce/functions/many/package.json +3 -3
- package/ecomplus-stores/barradoce/functions/ssr/package.json +6 -6
- package/ecomplus-stores/barradoce/functions/ssr/src/env.d.ts +0 -1
- package/ecomplus-stores/barradoce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barradoce/package.json +2 -2
- package/package.json +2 -2
- package/packages/api/package.json +1 -1
- package/packages/apps/affiliate-program/package.json +1 -1
- package/packages/apps/correios/package.json +1 -1
- package/packages/apps/custom-payment/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/datafrete/package.json +1 -1
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +1 -1
- package/packages/apps/fb-conversions/package.json +1 -1
- package/packages/apps/flash-courier/package.json +1 -1
- package/packages/apps/frenet/package.json +1 -1
- package/packages/apps/galaxpay/package.json +1 -1
- package/packages/apps/google-analytics/package.json +1 -1
- package/packages/apps/jadlog/package.json +1 -1
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/mandae/package.json +1 -1
- package/packages/apps/melhor-envio/package.json +1 -1
- package/packages/apps/mercadopago/package.json +1 -1
- package/packages/apps/pagarme/package.json +1 -1
- package/packages/apps/pagarme-v5/package.json +1 -1
- package/packages/apps/paghiper/package.json +1 -1
- package/packages/apps/pix/package.json +1 -1
- package/packages/apps/tiny-erp/package.json +1 -1
- package/packages/apps/webhooks/package.json +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +1 -1
- package/packages/eslint/package.json +1 -1
- package/packages/events/package.json +1 -1
- package/packages/feeds/package.json +1 -1
- package/packages/firebase/package.json +1 -1
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/package.json +2 -2
- package/packages/storefront/astro.config.mjs +3 -2
- package/packages/storefront/package.json +3 -7
- package/packages/storefront/src/env.d.ts +0 -1
- package/packages/storefront/src/images/picture-base.ts +2 -1
- package/packages/storefront/src/lib/components/Picture.astro +2 -1
- package/packages/storefront/src/lib/layouts/BaseHead.astro +2 -0
- package/packages/storefront/tsconfig.json +1 -2
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.10.6](https://github.com/ecomplus/cloud-commerce/compare/v2.10.5...v2.10.6) (2024-04-02)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **storefront:** Bump Astro to latest v4.5.13 ([86f7eb4](https://github.com/ecomplus/cloud-commerce/commit/86f7eb437c5312cf23f3abb5edd8a806aa0f26f5))
|
|
11
|
+
* **storefront:** Removing `vite-plugin-pwa` from tsconfig ([6214bc7](https://github.com/ecomplus/cloud-commerce/commit/6214bc763e59cd9c11be82b743e2b2466459ad1b))
|
|
12
|
+
|
|
13
|
+
### [2.10.5](https://github.com/ecomplus/cloud-commerce/compare/v2.10.4...v2.10.5) (2024-04-02)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **storefront:** Removing `mime` from pkg dependencies to use "peer" Astro dependency semver ([a6e5902](https://github.com/ecomplus/cloud-commerce/commit/a6e59021af547e7fe68c71d75632343dd86564b4))
|
|
19
|
+
|
|
5
20
|
### [2.10.4](https://github.com/ecomplus/cloud-commerce/compare/v2.10.3...v2.10.4) (2024-04-01)
|
|
6
21
|
|
|
7
22
|
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/feeds": "^2.10.
|
|
19
|
-
"@cloudcommerce/firebase": "^2.10.
|
|
20
|
-
"@cloudcommerce/passport": "^2.10.
|
|
18
|
+
"@cloudcommerce/feeds": "^2.10.5",
|
|
19
|
+
"@cloudcommerce/firebase": "^2.10.5",
|
|
20
|
+
"@cloudcommerce/passport": "^2.10.5"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@cloudcommerce/api": "^2.10.
|
|
23
|
-
"@cloudcommerce/firebase": "^2.10.
|
|
24
|
-
"@cloudcommerce/ssr": "^2.10.
|
|
22
|
+
"@cloudcommerce/api": "^2.10.5",
|
|
23
|
+
"@cloudcommerce/firebase": "^2.10.5",
|
|
24
|
+
"@cloudcommerce/ssr": "^2.10.5",
|
|
25
25
|
"@headlessui/vue": "^1.7.18",
|
|
26
26
|
"micromark": "^4.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@cloudcommerce/i18n": "^2.10.
|
|
30
|
-
"@cloudcommerce/storefront": "^2.10.
|
|
31
|
-
"@cloudcommerce/types": "^2.10.
|
|
29
|
+
"@cloudcommerce/i18n": "^2.10.5",
|
|
30
|
+
"@cloudcommerce/storefront": "^2.10.5",
|
|
31
|
+
"@cloudcommerce/types": "^2.10.5",
|
|
32
32
|
"@iconify-json/mingcute": "^1.1.16",
|
|
33
33
|
"photoswipe": "^5.4.3"
|
|
34
34
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference path="../content/types" />
|
|
2
2
|
/// <reference types="astro/client" />
|
|
3
|
-
/// <reference types="vite-plugin-pwa/client" />
|
|
4
3
|
/// <reference types="vue/ref-macros" />
|
|
5
4
|
/// <reference types="@cloudcommerce/storefront/client" />
|
|
6
5
|
/// <reference types="@cloudcommerce/storefront/server" />
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/events": "^2.10.
|
|
19
|
-
"@cloudcommerce/firebase": "^2.10.
|
|
20
|
-
"@cloudcommerce/modules": "^2.10.
|
|
18
|
+
"@cloudcommerce/events": "^2.10.5",
|
|
19
|
+
"@cloudcommerce/firebase": "^2.10.5",
|
|
20
|
+
"@cloudcommerce/modules": "^2.10.5"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"url": "https://github.com/ecomplus/cloud-commerce/issues"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@cloudcommerce/cli": "^2.10.
|
|
29
|
+
"@cloudcommerce/cli": "^2.10.5"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@cloudcommerce/eslint": "^2.10.
|
|
32
|
+
"@cloudcommerce/eslint": "^2.10.5",
|
|
33
33
|
"husky": "^9.0.10",
|
|
34
34
|
"lint-staged": "^15.2.2"
|
|
35
35
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.10.
|
|
4
|
+
"version": "2.10.6",
|
|
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>",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"vite": "^5.2.7",
|
|
37
37
|
"vitest": "^1.4.0",
|
|
38
38
|
"zx": "^7.2.3",
|
|
39
|
-
"@cloudcommerce/eslint": "2.10.
|
|
39
|
+
"@cloudcommerce/eslint": "2.10.6"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"fix-install": "bash scripts/pre-install.sh && pnpm i",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/ssr",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.10.
|
|
4
|
+
"version": "2.10.6",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce storefront SSR",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@cloudcommerce/i18n": "workspace:*",
|
|
39
39
|
"@ecomplus/utils": "1.5.0-rc.6",
|
|
40
40
|
"@vueuse/core": "10.9.0",
|
|
41
|
-
"astro": "4.5.
|
|
41
|
+
"astro": "4.5.13",
|
|
42
42
|
"astro-capo": "^0.0.1",
|
|
43
43
|
"axios": "^1.6.8",
|
|
44
44
|
"firebase-admin": "^12.0.0",
|
|
@@ -6,7 +6,6 @@ import { defineConfig, passthroughImageService } from 'astro/config';
|
|
|
6
6
|
import node from '@astrojs/node';
|
|
7
7
|
import vue from '@astrojs/vue';
|
|
8
8
|
import UnoCSS from 'unocss/astro';
|
|
9
|
-
import AstroPWA from '@vite-pwa/astro';
|
|
10
9
|
import AutoImport from 'unplugin-auto-import/astro';
|
|
11
10
|
import dictionaryDir from '@cloudcommerce/i18n/lib/dirname';
|
|
12
11
|
import getConfig from './config/storefront.config.mjs';
|
|
@@ -164,7 +163,8 @@ viteAlias.push(
|
|
|
164
163
|
|
|
165
164
|
const genAstroConfig = ({
|
|
166
165
|
site = `https://${domain}`,
|
|
167
|
-
|
|
166
|
+
AstroPWA,
|
|
167
|
+
isPWA = true,
|
|
168
168
|
vitePWAOptions = _vitePWAOptions,
|
|
169
169
|
} = {}) => {
|
|
170
170
|
const integrations = [
|
|
@@ -206,6 +206,7 @@ const genAstroConfig = ({
|
|
|
206
206
|
},
|
|
207
207
|
},
|
|
208
208
|
];
|
|
209
|
+
isPWA = isPWA && typeof AstroPWA === 'function';
|
|
209
210
|
if (isPWA && !isSSG) {
|
|
210
211
|
integrations.push(AstroPWA(vitePWAOptions));
|
|
211
212
|
} else {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/storefront",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.10.
|
|
4
|
+
"version": "2.10.6",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce storefront with Astro",
|
|
6
6
|
"bin": {
|
|
7
7
|
"storefront": "./scripts/build-prod.sh"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@astrojs/node": "8.2.5",
|
|
45
|
-
"@astrojs/vue": "4.0.
|
|
45
|
+
"@astrojs/vue": "4.0.10",
|
|
46
46
|
"@cloudcommerce/api": "workspace:*",
|
|
47
47
|
"@cloudcommerce/config": "workspace:*",
|
|
48
48
|
"@cloudcommerce/i18n": "workspace:*",
|
|
@@ -52,23 +52,19 @@
|
|
|
52
52
|
"@iconify-json/heroicons": "^1.1.20",
|
|
53
53
|
"@iconify-json/logos": "^1.1.42",
|
|
54
54
|
"@types/gtag.js": "^0.0.19",
|
|
55
|
-
"@vite-pwa/astro": "^0.3.1",
|
|
56
55
|
"@vueuse/core": "10.9.0",
|
|
57
|
-
"astro": "4.5.
|
|
56
|
+
"astro": "4.5.13",
|
|
58
57
|
"astro-capo": "^0.0.1",
|
|
59
58
|
"chroma-js": "^2.4.2",
|
|
60
59
|
"dotenv": "^16.4.5",
|
|
61
60
|
"firebase": "^10.10.0",
|
|
62
61
|
"image-size": "^1.1.1",
|
|
63
|
-
"mime": "^4.0.1",
|
|
64
62
|
"mitt": "^3.0.1",
|
|
65
63
|
"semver": "^7.6.0",
|
|
66
64
|
"sharp": "^0.32.6",
|
|
67
65
|
"tailwindcss": "^3.4.3",
|
|
68
66
|
"unocss": "^0.58.9",
|
|
69
67
|
"unplugin-auto-import": "^0.17.5",
|
|
70
|
-
"vite": "^5.2.7",
|
|
71
|
-
"vite-plugin-pwa": "^0.19.7",
|
|
72
68
|
"vue": "^3.4.21",
|
|
73
69
|
"wade": "0.3.3",
|
|
74
70
|
"yaml": "^2.4.1"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'astro/types';
|
|
2
2
|
import type { OutputFormat, TransformOptions, GetBuiltImage } from './get-built-image';
|
|
3
|
-
|
|
3
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
4
|
+
import mime from 'mime/lite'; // peer astro dep
|
|
4
5
|
|
|
5
6
|
export interface GetPictureParams {
|
|
6
7
|
src: string /* | ImageMetadata | Promise<{ default: ImageMetadata }> */;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import type { ImageMetadata } from 'astro';
|
|
3
3
|
import { resolve as resolvePath, basename } from 'node:path';
|
|
4
4
|
import { copyFileSync } from 'node:fs';
|
|
5
|
-
|
|
5
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
6
|
+
import mime from 'mime/lite'; // peer astro dep
|
|
6
7
|
import { getImage } from 'astro:assets';
|
|
7
8
|
import imageSize from 'image-size';
|
|
8
9
|
import { createPictureGetter } from '../../images/picture-base';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
// @ts-ignore: tsconfig.json missing `"types": ["vite-plugin-pwa/info"]`
|
|
2
3
|
import { pwaInfo } from 'virtual:pwa-info';
|
|
3
4
|
import { img as getImg, price as getPrice } from '@ecomplus/utils';
|
|
4
5
|
import { i19searchProducts } from '@@i18n';
|
|
@@ -198,6 +199,7 @@ const generator = `e-com.plus @cloudcommerce/storefront, ${Astro.generator}`;
|
|
|
198
199
|
{isPWA && <>
|
|
199
200
|
<script>
|
|
200
201
|
/* eslint-disable */
|
|
202
|
+
// @ts-ignore: tsconfig.json missing `"types": ["vite-plugin-pwa/info"]`
|
|
201
203
|
import { registerSW } from 'virtual:pwa-register';
|
|
202
204
|
registerSW({ immediate: false });
|
|
203
205
|
</script>
|