cabloy 5.1.139 → 5.1.141

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.
Files changed (65) hide show
  1. package/.cabloy-version +1 -1
  2. package/CHANGELOG.md +17 -0
  3. package/cabloy-docs/fullstack/framework-performance.md +3 -3
  4. package/e2e/specs/a-commerce/commerce.spec.ts +3 -3
  5. package/e2e/specs/cabloy-basic/basic.spec.ts +6 -8
  6. package/package.json +1 -1
  7. package/vona/pnpm-lock.yaml +286 -540
  8. package/vona/pnpm-workspace.yaml +1 -1
  9. package/zova/packages-zova/zova/package.json +2 -2
  10. package/zova/pnpm-lock.yaml +51 -51
  11. package/zova/src/suite/a-commerce/modules/commerce-catalog/src/api/openapi/schemas.ts +0 -11
  12. package/zova/src/suite/a-commerce/modules/commerce-catalog/src/api/openapi/types.ts +23 -170
  13. package/zova/src/suite/a-commerce/modules/commerce-member/src/api/openapi/schemas.ts +0 -11
  14. package/zova/src/suite/a-commerce/modules/commerce-member/src/api/openapi/types.ts +23 -170
  15. package/zova/src/suite/a-commerce/modules/commerce-promotion/src/api/openapi/schemas.ts +0 -11
  16. package/zova/src/suite/a-commerce/modules/commerce-promotion/src/api/openapi/types.ts +23 -170
  17. package/zova/src/suite/a-commerce/modules/commerce-siteadmin/src/api/openapi/schemas.ts +0 -11
  18. package/zova/src/suite/a-commerce/modules/commerce-siteadmin/src/api/openapi/types.ts +23 -170
  19. package/zova/src/suite/a-commerce/modules/commerce-trade/src/api/openapi/schemas.ts +0 -11
  20. package/zova/src/suite/a-commerce/modules/commerce-trade/src/api/openapi/types.ts +23 -170
  21. package/zova/src/suite/a-home/modules/home-api/src/api/openapi/schemas.ts +0 -11
  22. package/zova/src/suite/a-home/modules/home-api/src/api/openapi/types.ts +23 -170
  23. package/zova/src/suite/a-training/modules/training-student/src/api/openapi/schemas.ts +0 -11
  24. package/zova/src/suite/a-training/modules/training-student/src/api/openapi/types.ts +23 -170
  25. package/zova/src/suite/cabloy-basic/modules/basic-file/src/api/openapi/schemas.ts +0 -11
  26. package/zova/src/suite/cabloy-basic/modules/basic-file/src/api/openapi/types.ts +23 -170
  27. package/zova/src/suite/cabloy-basic/modules/basic-image/src/api/openapi/schemas.ts +0 -11
  28. package/zova/src/suite/cabloy-basic/modules/basic-image/src/api/openapi/types.ts +23 -170
  29. package/zova/src/suite-vendor/a-pay/modules/a-pay/package.json +1 -1
  30. package/zova/src/suite-vendor/a-pay/modules/a-pay/src/api/openapi/schemas.ts +0 -11
  31. package/zova/src/suite-vendor/a-pay/modules/a-pay/src/api/openapi/types.ts +23 -170
  32. package/zova/src/suite-vendor/a-pay/modules/pay-mock/package.json +1 -1
  33. package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/api/openapi/schemas.ts +0 -11
  34. package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/api/openapi/types.ts +23 -170
  35. package/zova/src/suite-vendor/a-pay/package.json +3 -3
  36. package/zova/src/suite-vendor/a-zova/modules/a-ssrserver/package.json +1 -1
  37. package/zova/src/suite-vendor/a-zova/modules/a-ssrserver/src/service/ssrHandler.ts +1 -1
  38. package/zova/src/suite-vendor/a-zova/package.json +2 -2
  39. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/package.json +0 -56
  40. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/.metadata/index.ts +0 -404
  41. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/.metadata/locales.ts +0 -18
  42. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/.metadata/this.ts +0 -2
  43. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/bean/bean.paypal.ts +0 -99
  44. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/bean/event.paypalCancelOrder.ts +0 -15
  45. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/bean/event.paypalCaptureOrder.ts +0 -22
  46. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/bean/meta.version.ts +0 -24
  47. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/config/config.ts +0 -14
  48. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/config/errors.ts +0 -3
  49. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/config/locale/en-us.ts +0 -3
  50. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/config/locale/zh-cn.ts +0 -3
  51. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/controller/paypal.ts +0 -39
  52. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/dto/paypalOrderRecordOptions.tsx +0 -31
  53. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/dto/paypalOrderRecordPayload.tsx +0 -18
  54. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/entity/paypalRecord.tsx +0 -30
  55. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/index.ts +0 -3
  56. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/model/paypalRecord.ts +0 -10
  57. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/service/paypal.ts +0 -83
  58. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/types/index.ts +0 -1
  59. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/src/types/paypal.ts +0 -18
  60. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/tsconfig.build.json +0 -11
  61. package/vona/src/suite-vendor/a-paypal/modules/a-paypal/tsconfig.json +0 -7
  62. package/vona/src/suite-vendor/a-paypal/package.json +0 -13
  63. package/vona/src/suite-vendor/a-paypal/tsconfig.base.json +0 -4
  64. package/vona/src/suite-vendor/a-paypal/tsconfig.json +0 -10
  65. /package/vona/patches/{zova-core@5.1.85.patch → zova-core@5.1.86.patch} +0 -0
