@vc-shell/migrate 2.0.0-alpha.33 → 2.0.0-alpha.34

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 (51) hide show
  1. package/CHANGELOG.md +96 -58
  2. package/README.md +65 -40
  3. package/dist/baseline-versions.d.ts +11 -0
  4. package/dist/baseline-versions.js +52 -0
  5. package/dist/baseline-versions.js.map +1 -0
  6. package/dist/dep-updater.d.ts +7 -0
  7. package/dist/dep-updater.js +44 -15
  8. package/dist/dep-updater.js.map +1 -1
  9. package/dist/file-scanner.js.map +1 -1
  10. package/dist/report-generator.js +41 -1
  11. package/dist/report-generator.js.map +1 -1
  12. package/dist/runner.js +123 -109
  13. package/dist/runner.js.map +1 -1
  14. package/dist/transforms/blade-events-cleanup.d.ts +4 -0
  15. package/dist/transforms/blade-events-cleanup.js +50 -0
  16. package/dist/transforms/blade-events-cleanup.js.map +1 -0
  17. package/dist/transforms/blade-props-simplification.js.map +1 -1
  18. package/dist/transforms/define-app-module.js.map +1 -1
  19. package/dist/transforms/define-expose-to-children.js +18 -4
  20. package/dist/transforms/define-expose-to-children.js.map +1 -1
  21. package/dist/transforms/icon-replace.d.ts +4 -0
  22. package/dist/transforms/icon-replace.js +108 -0
  23. package/dist/transforms/icon-replace.js.map +1 -0
  24. package/dist/transforms/registry.js +57 -2
  25. package/dist/transforms/registry.js.map +1 -1
  26. package/dist/transforms/remove-app-module-options.d.ts +16 -0
  27. package/dist/transforms/remove-app-module-options.js +50 -0
  28. package/dist/transforms/remove-app-module-options.js.map +1 -0
  29. package/dist/transforms/remove-expose-title.d.ts +4 -0
  30. package/dist/transforms/remove-expose-title.js +52 -0
  31. package/dist/transforms/remove-expose-title.js.map +1 -0
  32. package/dist/transforms/remove-global-components.d.ts +8 -0
  33. package/dist/transforms/remove-global-components.js +236 -0
  34. package/dist/transforms/remove-global-components.js.map +1 -0
  35. package/dist/transforms/replace-cover-method.js +2 -6
  36. package/dist/transforms/replace-cover-method.js.map +1 -1
  37. package/dist/transforms/use-blade-form.js +2 -2
  38. package/dist/transforms/use-blade-form.js.map +1 -1
  39. package/dist/transforms/use-data-table-pagination-audit.d.ts +4 -0
  40. package/dist/transforms/use-data-table-pagination-audit.js +42 -0
  41. package/dist/transforms/use-data-table-pagination-audit.js.map +1 -0
  42. package/dist/transforms/vc-blade-loading-prop.d.ts +4 -0
  43. package/dist/transforms/vc-blade-loading-prop.js +89 -0
  44. package/dist/transforms/vc-blade-loading-prop.js.map +1 -0
  45. package/dist/transforms/widgets-migration.js +3 -2
  46. package/dist/transforms/widgets-migration.js.map +1 -1
  47. package/dist/utils/import-dedup.js +1 -1
  48. package/dist/utils/import-dedup.js.map +1 -1
  49. package/dist/utils/test-helpers.js +17 -1
  50. package/dist/utils/test-helpers.js.map +1 -1
  51. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,46 +1,88 @@
