cabloy 5.1.222 → 5.1.224

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 (43) hide show
  1. package/.cabloy-version +1 -1
  2. package/.github/workflows/vona-test-sqlite3.yml +1 -1
  3. package/.github/workflows/vona-tsc.yml +4 -3
  4. package/CHANGELOG.md +23 -0
  5. package/lint-staged.config.mjs +2 -0
  6. package/oxfmt.config.ts +2 -0
  7. package/oxlint.config.ts +2 -0
  8. package/package.json +11 -2
  9. package/repo-docs/reference/repo-scripts.md +31 -0
  10. package/scripts/release.ts +3 -0
  11. package/scripts/runIsolatedTest.test.ts +1 -1
  12. package/scripts/typecheck.test.ts +199 -0
  13. package/scripts/typecheck.ts +20 -0
  14. package/vona/package.original.json +3 -0
  15. package/vona/packages-cli/cli/package.json +1 -1
  16. package/vona/packages-cli/cli-set-api/package.json +2 -2
  17. package/vona/packages-cli/cli-set-api/src/lib/bean/cli.bin.dev.ts +0 -7
  18. package/vona/packages-cli/cli-set-api/src/lib/bean/cli.bin.test.ts +22 -7
  19. package/vona/packages-cli/cli-set-api/src/lib/bean/cli.bin.tsc.ts +34 -5
  20. package/vona/packages-cli/cli-set-api/src/lib/bean/toolsBin/testCleanupProcess.test.ts +1 -1
  21. package/vona/packages-cli/cli-set-api/src/lib/bean/toolsBin/testCleanupProcess.ts +1 -1
  22. package/vona/packages-cli/cli-set-api/src/lib/command/bin.tsc.ts +11 -1
  23. package/vona/packages-cli/cli-set-api/src/lib/typescriptRunner.ts +61 -0
  24. package/vona/packages-cli/cli-set-api/templates/app/register.js +1 -1
  25. package/vona/packages-cli/cli-set-api/templates/config/_tsconfig_project.json +0 -3
  26. package/vona/packages-cli/cli-set-api/templates/config/_tsconfig_source.json +0 -3
  27. package/vona/packages-cli/cli-set-api/test/binTestPatterns.test.ts +57 -0
  28. package/vona/packages-vona/vona/package.json +1 -1
  29. package/vona/pnpm-lock.yaml +455 -117
  30. package/vona/src/suite-vendor/a-cabloy/modules/a-rbac/package.json +1 -1
  31. package/vona/src/suite-vendor/a-cabloy/package.json +2 -2
  32. package/vona/src/suite-vendor/a-vona/modules/a-core/package.json +3 -3
  33. package/vona/src/suite-vendor/a-vona/modules/a-orm/package.json +1 -1
  34. package/vona/src/suite-vendor/a-vona/modules/a-orm/src/common/utils.ts +2 -1
  35. package/vona/src/suite-vendor/a-vona/modules/a-permission/package.json +1 -1
  36. package/vona/src/suite-vendor/a-vona/modules/a-redis/package.json +1 -1
  37. package/vona/src/suite-vendor/a-vona/modules/a-redis/test/redisCleanup.test.ts +1 -1
  38. package/vona/src/suite-vendor/a-vona/modules/a-startup/package.json +1 -1
  39. package/vona/src/suite-vendor/a-vona/modules/a-startup/test/devSeed.test.ts +1 -1
  40. package/vona/src/suite-vendor/a-vona/package.json +1 -1
  41. package/vona/tsconfig.json +1 -4
  42. package/zova/package.original.json +2 -0
  43. package/zova/pnpm-lock.yaml +47 -11
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-module-a-rbac",
3
- "version": "5.0.12",
3
+ "version": "5.0.13",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "Vona Module"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-suite-a-cabloy",
3
- "version": "5.1.63",
3
+ "version": "5.1.64",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "",
6
6
  "author": "",
@@ -10,7 +10,7 @@
10
10
  "vona-module-a-cabloy": "workspace:^",
11
11
  "vona-module-a-layoutprofile": "^5.0.2",
12
12
  "vona-module-a-markdown": "^5.0.3",
13
- "vona-module-a-rbac": "^5.0.12",
13
+ "vona-module-a-rbac": "^5.0.13",
14
14
  "vona-module-a-socket": "workspace:^",
15
15
  "vona-module-a-ssr": "workspace:^",
16
16
  "vona-module-a-ssrhmr": "workspace:^"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-module-a-core",
3
- "version": "5.1.64",
3
+ "version": "5.1.65",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "",
6
6
  "keywords": [
@@ -56,6 +56,7 @@
56
56
  },
