From 45bd10b9fef50eedad10c89c0a51a6547adf8708 Mon Sep 17 00:00:00 2001 From: Bashamega Date: Thu, 25 Jun 2026 08:42:26 +0300 Subject: [PATCH] feat: remove uuid dep --- package-lock.json | 52 ++++++++++++------- package.json | 3 +- .../JsonGenerator/components/CardForm.jsx | 6 ++- .../JsonGenerator/components/Init.jsx | 7 ++- techstack.md | 1 - techstack.yml | 14 ----- 6 files changed, 42 insertions(+), 41 deletions(-) diff --git a/package-lock.json b/package-lock.json index 43d74300..2837b2ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -59,8 +59,7 @@ "tailwindcss": "^4.2.1", "tailwindcss-animate": "^1.0.7", "typeify": "^0.1.1", - "typescript": "^5.9.3", - "uuid": "^11.1.0" + "typescript": "^5.9.3" }, "devDependencies": { "@testing-library/dom": "^10.4.1", @@ -132,6 +131,7 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/@asciidoctor/core/-/core-3.0.4.tgz", "integrity": "sha512-41SDMi7iRRBViPe0L6VWFTe55bv6HEOJeRqMj5+E5wB1YPdUPuTucL4UAESPZM6OWmn4t/5qM5LusXomFUVwVQ==", + "peer": true, "dependencies": { "@asciidoctor/opal-runtime": "3.0.1", "unxhr": "1.2.0" @@ -183,6 +183,7 @@ "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/code-frame": "^7.29.0", "@babel/generator": "^7.29.0", @@ -639,6 +640,7 @@ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.2.tgz", "integrity": "sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g==", "license": "MIT", + "peer": true, "engines": { "node": ">=6.9.0" } @@ -859,6 +861,7 @@ } ], "license": "MIT", + "peer": true, "engines": { "node": ">=18" }, @@ -882,6 +885,7 @@ } ], "license": "MIT", + "peer": true, "engines": { "node": ">=18" } @@ -960,6 +964,7 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.3.0.tgz", "integrity": "sha512-SHetuSLvJDzuNbOdtPVbq6yMMMlLoW5Q94uDqJZqy50gcmAjxFkVqmzqSGEFq9gT2iMuIeKV1PXVWmvUhuZLlQ==", + "peer": true, "dependencies": { "@emotion/memoize": "^0.9.0" } @@ -974,6 +979,7 @@ "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.14.0.tgz", "integrity": "sha512-O000MLDBDdk/EohJPFUqvnp4qnHeYkVP5B0xEG0D/L7cOKP9kefu2DXn8dj74cQfsEzUqh+sr1RzFqiL1o+PpA==", "license": "MIT", + "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", "@emotion/babel-plugin": "^11.13.5", @@ -1016,6 +1022,7 @@ "resolved": "https://registry.npmjs.org/@emotion/styled/-/styled-11.14.1.tgz", "integrity": "sha512-qEEJt42DuToa3gurlH4Qqc1kVpNq8wO8cJtDzU46TjlzWjDlsVyevtYCRijVq3SrHsROS+gVQ8Fnea108GnKzw==", "license": "MIT", + "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", "@emotion/babel-plugin": "^11.13.5", @@ -2738,6 +2745,7 @@ "resolved": "https://registry.npmjs.org/@mui/material/-/material-9.0.0.tgz", "integrity": "sha512-+VP/oQCDhDR87NQQgXnNBG8dwy6GNuQLnenS1pZvkbn2dKFSxRSRMybTpH9xUxXP+316mlYDy5CSbYtusnCWtw==", "license": "MIT", + "peer": true, "dependencies": { "@babel/runtime": "^7.29.2", "@mui/core-downloads-tracker": "^9.0.0", @@ -4925,6 +4933,7 @@ "version": "18.3.3", "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.3.tgz", "integrity": "sha512-hti/R0pS0q1/xx+TsI73XIqk26eBsISZ2R0wUijXIngRK9R/e7Xw/cXVxQK7R5JjW+SV4zGcn5hXjudkN/pLIw==", + "peer": true, "dependencies": { "@types/prop-types": "*", "csstype": "^3.0.2" @@ -5046,6 +5055,7 @@ "integrity": "sha512-/Zb/xaIDfxeJnvishjGdcR4jmr7S+bda8PKNhRGdljDM+elXhlvN0FyPSsMnLmJUrVG9aPO6dof80wjMawsASg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.58.2", "@typescript-eslint/types": "8.58.2", @@ -5713,6 +5723,7 @@ "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", "dev": true, "license": "MIT", + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -6345,6 +6356,7 @@ } ], "license": "MIT", + "peer": true, "dependencies": { "baseline-browser-mapping": "^2.10.12", "caniuse-lite": "^1.0.30001782", @@ -6836,7 +6848,8 @@ "version": "3.2.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/damerau-levenshtein": { "version": "1.0.8", @@ -7405,6 +7418,7 @@ "integrity": "sha512-wiyGaKsDgqXvF40P8mDwiUp/KQjE1FdrIEJsM8PZ3XCiniTMXS3OHWWUe5FI5agoCnr8x4xPrTDZuxsBlNHl+Q==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.2", @@ -7541,6 +7555,7 @@ "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@rtsao/scc": "^1.1.0", "array-includes": "^3.1.9", @@ -7702,6 +7717,7 @@ "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", "dev": true, "license": "MIT", + "peer": true, "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -10746,6 +10762,7 @@ "integrity": "sha512-Cvc9WUhxSMEo4McES3P7oK3QaXldCfNWp7pl2NNeiIFlCoLr3kfq9kb1fxftiwk1FLV7CvpvDfonxtzUDeSOPg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "cssstyle": "^4.2.1", "data-urls": "^5.0.0", @@ -12509,6 +12526,7 @@ "resolved": "https://registry.npmjs.org/next/-/next-16.2.3.tgz", "integrity": "sha512-9V3zV4oZFza3PVev5/poB9g0dEafVcgNyQ8eTRop8GvxZjV2G15FC5ARuG1eFD42QgeYkzJBJzHghNP8Ad9xtA==", "license": "MIT", + "peer": true, "dependencies": { "@next/env": "16.2.3", "@swc/helpers": "0.5.15", @@ -13239,6 +13257,7 @@ "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", "dev": true, "license": "MIT", + "peer": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -13314,6 +13333,7 @@ "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "peer": true, "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", @@ -13530,6 +13550,7 @@ "resolved": "https://registry.npmjs.org/react/-/react-19.2.5.tgz", "integrity": "sha512-llUJLzz1zTUBrskt2pwZgLq59AemifIftw4aB7JxOqf1HY2FDaGDxgwpAPVzHU1kdWabH7FauP4i1oEeer2WCA==", "license": "MIT", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -13617,6 +13638,7 @@ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.5.tgz", "integrity": "sha512-J5bAZz+DXMMwW/wV3xzKke59Af6CHY7G4uYLN1OvBcKEsWOs4pQExj86BBKamxl/Ik5bx9whOrvBlSDfWzgSag==", "license": "MIT", + "peer": true, "dependencies": { "scheduler": "^0.27.0" }, @@ -13649,6 +13671,7 @@ "version": "11.11.0", "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.11.0.tgz", "integrity": "sha512-ZSK3ZJsNkwfjT3JpDAWJZlrGD81Z3ytNDsxw1LKq1o+xkmO5pnWfr6gmCC8gHEFf3nSSX/09YrG67jybNPxSUw==", + "peer": true, "dependencies": { "@babel/runtime": "^7.18.3", "@emotion/babel-plugin": "^11.11.0", @@ -13952,7 +13975,8 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/redux/-/redux-5.0.1.tgz", "integrity": "sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==", - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/reflect.getprototypeof": { "version": "1.0.9", @@ -14266,6 +14290,7 @@ "resolved": "https://registry.npmjs.org/sass/-/sass-1.98.0.tgz", "integrity": "sha512-+4N/u9dZ4PrgzGgPlKnaaRQx64RO0JBKs9sDhQ2pLgN6JQZ25uPQZKQYaBJU48Kd5BxgXoJ4e09Dq7nMcOUW3A==", "license": "MIT", + "peer": true, "dependencies": { "chokidar": "^4.0.0", "immutable": "^5.1.5", @@ -15048,7 +15073,8 @@ "version": "4.2.2", "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.2.2.tgz", "integrity": "sha512-KWBIxs1Xb6NoLdMVqhbhgwZf2PGBpPEiwOqgI4pFIYbNTfBXiKYyWoTsXgBQ9WFg/OlhnvHaY+AEpW7wSmFo2Q==", - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/tailwindcss-animate": { "version": "1.0.7", @@ -15201,6 +15227,7 @@ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -15458,6 +15485,7 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "license": "Apache-2.0", + "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -15808,19 +15836,6 @@ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, - "node_modules/uuid": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.0.tgz", - "integrity": "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/esm/bin/uuid" - } - }, "node_modules/v8-to-istanbul": { "version": "9.3.0", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", @@ -16308,6 +16323,7 @@ "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==", "dev": true, "license": "MIT", + "peer": true, "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/package.json b/package.json index a045ef6f..580b2e2d 100644 --- a/package.json +++ b/package.json @@ -68,8 +68,7 @@ "tailwindcss": "^4.2.1", "tailwindcss-animate": "^1.0.7", "typeify": "^0.1.1", - "typescript": "^5.9.3", - "uuid": "^11.1.0" + "typescript": "^5.9.3" }, "devDependencies": { "@testing-library/dom": "^10.4.1", diff --git a/src/app/customizer/JsonGenerator/components/CardForm.jsx b/src/app/customizer/JsonGenerator/components/CardForm.jsx index 99bbc6c7..2358b70c 100644 --- a/src/app/customizer/JsonGenerator/components/CardForm.jsx +++ b/src/app/customizer/JsonGenerator/components/CardForm.jsx @@ -1,5 +1,4 @@ import { useState, useEffect } from "react"; -import { v4 as uuidv4 } from "uuid"; import { Reorder, useDragControls } from "framer-motion"; import { saveAs } from "file-saver"; import Categories from "../utils"; @@ -67,7 +66,10 @@ export default function CardForm({ isDarkMode }) { }; const addField = () => { - setFields([...fields, { id: uuidv4(), fieldName: "", fieldType: "" }]); + setFields([ + ...fields, + { id: crypto.randomUUID(), fieldName: "", fieldType: "" }, + ]); }; const removeField = (id) => { diff --git a/src/app/customizer/JsonGenerator/components/Init.jsx b/src/app/customizer/JsonGenerator/components/Init.jsx index 91a11dd4..6e8fadf4 100644 --- a/src/app/customizer/JsonGenerator/components/Init.jsx +++ b/src/app/customizer/JsonGenerator/components/Init.jsx @@ -1,6 +1,5 @@ -import { v4 as uuidv4 } from "uuid"; export const initialFields = () => [ - { id: uuidv4(), fieldName: "id", fieldType: "" }, - { id: uuidv4(), fieldName: "first_name", fieldType: "" }, - { id: uuidv4(), fieldName: "last_name", fieldType: "" }, + { id: crypto.randomUUID(), fieldName: "id", fieldType: "" }, + { id: crypto.randomUUID(), fieldName: "first_name", fieldType: "" }, + { id: crypto.randomUUID(), fieldName: "last_name", fieldType: "" }, ]; diff --git a/techstack.md b/techstack.md index 9b1fbecc..6fcf2015 100644 --- a/techstack.md +++ b/techstack.md @@ -179,7 +179,6 @@ | [react-icons](https://www.npmjs.com/react-icons) | v5.2.1 | 07/09/24 | Jitendra | MIT | N/A | | [react-tabs](https://www.npmjs.com/react-tabs) | v6.0.2 | 07/09/24 | Jitendra | N/A | N/A | | [tailwindcss](https://www.npmjs.com/tailwindcss) | v3.4.4 | 07/05/24 | renovate[bot] | MIT | N/A | -| [uuid](https://www.npmjs.com/uuid) | v10.0.0 | 07/04/24 | renovate[bot] | MIT | N/A | | [xml2js](https://www.npmjs.com/xml2js) | v0.6.2 | 07/21/24 | Bashamega | MIT | N/A |
diff --git a/techstack.yml b/techstack.yml index bd70ea05..641a26c6 100644 --- a/techstack.yml +++ b/techstack.yml @@ -383,20 +383,6 @@ tools: detection_source: package.json last_updated_by: renovate[bot] last_updated_on: 2024-07-05 02:38:26.000000000 Z - - name: uuid - description: RFC4122 - package_url: https://www.npmjs.com/uuid - version: 10.0.0 - license: MIT - open_source: true - hosted_saas: false - category: Libraries - sub_category: npm Packages - image_url: https://img.stackshare.io/package/15916/default_e0a4fb1126d7400f419f0931cf1669947a5bc552.png - detection_source_url: https://github.com/Bashamega/WebDevTools/blob/main/package-lock.json - detection_source: package.json - last_updated_by: renovate[bot] - last_updated_on: 2024-07-04 16:27:45.000000000 Z - name: xml2js description: Simple XML to JavaScript object converter package_url: https://www.npmjs.com/xml2js