Skip to content

Commit

Permalink
chore: upgrade date-fns to v3 (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnntropy authored Mar 2, 2024
1 parent 57e150a commit 9fb960e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"apollo-server": "^3.5.0",
"axios": "^1.6.7",
"cron": "^3.1.6",
"date-fns": "^2.21.1",
"date-fns": "^3.3.1",
"deep-object-diff": "^1.1.0",
"discord.js": "^14.14.1",
"form-data": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/ModerationModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import emitter, { ModerationEventType } from "../emitter";
import { Command } from "../internal/command";
import { EventHandler, Module } from "../internal/types";
import parseDuration from "parse-duration";
import { intervalToDuration } from "date-fns";
import { intervalToDuration, Duration } from "date-fns";
import { bold, userMention } from "@discordjs/builders";
import { CronJob } from "cron";
import { getGeneralMessageChannelForGuild } from "../utils/guilds";
Expand Down
2 changes: 1 addition & 1 deletion src/mutes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { userMention } from "@discordjs/builders";
import { add, formatDuration } from "date-fns";
import { Duration, add, formatDuration } from "date-fns";
import {
CommandInteraction,
DiscordAPIError,
Expand Down
22 changes: 4 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,6 @@
dependencies:
xss "^1.0.8"

"@babel/runtime@^7.21.0":
version "7.24.0"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.0.tgz#584c450063ffda59697021430cb47101b085951e"
integrity sha512-Chk32uHMg6TnQdvw2e9IlqPpFX/6NLuK0Ys2PqLb7/gL5uFn9mXvK715FGLlOLQrcO4qIkNHkvPGktzzXexsFw==
dependencies:
regenerator-runtime "^0.14.0"

"@cspotcode/source-map-support@^0.8.0":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1"
Expand Down Expand Up @@ -1211,12 +1204,10 @@ dashdash@^1.12.0:
dependencies:
assert-plus "^1.0.0"

date-fns@^2.21.1:
version "2.30.0"
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.30.0.tgz#f367e644839ff57894ec6ac480de40cae4b0f4d0"
integrity sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==
dependencies:
"@babel/runtime" "^7.21.0"
date-fns@^3.3.1:
version "3.3.1"
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-3.3.1.tgz#7581daca0892d139736697717a168afbb908cfed"
integrity sha512-y8e109LYGgoQDveiEBD3DYXKba1jWf5BA8YU1FL5Tvm0BTdEfy54WLCwnuYWZNnzzvALy/QQ4Hov+Q9RVRv+Zw==

dateformat@^4.6.3:
version "4.6.3"
Expand Down Expand Up @@ -2458,11 +2449,6 @@ rechoir@^0.6.2:
dependencies:
resolve "^1.1.6"

regenerator-runtime@^0.14.0:
version "0.14.1"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f"
integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==

request@^2.88.0, request@^2.88.2:
version "2.88.2"
resolved "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3"
Expand Down

0 comments on commit 9fb960e

Please sign in to comment.