Skip to content

Commit f277438

Browse files
Dbochmandependabot[bot]claude
authored
fix(deps): migrate to lucide-react 1.x (#293)
* deps(deps): bump lucide-react from 0.563.0 to 1.8.0 Bumps [lucide-react](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-react) from 0.563.0 to 1.8.0. - [Release notes](https://github.com/lucide-icons/lucide/releases) - [Commits](https://github.com/lucide-icons/lucide/commits/1.8.0/packages/lucide-react) --- updated-dependencies: - dependency-name: lucide-react dependency-version: 1.8.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix(deps): migrate to lucide-react 1.x Lucide 1.x dropped brand icons (no Linkedin) and made LucideIcon type-only. This bundles the major bump with the source-side fixes so the dependabot PR #292 can be replaced cleanly. - Add src/components/icons/LinkedinIcon.tsx as a small inline-SVG component matching the GitHubMark pattern. Uses currentColor so it inherits text color the same way the lucide icon did. - Switch HeroSection and ContactSection to import LinkedinIcon instead of Linkedin from lucide-react. - Fix the value-import of LucideIcon in MetricCard.tsx — it's a type now, not a runtime export. All 215 tests pass; typecheck clean. Closes #292 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 4f796ef commit f277438

6 files changed

Lines changed: 29 additions & 10 deletions

File tree

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"framer-motion": "^12.38.0",
7676
"googleapis": "^171.4.0",
7777
"gray-matter": "^4.0.3",
78-
"lucide-react": "^0.563.0",
78+
"lucide-react": "^1.8.0",
7979
"mermaid": "^11.12.2",
8080
"next-themes": "^0.4.6",
8181
"react": "^18.3.1",

src/components/analytics/MetricCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { memo } from 'react';
22
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
33
import { cn } from '@/lib/utils';
4-
import { LucideIcon, TrendingUp, TrendingDown } from 'lucide-react';
4+
import { TrendingUp, TrendingDown, type LucideIcon } from 'lucide-react';
55

66
interface MetricCardProps {
77
title: string;
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
export function LinkedinIcon({ className }: { className?: string }) {
2+
return (
3+
<svg
4+
className={className}
5+
width="24"
6+
height="24"
7+
viewBox="0 0 24 24"
8+
xmlns="http://www.w3.org/2000/svg"
9+
aria-hidden="true"
10+
>
11+
<path
12+
d="M21,21H17V14.25C17,13.19 15.81,12.31 14.75,12.31C13.69,12.31 13,13.19 13,14.25V21H9V9H13V11C13.66,9.93 15.36,9.24 16.5,9.24C19,9.24 21,11.28 21,13.75V21M7,21H3V9H7V21M5,3A2,2 0 0,1 7,5A2,2 0 0,1 5,7A2,2 0 0,1 5,3Z"
13+
fill="currentColor"
14+
/>
15+
</svg>
16+
);
17+
}

src/components/sections/ContactSection.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11

22
import React from 'react';
33
import { Button } from "@/components/ui/button";
4-
import { Mail, Linkedin } from "lucide-react";
4+
import { Mail } from "lucide-react";
5+
import { LinkedinIcon } from "@/components/icons/LinkedinIcon";
56
import SloGauge from "@/components/icons/SloGauge";
67
import UptimeTimeline from "@/components/icons/UptimeTimeline";
78
import { Footer } from "@/components/layout/Footer";
@@ -50,7 +51,7 @@ const ContactSection = () => {
5051
});
5152
}
5253
}}>
53-
<Linkedin className="w-4 h-4 mr-2" />
54+
<LinkedinIcon className="w-4 h-4 mr-2" />
5455
LinkedIn
5556
</a>
5657
</Button>

src/components/sections/HeroSection.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11

22
import React from 'react';
33
import { Button } from "@/components/ui/button";
4-
import { Mail, Linkedin, MapPin, Activity } from "lucide-react";
4+
import { Mail, MapPin, Activity } from "lucide-react";
55
import { GitHubMark } from "@/components/icons/GitHubMark";
6+
import { LinkedinIcon } from "@/components/icons/LinkedinIcon";
67
import ErrorRateChart from "@/components/icons/ErrorRateChart";
78
import LatencyHistogram from "@/components/icons/LatencyHistogram";
89
import AlertCounter from "@/components/icons/AlertCounter";
@@ -63,7 +64,7 @@ const HeroSection = () => {
6364
</Button>
6465
<Button size="lg" className="bg-foreground text-background hover:bg-foreground/90 hover-lift font-medium" asChild>
6566
<a href="https://www.linkedin.com/in/dbochman/" target="_blank" rel="noopener noreferrer" aria-label="Visit Dylan Bochman's LinkedIn profile">
66-
<Linkedin className="w-4 h-4 mr-2" />
67+
<LinkedinIcon className="w-4 h-4 mr-2" />
6768
LinkedIn
6869
</a>
6970
</Button>

0 commit comments

Comments
 (0)