Commit 3432a10
Bump lucide-svelte from 0.577.0 to 1.0.1 (#180)
* Bump lucide-svelte from 0.577.0 to 1.0.1
Bumps [lucide-svelte](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-svelte) from 0.577.0 to 1.0.1.
- [Release notes](https://github.com/lucide-icons/lucide/releases)
- [Commits](https://github.com/lucide-icons/lucide/commits/1.0.1/packages/lucide-svelte)
---
updated-dependencies:
- dependency-name: lucide-svelte
dependency-version: 1.0.1
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* deps: bump lucide-svelte to 1.0.1, replace removed Github icon, close #214 Group D
## What was wrong
Two separate problems blocked this dependabot bump:
1. **Github icon removed from lucide.** lucide v1.0 dropped many brand
icons (Github, Discord, etc.) for trademark reasons. The bare bump
produced two `[MISSING_EXPORT]` build failures in marketplace and
settings cloud-sync tab.
2. **#214 Group D — 7 TS errors on icon props.** Existing errors on
`ActionMenuItem` / `EmptyState` `icon={SomeIcon}` call sites in
`ProjectCard`, `ProjectList`, `McpLibrary`. Both consumers typed
the prop as Svelte 5's `Component<any>`, which lucide-svelte 1.x
doesn't satisfy: it still exports icons as the legacy
`SvelteComponentTyped` class shape (renders fine at runtime, but
TS treats `typeof RefreshCw` as incompatible with `Component<...>`).
Pre-existing in main since #210/lucide major bumps.
## Fix
- Inlined a `GithubIcon.svelte` component using lucide's original
stroke-style Github SVG path so the visual is identical to what we
had pre-upgrade. Props mirror lucide's shape (`class`, `size`,
`color`, `strokeWidth`) so call sites stay one-liners. Replaced the
4 `<Github ...>` usages in `marketplace/+page.svelte` and
`SettingsCloudSyncTab.svelte` with `<GithubIcon ...>`.
- Loosened `icon` prop type in `ActionMenuItem` and `EmptyState` via
a documented `IconLike = any` alias. Comment explains why (lucide
uses legacy SvelteComponentTyped — accepting both shapes via a
union would be uglier and gain little). This is the canonical
resolution for #214 Group D — also closes the 7 errors when the
bump lands.
## Verification
- `npm run check` — **11 errors** (down from 18 on `main`; closes all
7 Group D errors)
- `npm run build` — succeeds
- `npx vitest run` — 1567/1567 pass
## Net file changes
- `package.json` / `package-lock.json` — lucide-svelte 0.577 -> 1.0.1
- `src/lib/components/shared/GithubIcon.svelte` (new, ~40 lines)
- `src/lib/components/shared/ActionMenuItem.svelte` — icon type
- `src/lib/components/shared/EmptyState.svelte` — icon type
- `src/lib/components/settings/tabs/SettingsCloudSyncTab.svelte` — import swap
- `src/routes/marketplace/+page.svelte` — import swap
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: Tyler Gray <tylerg@emergentsoftware.net>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 55281a5 commit 3432a10
7 files changed
Lines changed: 83 additions & 15 deletions
File tree
- src
- lib/components
- settings/tabs
- routes/marketplace
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
120 | | - | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
187 | | - | |
| 188 | + | |
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | | - | |
| 11 | + | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | | - | |
| 11 | + | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | | - | |
| 462 | + | |
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
| |||
0 commit comments