@vc-shell/mf-config 2.0.0-alpha.8 → 2.0.0
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 +54 -9
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/shared-deps.d.ts +5 -0
- package/dist/shared-deps.d.ts.map +1 -1
- package/dist/shared-deps.js +5 -8
- package/dist/shared-deps.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,54 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
# [2.0.0](https://github.com/VirtoCommerce/vc-shell/compare/v1.2.3...v2.0.0) (2026-04-22)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- **mf-host:** import shared deps from mf-config instead of duplicating ([51d2df1](https://github.com/VirtoCommerce/vc-shell/commit/51d2df126ac45ca388c7eb5ce8943fc324938a25))
|
|
8
|
+
- **mf:** extract Module Federation loader into @vc-shell/mf-config and @vc-shell/mf-host ([9b079c2](https://github.com/VirtoCommerce/vc-shell/commit/9b079c27bc1497d89849b909f62c1403eff0c9b4))
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
- topological build order, deprecation fixes, and dependency updates ([bf01eaf](https://github.com/VirtoCommerce/vc-shell/commit/bf01eaf7574eda5ae393941b553cbea5918a768f))
|
|
13
|
+
|
|
14
|
+
### Code Refactoring
|
|
15
|
+
|
|
16
|
+
- **cli,configs,packages:** apply ESLint flat config lint fixes ([394d5ca](https://github.com/VirtoCommerce/vc-shell/commit/394d5caa30f07ff8408dead09c998deabe0c163f))
|
|
17
|
+
|
|
18
|
+
### Styles
|
|
19
|
+
|
|
20
|
+
- **lint:** one-time cleanup of pre-existing violations and tech debt ([a7113c5](https://github.com/VirtoCommerce/vc-shell/commit/a7113c5d25b5b4dc9da20f6bc40c54b57fe46422))
|
|
21
|
+
|
|
22
|
+
### Chores
|
|
23
|
+
|
|
24
|
+
- update package versions and enhance lint/build scripts ([75b8de6](https://github.com/VirtoCommerce/vc-shell/commit/75b8de6e229a3b1c62a37573c714713b943af847))
|
|
25
|
+
|
|
26
|
+
### release
|
|
27
|
+
|
|
28
|
+
- v2.0.0-alpha.10 ([5a9c0af](https://github.com/VirtoCommerce/vc-shell/commit/5a9c0af632a17e2d01dcd0dc07a166aabe6fe903))
|
|
29
|
+
- v2.0.0-alpha.11 ([4e5d63e](https://github.com/VirtoCommerce/vc-shell/commit/4e5d63ee34bb825d8e363e40fbac27e711261f9e))
|
|
30
|
+
- v2.0.0-alpha.12 ([7143a74](https://github.com/VirtoCommerce/vc-shell/commit/7143a74ae0bdd3d70f0133b69d380b82c10526c1))
|
|
31
|
+
- v2.0.0-alpha.13 ([c422678](https://github.com/VirtoCommerce/vc-shell/commit/c42267854f9ed51215e8363165c9bfe077c313a3))
|
|
32
|
+
- v2.0.0-alpha.14 ([0c91031](https://github.com/VirtoCommerce/vc-shell/commit/0c91031706843ccbc2f5d32093c8655c6bbc718f))
|
|
33
|
+
- v2.0.0-alpha.15 ([fa8958e](https://github.com/VirtoCommerce/vc-shell/commit/fa8958e7241117ebff164a2d399f13f74d48b55f))
|
|
34
|
+
- v2.0.0-alpha.16 ([79ab2b1](https://github.com/VirtoCommerce/vc-shell/commit/79ab2b1022258332c327e742ab0adf1b8fde35ce))
|
|
35
|
+
- v2.0.0-alpha.17 ([408e4af](https://github.com/VirtoCommerce/vc-shell/commit/408e4af487f37b8aff790398d5a992820c8f05a2))
|
|
36
|
+
- v2.0.0-alpha.18 ([2466e35](https://github.com/VirtoCommerce/vc-shell/commit/2466e359313c9d78893d2473474ec5ce46ad49ca))
|
|
37
|
+
- v2.0.0-alpha.19 ([9d5a075](https://github.com/VirtoCommerce/vc-shell/commit/9d5a075e0a722c6c7371706f582b59bbf570ef37))
|
|
38
|
+
- v2.0.0-alpha.20 ([98bd4a6](https://github.com/VirtoCommerce/vc-shell/commit/98bd4a62ffa933bbfdae16ef7e46777084f15190))
|
|
39
|
+
- v2.0.0-alpha.21 ([bbd0d70](https://github.com/VirtoCommerce/vc-shell/commit/bbd0d70464ff5c0dafbc67ed3bf8ea36f65b0a7a))
|
|
40
|
+
- v2.0.0-alpha.22 ([ec455eb](https://github.com/VirtoCommerce/vc-shell/commit/ec455eba6bb91ae5fdbea64817ce1650116b9d50))
|
|
41
|
+
- v2.0.0-alpha.23 ([65b2144](https://github.com/VirtoCommerce/vc-shell/commit/65b214434ef1630069aecd6f2eaf916531bf37ef))
|
|
42
|
+
- v2.0.0-alpha.24 ([05ff510](https://github.com/VirtoCommerce/vc-shell/commit/05ff5107b81e0280447872ea52771fc47cb3cd67))
|
|
43
|
+
- v2.0.0-alpha.25 ([19d09b9](https://github.com/VirtoCommerce/vc-shell/commit/19d09b998861836b288aba36a6d18d7b26cff0b7))
|
|
44
|
+
- v2.0.0-alpha.26 ([ee6818c](https://github.com/VirtoCommerce/vc-shell/commit/ee6818ceb60b24d26b7011f2584c8d23f6b4fd3e))
|
|
45
|
+
- v2.0.0-alpha.27 ([f43652d](https://github.com/VirtoCommerce/vc-shell/commit/f43652d1aae8af36d5d2f00312492ea9de57f2f1))
|
|
46
|
+
- v2.0.0-alpha.28 ([7954dfd](https://github.com/VirtoCommerce/vc-shell/commit/7954dfddf1126d00038b8f66a6fe3efc5c19cfe8))
|
|
47
|
+
- v2.0.0-alpha.29 ([ffa72cf](https://github.com/VirtoCommerce/vc-shell/commit/ffa72cf458eed77c78955c88d211a82ead152b0f))
|
|
48
|
+
- v2.0.0-alpha.30 ([2db7f17](https://github.com/VirtoCommerce/vc-shell/commit/2db7f17d74afe97e3c6dfef2de436a797f0c32f4))
|
|
49
|
+
- v2.0.0-alpha.31 ([8d92fba](https://github.com/VirtoCommerce/vc-shell/commit/8d92fbad5954c71164e7815193b3496e569a5703))
|
|
50
|
+
- v2.0.0-alpha.32 ([1ed5533](https://github.com/VirtoCommerce/vc-shell/commit/1ed5533a6a20081e655f2e628bf824de40472f5d))
|
|
51
|
+
- v2.0.0-alpha.33 ([49cad36](https://github.com/VirtoCommerce/vc-shell/commit/49cad36a454534136b52576e6a0d97dfe48ae895))
|
|
52
|
+
- v2.0.0-alpha.34 ([78bed5a](https://github.com/VirtoCommerce/vc-shell/commit/78bed5af3aeb7ace2eb9f58ddde3235fced47b37))
|
|
53
|
+
- v2.0.0-alpha.35 ([05d6f25](https://github.com/VirtoCommerce/vc-shell/commit/05d6f2562c939dd4a2e7e4e7a3d80948beccbef1))
|
|
54
|
+
- v2.0.0-alpha.9 ([ef631bd](https://github.com/VirtoCommerce/vc-shell/commit/ef631bdbccbf2be1afbc592418e680e79d2c1fbe))
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { SHARED_DEP_NAMES, DEFAULT_SHARED, REMOTE_SHARED } from "./shared-deps.js";
|
|
1
|
+
export { SHARED_DEPS_BASE, SHARED_DEP_NAMES, DEFAULT_SHARED, REMOTE_SHARED } from "./shared-deps.js";
|
|
2
2
|
export type { SharedDepConfig } from "./shared-deps.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAClG,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SHARED_DEP_NAMES, DEFAULT_SHARED, REMOTE_SHARED } from "./shared-deps.js";
|
|
1
|
+
export { SHARED_DEPS_BASE, SHARED_DEP_NAMES, DEFAULT_SHARED, REMOTE_SHARED } from "./shared-deps.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/shared-deps.d.ts
CHANGED
|
@@ -4,6 +4,11 @@ export interface SharedDepConfig {
|
|
|
4
4
|
eager?: boolean;
|
|
5
5
|
import?: false | string;
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* Base shared dependency definitions for Module Federation.
|
|
9
|
+
* Both host and remote use the same dep list with singleton negotiation.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SHARED_DEPS_BASE: Record<string, Omit<SharedDepConfig, "import">>;
|
|
7
12
|
/**
|
|
8
13
|
* Canonical list of shared dependency names.
|
|
9
14
|
* This is the SINGLE SOURCE OF TRUTH — loader and build configs import this
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-deps.d.ts","sourceRoot":"","sources":["../src/shared-deps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACzB;
|
|
1
|
+
{"version":3,"file":"shared-deps.d.ts","sourceRoot":"","sources":["../src/shared-deps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC,CAQ5E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAoC,aAAa,CAC5E,KAAK,GAAG,YAAY,GAAG,UAAU,GAAG,cAAc,GAAG,WAAW,GAAG,cAAc,GAAG,qBAAqB,CAC1G,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAA2B,CAAC;AAEvF;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAEzD,CAAC"}
|
package/dist/shared-deps.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Base shared dependency definitions for Module Federation.
|
|
3
3
|
* Both host and remote use the same dep list with singleton negotiation.
|
|
4
4
|
*/
|
|
5
|
-
const SHARED_DEPS_BASE = {
|
|
5
|
+
export const SHARED_DEPS_BASE = {
|
|
6
6
|
vue: { singleton: true, requiredVersion: "^3.4.0" },
|
|
7
|
-
"vue-router": { singleton: true, requiredVersion: "^4.0.0" },
|
|
8
|
-
"vue-i18n": { singleton: true, requiredVersion: "^9.0.0" },
|
|
9
|
-
"vee-validate": { singleton: true },
|
|
7
|
+
"vue-router": { singleton: true, requiredVersion: "^4.0.0 || ^5.0.0" },
|
|
8
|
+
"vue-i18n": { singleton: true, requiredVersion: "^9.0.0 || ^11.0.0" },
|
|
9
|
+
"vee-validate": { singleton: true, requiredVersion: "^4.12.0" },
|
|
10
10
|
"lodash-es": { singleton: true },
|
|
11
11
|
"@vueuse/core": { singleton: true },
|
|
12
12
|
"@vc-shell/framework": { singleton: true },
|
|
@@ -26,8 +26,5 @@ export const DEFAULT_SHARED = { ...SHARED_DEPS_BASE };
|
|
|
26
26
|
* The remote relies entirely on the host to provide these deps at runtime.
|
|
27
27
|
* This eliminates multi-MB fallback bundles (vue, framework, lodash, etc).
|
|
28
28
|
*/
|
|
29
|
-
export const REMOTE_SHARED = Object.fromEntries(Object.entries(SHARED_DEPS_BASE).map(([key, config]) => [
|
|
30
|
-
key,
|
|
31
|
-
{ ...config, import: false },
|
|
32
|
-
]));
|
|
29
|
+
export const REMOTE_SHARED = Object.fromEntries(Object.entries(SHARED_DEPS_BASE).map(([key, config]) => [key, { ...config, import: false }]));
|
|
33
30
|
//# sourceMappingURL=shared-deps.js.map
|
package/dist/shared-deps.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-deps.js","sourceRoot":"","sources":["../src/shared-deps.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,MAAM,gBAAgB,GAAoD;
|
|
1
|
+
{"version":3,"file":"shared-deps.js","sourceRoot":"","sources":["../src/shared-deps.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAoD;IAC/E,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE;IACnD,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE,kBAAkB,EAAE;IACtE,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE,mBAAmB,EAAE;IACrE,cAAc,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE,SAAS,EAAE;IAC/D,WAAW,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;IAChC,cAAc,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;IACnC,qBAAqB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;CAC3C,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAE3D,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAoC,EAAE,GAAG,gBAAgB,EAAE,CAAC;AAEvF;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAoC,MAAM,CAAC,WAAW,CAC9E,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,KAAc,EAAE,CAAC,CAAC,CACtG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/mf-config",
|
|
3
3
|
"description": "Module Federation shared dependency catalog for VC Shell",
|
|
4
|
-
"version": "2.0.0
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "tsc && tsc-alias"
|
|
12
|
+
"build": "echo 'Building @vc-shell/mf-config...' && tsc -b --clean && tsc && tsc-alias && echo '@vc-shell/mf-config built.'"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@vc-shell/ts-config": "2.0.0
|
|
15
|
+
"@vc-shell/ts-config": "2.0.0",
|
|
16
16
|
"tsc-alias": "^1.8.8",
|
|
17
17
|
"typescript": "^5.8.3"
|
|
18
18
|
},
|