Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
0a8cb1c
fix: preserve mailto links in package readmes (#3489)
outslept Nov 28, 2026
f2378cf
fix: fetch bluesky profiles in batches of 25 (#3490)
trueberryless Nov 28, 2026
6c2452c
fix: keep modal padding even when the scrollbar gutter is reserved (#…
bryanlundberg Nov 29, 2026
21e43cc
fix: prevent layout shift on more package tabs (#3494)
danielroe Nov 29, 2026
dfbf5cc
feat: resolve issues, stars, forks for all applicable forges (#3413)
serhalp Nov 29, 2026
a0e1e44
perf: prerender static og images + cache 4xx responses (#3478)
danielroe Nov 29, 2026
cdc77a3
chore(deps): update all non-major dependencies (#3202)
renovate[bot] Nov 29, 2026
b5dcea6
chore(deps): update vite+ (#3419)
renovate[bot] Nov 29, 2026
411b8af
chore(deps): update node.js to v26 (#3395)
renovate[bot] Nov 29, 2026
78a6451
chore(deps): lock file maintenance (#3219)
renovate[bot] Nov 29, 2026
56703fb
chore(deps): update pnpm to v12 (#3500)
renovate[bot] Nov 29, 2026
34090d0
fix(ui): extract pkg typeahead from `/compare` + fix a11y/keyboard is…
serhalp Nov 29, 2026
50bbff7
ci: bump sfw firewall version (#3501)
danielroe Nov 30, 2026
6ba2774
fix: give author avatar an intrinsic size (#3499)
danielroe Nov 30, 2026
20266c9
fix: paint the home page hero in the first frame (#3497)
danielroe Nov 30, 2026
bc605c4
fix: bundle og image fonts and cache failed renders (#3498)
danielroe Nov 30, 2026
cd8d302
perf: cache package subpages at the cdn and tighten isr keys (#3476)
danielroe Nov 30, 2026
1f31784
perf: serve compact file tree slices + lazy-load code directories (#3…
danielroe Nov 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
sfw: true

- name: 🧪 Run Chromatic Visual and Accessibility Tests
uses: chromaui/action@14cfaef73576e69f95f47f60058063f46ca38719 # v18.1.0
uses: chromaui/action@0a7067e5ffc663a631b14db505d8a94b26e1bf2f # v18.15.3
with:
buildCommand: vp run build-storybook
outputDir: storybook-static
Expand Down
36 changes: 30 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
- name: 🔠 Lint project
run: vp run lint

- name: 🧷 Check vite+ pins
run: vp run check:vite-plus

types:
name: 💪 Type check
runs-on: ubuntu-26.04-arm
Expand Down Expand Up @@ -79,7 +82,7 @@ jobs:

- name: ⬆︎ Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
disable_search: true
files: test-report.junit.xml
Expand All @@ -90,7 +93,7 @@ jobs:

- name: ⬆︎ Upload coverage reports to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
disable_search: true
files: coverage/clover.xml
Expand Down Expand Up @@ -121,7 +124,7 @@ jobs:

- name: ⬆︎ Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
disable_search: true
files: test-report.junit.xml
Expand All @@ -132,7 +135,7 @@ jobs:

- name: ⬆︎ Upload coverage reports to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
disable_search: true
files: coverage/clover.xml
Expand All @@ -144,7 +147,7 @@ jobs:
name: 🖥️ Browser tests
runs-on: ubuntu-26.04-arm
container:
image: mcr.microsoft.com/playwright:v1.64.1-noble@sha256:47b510dd9230bf0b9bfc9b20102241e577ea7a99334ab4c3ca19f19770e9b8ea
image: mcr.microsoft.com/playwright:v1.65.1-noble@sha256:1507cbfc550a63a6b7396791ca4f00df17beb56342d2447b3f106c306f525579

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down Expand Up @@ -177,7 +180,7 @@ jobs:

- name: ⬆︎ Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
disable_search: true
files: test-report.junit.xml
Expand All @@ -187,6 +190,27 @@ jobs:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# TODO(serhalp): Upload browser *coverage* report once we've instrumented the prebuilt bundle

vercel:
name: ▲ Vercel output tests
runs-on: ubuntu-26.04-arm

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0
with:
node-version-file: .node-version
cache: true
sfw: true

- name: 🏗️ Build project (Vercel preset)
run: vp run build:test:vercel

- name: ▲ Test Vercel output
run: vp run test:vercel:prebuilt

a11y:
name: ♿ Accessibility audit
runs-on: ubuntu-latest # See https://github.com/GoogleChrome/lighthouse/discussions/16834
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-diff-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

steps:
- name: 📥 Download artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: e18e-diff-result
run-id: ${{ github.event.workflow_run.id }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

- name: 📤 Upload artifact
if: steps.analyze.outputs.artifact-path
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: e18e-diff-result
path: ${{ steps.analyze.outputs.artifact-path }}
2 changes: 1 addition & 1 deletion .github/workflows/deploy-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
with:
mode: firewall-free
# Version of the underlying sfw to use (no `v` prefix): https://github.com/SocketDev/sfw-free/releases
firewall-version: 1.12.0
firewall-version: 1.15.4

# Lunaria needs the full git history, but `vercel deploy` uploads the source without `.git`,
# so generate `dist/lunaria/status.json` here and upload it with the source instead.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lunaria.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ jobs:
sfw: true

- name: Generate Lunaria Overview
uses: lunariajs/action@e5ab09c3c8353fa80786d8c2149873ba3978a3a7 # v0.2.0
uses: lunariajs/action@fb6be638db02f58f6e5e5ec125f5505e208adde2 # v0.4.0
2 changes: 1 addition & 1 deletion .github/workflows/semantic-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
name: 🏷️ Validate PR title
steps:
- name: Validate PR title
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
uses: amannn/action-semantic-pull-request@66e72920af32222769c386d81f89656ebcb6d6d5 # v6.1.4
with:
scopes: |
a11y
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
persist-credentials: false

- uses: zizmorcore/zizmor-action@3dc1ecc9bcb9e94e9b2c709687979e1298497054 # v0.6.2
- uses: zizmorcore/zizmor-action@1b4550e929643b8b26a62303c6bd64814271a4f1 # v0.9.2
with:
persona: pedantic
# Use annotations instead of SARIF as this doesn't need special permissions
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24
26
21 changes: 10 additions & 11 deletions app/components/AuthorAvatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@ const props = defineProps<{
size?: 'sm' | 'md' | 'lg'
}>()

const sizeClasses = computed(() => {
switch (props.size ?? 'md') {
case 'sm':
return 'w-8 h-8 text-sm'
case 'lg':
return 'w-12 h-12 text-xl'
default:
return 'w-10 h-10 text-lg'
}
})
const SIZES = {
sm: { px: 32, classes: 'w-8 h-8 text-sm' },
md: { px: 40, classes: 'w-10 h-10 text-lg' },
lg: { px: 48, classes: 'w-12 h-12 text-xl' },
} as const

const sizeConfig = computed(() => SIZES[props.size ?? 'md'])

const initials = computed(() =>
props.author.name
Expand All @@ -30,12 +27,14 @@ const initials = computed(() =>
<template>
<div
class="shrink-0 flex items-center justify-center border border-border rounded-full bg-bg-muted overflow-hidden"
:class="[sizeClasses]"
:class="[sizeConfig.classes]"
>
<img
v-if="author.avatar"
:src="author.avatar"
:alt="author.name"
:width="sizeConfig.px"
:height="sizeConfig.px"
class="w-full h-full object-cover"
/>
<span v-else class="text-fg-subtle font-mono" aria-hidden="true">
Expand Down
4 changes: 3 additions & 1 deletion app/components/Changelog/Markdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ if (import.meta.client) {
for (const item of toc) {
const text = item.text.toLowerCase()
if (text.toLowerCase().includes(lcRequestedVersion) && isMatching(text)) {
navigateTo(`#${item.id}`)
if (item !== toc[0]) {
navigateTo(`#${item.id}`)
}
return
}
}
Expand Down
8 changes: 6 additions & 2 deletions app/components/Changelog/Releases.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,16 @@ if (import.meta.client) {
match.tag.toLowerCase().includes(goToVersion) ||
match.title.toLowerCase().includes(goToVersion)
) {
navigateTo(`#release-${slugify(match.title)}`, { replace: true })
if (match !== uReleases[0]) {
navigateTo(`#release-${slugify(match.title)}`, { replace: true })
}
return
}
}
}
navigateTo(`#date-${date}`, { replace: true })
if (uReleases[0]?.publishedAt?.slice(0, 10) !== date) {
navigateTo(`#date-${date}`, { replace: true })
}
},
{ flush: 'post' },
)
Expand Down
4 changes: 2 additions & 2 deletions app/components/Code/DirectoryListing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ function getCodeRoute(nodePath?: string): RouteLocationRaw {
return {
name: 'code',
params: {
org: props.baseRoute.params.org,
org: props.baseRoute.params.org || null,
packageName: props.baseRoute.params.packageName,
version: props.baseRoute.params.version,
filePath: nodePath ?? '',
filePath: nodePath ?? null,
},
}
}
Expand Down
81 changes: 70 additions & 11 deletions app/components/Code/FileTree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ const props = defineProps<{
baseUrl: string
baseRoute: Pick<RouteNamedMap['code'], 'params'>
depth?: number
loadingDirs?: ReadonlySet<string>
}>()

const emit = defineEmits<{
expandDir: [path: string]
}>()

const depth = computed(() => props.depth ?? 0)
Expand All @@ -27,28 +32,73 @@ function getFileRoute(nodePath: string): RouteLocationRaw {
return {
name: 'code',
params: {
org: props.baseRoute.params.org,
org: props.baseRoute.params.org || null,
packageName: props.baseRoute.params.packageName,
version: props.baseRoute.params.version,
filePath: nodePath ?? '',
filePath: nodePath ?? null,
},
}
}

const { toggleDir, isExpanded, autoExpandAncestors } = useFileTreeState(props.baseUrl)

const scrollIntoView = () => {
const autoExpanded = new Set<string>()

function expandLoadedAncestors(path: string, force: boolean) {
let prefix = ''

for (const segment of path.split('/').filter(Boolean)) {
prefix = prefix ? `${prefix}/${segment}` : segment
const node = findTreeNode(props.tree, prefix)
if (!node) return
if (node.type !== 'directory') continue
if (node.children === undefined) return
if (!force && !isExpanded(prefix) && autoExpanded.has(prefix)) return

autoExpanded.add(prefix)
autoExpandAncestors(prefix)
}
}

function handleToggleDir(node: PackageFileTree) {
const willExpand = !isExpanded(node.path)
toggleDir(node.path)
if (willExpand && node.children === undefined) {
emit('expandDir', node.path)
}
}

let lastScrolledPath = ''

const scrollIntoView = (path: string) => {
const el = treeRoot.value?.querySelector<HTMLElement>('[aria-current="true"]')
el?.scrollIntoView({ block: 'center', behavior: 'smooth' })
if (el) {
lastScrolledPath = path
el.scrollIntoView({ block: 'center', behavior: 'smooth' })
}
}

// Auto-expand directories in the current path
watch(
() => props.currentPath,
path => {
() => [props.currentPath, props.tree] as const,
([path, nodes], previous) => {
if (depth.value === 0 && path) {
autoExpandAncestors(path)
nextTick(scrollIntoView)
expandLoadedAncestors(path, previous?.[0] !== path)
}

for (const node of nodes) {
if (
node.type === 'directory' &&
node.children === undefined &&
isExpanded(node.path) &&
!isNodeActive(node) &&
!props.loadingDirs?.has(node.path)
) {
emit('expandDir', node.path)
}
}

if (depth.value === 0 && path && lastScrolledPath !== path) {
nextTick(() => scrollIntoView(path))
}
},
{ immediate: true },
Expand All @@ -64,14 +114,21 @@ watch(
class="w-full justify-start! rounded-none! border-none! transition-[color,background-color]! duration-100!"
block
:aria-pressed="isNodeActive(node)"
:aria-busy="loadingDirs?.has(node.path) || undefined"
:aria-label="
isPossiblyUnnecessaryContent(node.name, 'directory')
? `${node.name} - ${$t('code.possibly_unnecessary')}`
: undefined
"
:style="{ paddingLeft: `${depth * 12 + 12}px` }"
@click="toggleDir(node.path)"
:classicon="isExpanded(node.path) ? 'i-lucide:chevron-down' : 'i-lucide:chevron-right'"
@click="handleToggleDir(node)"
:classicon="
loadingDirs?.has(node.path)
? 'i-svg-spinners:ring-resize'
: isExpanded(node.path)
? 'i-lucide:chevron-down'
: 'i-lucide:chevron-right'
"
>
<svg
class="size-[1em] me-1 shrink-0"
Expand Down Expand Up @@ -106,6 +163,8 @@ watch(
:base-url="baseUrl"
:base-route="baseRoute"
:depth="depth + 1"
:loading-dirs="loadingDirs"
@expand-dir="emit('expandDir', $event)"
/>
</template>

Expand Down
7 changes: 7 additions & 0 deletions app/components/Code/MobileTreeDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ defineProps<{
currentPath: string
baseUrl: string
baseRoute: Pick<RouteNamedMap['code'], 'params'>
loadingDirs?: ReadonlySet<string>
}>()

const emit = defineEmits<{
expandDir: [path: string]
}>()

const isOpen = shallowRef(false)
Expand Down Expand Up @@ -74,6 +79,8 @@ defineExpose({
:current-path="currentPath"
:base-url="baseUrl"
:base-route="baseRoute"
:loading-dirs="loadingDirs"
@expand-dir="emit('expandDir', $event)"
/>
</aside>
</Transition>
Expand Down
Loading
Loading