Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

chore: remove uuid dev dependency (#5022)

Aras Abbasiee2b70e8e82b
diff --git a/package-lock.json b/package-lock.json
index 1aebeae0..8f1ed396 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -103,7 +103,6 @@
"unexpected-sinon": "^10.11.2",
"update-notifier": "^4.1.0",
"uslug": "^1.0.4",
- "uuid": "^8.3.0",
"webpack": "^5.67.0",
"webpack-cli": "^4.9.1"
},
diff --git a/package.json b/package.json
index 6f96a341..14c013a9 100644
--- a/package.json
+++ b/package.json
@@ -140,7 +140,6 @@
"unexpected-sinon": "^10.11.2",
"update-notifier": "^4.1.0",
"uslug": "^1.0.4",
- "uuid": "^8.3.0",
"webpack": "^5.67.0",
"webpack-cli": "^4.9.1"
},
diff --git a/scripts/karma-rollup-plugin.js b/scripts/karma-rollup-plugin.js
index a51eb226..bd009f2a 100644
--- a/scripts/karma-rollup-plugin.js
+++ b/scripts/karma-rollup-plugin.js
@@ -32,7 +32,7 @@
const os = require('os');
const fs = require('fs');
const path = require('path');
-const uuid = require('uuid');
+const {randomUUID} = require('crypto');
const rollup = require('rollup');
const minimatch = require('minimatch');
const loadConfigFile = require('rollup/dist/loadConfigFile.js');
@@ -57,7 +57,7 @@ function framework(fileConfigs, pluginConfig, basePath, preprocessors) {
)
);
- const bundleFilename = `${uuid.v4()}.rollup.js`;
+ const bundleFilename = `${randomUUID()}.rollup.js`;
let bundleLocation = path.resolve(
pluginConfig.bundleDirPath ? pluginConfig.bundleDirPath : os.tmpdir(),
bundleFilename