You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ha...@apache.org on 2026/02/16 12:49:32 UTC
(superset) 01/01: chore: use Node's native UUID v4 instead of third party
This is an automated email from the ASF dual-hosted git repository.
hainenber pushed a commit to branch chore/use-node-native-uuid-v4
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 546b594212bb006c1297d36d32217c71d185d070
Author: hainenber <do...@gmail.com>
AuthorDate: Mon Feb 16 19:49:08 2026 +0700
chore: use Node's native UUID v4 instead of third party
Signed-off-by: hainenber <do...@gmail.com>
---
superset-frontend/package-lock.json | 14 --------------
superset-frontend/package.json | 1 -
.../Datasource/FoldersEditor/folderOperations.ts | 4 ++--
3 files changed, 2 insertions(+), 17 deletions(-)
diff --git a/superset-frontend/package-lock.json b/superset-frontend/package-lock.json
index b8e1c67d89c..c6b0191761b 100644
--- a/superset-frontend/package-lock.json
+++ b/superset-frontend/package-lock.json
@@ -149,7 +149,6 @@
"use-event-callback": "^0.1.0",
"use-immer": "^0.11.0",
"use-query-params": "^2.2.2",
- "uuid": "^13.0.0",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
"yargs": "^17.7.2"
},
@@ -49558,19 +49557,6 @@
"base64-arraybuffer": "^1.0.2"
}
},
- "node_modules/uuid": {
- "version": "13.0.0",
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-13.0.0.tgz",
- "integrity": "sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==",
- "funding": [
- "https://github.com/sponsors/broofa",
- "https://github.com/sponsors/ctavan"
- ],
- "license": "MIT",
- "bin": {
- "uuid": "dist-node/bin/uuid"
- }
- },
"node_modules/uvu": {
"version": "0.5.6",
"resolved": "https://registry.npmjs.org/uvu/-/uvu-0.5.6.tgz",
diff --git a/superset-frontend/package.json b/superset-frontend/package.json
index 2cbd408419f..3e4265ab1ff 100644
--- a/superset-frontend/package.json
+++ b/superset-frontend/package.json
@@ -230,7 +230,6 @@
"use-event-callback": "^0.1.0",
"use-immer": "^0.11.0",
"use-query-params": "^2.2.2",
- "uuid": "^13.0.0",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
"yargs": "^17.7.2"
},
diff --git a/superset-frontend/src/components/Datasource/FoldersEditor/folderOperations.ts b/superset-frontend/src/components/Datasource/FoldersEditor/folderOperations.ts
index 852de41f7f9..9e37bbacd33 100644
--- a/superset-frontend/src/components/Datasource/FoldersEditor/folderOperations.ts
+++ b/superset-frontend/src/components/Datasource/FoldersEditor/folderOperations.ts
@@ -24,7 +24,7 @@
import { Metric, ColumnMeta } from '@superset-ui/chart-controls';
import { t } from '@apache-superset/core';
-import { v4 as uuidv4 } from 'uuid';
+import { randomUUID } from 'crypto';
import {
DatasourceFolder,
DatasourceFolderItem,
@@ -36,7 +36,7 @@ import {
} from './constants';
export const createFolder = (name: string): DatasourceFolder => ({
- uuid: uuidv4(),
+ uuid: randomUUID(),
type: FoldersEditorItemType.Folder,
name,
children: [],