From 516c125fda87523a30c4a00845eeb7c0ed33a59d Mon Sep 17 00:00:00 2001 From: umaranis Date: Sun, 31 Mar 2024 17:32:34 +1100 Subject: [PATCH] minor: Move to native UUID --- demos/playground/package.json | 1 - demos/playground/src/__tests__/utils/index.mjs | 4 ++-- pnpm-lock.yaml | 8 -------- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/demos/playground/package.json b/demos/playground/package.json index 93c67ed..a82bafa 100644 --- a/demos/playground/package.json +++ b/demos/playground/package.json @@ -85,7 +85,6 @@ "svelte-preprocess": "^5.0.3", "tslib": "^2.5.0", "typescript": "^5.0.4", - "uuid": "^9.0.0", "vite": "^4.3.1" }, "dependencies": { diff --git a/demos/playground/src/__tests__/utils/index.mjs b/demos/playground/src/__tests__/utils/index.mjs index 28c4c32..8c92acb 100644 --- a/demos/playground/src/__tests__/utils/index.mjs +++ b/demos/playground/src/__tests__/utils/index.mjs @@ -7,9 +7,9 @@ */ import { expect, test as base } from '@playwright/test'; +import { randomUUID } from 'node:crypto'; import prettier from 'prettier'; import { URLSearchParams } from 'url'; -import { v4 as uuidv4 } from 'uuid'; import { selectAll } from '../keyboardShortcuts/index.mjs'; @@ -51,7 +51,7 @@ export async function initialize({ appSettings.disableBeforeInput = LEGACY_EVENTS; if (isCollab) { appSettings.isCollab = isCollab; - appSettings.collabId = uuidv4(); + appSettings.collabId = randomUUID(); } if (showNestedEditorTreeView === undefined) { appSettings.showNestedEditorTreeView = true; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d1f9628..839b660 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -130,9 +130,6 @@ importers: typescript: specifier: ^5.0.4 version: 5.1.3 - uuid: - specifier: ^9.0.0 - version: 9.0.0 vite: specifier: ^4.3.1 version: 4.3.9(@types/node@20.11.16) @@ -7658,11 +7655,6 @@ packages: /util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - /uuid@9.0.0: - resolution: {integrity: sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==} - hasBin: true - dev: true - /v8-to-istanbul@9.1.0: resolution: {integrity: sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==} engines: {node: '>=10.12.0'}