fix CI: errcheck in the migration test, Svelte 5 icon and props types, hold Android's SDK-37 libraries (#8532, #8533)
release / web (push) Failing after 1m23s
release / go (push) Successful in 1m48s
release / govulncheck (push) Successful in 16s
release / integration (push) Successful in 2m36s
release / android (push) Successful in 4m36s
release / Build signed APK (push) Successful in 4m59s
release / Build + push container image (push) Skipped
release / web (push) Failing after 1m23s
release / go (push) Successful in 1m48s
release / govulncheck (push) Successful in 16s
release / integration (push) Successful in 2m36s
release / android (push) Successful in 4m36s
release / Build signed APK (push) Successful in 4m59s
release / Build + push container image (push) Skipped
Run 11469 failed in three places:
- golangci-lint (errcheck) flagged three unchecked Close calls in
migrations_roundtrip_test.go. Their errors are now discarded
explicitly.
- svelte-check found two kinds of error:
- IconProp was typed for class-based lucide-svelte components.
@lucide/svelte's are Svelte 5 components, so it is now LucideIcon.
- Svelte 5.60 no longer accepts $props<T>(). Eight components now
type the destructuring instead.
- Android: compose-bom 2026.11, androidx.hilt 1.4, navigation 2.10,
lifecycle 2.11, core-ktx 1.19, mediarouter 1.9, coil 3.6 and
OkHttp 5 all require compileSdk 37. ci-android:36 carries SDK 36, so
they are held at their previous versions until an SDK 37 image
exists. OkHttp takes 4.12.1.
- ktlint-gradle 14's newer ktlint rules flag 751 lines in the test
sources, so it stays on 12 until those sources are reformatted.
The rest of the Android update stays: Kotlin 2.4, AGP 9.5, Gradle 9.9,
Retrofit 3, JUnit 6 and the others.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
import TrackListRow from './TrackListRow.svelte';
|
||||
import Cover from './Cover.svelte';
|
||||
|
||||
let { event } = $props<{ event: HistoryEvent }>();
|
||||
let { event }: { event: HistoryEvent } = $props();
|
||||
|
||||
function handleClick() {
|
||||
playQueue([event.track], 0, { source: playSource.history });
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
import { reorderDrag } from './reorder-drag';
|
||||
import LikeButton from './LikeButton.svelte';
|
||||
|
||||
let { track, index, isCurrent } = $props<{
|
||||
let { track, index, isCurrent }: {
|
||||
track: TrackRef;
|
||||
index: number;
|
||||
isCurrent: boolean;
|
||||
}>();
|
||||
} = $props();
|
||||
|
||||
function handleBodyClick() {
|
||||
if (isCurrent) return;
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
import PlayerBar from './PlayerBar.svelte';
|
||||
import SearchInput from './SearchInput.svelte';
|
||||
|
||||
let { children } = $props<{ children: import('svelte').Snippet }>();
|
||||
let { children }: { children: import('svelte').Snippet } = $props();
|
||||
|
||||
let menuOpen = $state(false);
|
||||
let menuRef: HTMLElement | undefined = $state();
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
<script lang="ts" module>
|
||||
import type { ComponentType, SvelteComponent } from 'svelte';
|
||||
import type { LucideIcon } from '@lucide/svelte';
|
||||
|
||||
// Lucide-svelte ships class-based components (typeof ListPlus = ComponentType<...>),
|
||||
// not runes-mode function components (Svelte 5's Component<...> type). Use
|
||||
// ComponentType<SvelteComponent> with no prop-shape constraint — Lucide
|
||||
// accepts size/strokeWidth as `string | number` and a tighter constraint
|
||||
// here trips structural assignment. We always pass numeric `size={14}` and
|
||||
// `strokeWidth={1}` below so the runtime contract is consistent.
|
||||
export type IconProp = ComponentType<SvelteComponent>;
|
||||
// A Lucide icon: @lucide/svelte ships Svelte 5 components taking Lucide's
|
||||
// props (size, strokeWidth, class).
|
||||
export type IconProp = LucideIcon;
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
} from '#lib/player/gainStage.svelte.js';
|
||||
import { untrack } from 'svelte';
|
||||
|
||||
let { children } = $props<{ children: import('svelte').Snippet }>();
|
||||
let { children }: { children: import('svelte').Snippet } = $props();
|
||||
let audioEl: HTMLAudioElement | undefined = $state();
|
||||
let prefetchEl: HTMLAudioElement | undefined = $state();
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import SectionLayout from '#lib/components/SectionLayout.svelte';
|
||||
import SectionRail, { type RailItem } from '#lib/components/SectionRail.svelte';
|
||||
|
||||
let { children } = $props<{ children: import('svelte').Snippet }>();
|
||||
let { children }: { children: import('svelte').Snippet } = $props();
|
||||
|
||||
// Admin: one page per section down a left rail, as Settings and
|
||||
// the Collection are, so the sections sit in the same place everywhere
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import { QUEUES, countOf, queueLabel } from '#lib/admin/queues.js';
|
||||
import CollectionRail from '#lib/components/CollectionRail.svelte';
|
||||
|
||||
let { children } = $props<{ children: import('svelte').Snippet }>();
|
||||
let { children }: { children: import('svelte').Snippet } = $props();
|
||||
|
||||
// The Collection: the library's health. Web-only and admin-only. The
|
||||
// queues count from the admin summary, the same read Admin's Overview
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/state';
|
||||
|
||||
let { children } = $props<{ children: import('svelte').Snippet }>();
|
||||
let { children }: { children: import('svelte').Snippet } = $props();
|
||||
|
||||
// Tab bar for the Library section. Mirrors Android's LibraryScreen
|
||||
// (artists / albums / liked / history / playlists) — Playlists lives
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import SectionLayout from '#lib/components/SectionLayout.svelte';
|
||||
import SectionRail from '#lib/components/SectionRail.svelte';
|
||||
|
||||
let { children } = $props<{ children: import('svelte').Snippet }>();
|
||||
let { children }: { children: import('svelte').Snippet } = $props();
|
||||
|
||||
// Settings: one page per section down a left rail, laid out as
|
||||
// the Collection is. Account is first and is where /settings lands. The
|
||||
|
||||
Reference in New Issue
Block a user