1
- # [2.0.0-alpha.33](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.32...v2.0.0-alpha.33) (2026-04-14)
1
+ # [2.0.0-alpha.34](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.33...v2.0.0-alpha.34) (2026-04-22)
2
+
3
+
4
+ * refactor!: remove global component and directive registration ([7643d8f](https://github.com/VirtoCommerce/vc-shell/commit/7643d8fcba40bdd4d5e6a8be244a6c1978eec3fb))
2
5
 
3
6
 
4
7
  ### Bug Fixes
5
8
 
6
- * **migrate:** fix 7 critical bugs found during real-app testing ([41688a1](https://github.com/VirtoCommerce/vc-shell/commit/41688a164250d397c51b6007953bc112f63ee4b9))
7
- * **migrate:** improve useBladeForm diagnostic onBeforeClose must be removed, show closeConfirmMessage example ([274bf9a](https://github.com/VirtoCommerce/vc-shell/commit/274bf9aac965b8c8cecada58d7959d547da7f52b))
9
+ * **migrate:** --transform bypasses version filter ([85072d1](https://github.com/VirtoCommerce/vc-shell/commit/85072d1059a3dbda11259cdbe80899ce3bf50c6a))
10
+ * **migrate:** --update-deps at same version + baseline drift check ([39fea4a](https://github.com/VirtoCommerce/vc-shell/commit/39fea4a6fb243766dbc1f1d31a0c207741a98dd0))
11
+ * **migrate:** define-expose-to-children adds useBlade import when missing ([ee7ed7d](https://github.com/VirtoCommerce/vc-shell/commit/ee7ed7db0ba16f2669d59b75b7a35385088feeee))
12
+
13
+
14
+ ### Features
15
+
16
+ * **migrate, configs, scripts:** peer-versions.json as canonical source ([3199202](https://github.com/VirtoCommerce/vc-shell/commit/3199202ad190d9260b4bec99f6839232ebcfa839))
17
+ * **migrate:** add remove-expose-title and remove-app-module-options ([3a76ff7](https://github.com/VirtoCommerce/vc-shell/commit/3a76ff738fd9ef99fd96acd821280f8a7d66b210))
18
+ * **migrate:** add use-data-table-pagination-audit + AI migration prompt ([0c2e7b6](https://github.com/VirtoCommerce/vc-shell/commit/0c2e7b6efba387d9fafe04e5bdcd21ea20500259))
19
+ * **migrate:** add vc-blade-loading-prop transform ([0cb72f3](https://github.com/VirtoCommerce/vc-shell/commit/0cb72f39bc55a98cab0c9a786a1da3bb52e75d3e))
20
+ * **migrate:** expand v2 migration tooling — icon/asset/audit prompts and blade-event cleanup ([f4788d4](https://github.com/VirtoCommerce/vc-shell/commit/f4788d4d9c588157ca5c11facfe558a69c254c2e)), closes [#41](https://github.com/VirtoCommerce/vc-shell/issues/41)
21
+ * **tests:** enhance test helpers and add vitest environment for consistency ([6cd30ac](https://github.com/VirtoCommerce/vc-shell/commit/6cd30ac65b83dd756803b9ccb4278bd8679be930))
22
+
8
23
 
24
+ ### BREAKING CHANGES
25
+
26
+ * Framework no longer registers Vc* components and
27
+ directives globally via app.component()/app.directive(). All 64 UI
28
+ components and 2 directives (v-loading, v-autofocus) must now be
29
+ explicitly imported from @vc-shell/framework/ui.
30
+
31
+ - Delete global-components.ts type augmentation
32
+ - Remove registerComponentsAndDirectives() from framework plugin
33
+ - Remove GlobalComponents augmentations from 10 module/shell files
34
+ - Remove app.component() registration from blade-navigation plugin
35
+ - Add explicit imports to 25 framework .vue files
36
+ - Add vLoading/vAutofocus directive aliases for Vue auto-registration
37
+ - Add VcLanguageSelector to molecules barrel export
38
+ - Add directive re-export to @vc-shell/framework/ui entry point
39
+ - Add remove-global-components CLI migrator transform with 6 tests
40
+ - Add migration/40-remove-global-components.md guide
41
+ - Add ai-agent/components exception to layer violation checker
42
+
43
+ Automated migration: npx @vc-shell/migrate --transform remove-global-components
44
+ # [2.0.0-alpha.33](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.32...v2.0.0-alpha.33) (2026-04-14)
45
+
46
+ ### Bug Fixes
47
+
48
+ - **migrate:** fix 7 critical bugs found during real-app testing ([41688a1](https://github.com/VirtoCommerce/vc-shell/commit/41688a164250d397c51b6007953bc112f63ee4b9))
49
+ - **migrate:** improve useBladeForm diagnostic — onBeforeClose must be removed, show closeConfirmMessage example ([274bf9a](https://github.com/VirtoCommerce/vc-shell/commit/274bf9aac965b8c8cecada58d7959d547da7f52b))
9
50
 
10
51
  ### Features
11
52
 
12
- * **migrate:** add 4 new transforms (injection-keys, replace-cover, locale-imports, window-globals) ([bbcbc79](https://github.com/VirtoCommerce/vc-shell/commit/bbcbc79530ad237ed4d9bd4519ba164559b125a5))
13
- * **migrate:** add after field to VersionedTransform for dependency ordering ([a854662](https://github.com/VirtoCommerce/vc-shell/commit/a85466259f908c585161e6db43337c1b1e5d2ece))
14
- * **migrate:** add defineExpose → exposeToChildren transform + improve widgets diagnostic ([d73352c](https://github.com/VirtoCommerce/vc-shell/commit/d73352c02630f3cf2b046f524769ac8d4cec1f0f))
15
- * **migrate:** add release-config cleanup and VcTable audits ([23118dd](https://github.com/VirtoCommerce/vc-shell/commit/23118dd74e9bd4387b166bd5e35a341ad81cd6be))
16
- * **migrate:** declare after dependencies for blade-props, define-options, remove-pathmatch ([90167af](https://github.com/VirtoCommerce/vc-shell/commit/90167afbe8d07fc88a9543eb431edf6b29e5aba9))
17
- * **migrate:** generate MIGRATION_REPORT.md with automated/manual/uncovered sections ([3d9d2a1](https://github.com/VirtoCommerce/vc-shell/commit/3d9d2a10844ffe940e96a3f74bf40c24ff6e7a71))
18
- * **migrate:** idempotency guard — second run produces zero modifications ([cd91b25](https://github.com/VirtoCommerce/vc-shell/commit/cd91b250a8a5235543f6a5fe4330a86d530b250a))
19
- * **migrate:** replace-cover-method — openBlade({ replaceCurrentBlade: true }) → coverWith() ([cb24cd8](https://github.com/VirtoCommerce/vc-shell/commit/cb24cd8353847fd9c7ddc91927f726cba3ada00b))
20
- * **migrate:** structured migration report with before/after examples and guide links ([2f5c2da](https://github.com/VirtoCommerce/vc-shell/commit/2f5c2da289abb9977464fb8772ddcfe2c3daa17d))
21
- * **migrate:** topological sort for transform dependency ordering ([24a4446](https://github.com/VirtoCommerce/vc-shell/commit/24a44463fd9e114401b989114aacfc07ddb5250f))
53
+ - **migrate:** add 4 new transforms (injection-keys, replace-cover, locale-imports, window-globals) ([bbcbc79](https://github.com/VirtoCommerce/vc-shell/commit/bbcbc79530ad237ed4d9bd4519ba164559b125a5))
54
+ - **migrate:** add after field to VersionedTransform for dependency ordering ([a854662](https://github.com/VirtoCommerce/vc-shell/commit/a85466259f908c585161e6db43337c1b1e5d2ece))
55
+ - **migrate:** add defineExpose → exposeToChildren transform + improve widgets diagnostic ([d73352c](https://github.com/VirtoCommerce/vc-shell/commit/d73352c02630f3cf2b046f524769ac8d4cec1f0f))
56
+ - **migrate:** add release-config cleanup and VcTable audits ([23118dd](https://github.com/VirtoCommerce/vc-shell/commit/23118dd74e9bd4387b166bd5e35a341ad81cd6be))
57
+ - **migrate:** declare after dependencies for blade-props, define-options, remove-pathmatch ([90167af](https://github.com/VirtoCommerce/vc-shell/commit/90167afbe8d07fc88a9543eb431edf6b29e5aba9))
58
+ - **migrate:** generate MIGRATION_REPORT.md with automated/manual/uncovered sections ([3d9d2a1](https://github.com/VirtoCommerce/vc-shell/commit/3d9d2a10844ffe940e96a3f74bf40c24ff6e7a71))
59
+ - **migrate:** idempotency guard — second run produces zero modifications ([cd91b25](https://github.com/VirtoCommerce/vc-shell/commit/cd91b250a8a5235543f6a5fe4330a86d530b250a))
60
+ - **migrate:** replace-cover-method — openBlade({ replaceCurrentBlade: true }) → coverWith() ([cb24cd8](https://github.com/VirtoCommerce/vc-shell/commit/cb24cd8353847fd9c7ddc91927f726cba3ada00b))
61
+ - **migrate:** structured migration report with before/after examples and guide links ([2f5c2da](https://github.com/VirtoCommerce/vc-shell/commit/2f5c2da289abb9977464fb8772ddcfe2c3daa17d))
62
+ - **migrate:** topological sort for transform dependency ordering ([24a4446](https://github.com/VirtoCommerce/vc-shell/commit/24a44463fd9e114401b989114aacfc07ddb5250f))
63
+
22
64
  # [2.0.0-alpha.32](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.31...v2.0.0-alpha.32) (2026-04-02)
23
65
 
24
66
  **Note:** Version bump only for package @vc-shell/migrate
25
67
 
26
68
  # [2.0.0-alpha.31](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.30...v2.0.0-alpha.31) (2026-04-01)
27
69
 
28
-
29
70
  ### Features
30
71
 
31
- * **migrate:** add codemod transforms for useBladeForm and useDynamicProperties ([9cf4cc8](https://github.com/VirtoCommerce/vc-shell/commit/9cf4cc8c280bb70e5ef6c457c07c44988b6fafbc))
32
- # [2.0.0-alpha.30](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.29...v2.0.0-alpha.30) (2026-03-30)
72
+ - **migrate:** add codemod transforms for useBladeForm and useDynamicProperties ([9cf4cc8](https://github.com/VirtoCommerce/vc-shell/commit/9cf4cc8c280bb70e5ef6c457c07c44988b6fafbc))
33
73
 
74
+ # [2.0.0-alpha.30](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.29...v2.0.0-alpha.30) (2026-03-30)
34
75
 
35
76
  ### Bug Fixes
36
77
 
37
- * **cli:** remove beforeEnter guard from tenant route templates, format responsive-composable transform ([3752273](https://github.com/VirtoCommerce/vc-shell/commit/37522732b789316a92c4c958c395c8f3fbf9e0ea))
38
- # [2.0.0-alpha.29](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.28...v2.0.0-alpha.29) (2026-03-26)
78
+ - **cli:** remove beforeEnter guard from tenant route templates, format responsive-composable transform ([3752273](https://github.com/VirtoCommerce/vc-shell/commit/37522732b789316a92c4c958c395c8f3fbf9e0ea))
39
79
 
80
+ # [2.0.0-alpha.29](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.28...v2.0.0-alpha.29) (2026-03-26)
40
81
 
41
82
  ### Features
42
83
 
43
- * **responsive-composable:** introduce useResponsive composable to replace global properties and injection keys ([1280853](https://github.com/VirtoCommerce/vc-shell/commit/1280853cf10ec6cf432b5e7eb88b0991430dfc20))
84
+ - **responsive-composable:** introduce useResponsive composable to replace global properties and injection keys ([1280853](https://github.com/VirtoCommerce/vc-shell/commit/1280853cf10ec6cf432b5e7eb88b0991430dfc20))
85
+
44
86
  # [2.0.0-alpha.28](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.27...v2.0.0-alpha.28) (2026-03-26)
45
87
 
46
88
  **Note:** Version bump only for package @vc-shell/migrate
@@ -59,29 +101,28 @@
59
101
 
60
102
  # [2.0.0-alpha.24](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.23...v2.0.0-alpha.24) (2026-03-25)
61
103
 
62
-
63
104
  ### Documentation
64
105
 
65
- * **assets-manager:** document blade options breaking change and enhance codemod ([69cc786](https://github.com/VirtoCommerce/vc-shell/commit/69cc7865a5678a093d972e6e39f955d722fcc133))
66
-
106
+ - **assets-manager:** document blade options breaking change and enhance codemod ([69cc786](https://github.com/VirtoCommerce/vc-shell/commit/69cc7865a5678a093d972e6e39f955d722fcc133))
67
107
 
68
108
  ### Features
69
109
 
70
- * **api-client, migrate:** default to Interface for new API clients, add nswag class-to-interface migration ([569a1f7](https://github.com/VirtoCommerce/vc-shell/commit/569a1f79532d5ca2e1a9968e3b249b3d3ffeed71))
71
- * **codemod:** add use-assets-migration transform ([57022ec](https://github.com/VirtoCommerce/vc-shell/commit/57022ec18d7d3f85e207377316222e32ad142520))
72
- * **codemod:** register use-assets-migration in transform registry ([83fb018](https://github.com/VirtoCommerce/vc-shell/commit/83fb018a7afbfc924d21e595c312fb536d3d40b5))
73
- * **codemod:** smart diagnostic for useAssets() migration patterns ([479defe](https://github.com/VirtoCommerce/vc-shell/commit/479defe6c57d6aa335c683e6aeec0f4941158749))
74
- * **migrate:** add project-scope orchestrator and registry entry for nswag-class-to-interface ([7a8dcd6](https://github.com/VirtoCommerce/vc-shell/commit/7a8dcd66e65b427c9e94bc40aa1a9fbf4a6062f7))
75
- * **migrate:** add Rules A/B — object literal and variable argument transforms ([0856d45](https://github.com/VirtoCommerce/vc-shell/commit/0856d457a7e3d6a1f9d05d392edea1f34578059b))
76
- * **migrate:** add Rules D/E — IPrefix rename and import deduplication ([e988d87](https://github.com/VirtoCommerce/vc-shell/commit/e988d87733e023fbc7abbf460cf6b2e174e5edb3))
77
- * **migrate:** scaffold nswag-class-to-interface core transform with Rule C ([2579e5b](https://github.com/VirtoCommerce/vc-shell/commit/2579e5bfe3840cafd8562ff466e8b58e47794524))
78
-
110
+ - **api-client, migrate:** default to Interface for new API clients, add nswag class-to-interface migration ([569a1f7](https://github.com/VirtoCommerce/vc-shell/commit/569a1f79532d5ca2e1a9968e3b249b3d3ffeed71))
111
+ - **codemod:** add use-assets-migration transform ([57022ec](https://github.com/VirtoCommerce/vc-shell/commit/57022ec18d7d3f85e207377316222e32ad142520))
112
+ - **codemod:** register use-assets-migration in transform registry ([83fb018](https://github.com/VirtoCommerce/vc-shell/commit/83fb018a7afbfc924d21e595c312fb536d3d40b5))
113
+ - **codemod:** smart diagnostic for useAssets() migration patterns ([479defe](https://github.com/VirtoCommerce/vc-shell/commit/479defe6c57d6aa335c683e6aeec0f4941158749))
114
+ - **migrate:** add project-scope orchestrator and registry entry for nswag-class-to-interface ([7a8dcd6](https://github.com/VirtoCommerce/vc-shell/commit/7a8dcd66e65b427c9e94bc40aa1a9fbf4a6062f7))
115
+ - **migrate:** add Rules A/B — object literal and variable argument transforms ([0856d45](https://github.com/VirtoCommerce/vc-shell/commit/0856d457a7e3d6a1f9d05d392edea1f34578059b))
116
+ - **migrate:** add Rules D/E — IPrefix rename and import deduplication ([e988d87](https://github.com/VirtoCommerce/vc-shell/commit/e988d87733e023fbc7abbf460cf6b2e174e5edb3))
117
+ - **migrate:** scaffold nswag-class-to-interface core transform with Rule C ([2579e5b](https://github.com/VirtoCommerce/vc-shell/commit/2579e5bfe3840cafd8562ff466e8b58e47794524))
79
118
 
80
119
  ### BREAKING CHANGES
81
120
 
82
- * **assets-manager:** notice
83
- - use-assets-migration codemod: detect openBlade("AssetsManager") with
121
+ - **assets-manager:** notice
122
+
123
+ * use-assets-migration codemod: detect openBlade("AssetsManager") with
84
124
  old handler options and missing markRaw()
125
+
85
126
  # [2.0.0-alpha.23](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.22...v2.0.0-alpha.23) (2026-03-23)
86
127
 
87
128
  **Note:** Version bump only for package @vc-shell/migrate
@@ -108,21 +149,20 @@
108
149
 
109
150
  # [2.0.0-alpha.17](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.16...v2.0.0-alpha.17) (2026-03-23)
110
151
 
111
-
112
152
  ### Bug Fixes
113
153
 
114
- * **migrate:** remove empty export type {} stubs after Props/Emits removal ([e6164ba](https://github.com/VirtoCommerce/vc-shell/commit/e6164ba267c737aee8990f271173d05e844e81a9))
115
-
154
+ - **migrate:** remove empty export type {} stubs after Props/Emits removal ([e6164ba](https://github.com/VirtoCommerce/vc-shell/commit/e6164ba267c737aee8990f271173d05e844e81a9))
116
155
 
117
156
  ### Features
118
157
 
119
- * **migrate:** add defineOptions → defineBlade transform ([676caea](https://github.com/VirtoCommerce/vc-shell/commit/676caea421fe960b589041ef74679d5fdb5336d8))
120
- * **migrate:** add import dedup utility and improve vue-sfc-wrapper resilience ([c87e065](https://github.com/VirtoCommerce/vc-shell/commit/c87e06554b3f538d1ee45a65269e53c94fe40683))
121
- * **migrate:** add manual-migration-audit diagnostic transform ([a069aad](https://github.com/VirtoCommerce/vc-shell/commit/a069aadd1816eb6363dd5e95ccd175b9e464d43e))
122
- * **migrate:** add use-data-table-sort codemod transform ([655aef7](https://github.com/VirtoCommerce/vc-shell/commit/655aef7b98405b1243c00ed1cdc2a2320600d780))
123
- * **migrate:** auto-migrate notificationTemplates to notifications config ([a9ccbe5](https://github.com/VirtoCommerce/vc-shell/commit/a9ccbe5e30a3f4b30a2c22e2911629d0a86dbb2d))
124
- * **migrate:** fix defineAppModule 2-arg to use blades key ([a92f444](https://github.com/VirtoCommerce/vc-shell/commit/a92f44400ac5253900c0b9377113614fac931753))
125
- * **migrate:** fix defineAppModule 3/4-arg to use object syntax with blades key ([31a1ef3](https://github.com/VirtoCommerce/vc-shell/commit/31a1ef3ae2b87fb77290ec79ff79cf13e65a7bf6))
158
+ - **migrate:** add defineOptions → defineBlade transform ([676caea](https://github.com/VirtoCommerce/vc-shell/commit/676caea421fe960b589041ef74679d5fdb5336d8))
159
+ - **migrate:** add import dedup utility and improve vue-sfc-wrapper resilience ([c87e065](https://github.com/VirtoCommerce/vc-shell/commit/c87e06554b3f538d1ee45a65269e53c94fe40683))
160
+ - **migrate:** add manual-migration-audit diagnostic transform ([a069aad](https://github.com/VirtoCommerce/vc-shell/commit/a069aadd1816eb6363dd5e95ccd175b9e464d43e))
161
+ - **migrate:** add use-data-table-sort codemod transform ([655aef7](https://github.com/VirtoCommerce/vc-shell/commit/655aef7b98405b1243c00ed1cdc2a2320600d780))
162
+ - **migrate:** auto-migrate notificationTemplates to notifications config ([a9ccbe5](https://github.com/VirtoCommerce/vc-shell/commit/a9ccbe5e30a3f4b30a2c22e2911629d0a86dbb2d))
163
+ - **migrate:** fix defineAppModule 2-arg to use blades key ([a92f444](https://github.com/VirtoCommerce/vc-shell/commit/a92f44400ac5253900c0b9377113614fac931753))
164
+ - **migrate:** fix defineAppModule 3/4-arg to use object syntax with blades key ([31a1ef3](https://github.com/VirtoCommerce/vc-shell/commit/31a1ef3ae2b87fb77290ec79ff79cf13e65a7bf6))
165
+
126
166
  # [2.0.0-alpha.16](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.15...v2.0.0-alpha.16) (2026-03-20)
127
167
 
128
168
  **Note:** Version bump only for package @vc-shell/migrate
@@ -137,23 +177,21 @@
137
177
 
138
178
  # [2.0.0-alpha.13](https://github.com/VirtoCommerce/vc-shell/compare/v2.0.0-alpha.12...v2.0.0-alpha.13) (2026-03-20)
139
179
 
140
-
141
180
  ### Features
142
181
 
143
- * **migrate:** add CLI entry point with commander ([b773e92](https://github.com/VirtoCommerce/vc-shell/commit/b773e924c))
144
- * **migrate:** add runner orchestrator with tests ([bc9fa3f](https://github.com/VirtoCommerce/vc-shell/commit/bc9fa3fde))
145
- * **migrate:** add transform types and version-based registry with selection logic ([2148647](https://github.com/VirtoCommerce/vc-shell/commit/214864780))
146
- * **migrate:** add version detector with workspace:* fallback ([c45fabc](https://github.com/VirtoCommerce/vc-shell/commit/c45fabc51))
147
- * **migrate:** add Vue SFC script block extraction utility ([e086631](https://github.com/VirtoCommerce/vc-shell/commit/e0866319f))
148
- * **migrate:** add define-app-module transform ([fa8ea88](https://github.com/VirtoCommerce/vc-shell/commit/fa8ea8885))
149
- * **migrate:** add remove-deprecated-aliases transform ([ded2ff8](https://github.com/VirtoCommerce/vc-shell/commit/ded2ff833))
150
- * **migrate:** add notification-migration transform ([f28480d](https://github.com/VirtoCommerce/vc-shell/commit/f28480d0d))
151
- * **migrate:** add rewrite-imports transform for sub-entry points ([2ec2aa3](https://github.com/VirtoCommerce/vc-shell/commit/2ec2aa391))
152
- * **migrate:** add use-blade-migration with onBeforeClose inversion ([4696267](https://github.com/VirtoCommerce/vc-shell/commit/4696267bb))
153
- * **migrate:** add blade-props-simplification transform ([83c1f41](https://github.com/VirtoCommerce/vc-shell/commit/83c1f41b2))
154
- * **migrate:** add icon-audit and scss-safe-use diagnostic transforms ([1975d07](https://github.com/VirtoCommerce/vc-shell/commit/1975d072c))
155
-
182
+ - **migrate:** add CLI entry point with commander ([b773e92](https://github.com/VirtoCommerce/vc-shell/commit/b773e924c))
183
+ - **migrate:** add runner orchestrator with tests ([bc9fa3f](https://github.com/VirtoCommerce/vc-shell/commit/bc9fa3fde))
184
+ - **migrate:** add transform types and version-based registry with selection logic ([2148647](https://github.com/VirtoCommerce/vc-shell/commit/214864780))
185
+ - **migrate:** add version detector with workspace:\* fallback ([c45fabc](https://github.com/VirtoCommerce/vc-shell/commit/c45fabc51))
186
+ - **migrate:** add Vue SFC script block extraction utility ([e086631](https://github.com/VirtoCommerce/vc-shell/commit/e0866319f))
187
+ - **migrate:** add define-app-module transform ([fa8ea88](https://github.com/VirtoCommerce/vc-shell/commit/fa8ea8885))
188
+ - **migrate:** add remove-deprecated-aliases transform ([ded2ff8](https://github.com/VirtoCommerce/vc-shell/commit/ded2ff833))
189
+ - **migrate:** add notification-migration transform ([f28480d](https://github.com/VirtoCommerce/vc-shell/commit/f28480d0d))
190
+ - **migrate:** add rewrite-imports transform for sub-entry points ([2ec2aa3](https://github.com/VirtoCommerce/vc-shell/commit/2ec2aa391))
191
+ - **migrate:** add use-blade-migration with onBeforeClose inversion ([4696267](https://github.com/VirtoCommerce/vc-shell/commit/4696267bb))
192
+ - **migrate:** add blade-props-simplification transform ([83c1f41](https://github.com/VirtoCommerce/vc-shell/commit/83c1f41b2))
193
+ - **migrate:** add icon-audit and scss-safe-use diagnostic transforms ([1975d07](https://github.com/VirtoCommerce/vc-shell/commit/1975d072c))
156
194
 
157
195
  ### Bug Fixes
158
196
 
159
- * **migrate:** fix TypeScript error in scss-safe-use readdirSync typing ([2f6e458](https://github.com/VirtoCommerce/vc-shell/commit/2f6e4584e))
197
+ - **migrate:** fix TypeScript error in scss-safe-use readdirSync typing ([2f6e458](https://github.com/VirtoCommerce/vc-shell/commit/2f6e4584e))
package/README.md CHANGED
@@ -23,23 +23,23 @@ That's it. The CLI will:
23
23
 
24
24
  Before running the migration, review the key breaking changes:
25
25
 
26
- | Change | Impact | Automated? |
27
- |--------|--------|:----------:|
28
- | `createAppModule` → `defineAppModule` | All module entry points | Yes |
29
- | `useBladeNavigation` → `useBlade` | All blade composable usage | Yes |
30
- | `useNotifications` → `useBladeNotifications` | Notification composable | Yes |
31
- | Blade Props/Emits boilerplate removal | All blade components | Yes |
32
- | Import path splitting (ai-agent, extensions) | Imports of moved symbols | Yes |
33
- | Deprecated injection key renames (6 symbols) | Injection key references | Yes |
34
- | `useWidgets` → `useBladeWidgets` | Widget registration | Partial* |
35
- | Composable return type renames (20 types) | Type annotations | Yes |
36
- | VcBanner variant prop values | Template attributes | Yes |
37
- | VcSwitch `tooltip` → `hint` | Template attributes | Yes |
38
- | VcIcon `useContainer` removal | Template attributes | Yes |
39
- | Font Awesome → Material Symbols icons | Icon class names | Diagnostic |
40
- | SCSS `@import` → `@use` | Stylesheet imports | Diagnostic |
41
- | Menu `group`/`groupIcon` → `groupConfig` | Menu configuration | Diagnostic |
42
- | Manual `.d.ts` shims → `@vc-shell/framework/globals` | tsconfig.json | Yes |
26
+ | Change | Impact | Automated? |
27
+ | ---------------------------------------------------- | -------------------------- | :--------: |
28
+ | `createAppModule` → `defineAppModule` | All module entry points | Yes |
29
+ | `useBladeNavigation` → `useBlade` | All blade composable usage | Yes |
30
+ | `useNotifications` → `useBladeNotifications` | Notification composable | Yes |
31
+ | Blade Props/Emits boilerplate removal | All blade components | Yes |
32
+ | Import path splitting (ai-agent, extensions) | Imports of moved symbols | Yes |
33
+ | Deprecated injection key renames (6 symbols) | Injection key references | Yes |
34
+ | `useWidgets` → `useBladeWidgets` | Widget registration | Partial\* |
35
+ | Composable return type renames (20 types) | Type annotations | Yes |
36
+ | VcBanner variant prop values | Template attributes | Yes |
37
+ | VcSwitch `tooltip` → `hint` | Template attributes | Yes |
38
+ | VcIcon `useContainer` removal | Template attributes | Yes |
39
+ | Font Awesome → Material Symbols icons | Icon class names | Diagnostic |
40
+ | SCSS `@import` → `@use` | Stylesheet imports | Diagnostic |
41
+ | Menu `group`/`groupIcon` → `groupConfig` | Menu configuration | Diagnostic |
42
+ | Manual `.d.ts` shims → `@vc-shell/framework/globals` | tsconfig.json | Yes |
43
43
 
44
44
  \* `useWidgets` is renamed automatically, but `registerWidget`/`unregisterWidget` calls require manual migration to the declarative `useBladeWidgets([...])` API.
45
45
 
@@ -53,13 +53,16 @@ Before running the migration, review the key breaking changes:
53
53
  npx @vc-shell/migrate [options]
54
54
  ```
55
55
 
56
- | Option | Description | Default |
57
- |--------|-------------|---------|
58
- | `--to <version>` | Target framework version | `2.0.0` |
59
- | `--transform <name>` | Run only a specific transform | all applicable |
60
- | `--dry-run` | Preview changes without writing files | `false` |
61
- | `--list` | List all available transforms and exit | |
62
- | `--cwd <path>` | Working directory (your app root) | `.` |
56
+ | Option | Description | Default |
57
+ | ------------------------- | ---------------------------------------------------------------------------------------- | -------------- |
58
+ | `--to <version>` | Target framework version | `2.0.0` |
59
+ | `--transform <name>` | Run only a specific transform (bypasses version filter — runs even if already on target) | all applicable |
60
+ | `--dry-run` | Preview changes without writing files | `false` |
61
+ | `--list` | List all available transforms and exit | |
62
+ | `--cwd <path>` | Working directory (your app root) | `.` |
63
+ | `--update-deps` | Also bump `@vc-shell/*` and align peer-dep versions in `package.json` | `false` |
64
+ | `--exclude <patterns...>` | Additional exclude patterns for files/directories | `[]` |
65
+ | `--no-report` | Skip `MIGRATION_REPORT.md` generation | `false` |
63
66
 
64
67
  ### Examples
65
68
 
@@ -77,9 +80,28 @@ npx @vc-shell/migrate --transform blade-props-simplification --dry-run
77
80
  npx @vc-shell/migrate --list
78
81
 
79
82
  # Migrate a specific app in a monorepo
80
- npx @vc-shell/migrate --cwd apps/vendor-portal
83
+ npx @vc-shell/migrate --cwd apps/my-app
81
84
  ```
82
85
 
86
+ ## Peer dependency alignment
87
+
88
+ When run with `--update-deps`, the migrator also updates `package.json` dependency versions, not just your source code:
89
+
90
+ - **`@vc-shell/*` packages** — bumped to the target framework version (`--to`).
91
+ - **Peer dependencies** — intersection-aligned with a curated list of recommended versions (ESLint, Vite, TypeScript, VueUse, `vue-router`, etc.). Any dep present in **both** your `package.json` and the curated list is updated to the curated value. Nothing is added, nothing is removed.
92
+
93
+ The curated list lives at [`configs/peer-versions.json`](../../configs/peer-versions.json) in the framework repo and is maintained by the framework team.
94
+
95
+ **This flag works even when your current framework version equals the target** — useful when you want to realign peer-dep versions with the latest recommended set without changing the framework version.
96
+
97
+ Example:
98
+
99
+ ```bash
100
+ npx @vc-shell/migrate --update-deps --dry-run
101
+ ```
102
+
103
+ Run `yarn install` after accepting the changes to refresh your lockfile.
104
+
83
105
  ## Recommended workflow
84
106
 
85
107
  1. **Commit your current work** — make sure your working tree is clean
@@ -114,13 +136,13 @@ Applied:
114
136
 
115
137
  ### Transform categories
116
138
 
117
- | Category | Behavior |
118
- |----------|----------|
119
- | **Script transforms** | Modify `<script>` blocks in `.vue` files and `.ts` files using jscodeshift AST manipulation |
120
- | **Template transforms** | Modify `<template>` blocks in `.vue` files using string-based pattern matching |
121
- | **Script + Template** | Both (e.g., `blade-props-simplification` removes props from script AND attributes from template) |
122
- | **Config transforms** | Modify project configuration files like `tsconfig.json` |
123
- | **Diagnostic** | Report issues via warnings but never modify files — manual action required |
139
+ | Category | Behavior |
140
+ | ----------------------- | ------------------------------------------------------------------------------------------------ |
141
+ | **Script transforms** | Modify `<script>` blocks in `.vue` files and `.ts` files using jscodeshift AST manipulation |
142
+ | **Template transforms** | Modify `<template>` blocks in `.vue` files using string-based pattern matching |
143
+ | **Script + Template** | Both (e.g., `blade-props-simplification` removes props from script AND attributes from template) |
144
+ | **Config transforms** | Modify project configuration files like `tsconfig.json` |
145
+ | **Diagnostic** | Report issues via warnings but never modify files — manual action required |
124
146
 
125
147
  ### Format preservation
126
148
 
@@ -224,14 +246,14 @@ Moves symbols to sub-entry points: `aiAgentPlugin`, `useAiAgent`, etc. → `@vc-
224
246
 
225
247
  Renames 6 deprecated injection key aliases:
226
248
 
227
- | Old | New |
228
- |-----|-----|
229
- | `navigationViewLocation` | `NavigationViewLocationKey` |
230
- | `BladeInstance` | `BladeInstanceKey` |
231
- | `NotificationTemplatesSymbol` | `NotificationTemplatesKey` |
232
- | `BLADE_BACK_BUTTON` | `BladeBackButtonKey` |
233
- | `TOOLBAR_SERVICE` | `ToolbarServiceKey` |
234
- | `EMBEDDED_MODE` | `EmbeddedModeKey` |
249
+ | Old | New |
250
+ | ----------------------------- | --------------------------- |
251
+ | `navigationViewLocation` | `NavigationViewLocationKey` |
252
+ | `BladeInstance` | `BladeInstanceKey` |
253
+ | `NotificationTemplatesSymbol` | `NotificationTemplatesKey` |
254
+ | `BLADE_BACK_BUTTON` | `BladeBackButtonKey` |
255
+ | `TOOLBAR_SERVICE` | `ToolbarServiceKey` |
256
+ | `EMBEDDED_MODE` | `EmbeddedModeKey` |
235
257
 
236
258
  ### `widgets-migration` <sup>2.0.0</sup>
237
259
 
@@ -278,6 +300,7 @@ If something goes wrong after migration:
278
300
  2. **Run TypeScript check** — `npx tsc --noEmit` catches type errors introduced by renames. Most should be caught by the transforms, but edge cases exist.
279
301
 
280
302
  3. **Re-run a single transform** — if one specific transform caused issues:
303
+
281
304
  ```bash
282
305
  git checkout -- . # revert all changes
283
306
  npx @vc-shell/migrate --transform define-app-module # run just that one
@@ -318,6 +341,7 @@ If something goes wrong after migration:
318
341
  ### Adding a new transform
319
342
 
320
343
  1. Create `src/transforms/my-transform.ts` following the jscodeshift signature:
344
+
321
345
  ```ts
322
346
  import type { API, FileInfo, Options } from "jscodeshift";
323
347
  import { wrapForSFC } from "../utils/vue-sfc-wrapper.js";
@@ -335,6 +359,7 @@ If something goes wrong after migration:
335
359
  ```
336
360
 
337
361
  2. Register in `src/transforms/registry.ts`:
362
+
338
363
  ```ts
339
364
  {
340
365
  name: "my-transform",
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Mirror of configs/peer-versions.json's `versions` map.
3
+ *
4
+ * Why a mirror, not a direct import: the migrator is a published npm package
5
+ * (@vc-shell/migrate) and its dist/ must be self-contained. The published
6
+ * artifact does not have access to configs/peer-versions.json.
7
+ *
8
+ * Maintenance: when configs/peer-versions.json changes, copy the same keys
9
+ * and values here in the same commit. See spec section "Migration guidance".
10
+ */
11
+ export declare const BASELINE_VERSIONS: Record<string, string>;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Mirror of configs/peer-versions.json's `versions` map.
3
+ *
4
+ * Why a mirror, not a direct import: the migrator is a published npm package
5
+ * (@vc-shell/migrate) and its dist/ must be self-contained. The published
6
+ * artifact does not have access to configs/peer-versions.json.
7
+ *
8
+ * Maintenance: when configs/peer-versions.json changes, copy the same keys
9
+ * and values here in the same commit. See spec section "Migration guidance".
10
+ */
11
+ export const BASELINE_VERSIONS = {
12
+ "@commitlint/cli": "^20.4.1",
13
+ "@commitlint/config-conventional": "^20.4.1",
14
+ "@release-it/conventional-changelog": "^10.0.5",
15
+ "@rollup/plugin-typescript": "^11.1.5",
16
+ "@types/lodash-es": "^4.17.12",
17
+ "@types/node": "^20.10.5",
18
+ "@vitejs/plugin-vue": "^5.2.3",
19
+ "@vue/eslint-config-prettier": "^10.2.0",
20
+ "@vue/eslint-config-typescript": "^14.6.0",
21
+ "@vue/test-utils": "^2.4.6",
22
+ "@vueuse/core": "^10.7.1",
23
+ "@vueuse/integrations": "^10.7.1",
24
+ autoprefixer: "^10.4.16",
25
+ "baseline-browser-mapping": "^2.9.11",
26
+ "conventional-changelog-cli": "^5.0.0",
27
+ "cross-env": "^7.0.3",
28
+ "cypress-signalr-mock": "^1.5.0",
29
+ eslint: "^9.35.0",
30
+ "eslint-plugin-vue": "^10.4.0",
31
+ husky: "^8.0.3",
32
+ jsdom: "^24.1.0",
33
+ "lint-staged": "^15.2.0",
34
+ "lodash-es": "^4.17.21",
35
+ postcss: "^8.4.32",
36
+ prettier: "^3.1.1",
37
+ "release-it": "^19.0.4",
38
+ sass: "^1.87.0",
39
+ semver: "^7.7.4",
40
+ tailwindcss: "^3.4.0",
41
+ typescript: "^5.8.3",
42
+ "vee-validate": "^4.12.4",
43
+ vite: "^6.3.3",
44
+ "vite-plugin-checker": "^0.9.1",
45
+ "vite-plugin-mkcert": "^1.17.1",
46
+ vitest: "^1.6.0",
47
+ vue: "^3.5.30",
48
+ "vue-router": "^5.0.3",
49
+ "vue-router-mock": "^1.1.0",
50
+ "vue-tsc": "^3.2.5",
51
+ };
52
+ //# sourceMappingURL=baseline-versions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"baseline-versions.js","sourceRoot":"","sources":["../src/baseline-versions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA2B;IACvD,iBAAiB,EAAE,SAAS;IAC5B,iCAAiC,EAAE,SAAS;IAC5C,oCAAoC,EAAE,SAAS;IAC/C,2BAA2B,EAAE,SAAS;IACtC,kBAAkB,EAAE,UAAU;IAC9B,aAAa,EAAE,UAAU;IACzB,oBAAoB,EAAE,QAAQ;IAC9B,6BAA6B,EAAE,SAAS;IACxC,+BAA+B,EAAE,SAAS;IAC1C,iBAAiB,EAAE,QAAQ;IAC3B,cAAc,EAAE,SAAS;IACzB,sBAAsB,EAAE,SAAS;IACjC,YAAY,EAAE,UAAU;IACxB,0BAA0B,EAAE,SAAS;IACrC,4BAA4B,EAAE,QAAQ;IACtC,WAAW,EAAE,QAAQ;IACrB,sBAAsB,EAAE,QAAQ;IAChC,MAAM,EAAE,SAAS;IACjB,mBAAmB,EAAE,SAAS;IAC9B,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,SAAS;IAChB,aAAa,EAAE,SAAS;IACxB,WAAW,EAAE,UAAU;IACvB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,QAAQ;IAClB,YAAY,EAAE,SAAS;IACvB,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,QAAQ;IACrB,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,SAAS;IACzB,IAAI,EAAE,QAAQ;IACd,qBAAqB,EAAE,QAAQ;IAC/B,oBAAoB,EAAE,SAAS;IAC/B,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,SAAS;IACd,YAAY,EAAE,QAAQ;IACtB,iBAAiB,EAAE,QAAQ;IAC3B,SAAS,EAAE,QAAQ;CACpB,CAAC"}
@@ -1 +1,8 @@
1
+ export type PackageJsonDeps = {
2
+ dependencies?: Record<string, string>;
3
+ devDependencies?: Record<string, string>;
4
+ [key: string]: unknown;
5
+ };
6
+ export declare function updateVcShellVersions(pkg: PackageJsonDeps, targetVersion: string): string[];
7
+ export declare function applyBaselineVersions(pkg: PackageJsonDeps): string[];
1
8
  export declare function updateDependencyVersions(cwd: string, targetVersion: string, dryRun: boolean): string[];
@@ -1,28 +1,57 @@
1
1
  import { join } from "node:path";
2
2
  import { readFileSync, existsSync } from "node:fs";
3
3
  import writeFileAtomic from "write-file-atomic";
4
- export function updateDependencyVersions(cwd, targetVersion, dryRun) {
5
- const pkgPath = join(cwd, "package.json");
6
- if (!existsSync(pkgPath))
7
- return [];
8
- const pkgRaw = readFileSync(pkgPath, "utf-8");
9
- const pkg = JSON.parse(pkgRaw);
4
+ import { BASELINE_VERSIONS } from "./baseline-versions.js";
5
+ const DEP_TYPES = ["dependencies", "devDependencies"];
6
+ export function updateVcShellVersions(pkg, targetVersion) {
10
7
  const changes = [];
11
- for (const depType of ["dependencies", "devDependencies"]) {
8
+ const newVersion = `^${targetVersion}`;
9
+ for (const depType of DEP_TYPES) {
12
10
  const deps = pkg[depType];
13
11
  if (!deps)
14
12
  continue;
15
13
  for (const name of Object.keys(deps)) {
16
- if (name.startsWith("@vc-shell/")) {
17
- const oldVersion = deps[name];
18
- const newVersion = `^${targetVersion}`;
19
- if (oldVersion !== newVersion) {
20
- changes.push(`${name}: ${oldVersion} → ${newVersion}`);
21
- deps[name] = newVersion;
22
- }
23
- }
14
+ if (!name.startsWith("@vc-shell/"))
15
+ continue;
16
+ const oldVersion = deps[name];
17
+ if (oldVersion === newVersion)
18
+ continue;
19
+ changes.push(`${name}: ${oldVersion} → ${newVersion}`);
20
+ deps[name] = newVersion;
24
21
  }
25
22
  }
23
+ return changes;
24
+ }
25
+ export function applyBaselineVersions(pkg) {
26
+ const changes = [];
27
+ for (const depType of DEP_TYPES) {
28
+ const deps = pkg[depType];
29
+ if (!deps)
30
+ continue;
31
+ for (const name of Object.keys(deps)) {
32
+ if (name.startsWith("@vc-shell/"))
33
+ continue;
34
+ const baselineVersion = BASELINE_VERSIONS[name];
35
+ if (!baselineVersion)
36
+ continue;
37
+ const oldVersion = deps[name];
38
+ if (oldVersion === baselineVersion)
39
+ continue;
40
+ changes.push(`${name}: ${oldVersion} → ${baselineVersion}`);
41
+ deps[name] = baselineVersion;
42
+ }
43
+ }
44
+ return changes;
45
+ }
46
+ export function updateDependencyVersions(cwd, targetVersion, dryRun) {
47
+ const pkgPath = join(cwd, "package.json");
48
+ if (!existsSync(pkgPath))
49
+ return [];
50
+ const pkgRaw = readFileSync(pkgPath, "utf-8");
51
+ const pkg = JSON.parse(pkgRaw);
52
+ const vcShellChanges = updateVcShellVersions(pkg, targetVersion);
53
+ const baselineChanges = applyBaselineVersions(pkg);
54
+ const changes = [...vcShellChanges, ...baselineChanges];
26
55
  if (changes.length > 0 && !dryRun) {
27
56
  writeFileAtomic.sync(pkgPath, JSON.stringify(pkg, null, 2) + "\n");
28
57
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dep-updater.js","sourceRoot":"","sources":["../src/dep-updater.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAEhD,MAAM,UAAU,wBAAwB,CAAC,G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