diff --git a/packages/core/package.json b/packages/core/package.json index 51bb5e1bf..6737b4957 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -111,8 +111,7 @@ "@vueuse/shared": "^12.0.0", "aria-hidden": "^1.2.4", "defu": "^6.1.4", - "ohash": "^1.1.4", - "uncrypto": "^0.1.3" + "ohash": "^1.1.4" }, "devDependencies": { "@iconify/vue": "^4.1.2", diff --git a/packages/core/src/shared/useBodyScrollLock.ts b/packages/core/src/shared/useBodyScrollLock.ts index a4657407f..66706c457 100644 --- a/packages/core/src/shared/useBodyScrollLock.ts +++ b/packages/core/src/shared/useBodyScrollLock.ts @@ -6,7 +6,7 @@ import { type Fn, isClient, isIOS, tryOnBeforeUnmount } from '@vueuse/shared' import { computed, nextTick, ref, watch } from 'vue' import { defu } from 'defu' import { injectConfigProviderContext } from '@/ConfigProvider/ConfigProvider.vue' -import { randomUUID } from 'uncrypto' +import { useId } from './useId' const useBodyLockStackCount = createSharedComposable(() => { const map = ref>(new Map()) @@ -89,7 +89,7 @@ const useBodyLockStackCount = createSharedComposable(() => { }) export function useBodyScrollLock(initialState?: boolean | undefined) { - const id = randomUUID() + const id = useId() const map = useBodyLockStackCount() map.value.set(id, initialState ?? false) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 33b309ac3..fb1a2fde9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -228,9 +228,6 @@ importers: ohash: specifier: ^1.1.4 version: 1.1.4 - uncrypto: - specifier: ^0.1.3 - version: 0.1.3 devDependencies: '@iconify/vue': specifier: ^4.1.2