From b97410702acd34b94056ab406d83beadca22a9ba Mon Sep 17 00:00:00 2001 From: Dan Livings Date: Tue, 17 Sep 2024 11:13:24 +0100 Subject: [PATCH] Include `date-fns` dependency This dependency introduces multiple utility functions for manipulating and presenting dates which will be helpful for presenting things such as the time left before support ends for a dependency or the age of an issue. This is the most popular dependency for date utilities and has no downstream dependencies, and given that code that manipulates dates and/or time are notoriously prone to gotchas, it seems like a good candidate for inclusion despite our preference to minimise dependencies for this project in general. --- package-lock.json | 11 +++++++++++ package.json | 1 + 2 files changed, 12 insertions(+) diff --git a/package-lock.json b/package-lock.json index 8bafe61..214a9e5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "license": "MIT", "dependencies": { "@octokit/app": "^15.1.0", + "date-fns": "^4.1.0", "nunjucks": "^3.2.4", "undici": "^6.19.8" }, @@ -790,6 +791,16 @@ "node": ">= 8" } }, + "node_modules/date-fns": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-4.1.0.tgz", + "integrity": "sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/kossnocorp" + } + }, "node_modules/debug": { "version": "4.3.6", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", diff --git a/package.json b/package.json index 164a1e8..8250334 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "license": "MIT", "dependencies": { "@octokit/app": "^15.1.0", + "date-fns": "^4.1.0", "nunjucks": "^3.2.4", "undici": "^6.19.8" },