From e686cd68e01ab6723df118a48076400a024dd86b Mon Sep 17 00:00:00 2001 From: Jakob Linskeseder Date: Fri, 17 Jan 2025 23:04:18 +0100 Subject: [PATCH] chore: remove unused npm dependencies Signed-off-by: Jakob Linskeseder --- package-lock.json | 30 +----------------------------- package.json | 4 ---- src/models/task.js | 3 +-- 3 files changed, 2 insertions(+), 35 deletions(-) diff --git a/package-lock.json b/package-lock.json index cadb69eed..812870e5b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,6 @@ "version": "0.16.1", "license": "AGPLv3", "dependencies": { - "@nextcloud/auth": "^2.4.0", "@nextcloud/axios": "^2.5.1", "@nextcloud/calendar-js": "8.0.3", "@nextcloud/cdav-library": "1.5.2", @@ -25,15 +24,12 @@ "color-convert": "^2.0.1", "debounce": "^2.2.0", "ical.js": "^2.1.0", - "linkify-it": "^5.0.0", "markdown-it": "^14.1.0", "markdown-it-emoji": "^3.0.0", "markdown-it-link-attributes": "^4.0.1", "markdown-it-task-lists": "^2.1.1", "md5": "^2.3.0", - "p-limit": "^6.2.0", "sortablejs-vue3": "^1.2.11", - "uuid": "^11.0.5", "vue": "^3.5.13", "vue-material-design-icons": "^5.3.1", "vue-router": "^4.5.0", @@ -10330,20 +10326,6 @@ "integrity": "sha512-gjcpUc3clBf9+210TRaDWbf+rZZZEshZ+DlXMRCeAjp0xhTrnQsKHypIy1J3d5hKdUzj69t708EHtU8P6bUn0A==", "dev": true }, - "node_modules/p-limit": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-6.2.0.tgz", - "integrity": "sha512-kuUqqHNUqoIWp/c467RI4X6mmyuojY5jGutNU0wVTmEOOfcuwLqyMVoAi9MKi2Ak+5i9+nhmrK4ufZE8069kHA==", - "dependencies": { - "yocto-queue": "^1.1.1" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/p-locate": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", @@ -13143,6 +13125,7 @@ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" ], + "peer": true, "bin": { "uuid": "dist/esm/bin/uuid" } @@ -14202,17 +14185,6 @@ "dev": true, "peer": true }, - "node_modules/yocto-queue": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.1.1.tgz", - "integrity": "sha512-b4JR1PFR10y1mKjhHY9LaGo6tmrgjit7hxVIeAmyMw3jegXR4dhYqLaQF5zMXZxY7tLpMyJeLjr1C4rLmkVe8g==", - "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/zwitch": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", diff --git a/package.json b/package.json index ea58eab59..f15b18a63 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "bugs": "https://github.com/nextcloud/tasks/issues", "contributors": [], "dependencies": { - "@nextcloud/auth": "^2.4.0", "@nextcloud/axios": "^2.5.1", "@nextcloud/calendar-js": "8.0.3", "@nextcloud/cdav-library": "1.5.2", @@ -43,15 +42,12 @@ "color-convert": "^2.0.1", "debounce": "^2.2.0", "ical.js": "^2.1.0", - "linkify-it": "^5.0.0", "markdown-it": "^14.1.0", "markdown-it-emoji": "^3.0.0", "markdown-it-link-attributes": "^4.0.1", "markdown-it-task-lists": "^2.1.1", "md5": "^2.3.0", - "p-limit": "^6.2.0", "sortablejs-vue3": "^1.2.11", - "uuid": "^11.0.5", "vue": "^3.5.13", "vue-material-design-icons": "^5.3.1", "vue-router": "^4.5.0", diff --git a/src/models/task.js b/src/models/task.js index 5bdd1821d..cbc3138f0 100644 --- a/src/models/task.js +++ b/src/models/task.js @@ -26,7 +26,6 @@ import moment from '@nextcloud/moment' -import { v4 as uuid } from 'uuid' import ICAL from 'ical.js' export default class Task { @@ -83,7 +82,7 @@ export default class Task { if (!this.vtodo.hasProperty('uid')) { console.debug('This task did not have a proper uid. Setting a new one for ', this) - this.vtodo.addPropertyWithValue('uid', uuid()) + this.vtodo.addPropertyWithValue('uid', crypto.randomUUID()) } // Define components