@vc-shell/mf-config 2.0.1 → 2.0.3
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 +10 -0
- package/dist/shared-deps.d.ts +6 -1
- package/dist/shared-deps.d.ts.map +1 -1
- package/dist/shared-deps.js +9 -1
- package/dist/shared-deps.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.0.3](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.2...v2.0.3) (2026-04-30)
|
|
4
|
+
|
|
5
|
+
**Note:** Version bump only for package @vc-shell/mf-config
|
|
6
|
+
|
|
7
|
+
## [2.0.2](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.1...v2.0.2) (2026-04-27)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **mf:** share `@vc-shell/framework` subpath exports to prevent duplicate bundling ([f53f812](https://github.com/VirtoCommerce/vc-shell/commit/f53f812f9dcaae4876847ed03f9552fae737323e))
|
|
12
|
+
|
|
3
13
|
## [2.0.1](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0...v2.0.1) (2026-04-24)
|
|
4
14
|
|
|
5
15
|
**Note:** Version bump only for package @vc-shell/mf-config
|
package/dist/shared-deps.d.ts
CHANGED
|
@@ -7,6 +7,11 @@ export interface SharedDepConfig {
|
|
|
7
7
|
/**
|
|
8
8
|
* Base shared dependency definitions for Module Federation.
|
|
9
9
|
* Both host and remote use the same dep list with singleton negotiation.
|
|
10
|
+
*
|
|
11
|
+
* Subpath entries (e.g. "@vc-shell/framework/ui") are required because Module
|
|
12
|
+
* Federation matches `shared` by exact import specifier — without them, every
|
|
13
|
+
* `from "@vc-shell/framework/ui"` import gets bundled into the remote chunk,
|
|
14
|
+
* producing duplicate framework copies and breaking provide/inject DI.
|
|
10
15
|
*/
|
|
11
16
|
export declare const SHARED_DEPS_BASE: Record<string, Omit<SharedDepConfig, "import">>;
|
|
12
17
|
/**
|
|
@@ -14,7 +19,7 @@ export declare const SHARED_DEPS_BASE: Record<string, Omit<SharedDepConfig, "imp
|
|
|
14
19
|
* This is the SINGLE SOURCE OF TRUTH — loader and build configs import this
|
|
15
20
|
* to build their runtime shared config, ensuring build and runtime stay in sync.
|
|
16
21
|
*/
|
|
17
|
-
export declare const SHARED_DEP_NAMES: ReadonlyArray<"vue" | "vue-router" | "vue-i18n" | "vee-validate" | "lodash-es" | "@vueuse/core" | "@vc-shell/framework">;
|
|
22
|
+
export declare const SHARED_DEP_NAMES: ReadonlyArray<"vue" | "vue-router" | "vue-i18n" | "vee-validate" | "lodash-es" | "@vueuse/core" | "@vc-shell/framework" | "@vc-shell/framework/ui" | "@vc-shell/framework/ai-agent" | "@vc-shell/framework/extensions">;
|
|
18
23
|
/**
|
|
19
24
|
* Shared deps for HOST app — bundles all deps (provides them to remotes).
|
|
20
25
|
*/
|
|
@@ -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;AAED
|
|
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;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC,CAW5E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAoC,aAAa,CAC1E,KAAK,GACL,YAAY,GACZ,UAAU,GACV,cAAc,GACd,WAAW,GACX,cAAc,GACd,qBAAqB,GACrB,wBAAwB,GACxB,8BAA8B,GAC9B,gCAAgC,CACnC,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
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Base shared dependency definitions for Module Federation.
|
|
3
3
|
* Both host and remote use the same dep list with singleton negotiation.
|
|
4
|
+
*
|
|
5
|
+
* Subpath entries (e.g. "@vc-shell/framework/ui") are required because Module
|
|
6
|
+
* Federation matches `shared` by exact import specifier — without them, every
|
|
7
|
+
* `from "@vc-shell/framework/ui"` import gets bundled into the remote chunk,
|
|
8
|
+
* producing duplicate framework copies and breaking provide/inject DI.
|
|
4
9
|
*/
|
|
5
10
|
export const SHARED_DEPS_BASE = {
|
|
6
11
|
vue: { singleton: true, requiredVersion: "^3.4.0" },
|
|
@@ -9,7 +14,10 @@ export const SHARED_DEPS_BASE = {
|
|
|
9
14
|
"vee-validate": { singleton: true, requiredVersion: "^4.12.0" },
|
|
10
15
|
"lodash-es": { singleton: true },
|
|
11
16
|
"@vueuse/core": { singleton: true },
|
|
12
|
-
"@vc-shell/framework": { singleton: true },
|
|
17
|
+
"@vc-shell/framework": { singleton: true, requiredVersion: "^2.0.0" },
|
|
18
|
+
"@vc-shell/framework/ui": { singleton: true, requiredVersion: "^2.0.0" },
|
|
19
|
+
"@vc-shell/framework/ai-agent": { singleton: true, requiredVersion: "^2.0.0" },
|
|
20
|
+
"@vc-shell/framework/extensions": { singleton: true, requiredVersion: "^2.0.0" },
|
|
13
21
|
};
|
|
14
22
|
/**
|
|
15
23
|
* Canonical list of shared dependency names.
|
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
|
|
1
|
+
{"version":3,"file":"shared-deps.js","sourceRoot":"","sources":["../src/shared-deps.ts"],"names":[],"mappings":"AAOA;;;;;;;;GAQG;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,eAAe,EAAE,QAAQ,EAAE;IACrE,wBAAwB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE;IACxE,8BAA8B,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE;IAC9E,gCAAgC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE;CACjF,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAW3D,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.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
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.
|
|
15
|
+
"@vc-shell/ts-config": "2.0.3",
|
|
16
16
|
"tsc-alias": "^1.8.8",
|
|
17
17
|
"typescript": "^5.8.3"
|
|
18
18
|
},
|