57
57
  "devDependencies": {
58
58
  "@cabloy/cli": "workspace:^",
59
+ "@swc-node/register": "^1.12.1",
59
60
  "@swc/core": "^1.15.26",
60
61
  "@swc/helpers": "^0.5.21",
61
62
  "@types/babel__core": "^7.20.5",
@@ -69,7 +70,6 @@
69
70
  "cross-env": "^7.0.3",
70
71
  "gogocode": "^1.0.55",
71
72
  "rimraf": "^6.1.3",
72
- "ts-node-maintained": "^10.9.6",
73
73
  "tslib": "^2.8.1",
74
74
  "typescript": "^5.9.3",
75
75
  "vona-mock": "workspace:^",
@@ -111,6 +111,7 @@
111
111
  },
112
112
  "globalDependenciesDev": {
113
113
  "@cabloy/cli": true,
114
+ "@swc-node/register": true,
114
115
  "@swc/core": true,
115
116
  "@swc/helpers": true,
116
117
  "@types/babel__core": true,
@@ -122,7 +123,6 @@
122
123
  "@types/retry": true,
123
124
  "cross-env": true,
124
125
  "gogocode": true,
125
- "ts-node-maintained": true,
126
126
  "tslib": true,
127
127
  "typescript": true,
128
128
  "vona-mock": true,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-module-a-orm",
3
- "version": "5.1.35",
3
+ "version": "5.1.36",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "db",
6
6
  "keywords": [
@@ -6,6 +6,7 @@ import { prepareClassType } from 'vona-module-a-openapiutils';
6
6
  import type { BeanModelMeta } from '../lib/bean.model/bean.model_meta.ts';
7
7
  import type { TypeModelColumn, TypeModelColumns } from '../types/modelWhere.ts';
8
8
  import type { IDecoratorModelOptions, IModelClassRecord } from '../types/onion/model.ts';
9
+ import type { TypeModelOfModelLike } from '../types/relations.ts';
9
10
 
10
11
  export function isRaw(raw) {
11
12
  return typeof raw?.constructor === 'function' && raw?.constructor?.name === 'Raw';
@@ -39,7 +40,7 @@ export function prepareClassModel<ModelLike extends BeanModelMeta | keyof IModel
39
40
  classType: ModelLike extends BeanModelMeta
40
41
  ? (() => Constructable<ModelLike>) | Constructable<ModelLike>
41
42
  : ModelLike,
42
- ): Constructable<ModelLike> {
43
+ ): Constructable<Extract<TypeModelOfModelLike<ModelLike>, BeanModelMeta>> {
43
44
  if (typeof classType === 'string') {
44
45
  const beanOptions = appResource.getBean(beanFullNameFromOnionName(classType, 'model'));
45
46
  return beanOptions!.beanClass as any;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-module-a-permission",
3
- "version": "5.1.28",
3
+ "version": "5.1.29",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-module-a-redis",
3
- "version": "5.1.18",
3
+ "version": "5.1.19",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "",
6
6
  "keywords": [
@@ -126,7 +126,7 @@ describe('Redis clearAllData ownership', () => {
126
126
  // process rather than mutating the runner's process-global environment.
127
127
  if (process.env.VONA_TEST_RUN_ID !== undefined) {
128
128
  it('runs ordinary-app ownership cases without inheriting the isolated runner ID', async () => {
129
- const loader = import.meta.resolve('ts-node-maintained/esm');
129
+ const loader = import.meta.resolve('@swc-node/register/esm');
130
130
  const projectRoot = new URL('../../../../../../', import.meta.url);
131
131
  const registerSource = `import { register } from 'node:module'; register(${JSON.stringify(loader)}, ${JSON.stringify(projectRoot.href)});`;
132
132
  const env = Object.fromEntries(Object.entries(process.env)) as NodeJS.ProcessEnv;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-module-a-startup",
3
- "version": "5.1.22",
3
+ "version": "5.1.23",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "",
6
6
  "keywords": [
@@ -138,7 +138,7 @@ describe('creation-driven dev seed', { concurrency: false }, () => {
138
138
  // Keep reset-flag mutations out of the managed runner's concurrent test process.
139
139
  if (process.env.VONA_TEST_RUN_ID !== undefined) {
140
140
  it('runs dev seed cases in an isolated process', async () => {
141
- const loader = import.meta.resolve('ts-node-maintained/esm');
141
+ const loader = import.meta.resolve('@swc-node/register/esm');
142
142
  const projectRoot = new URL('../../../../../../', import.meta.url);
143
143
  const registerSource = `import { register } from 'node:module'; register(${JSON.stringify(loader)}, ${JSON.stringify(projectRoot.href)});`;
144
144
  const env = Object.fromEntries(Object.entries(process.env)) as NodeJS.ProcessEnv;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-suite-a-vona",
3
- "version": "5.1.104",
3
+ "version": "5.1.105",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "",
6
6
  "author": "",
@@ -37,8 +37,5 @@
37
37
  "src/backend/play",
38
38
  "src/backend/typing"
39
39
  ],
40
- "exclude": [],
41
- "ts-node": {
42
- "swc": true
43
- }
40
+ "exclude": []
44
41
  }
@@ -25,6 +25,8 @@
25
25
  "preview:spa": "vite preview --outDir=dist/spa-admin",
26
26
  "prerun": "npm run zova :tools:deps && npm run tsc",
27
27
  "tsc": "tsc --noEmit --project tsconfig.vue-tsc.json",
28
+ "tsc:native": "node ../scripts/typecheck.ts native zova --noEmit --incremental false --project tsconfig.vue-tsc.json",
29
+ "tsc:legacy": "node ../scripts/typecheck.ts typescript zova --noEmit --incremental false --project tsconfig.vue-tsc.json",
28
30
  "format": "oxfmt --check",
29
31
  "format:fix": "oxfmt --write",
30
32
  "lint": "oxlint",
@@ -598,11 +598,11 @@ importers:
598
598
  packages-cli/cli:
599
599
  dependencies:
600
600
  '@cabloy/cli':
601
- specifier: ^3.1.29
602
- version: 3.1.29(supports-color@10.2.2)(vue@3.5.42(typescript@5.9.3))
601
+ specifier: ^3.1.30
602
+ version: 3.1.30(supports-color@10.2.2)(vue@3.5.42(typescript@5.9.3))
603
603
  '@cabloy/process-helper':
604
- specifier: ^3.1.8
605
- version: 3.1.8
604
+ specifier: ^3.1.9
605
+ version: 3.1.9
606
606
  fs-extra:
607
607
  specifier: ^11.3.5
608
608
  version: 11.4.0
@@ -610,7 +610,7 @@ importers:
610
610
  specifier: ^7.6.2
611
611
  version: 7.8.5
612
612
  zova-cli-set-front:
613
- specifier: ^1.2.115
613
+ specifier: ^1.2.116
614
614
  version: link:../cli-set-front
615
615
  devDependencies:
616
616
  clean-package:
@@ -632,8 +632,8 @@ importers:
632
632
  specifier: ^7.28.6
633
633
  version: 7.29.7(@babel/core@7.29.7(supports-color@10.2.2))(supports-color@10.2.2)
634
634
  '@cabloy/cli':
635
- specifier: ^3.1.29
636
- version: 3.1.29(supports-color@10.2.2)(vue@3.5.42(typescript@5.9.3))
635
+ specifier: ^3.1.30
636
+ version: 3.1.30(supports-color@10.2.2)(vue@3.5.42(typescript@5.9.3))
637
637
  '@cabloy/extend':
638
638
  specifier: ^3.2.8
639
639
  version: 3.2.8
@@ -1031,7 +1031,7 @@ importers:
1031
1031
  specifier: ^5.1.93
1032
1032
  version: link:../zova-core
1033
1033
  zova-suite-a-zova:
1034
- specifier: ^5.1.171
1034
+ specifier: ^5.1.172
1035
1035
  version: link:../../src/suite-vendor/a-zova
1036
1036
  devDependencies:
1037
1037
  clean-package:
@@ -1294,7 +1294,7 @@ importers:
1294
1294
  specifier: ^5.1.37
1295
1295
  version: link:modules/a-zod
1296
1296
  zova-module-a-zova:
1297
- specifier: ^5.1.109
1297
+ specifier: ^5.1.110
1298
1298
  version: link:modules/a-zova
1299
1299
 
1300
1300
  src/suite-vendor/a-zova/modules/a-api:
@@ -1631,8 +1631,8 @@ importers:
1631
1631
  version: link:../../../../../packages-utils/zova-jsx
1632
1632
  devDependencies:
1633
1633
  '@cabloy/cli':
1634
- specifier: ^3.1.29
1635
- version: 3.1.29(supports-color@10.2.2)(vue@3.5.42(typescript@5.9.3))
1634
+ specifier: ^3.1.30
1635
+ version: 3.1.30(supports-color@10.2.2)(vue@3.5.42(typescript@5.9.3))
1636
1636
  '@types/luxon':
1637
1637
  specifier: ^3.7.1
1638
1638
  version: 3.7.5
@@ -2505,6 +2505,9 @@ packages:
2505
2505
  '@cabloy/cli@3.1.29':
2506
2506
  resolution: {integrity: sha512-2a8VLq6tGrJ5+sNa0JHGFSjRG7HEJWnKZXGmT14eawN7l3qwoQwsRKSfRwaeeOHKa3GfKUOFSco+B+Lf6+q2Mw==}
2507
2507
 
2508
+ '@cabloy/cli@3.1.30':
2509
+ resolution: {integrity: sha512-x8wx31Cv0+iTBkB6RSdw0JSTyULX1qJTZTOPH3VeGCTXZNelikbqrV63m97yqdABgZOPJe5mlF/Jd+UUKhpVgA==}
2510
+
2508
2511
  '@cabloy/compose@2.1.9':
2509
2512
  resolution: {integrity: sha512-b+EB7EDQz7dDdrvFEmRIpGpW0jvDEmYGChSbKx0wzki6AGCj0z3lNm4qnkgM5+CTQIKBU2FmvDcQjU5r6Cj6SA==}
2510
2513
 
@@ -2548,6 +2551,9 @@ packages:
2548
2551
  '@cabloy/process-helper@3.1.8':
2549
2552
  resolution: {integrity: sha512-83nWFHAEc+PlX5YwUso9qK+dd2MAUb/xK2Ea3ALYjCH8+kIq5fyhAABlsuTEPBlaQ1nuLc769cC9dcvrBa14gw==}
2550
2553
 
2554
+ '@cabloy/process-helper@3.1.9':
2555
+ resolution: {integrity: sha512-+IzWt9JtGK1cg1uX/YqbpejmSUNC3EQoCCRxxCvuTzC8GH6a7yJO78q500ctfLMjvnDYfUIH1B+dX5j138VnOA==}
2556
+
2551
2557
  '@cabloy/quasar-app-vite@2.5.10':
2552
2558
  resolution: {integrity: sha512-Eakz4xfhliimv63QNZYukgskNuSBHY0J8cpBd9h5eRIb326QZpCjBWP9MmGq/SQeHpo5KHgDI2a+ggqaVHyWQg==}
2553
2559
  engines: {node: ^30 || ^28 || ^26 || ^24 || ^22, npm: '>= 6.14.12', yarn: '>= 1.17.3'}
@@ -9009,6 +9015,34 @@ snapshots:
9009
9015
  - supports-color
9010
9016
  - vue
9011
9017
 
9018
+ '@cabloy/cli@3.1.30(supports-color@10.2.2)(vue@3.5.42(typescript@5.9.3))':
9019
+ dependencies:
9020
+ '@babel/parser': 7.29.8
9021
+ '@cabloy/module-glob': 5.3.18
9022
+ '@cabloy/module-info': 2.0.3
9023
+ '@cabloy/process-helper': 3.1.9
9024
+ '@cabloy/utils': 2.1.27
9025
+ '@cabloy/word-utils': link:packages-utils/word-utils
9026
+ '@npmcli/config': 10.12.0
9027
+ '@zhennann/common-bin': 4.0.1(supports-color@10.2.2)
9028
+ '@zhennann/ejs': 3.0.1
9029
+ boxen: 4.2.0
9030
+ chalk: 3.0.0
9031
+ cli-table3: 0.6.5
9032
+ deep-equal: 2.2.3
9033
+ enquirer: 2.4.1
9034
+ fs-extra: 11.4.0
9035
+ globby: 16.2.4
9036
+ gogocode: 1.0.55(vue@3.5.42(typescript@5.9.3))
9037
+ is-type-of: 2.2.0
9038
+ istextorbinary: 3.3.0
9039
+ semver: 7.8.5
9040
+ tmp: 0.2.7
9041
+ urllib: 4.9.0
9042
+ transitivePeerDependencies:
9043
+ - supports-color
9044
+ - vue
9045
+
9012
9046
  '@cabloy/compose@2.1.9': {}
9013
9047
 
9014
9048
  '@cabloy/deps@1.1.8': {}
@@ -9084,6 +9118,8 @@ snapshots:
9084
9118
 
9085
9119
  '@cabloy/process-helper@3.1.8': {}
9086
9120
 
9121
+ '@cabloy/process-helper@3.1.9': {}
9122
+
9087
9123
  '@cabloy/quasar-app-vite@2.5.10(@cabloy/vue-router@4.4.18(vue@3.5.42(typescript@5.9.3)))(@types/node@22.20.2)(eslint@10.10.0(jiti@2.7.0)(supports-color@10.2.2))(jiti@2.7.0)(quasar@2.32.2)(rolldown@1.2.14)(sass@1.104.1)(supports-color@10.2.2)(terser@5.51.2)(typescript@5.9.3)(vue@3.5.42(typescript@5.9.3))(yaml@2.9.1)':
9088
9124
  dependencies:
9089
9125
  '@quasar/render-ssr-error': 1.0.4