From f0e6392f06da92cd9cdcba04de1a0bd28ec0c2b9 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Wed, 10 Jan 2024 16:36:13 +0100 Subject: [PATCH] feat: migrate from moment to date-fns --- package-lock.json | 33 +++++++++--------------------- package.json | 2 +- src/components/Discover/Search.vue | 6 +++--- src/components/Feed/Episodes.vue | 6 +++--- src/store/player.js | 4 ++-- 5 files changed, 19 insertions(+), 32 deletions(-) diff --git a/package-lock.json b/package-lock.json index c8cf09c..032b505 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,9 +13,9 @@ "@nextcloud/dialogs": "^5.0.3", "@nextcloud/initial-state": "^2.1.0", "@nextcloud/l10n": "^2.2.0", - "@nextcloud/moment": "^1.3.0", "@nextcloud/router": "^2.2.0", "@nextcloud/vue": "^8.4.0", + "date-fns": "^3.2.0", "vue": "^2", "vue-material-design-icons": "^5.2.0", "vue-router": "^3", @@ -3217,20 +3217,6 @@ "npm": "^9.0.0" } }, - "node_modules/@nextcloud/moment": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@nextcloud/moment/-/moment-1.3.0.tgz", - "integrity": "sha512-UnCjVeif8KmDhuqpl1KwNaVXtPsXZjm/B+LmJoXiJCapKVhAt1+DK106VqGFNYutxfKdD/5ny+JOvBIVEce9CA==", - "dependencies": { - "@nextcloud/l10n": "^2.2.0", - "moment": "^2.30.1", - "node-gettext": "^3.0.0" - }, - "engines": { - "node": "^20.0.0", - "npm": "^9.0.0" - } - }, "node_modules/@nextcloud/paths": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/@nextcloud/paths/-/paths-2.1.0.tgz", @@ -6752,6 +6738,15 @@ "node": ">= 12" } }, + "node_modules/date-fns": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.2.0.tgz", + "integrity": "sha512-E4KWKavANzeuusPi0jUjpuI22SURAznGkx7eZV+4i6x2A+IZxAMcajgkvuDAU1bg40+xuhW1zRdVIIM/4khuIg==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/kossnocorp" + } + }, "node_modules/date-format-parse": { "version": "0.2.7", "resolved": "https://registry.npmjs.org/date-format-parse/-/date-format-parse-0.2.7.tgz", @@ -13157,14 +13152,6 @@ "node": ">= 6" } }, - "node_modules/moment": { - "version": "2.30.1", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz", - "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==", - "engines": { - "node": "*" - } - }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", diff --git a/package.json b/package.json index 5f66dd9..b8d3fec 100644 --- a/package.json +++ b/package.json @@ -22,9 +22,9 @@ "@nextcloud/dialogs": "^5.0.3", "@nextcloud/initial-state": "^2.1.0", "@nextcloud/l10n": "^2.2.0", - "@nextcloud/moment": "^1.3.0", "@nextcloud/router": "^2.2.0", "@nextcloud/vue": "^8.4.0", + "date-fns": "^3.2.0", "vue": "^2", "vue-material-design-icons": "^5.2.0", "vue-router": "^3", diff --git a/src/components/Discover/Search.vue b/src/components/Discover/Search.vue index 997423d..5fd2027 100644 --- a/src/components/Discover/Search.vue +++ b/src/components/Discover/Search.vue @@ -4,7 +4,7 @@