diff --git a/packages/core/src/utils/UniqueComponentId.js b/packages/core/src/utils/UniqueComponentId.js index 4e9c242ff..f7786b140 100755 --- a/packages/core/src/utils/UniqueComponentId.js +++ b/packages/core/src/utils/UniqueComponentId.js @@ -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); } diff --git a/packages/core/src/utils/Utils.d.ts b/packages/core/src/utils/Utils.d.ts index 9128afc45..6b6bc5ded 100644 --- a/packages/core/src/utils/Utils.d.ts +++ b/packages/core/src/utils/Utils.d.ts @@ -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;