@vylos/core 0.5.3 → 0.5.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vylos/core",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/DevOpsBenjamin/Vylos"
@@ -1,4 +1,4 @@
1
1
  import type { InjectionKey } from 'vue';
2
2
  import type { VylosConfig } from '../engine/types';
3
3
 
4
- export const CONFIG_INJECT_KEY: InjectionKey<VylosConfig> = Symbol('vylos-config');
4
+ export const CONFIG_INJECT_KEY: InjectionKey<VylosConfig> = Symbol.for('vylos-config');
@@ -27,8 +27,10 @@ export const DI_TOKENS = {
27
27
  Engine: 'Engine',
28
28
  } as const;
29
29
 
30
- /** Component override map — shallowReactive so Vue computeds track changes */
31
- const componentOverrides = shallowReactive<Record<string, Component>>({});
30
+ /** Component override map — stored on globalThis to survive dual-module resolution */
31
+ const GLOBAL_KEY = '__vylos_component_overrides__';
32
+ const componentOverrides: Record<string, Component> =
33
+ (globalThis as any)[GLOBAL_KEY] ??= shallowReactive<Record<string, Component>>({});
32
34
 
33
35
  /** Register all default managers in a DI container */
34
36
  function registerDefaults(c: DependencyContainer): void {