package/.cabloy-version CHANGED
@@ -1 +1 @@
1
- 5.1.139
1
+ 5.1.141
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.1.141
4
+
5
+ ### Features
6
+
7
+ - Update framework functionality and SSR handling.
8
+
9
+ ### Improvements
10
+
11
+ - Update framework performance documentation.
12
+ - Refactor payment integration code by removing PayPal support.
13
+
14
+ ## 5.1.140
15
+
16
+ ### Improvements
17
+
18
+ - Refresh the Vona Zova Core patch.
19
+
3
20
  ## 5.1.139
4
21
 
5
22
  ## 5.1.138
@@ -42,17 +42,17 @@ For the current public explanation of this backend capability, see [Cache Guide]
42
42
 
43
43
  This is the kind of result Cabloy is designed to support: a framework that stays operationally calm even when the system keeps running for long periods.
44
44
 
45
- One internally generated project was kept running continuously for **35 days**. At one representative PM2 snapshot, the process looked like this:
45
+ One internally generated project was kept running continuously for **2 months**. At one representative PM2 snapshot, the process looked like this:
46
46
 
47
47
  ```text
48
48
  ┌────┬─────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
49
49
  │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
50
50
  ├────┼─────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
51
- │ 0 │ cabloy_*** │ default │ N/A │ cluster │ 226947 │ 21D │ 17 │ online │ 0% │ 427.8mb │ ubuntu │ disabled │
51
+ │ 0 │ cabloy_*** │ default │ N/A │ cluster │ 226947 │ 2M │ 17 │ online │ 0% │ 388.4mb │ ubuntu │ disabled │
52
52
  └────┴─────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
53
53
  ```
54
54
 
55
- For this 35-day continuous run, the observed result was **0 memory leak**.
55
+ For this 2-month continuous run, the observed result was **0 memory leak**.
56
56
 
57
57
  The value of this example is not that it is a synthetic micro-benchmark. The value is that it reflects a real long-running project process with a clear, inspectable runtime footprint.
58
58
 
@@ -216,7 +216,7 @@ test(
216
216
  async ({ page, request }) => {
217
217
  const response = await request.get('/commerce');
218
218
  expect(response.ok()).toBeTruthy();
219
- expect(response.headers()['cache-control']).toBe('public, max-age=600');
219
+ expect(response.headers()['cache-control']).toBe('no-cache, no-store, must-revalidate');
220
220
  const html = await response.text();
221
221
  const normalizedHtml = html.toLowerCase();
222
222
  expect(normalizedHtml).not.toContain('data-zova-hydrated');
@@ -366,7 +366,7 @@ test(
366
366
  );
367
367
 
368
368
  test(
369
- 'Commerce public SSR: theme cookie does not change cacheable HTML',
369
+ 'Commerce public SSR: theme cookie does not change SSR HTML',
370
370
  { tag: ['@web', '@ssr', '@theme'] },
371
371
  async ({ request }) => {
372
372
  const responses = await Promise.all([
@@ -378,7 +378,7 @@ test(
378
378
  for (const [index, response] of responses.entries()) {
379
379
  expect(response.status(), `public response ${index}`).toBe(200);
380
380
  expect(response.headers()['cache-control'], `public response ${index}`).toBe(
381
- 'public, max-age=600',
381
+ 'no-cache, no-store, must-revalidate',
382
382
  );
383
383
  expect(html[index].toLowerCase()).not.toContain('data-zova-hydrated');
384
384
  expect(html[index]).toContain('data-ssr-theme-dark-false="light"');
@@ -115,7 +115,7 @@ test(
115
115
  async ({ page, request }) => {
116
116
  const response = await request.get('/');
117
117
  expect(response.ok()).toBeTruthy();
118
- expect(response.headers()['cache-control']).toBe('public, max-age=600');
118
+ expect(response.headers()['cache-control']).toBe('no-cache, no-store, must-revalidate');
119
119
  const html = await response.text();
120
120
  expect(html.toLowerCase()).not.toContain('data-zova-hydrated');
121
121
  expect(html).not.toContain('ssr-body-ready-observer');
@@ -123,7 +123,9 @@ test(
123
123
 
124
124
  const routeOverrideResponse = await request.get('/demo/basic/routeQueryB');
125
125
  expect(routeOverrideResponse.ok()).toBeTruthy();
126
- expect(routeOverrideResponse.headers()['cache-control']).toBe('public, max-age=300');
126
+ expect(routeOverrideResponse.headers()['cache-control']).toBe(
127
+ 'no-cache, no-store, must-revalidate',
128
+ );
127
129
 
128
130
  const unlocalizedResponse = await request.get('/demo/basic/state');
129
131
  expect(unlocalizedResponse.ok()).toBeTruthy();
@@ -145,7 +147,7 @@ test(
145
147
  );
146
148
 
147
149
  test(
148
- 'ATP-BASIC-SSR-03: concurrent public routes retain their own cache policy',
150
+ 'ATP-BASIC-SSR-03: concurrent public routes are non-cacheable in development',
149
151
  { tag: ['@web', '@smoke'] },
150
152
  async ({ request }) => {
151
153
  const responses = await Promise.all(
@@ -159,11 +161,7 @@ test(
159
161
  for (const [index, response] of responses.entries()) {
160
162
  expect(response.ok(), `response ${index}`).toBeTruthy();
161
163
  expect(response.headers()['cache-control'], `response ${index}`).toBe(
162
- index % 3 === 0
163
- ? 'public, max-age=600'
164
- : index % 3 === 1
165
- ? 'public, max-age=300'
166
- : 'no-cache, no-store, must-revalidate',
164
+ 'no-cache, no-store, must-revalidate',
167
165
  );
168
166
  }
169
167
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cabloy",
3
- "version": "5.1.139",
3
+ "version": "5.1.141",
4
4
  "gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
5
5
  "description": "A Node.js fullstack framework",
6
6
  "keywords": [