diff --git a/package.json b/package.json index 3ab9625..7ea40a1 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "tinyexec": "0.3.2", "tree-kill": "1.2.2", "uid-promise": "1.0.0", - "uuid": "3.3.2", "xdg-app-paths": "5.1.0", "yauzl-promise": "2.1.3" }, @@ -47,7 +46,6 @@ "@types/node": "18.19.74", "@types/node-fetch": "2.5.0", "@types/tar": "4.0.0", - "@types/uuid": "8.3.1", "@types/yauzl-promise": "2.1.0", "codecov": "3.7.1", "cpy-cli": "2.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 182490e..9ba1c3f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -56,9 +56,6 @@ importers: uid-promise: specifier: 1.0.0 version: 1.0.0 - uuid: - specifier: 3.3.2 - version: 3.3.2 xdg-app-paths: specifier: 5.1.0 version: 5.1.0 @@ -87,9 +84,6 @@ importers: '@types/tar': specifier: 4.0.0 version: 4.0.0 - '@types/uuid': - specifier: 8.3.1 - version: 8.3.1 '@types/yauzl-promise': specifier: 2.1.0 version: 2.1.0 @@ -183,7 +177,6 @@ packages: '@esbuild/darwin-arm64@0.24.2': resolution: {integrity: sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA==} engines: {node: '>=18'} - cpu: [arm64] os: [darwin] '@esbuild/darwin-x64@0.24.2': @@ -502,9 +495,6 @@ packages: '@types/tar@4.0.0': resolution: {integrity: sha512-YybbEHNngcHlIWVCYsoj7Oo1JU9JqONuAlt1LlTH/lmL8BMhbzdFUgReY87a05rY1j8mfK47Del+TCkaLAXwLw==} - '@types/uuid@8.3.1': - resolution: {integrity: sha512-Y2mHTRAbqfFkpjldbkHGY8JIzRN6XqYRliG8/24FcHm2D2PwW24fl5xMRTVGdrb7iMrwCaIEbLWerGIkXuFWVg==} - '@types/yauzl-promise@2.1.0': resolution: {integrity: sha512-7PkQ5UtElDsanzjdUQzXnstCqxx6KAOTMURuHwOuqC6YO2WaYQ6ItLnLy3TiEVNQMO/pD+QSOcfnAkeSX4hsTA==} @@ -2668,8 +2658,6 @@ snapshots: dependencies: '@types/node': 18.19.74 - '@types/uuid@8.3.1': {} - '@types/yauzl-promise@2.1.0': dependencies: '@types/events': 3.0.3 diff --git a/src/providers/native/index.ts b/src/providers/native/index.ts index 2fe092c..bf63640 100644 --- a/src/providers/native/index.ts +++ b/src/providers/native/index.ts @@ -1,5 +1,6 @@ import ms from 'ms'; -import uuid from 'uuid/v4'; +import { randomUUID as uuid } from 'node:crypto'; + import createDebug from 'debug'; import { promisify } from 'node:util'; import { AddressInfo } from 'node:net'; diff --git a/src/runtime-server.ts b/src/runtime-server.ts index b228250..1faabf3 100644 --- a/src/runtime-server.ts +++ b/src/runtime-server.ts @@ -2,7 +2,7 @@ import http, { Server } from 'node:http'; import { parse } from 'node:url'; import createDebug from 'debug'; import { run, text } from 'micro'; -import { v4 as uuid } from 'uuid'; +import { randomUUID as uuid } from 'node:crypto'; import createPathMatch from 'path-match'; import once from '@tootallnate/once';