fix: Deprecate UniqueComponentId method in core utils

Fixes #7089
pull/7007/merge
Mert Sincan 2025-01-14 12:18:50 +00:00
parent ca8d2d9d5a
commit 566613be9f
2 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,10 @@
import { uuid } from '@primeuix/utils/uuid';
/**
* @deprecated since v4.3.0. Use `uuid` from @primeuix/utils instead.
* @param {string} prefix
* @return {string}
*/
export default function (prefix = 'pv_id_') {
return uuid(prefix);
}

View File

@ -16,4 +16,9 @@ export declare class HelperSet {
get(parentInstance?: any, slots?: any): any[] | null | undefined;
}
/**
* @deprecated since v4.3.0. Use `uuid` from @primeuix/utils instead.
* @param {string} prefix
* @return {string}
*/
export declare function UniqueComponentId(prefix?: string): string;