Skip to content

Commit bad20ab

Browse files
authored
chore: release v0.24.0 (#3429)
2 parents c2e60cb + e5098b8 commit bad20ab

54 files changed

Lines changed: 1490 additions & 518 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎app/assets/logos/sponsors/index.ts‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { FOOTER_SPONSOR_NAMES } from './names'
12
import LogoVercel from './vercel.svg'
23
import LogoVercelLight from './vercel-light.svg'
34
import LogoVoidZero from './void-zero.svg'
@@ -99,4 +100,14 @@ export const SPONSORS = {
99100
url: 'https://badrap.io/',
100101
},
101102
],
102-
}
103+
} as const
104+
105+
type Names<T extends readonly { name: string }[]> = { [K in keyof T]: T[K]['name'] }
106+
type IsEqual<A, B> =
107+
(<T>() => T extends A ? 1 : 2) extends <T>() => T extends B ? 1 : 2 ? true : false
108+
109+
// Update FOOTER_SPONSOR_NAMES in ./names.ts when changing the sponsors above.
110+
true satisfies IsEqual<
111+
readonly [...Names<typeof SPONSORS.gold>, ...Names<typeof SPONSORS.silver>],
112+
typeof FOOTER_SPONSOR_NAMES
113+
>

‎app/assets/logos/sponsors/names.ts‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export const FOOTER_SPONSOR_NAMES = [
2+
'Vercel',
3+
'CodeRabbit',
4+
'VoidZero',
5+
'vlt',
6+
'Netlify',
7+
'Bluesky',
8+
'Chromatic',
9+
'Badrap',
10+
] as const

‎app/components/About/LogoList.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type GroupItem = {
1717
}
1818
1919
const props = defineProps<{
20-
list: (BaseItem | GroupItem)[]
20+
list: readonly (BaseItem | GroupItem)[]
2121
}>()
2222
</script>
2323

‎app/components/AppFooter.vue‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { NPMX_DOCS_SITE } from '#shared/utils/constants'
3-
import { SPONSORS } from '~/assets/logos/sponsors'
3+
import { FOOTER_SPONSOR_NAMES } from '~/assets/logos/sponsors/names'
44
55
const route = useRoute()
66
const isHome = computed(() => route.name === 'index')
@@ -38,8 +38,9 @@ const socialLinks = computed(() => [
3838
])
3939
4040
const sponsorList = computed(() => {
41-
const names = [...SPONSORS.gold, ...SPONSORS.silver].map(s => s.name)
42-
return new Intl.ListFormat(locale.value, { style: 'long', type: 'conjunction' }).format(names)
41+
return new Intl.ListFormat(locale.value, { style: 'long', type: 'conjunction' }).format(
42+
FOOTER_SPONSOR_NAMES,
43+
)
4344
})
4445
4546
const footerSections = computed<Array<{ label: string; links: FooterLink[] }>>(() => [

‎app/components/Compare/FacetBarChart.vue‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ const config = computed<VueUiHorizontalBarConfig>(() => {
142142
return {
143143
theme: isDarkMode.value ? 'dark' : '',
144144
a11y: {
145+
includeTable: true,
145146
translations: {
146147
keyboardNavigation: $t('package.trends.chart_assistive_text.keyboard_navigation_vertical'),
147148
tableAvailable: $t('package.trends.chart_assistive_text.table_available'),

‎app/components/Compare/FacetScatterChart.vue‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ function buildExportFilename(extension: string): string {
136136
137137
const config = computed<VueUiScatterConfig>(() => {
138138
return {
139+
a11y: {
140+
includeTable: true,
141+
},
139142
theme: isDarkMode.value ? 'dark' : '',
140143
userOptions: {
141144
buttons: {

‎app/components/DependencyPathPopup.vue‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ function parsePackageString(pkg: string): { name: string; version: string } {
9999
parsePackageString(pathItem).version,
100100
)
101101
"
102+
prefetch-on="interaction"
102103
class="hover:underline"
103104
:class="idx === path.length - 1 ? 'text-fg font-medium' : 'text-fg-muted'"
104105
@click="closePopup"

‎app/components/DepsStats/DependencyStatsPanel.vue‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ function formatFacetValue(value: FacetValue): string {
8484
<h2 class="font-mono text-lg font-medium truncate">
8585
<NuxtLink
8686
:to="packageRoute(packageName, resolvedVersion)"
87+
prefetch-on="interaction"
8788
class="text-fg hover:text-accent transition-colors"
8889
>
8990
{{ packageName }}

‎app/components/Diff/SidebarPanel.vue‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ function handleFileSelect(file: FileChange) {
153153

154154
<NuxtLink
155155
:to="packageRoute(dep.name)"
156+
prefetch-on="interaction"
156157
class="font-mono hover:text-fg transition-colors truncate min-w-0"
157158
>
158159
{{ dep.name }}

‎app/components/Header/PackagesDropdown.vue‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ function handleKeydown(event: KeyboardEvent) {
9595
<li v-for="pkg in packages" :key="pkg">
9696
<NuxtLink
9797
:to="packageRoute(pkg)"
98+
prefetch-on="interaction"
9899
class="block px-3 py-2 font-mono text-sm text-fg hover:bg-bg-subtle transition-colors truncate"
99100
>
100101
{{ pkg }}

0 commit comments

Comments
 (0)