Skip to content

Commit

Permalink
refactor(use-register-x-module)!: get rid of register x-module compos…
Browse files Browse the repository at this point in the history
…able and deprecated the mixin for the same (#1534)

BREAKING-CHANGE: get rid of useRegisterXModule composable. Use XPlugin.registerXModule(xModule) or InstallXOptions.initialXModules instead
  • Loading branch information
joseacabaneros authored Jun 26, 2024
1 parent 7724145 commit 4dabc84
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
2 changes: 2 additions & 0 deletions packages/x-components/src/components/x-component.mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { AnyXModule } from '../x-modules/x-modules.types';
* @param module - The module associated to the X-Component using this mixin.
* @returns Mixin for the module.
* @public
* @deprecated Use `XPlugin.registerXModule(xModule)` or `initialXModules` in
* {@link InstallXOptions | x-installer} instead.
*/
export function xComponentMixin(module: AnyXModule): ComponentOptions<Vue> {
XPlugin.registerXModule(module);
Expand Down
1 change: 0 additions & 1 deletion packages/x-components/src/composables/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export * from './use-debounce';
export * from './use-getter';
export * from './use-no-element-render';
export * from './use-on-display';
export * from './use-register-x-module';
export * from './use-state';
export * from './use-store';
export * from './use-x-bus';
15 changes: 0 additions & 15 deletions packages/x-components/src/composables/use-register-x-module.ts

This file was deleted.

0 comments on commit 4dabc84

Please sign in to comment.