Skip to content

Commit de85ebf

Browse files
committed
Upgrade packages
1 parent ff3b3c1 commit de85ebf

File tree

7 files changed

+67
-104
lines changed

7 files changed

+67
-104
lines changed

lib/renkyu.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import holiday_jp from "@holiday-jp/holiday_jp";
2-
import startOfDay from "date-fns/startOfDay/index.js";
3-
import add from "date-fns/add/index.js";
2+
import { add, startOfDay } from "date-fns";
43

54
function isNonBusinessDay(d: Date): boolean {
65
return holiday_jp.isHoliday(d) || d.getDay() === 0 || d.getDay() === 6;

package-lock.json

Lines changed: 44 additions & 82 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,18 @@
1212
},
1313
"dependencies": {
1414
"@astrojs/react": "^4.4.2",
15-
"@holiday-jp/holiday_jp": "^2.4.0",
15+
"@holiday-jp/holiday_jp": "^2.5.1",
1616
"astro": "^5.16.3",
1717
"daisyui": "^5.5.5",
18-
"date-fns": "^2.30.0",
19-
"react": "^18.3.1",
20-
"react-dom": "^18.3.1",
21-
"react-icons": "^4.12.0",
18+
"date-fns": "^4.1.0",
19+
"react": "^19.2.0",
20+
"react-dom": "^19.2.0",
21+
"react-icons": "^5.5.0",
2222
"tailwindcss": "^4.1.17"
2323
},
2424
"devDependencies": {
25-
"@tailwindcss/vite": "^4.1.17"
25+
"@tailwindcss/vite": "^4.1.17",
26+
"@types/react": "^19.2.7",
27+
"@types/react-dom": "^19.2.3"
2628
}
2729
}

src/components/Chart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Renkyu } from "../../lib/renkyu";
2-
import { FaHeart } from "react-icons/fa/index.js";
2+
import { FaHeart } from "react-icons/fa";
33

44
const char = "♥";
55

src/components/Day.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import format from "date-fns/format/index.js";
2-
import ja from "date-fns/locale/ja/index.js";
1+
import { format } from "date-fns";
2+
import { ja } from "date-fns/locale";
33

44
type Props = {
55
date: Date;

src/components/Footer.astro

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<footer class="footer footer-center p-10 bg-neutral text-neutral-content">
2-
<div>土曜、日曜、祝日を休日として計算しています。</div>
3-
<div>
4-
<p>
2+
<div class="text-center space-y-1">
3+
<div>土曜、日曜、祝日を休日として計算しています。</div>
4+
<div>
55
祝日データは <a
66
href="https://github.com/holiday-jp/holiday_jp-js"
77
rel="nofollow"
88
target="_blank">holiday-jp/holiday_jp-js</a
99
> を利用しています。
10-
</p>
11-
</div>
12-
<div>
13-
<a
14-
href="https://github.com/darashi/renkyu-maker"
15-
rel="nofollow"
16-
target="_blank">GitHub</a>
10+
</div>
11+
<div>
12+
<a
13+
href="https://github.com/darashi/renkyu-maker"
14+
rel="nofollow"
15+
target="_blank">GitHub</a>
16+
</div>
1717
</div>
1818
</footer>

src/components/RenkyuCards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useEffect, useState } from "react";
22
import { Renkyu } from "../../lib/renkyu";
33
import RenkyCard from "./RenkyuCard";
4-
import startOfDay from "date-fns/startOfDay/index.js";
4+
import { startOfDay } from "date-fns";
55

66
type Props = {
77
year: number;

0 commit comments

Comments
 (0)