Skip to content

Your favorite shift management application!

chore: drop unused react-day-picker, pin better-sqlite3 below 13 (#162)

panteL2e599b09eb1a
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index f645a5e..15bea33 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -19,6 +19,15 @@ updates:
- dependency-name: "better-auth"
versions:
- ">= 1.7.0"
+ # 13.0 rewrote the driver onto N-API and dropped the prebuild-install
+ # release assets. The npm package now ships prebuilds/, but it also ships
+ # binding.gyp without an install script, so npm falls back to
+ # `node-gyp rebuild` and compiles from source — which fails in the slim
+ # Alpine image, and would mean a from-scratch rewrite of the only
+ # datastore either way. Revisit once upstream stops triggering node-gyp.
+ - dependency-name: "better-sqlite3"
+ versions:
+ - ">= 13.0.0"
# GitHub Actions workflows (root)
- package-ecosystem: "github-actions"
diff --git a/components/ui/calendar.tsx b/components/ui/calendar.tsx
deleted file mode 100644
index 3ffc0d9..0000000
--- a/components/ui/calendar.tsx
+++ /dev/null
@@ -1,61 +0,0 @@
-"use client";
-
-import * as React from "react";
-import { DayPicker } from "react-day-picker";
-
-import { cn } from "@/lib/utils";
-import { buttonVariants } from "@/components/ui/button";
-
-export type CalendarProps = React.ComponentProps<typeof DayPicker>;
-
-function Calendar({
- className,
- classNames,
- showOutsideDays = true,
- ...props
-}: CalendarProps) {
- return (
- <DayPicker
- showOutsideDays={showOutsideDays}
- className={cn("p-3", className)}
- classNames={{
- months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
- month: "space-y-4",
- caption: "flex justify-center pt-1 relative items-center",
- caption_label: "text-sm font-medium",
- nav: "space-x-1 flex items-center",
- nav_button: cn(
- buttonVariants({ variant: "outline" }),
- "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
- ),
- nav_button_previous: "absolute left-1",
- nav_button_next: "absolute right-1",
- table: "w-full border-collapse space-y-1",
- head_row: "flex",
- head_cell:
- "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
- row: "flex w-full mt-2",
- cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
- day: cn(
- buttonVariants({ variant: "ghost" }),
- "h-9 w-9 p-0 font-normal aria-selected:opacity-100"
- ),
- day_range_end: "day-range-end",
- day_selected:
- "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
- day_today: "bg-accent text-accent-foreground",
- day_outside:
- "day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
- day_disabled: "text-muted-foreground opacity-50",
- day_range_middle:
- "aria-selected:bg-accent aria-selected:text-accent-foreground",
- day_hidden: "invisible",
- ...classNames,
- }}
- {...props}
- />
- );
-}
-Calendar.displayName = "Calendar";
-
-export { Calendar };
diff --git a/package-lock.json b/package-lock.json
index 49c431a..473ab21 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -45,7 +45,6 @@
"next-themes": "^0.4.6",
"react": "19.3.0",
"react-colorful": "^5.6.1",
- "react-day-picker": "^9.11.3",
"react-dom": "19.3.0",
"react-is": "19.3.0",
"recharts": "^3.6.0",
@@ -486,12 +485,6 @@
"integrity": "sha512-ABkD1WhyfPZprKRQI3bhATjeiFuNWC9PXhfGWqL+sg/gKrM977oFrYkdb4msM3hgUGonr7KlOsOFT5TU2rht9g==",
"license": "MIT"
},
- "node_modules/@date-fns/tz": {
- "version": "1.5.0",
- "resolved": "https://registry.npmjs.org/@date-fns/tz/-/tz-1.5.0.tgz",
- "integrity": "sha512-lwYN/vDPeNRULcepoE/LO2Pgx+7/RV+S9ARfbc9lr2DtGkOD7pAiruHvbR1RX3Qyf6ja47EWJDMsNK5vK08DJg==",
- "license": "MIT"
- },
"node_modules/@dnd-kit/accessibility": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/@dnd-kit/accessibility/-/accessibility-3.1.1.tgz",
@@ -4186,15 +4179,6 @@
"@swc/counter": "^0.1.3"
}
},
- "node_modules/@tabby_ai/hijri-converter": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/@tabby_ai/hijri-converter/-/hijri-converter-1.0.5.tgz",
- "integrity": "sha512-r5bClKrcIusDoo049dSL8CawnHR6mRdDwhlQuIgZRNty68q0x8k3Lf1BtPAMxRf/GgnHBnIO4ujd3+GQdLWzxQ==",
- "license": "MIT",
- "engines": {
- "node": ">=16.0.0"
- }
- },
"node_modules/@tailwindcss/node": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.3.tgz",
@@ -6353,12 +6337,6 @@
"url": "https://github.com/sponsors/kossnocorp"
}
},
- "node_modules/date-fns-jalali": {
- "version": "4.1.0-0",
- "resolved": "https://registry.npmjs.org/date-fns-jalali/-/date-fns-jalali-4.1.0-0.tgz",
- "integrity": "sha512-hTIP/z+t+qKwBDcmmsnmjWTduxCg+5KfdqWQvb2X/8C9+knYY6epN/pfxdDuyVlSVeFz0sM5eEfwIUQ70U4ckg==",
- "license": "MIT"
- },
"node_modules/debug": {
"version": "4.4.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
@@ -10111,28 +10089,6 @@
"react-dom": ">=16.8.0"
}
},
- "node_modules/react-day-picker": {
- "version": "9.14.0",
- "resolved": "https://registry.npmjs.org/react-day-picker/-/react-day-picker-9.14.0.tgz",
- "integrity": "sha512-tBaoDWjPwe0M5pGrum4H0SR6Lyk+BO9oHnp9JbKpGKW2mlraNPgP9BMfsg5pWpwrssARmeqk7YBl2oXutZTaHA==",
- "license": "MIT",
- "dependencies": {
- "@date-fns/tz": "^1.4.1",
- "@tabby_ai/hijri-converter": "1.0.5",
- "date-fns": "^4.1.0",
- "date-fns-jalali": "4.1.0-0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "type": "individual",
- "url": "https://github.com/sponsors/gpbl"
- },
- "peerDependencies": {
- "react": ">=16.8.0"
- }
- },
"node_modules/react-dom": {
"version": "19.3.0",
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.0.tgz",
diff --git a/package.json b/package.json
index 3a488d4..4505b7a 100644
--- a/package.json
+++ b/package.json
@@ -59,7 +59,6 @@
"next-themes": "^0.4.6",
"react": "19.3.0",
"react-colorful": "^5.6.1",
- "react-day-picker": "^9.11.3",
"react-dom": "19.3.0",
"react-is": "19.3.0",
"recharts": "^3.6.0",