@@ -1161,15 +1159,25 @@ const timelineMetricTabs = computed(() => [
-
+
-
+
diff --git a/app/components/Package/TrendsChart.vue b/app/components/Package/TrendsChart.vue
index a8789c36c3..505a855e87 100644
--- a/app/components/Package/TrendsChart.vue
+++ b/app/components/Package/TrendsChart.vue
@@ -1,7 +1,7 @@
+
+
+
+
+ {{ label }}
+
+ /
+
+
+
+
+
+
+
+
+
+ {{ option.label }}
+
+
+ {{ result.name }}
+
+ {{ stripHtmlTags(decodeHtmlEntities(result.description)) }}
+
+
+
+
+ {{ $t('search.searching') }}
+
+
+
+
+
diff --git a/app/composables/npm/useOutdatedDependencies.ts b/app/composables/npm/useOutdatedDependencies.ts
index c59891a7bb..2545f84143 100644
--- a/app/composables/npm/useOutdatedDependencies.ts
+++ b/app/composables/npm/useOutdatedDependencies.ts
@@ -1,6 +1,6 @@
import type { PackageVersionsInfo } from 'fast-npm-meta'
import { getVersionsBatch } from 'fast-npm-meta'
-import { difference, findMaxSatisfying, getMajor, getMinor, isGreater, isStable } from 'verkit'
+import { difference, findMaxSatisfying, getMajor, getMinor, isGreaterThan, isStable } from 'verkit'
import { parseDependencyVersion } from '#shared/utils/npm'
import {
type OutdatedDependencyInfo,
@@ -35,7 +35,7 @@ function resolveOutdated(
if (resolved === latestTag) return null
// Resolved is newer than latest (e.g. ^2.0.0-rc when latest is 1.x)
- if (isGreater(resolved, latestTag)) {
+ if (isGreaterThan(resolved, latestTag)) {
return null
}
diff --git a/app/composables/useCommandPalettePackageCommands.ts b/app/composables/useCommandPalettePackageCommands.ts
index 78ae3a62e0..1f07ef2a9f 100644
--- a/app/composables/useCommandPalettePackageCommands.ts
+++ b/app/composables/useCommandPalettePackageCommands.ts
@@ -41,10 +41,10 @@ export function useCommandPalettePackageCommands(
const codeLink = {
name: 'code' as const,
params: {
- org: org || undefined,
+ org: org || null,
packageName: name,
version: resolvedContext.resolvedVersion,
- filePath: '',
+ filePath: null,
},
}
diff --git a/app/composables/useFacetSelection.ts b/app/composables/useFacetSelection.ts
index 18b8b9b7f7..a915f6ae25 100644
--- a/app/composables/useFacetSelection.ts
+++ b/app/composables/useFacetSelection.ts
@@ -8,6 +8,13 @@ export interface FacetInfoWithLabels extends Omit
{
formatter?: (value: number) => string
}
+/** Facet ids that links shared before the facets became forge-agnostic still carry. */
+const LEGACY_FACET_IDS: Record = {
+ githubStars: 'stars',
+ githubForks: 'forks',
+ githubIssues: 'issues',
+}
+
// Get facets in a category (excluding coming soon)
function getFacetsInCategory(category: string): ComparisonFacet[] {
return ALL_FACETS.filter(f => {
@@ -122,23 +129,23 @@ export function useFacetSelection(queryParam = 'facets') {
chartable: false,
chartable_scatter: false,
},
- githubStars: {
- label: t(`compare.facets.items.githubStars.label`),
- description: t(`compare.facets.items.githubStars.description`),
+ stars: {
+ label: t(`compare.facets.items.stars.label`),
+ description: t(`compare.facets.items.stars.description`),
chartable: true,
chartable_scatter: true,
formatter: v => compactNumberFormatter.value.format(v),
},
- githubForks: {
- label: t(`compare.facets.items.githubForks.label`),
- description: t(`compare.facets.items.githubForks.description`),
+ forks: {
+ label: t(`compare.facets.items.forks.label`),
+ description: t(`compare.facets.items.forks.description`),
chartable: true,
chartable_scatter: true,
formatter: v => compactNumberFormatter.value.format(v),
},
- githubIssues: {
- label: t(`compare.facets.items.githubIssues.label`),
- description: t(`compare.facets.items.githubIssues.description`),
+ issues: {
+ label: t(`compare.facets.items.issues.label`),
+ description: t(`compare.facets.items.issues.description`),
chartable: true,
chartable_scatter: true,
formatter: v => compactNumberFormatter.value.format(v),
@@ -178,14 +185,17 @@ export function useFacetSelection(queryParam = 'facets') {
// Parse comma-separated facets and filter valid, non-comingSoon ones
const parsed = facetsParam.value
.split(',')
- .map(f => f.trim())
+ .map(facetId => {
+ const id = facetId.trim()
+ return LEGACY_FACET_IDS[id] ?? id
+ })
.filter(
(f): f is ComparisonFacet =>
ALL_FACETS.includes(f as ComparisonFacet) &&
!FACET_INFO[f as ComparisonFacet].comingSoon,
)
- return parsed.length > 0 ? parsed : DEFAULT_FACETS
+ return parsed.length > 0 ? [...new Set(parsed)] : DEFAULT_FACETS
},
set(facets) {
if (facets.length === 0 || arraysEqual(facets, DEFAULT_FACETS)) {
diff --git a/app/composables/useFileTreeState.ts b/app/composables/useFileTreeState.ts
index 7c49eac5ca..4144432e4e 100644
--- a/app/composables/useFileTreeState.ts
+++ b/app/composables/useFileTreeState.ts
@@ -9,6 +9,10 @@ export function useFileTreeState(baseUrl: string) {
}
}
+ function collapseDir(path: string) {
+ expanded.value.delete(path)
+ }
+
function isExpanded(path: string) {
return expanded.value.has(path)
}
@@ -25,6 +29,7 @@ export function useFileTreeState(baseUrl: string) {
return {
toggleDir,
+ collapseDir,
isExpanded,
autoExpandAncestors,
}
diff --git a/app/composables/usePackageComparison.ts b/app/composables/usePackageComparison.ts
index eb24463865..e7502dee8e 100644
--- a/app/composables/usePackageComparison.ts
+++ b/app/composables/usePackageComparison.ts
@@ -1,4 +1,5 @@
import { NO_DEPENDENCY_ID } from '#shared/utils/compare'
+import { repoApiPath } from '#shared/utils/repo-api'
import { parsePackageSpec } from '#shared/utils/parse-package-param'
import { getDependencyCount } from '~/utils/npm/dependency-count'
import { getRepoMeta } from '#shared/utils/repository-meta'
@@ -48,7 +49,7 @@ export interface PackageComparisonData {
createdAt?: string
engines?: { node?: string; npm?: string }
deprecated?: string
- github?: {
+ repo?: {
stars?: number
forks?: number
issues?: number
@@ -145,8 +146,7 @@ export function usePackageComparison(packageNames: MaybeRefOrGetter) {
// Fetch fast additional data in parallel (optional - failures are ok)
const repoInfo = parseRepositoryInfo(pkg.repository)
- const isGitHub = repoInfo?.provider === 'github'
- const [downloads, analysis, vulns, likes, repoMeta, ghIssues] = await Promise.all([
+ const [downloads, analysis, vulns, likes, repoMeta, repoIssues] = await Promise.all([
// Download counts are per-package, not per-version.
$fetch<{ downloads: number }>(
`https://api.npmjs.org/downloads/point/last-week/${encodePackageName(name)}`,
@@ -160,13 +160,12 @@ export function usePackageComparison(packageNames: MaybeRefOrGetter) {
$fetch(`/api/social/likes/${encodePackageName(name)}`).catch(
() => null,
),
- isGitHub
+ repoInfo
? getRepoMeta(cachedFetch, repoInfo).catch(() => null)
: Promise.resolve(null),
- isGitHub
- ? $fetch<{ issues: number | null }>(
- `/api/github/issues/${repoInfo.owner}/${repoInfo.repo}`,
- )
+ // Radicle refs have no owner, and the route takes one as a path segment.
+ repoInfo?.owner
+ ? $fetch<{ issues: number | null }>(repoApiPath(repoInfo, 'issues'))
.then(res => (typeof res?.issues === 'number' ? res.issues : null))
.catch(() => null)
: Promise.resolve(null),
@@ -215,10 +214,10 @@ export function usePackageComparison(packageNames: MaybeRefOrGetter) {
createdAt: pkg.time?.created,
engines: analysis?.engines,
deprecated: versionData.deprecated,
- github: {
+ repo: {
stars: repoMeta?.stars,
forks: repoMeta?.forks,
- issues: ghIssues ?? undefined,
+ issues: repoIssues ?? undefined,
},
},
isBinaryOnly: isBinary,
@@ -584,8 +583,8 @@ function computeFacetValue(
status: totalDepCount > 50 ? 'warning' : 'neutral',
}
}
- case 'githubStars': {
- const stars = data.metadata?.github?.stars
+ case 'stars': {
+ const stars = data.metadata?.repo?.stars
if (stars == null) return null
return {
raw: stars,
@@ -593,8 +592,8 @@ function computeFacetValue(
status: 'neutral',
}
}
- case 'githubForks': {
- const forks = data.metadata?.github?.forks
+ case 'forks': {
+ const forks = data.metadata?.repo?.forks
if (forks == null) return null
return {
raw: forks,
@@ -602,8 +601,8 @@ function computeFacetValue(
status: 'neutral',
}
}
- case 'githubIssues': {
- const issues = data.metadata?.github?.issues
+ case 'issues': {
+ const issues = data.metadata?.repo?.issues
if (issues == null) return null
return {
raw: issues,
diff --git a/app/composables/usePageCacheControl.ts b/app/composables/usePageCacheControl.ts
new file mode 100644
index 0000000000..dff395a30b
--- /dev/null
+++ b/app/composables/usePageCacheControl.ts
@@ -0,0 +1,9 @@
+/**
+ * Give this page's HTML a CDN cache header. Only applied on the server, and only when the page
+ * renders, so pages that end up on an error never leave a cacheable response behind.
+ */
+export function usePageCacheControl(cacheControl: string | undefined) {
+ if (import.meta.server && cacheControl) {
+ useResponseHeader('cache-control').value = cacheControl
+ }
+}
diff --git a/app/error.vue b/app/error.vue
index 2d0b949652..537ac3a1f1 100644
--- a/app/error.vue
+++ b/app/error.vue
@@ -5,6 +5,11 @@ const props = defineProps<{
error: NuxtError
}>()
+// a page can set a cdn cache header before it fails
+if (import.meta.server) {
+ useResponseHeader('cache-control').value = 'no-store'
+}
+
const status = computed(() => props.error.status || 500)
const statusText = computed(() => {
if (props.error.statusText) return props.error.statusText
diff --git a/app/pages/blog/alpha-release.md b/app/pages/blog/alpha-release.md
index 1a9483ff6b..2700fe5294 100644
--- a/app/pages/blog/alpha-release.md
+++ b/app/pages/blog/alpha-release.md
@@ -146,7 +146,7 @@ headline="Read more from the community"
{
url: 'https://blog.trueberryless.org/blog/npmx/',
title: 'Rising community at tomorrow\'s horizon',
- authorHandle: 'trueberryless.org',
+ authorHandle: 'felixs.dev',
description: 'Telling the story of a newly founded community.'
},
{
diff --git a/app/pages/blog/index.vue b/app/pages/blog/index.vue
index 3bd4cb7320..5717fd0f7c 100644
--- a/app/pages/blog/index.vue
+++ b/app/pages/blog/index.vue
@@ -16,6 +16,15 @@ useSeoMeta({
twitterDescription: () => $t('blog.meta_description'),
})
+defineOgImage(
+ 'Page.takumi',
+ {
+ title: () => $t('blog.title'),
+ description: () => $t('blog.meta_description'),
+ },
+ { alt: () => `${$t('blog.title')} - npmx` },
+)
+
useHead({
link: [
{
diff --git a/app/pages/compare.vue b/app/pages/compare.vue
index 6b7394adf0..702bd4fa76 100644
--- a/app/pages/compare.vue
+++ b/app/pages/compare.vue
@@ -3,12 +3,15 @@ import { useRouteQuery } from '@vueuse/router'
import FacetBarChart from '~/components/Compare/FacetBarChart.vue'
import type { CommandPaletteContextCommandInput } from '~/types/command-palette'
import FacetScatterChart from '~/components/Compare/FacetScatterChart.vue'
+import { CACHE_CONTROL_PAGE_HOUR } from '#shared/utils/constants'
definePageMeta({
name: 'compare',
preserveScrollOnQuery: true,
})
+usePageCacheControl(CACHE_CONTROL_PAGE_HOUR)
+
const { locale } = useI18n()
const { copied, copy } = useClipboard({ copiedDuring: 2000 })
diff --git a/app/pages/diff/[[org]]/[packageName]/v/[versionRange].vue b/app/pages/diff/[[org]]/[packageName]/v/[versionRange].vue
index 943ac57b72..ed7b7656be 100644
--- a/app/pages/diff/[[org]]/[packageName]/v/[versionRange].vue
+++ b/app/pages/diff/[[org]]/[packageName]/v/[versionRange].vue
@@ -1,5 +1,7 @@
diff --git a/app/plugins/og-image-resolver.client.ts b/app/plugins/og-image-resolver.client.ts
new file mode 100644
index 0000000000..e0724aca8b
--- /dev/null
+++ b/app/plugins/og-image-resolver.client.ts
@@ -0,0 +1,41 @@
+interface HeadTag {
+ tag: string
+ props: Record
+}
+
+const RESOLVER_URL_RE = /\/_og\/r(?:\/|\.png)/
+
+function isImageMeta(tag: HeadTag): boolean {
+ if (tag.tag !== 'meta') return false
+ const property = tag.props.property
+ const name = tag.props.name
+ return (
+ (typeof property === 'string' && property.startsWith('og:image')) ||
+ (typeof name === 'string' && name.startsWith('twitter:image'))
+ )
+}
+
+export function dropResolverOgImageTags(tags: HeadTag[]): HeadTag[] {
+ const usesResolver = tags.some(
+ tag =>
+ isImageMeta(tag) &&
+ typeof tag.props.content === 'string' &&
+ RESOLVER_URL_RE.test(tag.props.content),
+ )
+ return usesResolver ? tags.filter(tag => !isImageMeta(tag)) : tags
+}
+
+export default defineNuxtPlugin(nuxtApp => {
+ if (import.meta.dev) return
+
+ nuxtApp.vueApp.runWithContext(() => {
+ injectHead().use({
+ key: 'npmx:og-image-resolver',
+ hooks: {
+ 'tags:afterResolve': ctx => {
+ ctx.tags = dropResolverOgImageTags(ctx.tags as HeadTag[]) as typeof ctx.tags
+ },
+ },
+ })
+ })
+})
diff --git a/app/utils/compare-scatter-chart.ts b/app/utils/compare-scatter-chart.ts
index b49a58de42..0f8c226309 100644
--- a/app/utils/compare-scatter-chart.ts
+++ b/app/utils/compare-scatter-chart.ts
@@ -73,17 +73,17 @@ function getNumericFacetValue(
case 'lastUpdated':
return toFreshnessScore(packageData.metadata?.lastUpdated)
- case 'githubStars':
- return isFiniteNumber(packageData.metadata?.github?.stars)
- ? packageData.metadata.github.stars
+ case 'stars':
+ return isFiniteNumber(packageData.metadata?.repo?.stars)
+ ? packageData.metadata.repo.stars
: null
- case 'githubForks':
- return isFiniteNumber(packageData.metadata?.github?.forks)
- ? packageData.metadata.github.forks
+ case 'forks':
+ return isFiniteNumber(packageData.metadata?.repo?.forks)
+ ? packageData.metadata.repo.forks
: null
- case 'githubIssues':
- return isFiniteNumber(packageData.metadata?.github?.issues)
- ? packageData.metadata.github.issues
+ case 'issues':
+ return isFiniteNumber(packageData.metadata?.repo?.issues)
+ ? packageData.metadata.repo.issues
: null
default:
diff --git a/app/utils/file-tree.ts b/app/utils/file-tree.ts
new file mode 100644
index 0000000000..1ee5230da2
--- /dev/null
+++ b/app/utils/file-tree.ts
@@ -0,0 +1,185 @@
+import type { PackageFileTree, PackageFileTreeWireNode } from '#shared/types/npm-registry'
+
+export interface MissingDirectoryFetch {
+ mode: 'dir' | 'expand'
+ dirPath: string
+}
+
+/**
+ * Reconstruct `path` fields on compact wire nodes from their position in the tree.
+ */
+export function hydrateFileTree(
+ nodes: PackageFileTreeWireNode[],
+ parentPath: string = '',
+): PackageFileTree[] {
+ return nodes.map(node => {
+ const path = node.path ?? (parentPath ? `${parentPath}/${node.name}` : node.name)
+ if (node.type === 'directory') {
+ return {
+ name: node.name,
+ path,
+ type: 'directory',
+ size: node.size,
+ children: node.children ? hydrateFileTree(node.children, path) : undefined,
+ }
+ }
+ return {
+ name: node.name,
+ path,
+ type: 'file',
+ size: node.size,
+ }
+ })
+}
+
+/**
+ * Merge two file trees, preserving loaded `children` from either side.
+ */
+export function mergeFileTrees(
+ existing: PackageFileTree[],
+ incoming: PackageFileTree[],
+): PackageFileTree[] {
+ const existingByName = new Map(existing.map(node => [node.name, node]))
+
+ return incoming.map(node => {
+ const prev = existingByName.get(node.name)
+ if (node.type === 'directory' && prev?.type === 'directory') {
+ if (prev.children && node.children) {
+ return {
+ ...node,
+ children: mergeFileTrees(prev.children, node.children),
+ }
+ }
+ return {
+ ...node,
+ children: node.children ?? prev.children,
+ }
+ }
+ return node
+ })
+}
+
+/**
+ * Attach loaded `children` to the directory at `dirPath`, returning a new tree array.
+ */
+export function attachDirectoryChildren(
+ tree: PackageFileTree[],
+ dirPath: string,
+ children: PackageFileTree[],
+): PackageFileTree[] {
+ const parts = dirPath.split('/').filter(Boolean)
+ if (parts.length === 0) {
+ return mergeFileTrees(tree, children)
+ }
+
+ function update(nodes: PackageFileTree[], depth: number): PackageFileTree[] {
+ const targetName = parts[depth]
+ let changed = false
+
+ const next = nodes.map(node => {
+ if (node.name !== targetName || node.type !== 'directory') {
+ return node
+ }
+ changed = true
+ if (depth === parts.length - 1) {
+ return {
+ ...node,
+ children: node.children ? mergeFileTrees(node.children, children) : children,
+ }
+ }
+ if (!node.children) {
+ return node
+ }
+ return {
+ ...node,
+ children: update(node.children, depth + 1),
+ }
+ })
+
+ return changed ? next : nodes
+ }
+
+ return update(tree, 0)
+}
+
+/**
+ * Look up a node by its raw route path, preserving trailing-slash semantics for directories.
+ */
+export function findTreeNode(
+ tree: PackageFileTree[],
+ filePathOrig: string | null | undefined,
+): PackageFileTree | null {
+ if (!filePathOrig) return null
+
+ const parts = filePathOrig.split('/')
+ let current: PackageFileTree[] | undefined = tree
+ let lastFound: PackageFileTree | null = null
+ const partsLength = parts.length
+
+ for (let i = 0; i < partsLength; i++) {
+ const part = parts[i]
+ const isLast = i === partsLength - 1
+ if (!part && isLast && lastFound?.type === 'directory') return lastFound
+ const found: PackageFileTree | undefined = current?.find(n => n.name === part)
+ if (!found) return null
+ lastFound = found
+ if (found.type === 'file' && isLast) return found
+ current = found.children
+ }
+
+ return lastFound
+}
+
+/**
+ * Determine the directory to pass to `?expand=` on initial load for a route path.
+ * Returns `null` when the root listing already contains the entry.
+ */
+export function getInitialExpandDir(filePathOrig: string | null | undefined): string | null {
+ if (!filePathOrig) return null
+
+ if (filePathOrig.endsWith('/')) {
+ const trimmed = filePathOrig.replace(/\/+$/, '')
+ return trimmed || null
+ }
+
+ const lastSlash = filePathOrig.lastIndexOf('/')
+ if (lastSlash <= 0) return null
+ return filePathOrig.slice(0, lastSlash)
+}
+
+/**
+ * Determine whether navigating to `filePathOrig` requires fetching unloaded directory data.
+ */
+export function resolveMissingDirectoryFetch(
+ tree: PackageFileTree[],
+ filePathOrig: string | null | undefined,
+): MissingDirectoryFetch | null {
+ if (!filePathOrig) return null
+
+ const hasTrailingSlash = filePathOrig.endsWith('/')
+ const normalized = filePathOrig.replace(/\/+$/, '')
+ if (!normalized) return null
+
+ const parts = normalized.split('/')
+ let current: PackageFileTree[] | undefined = tree
+
+ for (let i = 0; i < parts.length; i++) {
+ const part = parts[i]
+ const found: PackageFileTree | undefined = current?.find(n => n.name === part)
+ if (!found || found.type === 'file') {
+ return null
+ }
+
+ if (found.children === undefined) {
+ if (i === parts.length - 1 || (i === parts.length - 2 && !hasTrailingSlash)) {
+ return { mode: 'dir', dirPath: found.path }
+ }
+ const targetDir = hasTrailingSlash ? normalized : parts.slice(0, -1).join('/')
+ return { mode: 'expand', dirPath: targetDir }
+ }
+
+ current = found.children
+ }
+
+ return null
+}
diff --git a/app/utils/router.ts b/app/utils/router.ts
index 2ea9c0700b..c54577fb0c 100644
--- a/app/utils/router.ts
+++ b/app/utils/router.ts
@@ -12,7 +12,7 @@ export function packageRoute(
return {
name: 'package-version',
params: {
- org,
+ org: org || null,
name,
// remove spaces to be correctly resolved by router
version: version.replace(/\s+/g, ''),
@@ -24,7 +24,7 @@ export function packageRoute(
return {
name: 'package',
params: {
- org,
+ org: org || null,
name,
},
}
@@ -51,7 +51,7 @@ export function docsRoute(packageName: string, version?: string | null): RouteLo
/** Full version history page (`/package/.../versions`) */
export function packageVersionsRoute(packageName: string): RouteLocationRaw {
const { org, name } = splitPackageName(packageName)
- return { name: 'package-versions', params: { org, name } }
+ return { name: 'package-versions', params: { org: org || null, name } }
}
export function diffRoute(
@@ -64,7 +64,7 @@ export function diffRoute(
return {
name: 'diff',
params: {
- org: org || undefined,
+ org: org || null,
packageName: name,
versionRange: `${fromVersion}...${toVersion}`,
},
@@ -106,7 +106,7 @@ export function packageTimelineRoute(packageName: string, version: string): Rout
return {
name: 'timeline',
params: {
- org: org || undefined,
+ org: org || null,
packageName: name,
version: version.replace(/\s+/g, ''),
},
@@ -124,7 +124,7 @@ export function packageStatsRoute(
name: 'stats',
hash,
params: {
- org: org || undefined,
+ org: org || null,
packageName: name,
version: version.replace(/\s+/g, ''),
},
diff --git a/assets/email-templates/delete-account.html b/assets/email-templates/delete-account.html
index 34447edf7c..70f9f9e89a 100644
--- a/assets/email-templates/delete-account.html
+++ b/assets/email-templates/delete-account.html
@@ -20,9 +20,7 @@
>
To permanently delete your account, please enter the code provided in the app along with your
password.
-
-
-
+
diff --git a/assets/email-templates/reset-password.html b/assets/email-templates/reset-password.html
index 70a79070ad..086e01f5e5 100644
--- a/assets/email-templates/reset-password.html
+++ b/assets/email-templates/reset-password.html
@@ -19,9 +19,7 @@
"
>
We received a request to reset the password for the account @{{handle}}.
-
-
-
+
diff --git a/assets/email-templates/two-factor-code.html b/assets/email-templates/two-factor-code.html
index 07a31d29d8..6fa57d0150 100644
--- a/assets/email-templates/two-factor-code.html
+++ b/assets/email-templates/two-factor-code.html
@@ -17,14 +17,7 @@
>
We received a sign-in request for the account @{{handle}}. Use the code below to sign in
-
-
-
-
-
-
-
-
+
diff --git a/assets/email-templates/update-email.html b/assets/email-templates/update-email.html
index 15960a8e5c..58a6b095e8 100644
--- a/assets/email-templates/update-email.html
+++ b/assets/email-templates/update-email.html
@@ -20,9 +20,7 @@
>
To update the email for your account, enter the code provided in the app along with your new
email.
-
-
-
+
diff --git a/cli/package.json b/cli/package.json
index 4e14a3d88e..7777547304 100644
--- a/cli/package.json
+++ b/cli/package.json
@@ -31,16 +31,16 @@
},
"dependencies": {
"@clack/prompts": "^1.7.0",
- "@lydell/node-pty": "1.2.0-beta.15",
+ "@lydell/node-pty": "1.2.0-beta.18",
"citty": "^0.2.2",
- "h3-next": "npm:h3@2.0.1-rc.26",
+ "h3-next": "npm:h3@2.0.8",
"obug": "^3.0.0",
"srvx": "^1.0.0",
"valibot": "^1.4.2",
"validate-npm-package-name": "^8.0.0"
},
"devDependencies": {
- "@types/node": "24.13.3",
+ "@types/node": "26.6.11",
"@types/validate-npm-package-name": "4.0.2",
"typescript": "6.0.3"
},
diff --git a/docs/content/2.guide/1.features.md b/docs/content/2.guide/1.features.md
index 62b1cdac57..14996ea9fb 100644
--- a/docs/content/2.guide/1.features.md
+++ b/docs/content/2.guide/1.features.md
@@ -34,7 +34,7 @@ Each package page displays:
Compare packages side-by-side using facets for:
- **Performance** - Package size, install size, direct dependencies, and total dependencies
-- **Health** - Downloads, likes, freshness, creation date, GitHub stars, and GitHub issues
+- **Health** - Downloads, likes, freshness, creation date, stars, forks, and open issues
- **Compatibility** - Node.js engines, TypeScript types, and module format
- **Security** - License and vulnerability status
diff --git a/docs/package.json b/docs/package.json
index 02a6a068a5..599d0e390a 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -19,11 +19,11 @@
"preview": "nuxt preview"
},
"dependencies": {
- "@nuxt/ui": "4.10.0",
- "@nuxtjs/mdc": "0.23.1",
- "better-sqlite3": "13.0.3",
- "docus": "5.12.3",
+ "@nuxt/ui": "4.13.1",
+ "@nuxtjs/mdc": "0.23.4",
+ "better-sqlite3": "13.2.0",
+ "docus": "5.15.1",
"nuxt": "4.7.0",
- "tailwindcss": "4.3.3"
+ "tailwindcss": "4.3.5"
}
}
diff --git a/i18n/locales/ar.json b/i18n/locales/ar.json
index 5c0d7b0c4d..ff4cdc02fb 100644
--- a/i18n/locales/ar.json
+++ b/i18n/locales/ar.json
@@ -899,7 +899,6 @@
"search_label": "ابحث عن حزم",
"search_first": "ابحث عن حزمة…",
"search_add": "أضف حزمة أخرى…",
- "searching": "جارٍ البحث…",
"remove_package": "إزالة {package}",
"packages_selected": "{count}/{max} حزمة محددة.",
"add_hint": "أضف حزمتين على الأقل للمقارنة."
diff --git a/i18n/locales/az-AZ.json b/i18n/locales/az-AZ.json
index c799007e26..40c6fa2d4d 100644
--- a/i18n/locales/az-AZ.json
+++ b/i18n/locales/az-AZ.json
@@ -1026,7 +1026,6 @@
"search_label": "Paketləri axtar",
"search_first": "Paket axtarın...",
"search_add": "Başqa paket əlavə edin...",
- "searching": "Axtarılır...",
"remove_package": "{package} sil",
"packages_selected": "{count}/{max} paket seçilib.",
"add_hint": "Müqayisə üçün ən azı 2 paket əlavə edin."
diff --git a/i18n/locales/bg-BG.json b/i18n/locales/bg-BG.json
index 2d5fcb73b6..33dbecef04 100644
--- a/i18n/locales/bg-BG.json
+++ b/i18n/locales/bg-BG.json
@@ -977,7 +977,6 @@
"search_label": "Търсене на пакети",
"search_first": "Търсене на пакет...",
"search_add": "Добавяне на още пакет...",
- "searching": "Търсене...",
"remove_package": "Премахване на {package}",
"packages_selected": "{count}/{max} избрани пакета.",
"add_hint": "Добавете поне 2 пакета за сравнение."
diff --git a/i18n/locales/bn-IN.json b/i18n/locales/bn-IN.json
index a5a909bfb4..476a1d801f 100644
--- a/i18n/locales/bn-IN.json
+++ b/i18n/locales/bn-IN.json
@@ -1403,7 +1403,6 @@
"search_label": "প্যাকেজ অনুসন্ধান করুন",
"search_first": "প্যাকেজ অনুসন্ধান করুন...",
"search_add": "আরেকটি প্যাকেজ যোগ করুন...",
- "searching": "অনুসন্ধান করা হচ্ছে...",
"remove_package": "{package} সরান",
"packages_selected": "{count}/{max}টি প্যাকেজ নির্বাচিত।",
"add_hint": "তুলনা করার জন্য কমপক্ষে ২টি প্যাকেজ যোগ করুন।"
@@ -1498,18 +1497,6 @@
"label": "নিরাপত্তা ঝুঁকি",
"description": "পরিচিত নিরাপত্তা দুর্বলতা"
},
- "githubStars": {
- "label": "GitHub স্টার",
- "description": "GitHub রিপোজিটরিতে স্টারের সংখ্যা"
- },
- "githubForks": {
- "label": "GitHub ফর্ক",
- "description": "GitHub রিপোজিটরিতে ফর্কের সংখ্যা"
- },
- "githubIssues": {
- "label": "GitHub ইস্যু",
- "description": "GitHub রিপোজিটরিতে ইস্যুর সংখ্যা"
- },
"createdAt": {
"label": "তৈরি হয়েছে",
"description": "প্যাকেজটি কখন তৈরি হয়েছে"
diff --git a/i18n/locales/cs-CZ.json b/i18n/locales/cs-CZ.json
index cb2cbc21c6..cc368e2215 100644
--- a/i18n/locales/cs-CZ.json
+++ b/i18n/locales/cs-CZ.json
@@ -1516,7 +1516,6 @@
"search_label": "Vyhledat balíčky",
"search_first": "Vyhledat balíček...",
"search_add": "Přidat další balíček...",
- "searching": "Vyhledávání...",
"remove_package": "Odebrat {package}",
"packages_selected": "Vybrané balíčky: {count}/{max}.",
"add_hint": "Přidejte alespoň 2 balíčky ke srovnání.",
@@ -1612,18 +1611,6 @@
"label": "Zranitelnosti",
"description": "Známé bezpečnostní zranitelnosti"
},
- "githubStars": {
- "label": "GitHub Hvězdy",
- "description": "Počet hvězdiček na GitHub repozitáři"
- },
- "githubForks": {
- "label": "GitHub forky",
- "description": "Počet forků na GitHub repozitáři"
- },
- "githubIssues": {
- "label": "GitHub úkoly",
- "description": "Počet úkolů na GitHub repozitáři"
- },
"createdAt": {
"label": "Vytvořeno",
"description": "Kdy byl balíček vytvořen"
diff --git a/i18n/locales/de.json b/i18n/locales/de.json
index f78e00532f..e6b0bd3506 100644
--- a/i18n/locales/de.json
+++ b/i18n/locales/de.json
@@ -1290,7 +1290,6 @@
"search_label": "Nach Paketen suchen",
"search_first": "Nach einem Paket suchen...",
"search_add": "Weiteres Paket hinzufügen...",
- "searching": "Suche läuft...",
"remove_package": "{package} entfernen",
"packages_selected": "{count}/{max} Pakete ausgewählt.",
"add_hint": "Füge mindestens 2 Pakete zum Vergleichen hinzu."
@@ -1385,14 +1384,6 @@
"label": "Sicherheitslücken",
"description": "Bekannte Sicherheitsrisiken"
},
- "githubStars": {
- "label": "GitHub-Sterne",
- "description": "Anzahl der Sterne im GitHub-Repository"
- },
- "githubIssues": {
- "label": "GitHub-Issues",
- "description": "Anzahl der Issues im GitHub-Repository"
- },
"createdAt": {
"label": "Erstellt am",
"description": "Wann das Paket erstellt wurde"
diff --git a/i18n/locales/en.json b/i18n/locales/en.json
index 520450d2d8..884d14488a 100644
--- a/i18n/locales/en.json
+++ b/i18n/locales/en.json
@@ -1527,7 +1527,6 @@
"search_label": "Search for packages",
"search_first": "Search for a package...",
"search_add": "Add another package...",
- "searching": "Searching...",
"remove_package": "Remove {package}",
"packages_selected": "{count}/{max} packages selected.",
"add_hint": "Add at least 2 packages to compare.",
@@ -1623,21 +1622,21 @@
"label": "Vulnerabilities",
"description": "Known security vulnerabilities"
},
- "githubStars": {
- "label": "GitHub Stars",
- "description": "Number of stars on the GitHub repository"
- },
- "githubForks": {
- "label": "GitHub Forks",
- "description": "Number of forks on the GitHub repository"
- },
- "githubIssues": {
- "label": "GitHub Issues",
- "description": "Number of issues on the GitHub repository"
- },
"createdAt": {
"label": "Created At",
"description": "When the package was created"
+ },
+ "stars": {
+ "label": "Stars",
+ "description": "Number of stars on the repository"
+ },
+ "forks": {
+ "label": "Forks",
+ "description": "Number of forks on the repository"
+ },
+ "issues": {
+ "label": "Issues",
+ "description": "Number of issues on the repository"
}
},
"values": {
diff --git a/i18n/locales/es.json b/i18n/locales/es.json
index 09fdd5c99b..f0959da358 100644
--- a/i18n/locales/es.json
+++ b/i18n/locales/es.json
@@ -1404,7 +1404,6 @@
"search_label": "Buscar paquetes",
"search_first": "Buscar un paquete...",
"search_add": "Añadir otro paquete...",
- "searching": "Buscando...",
"remove_package": "Eliminar {package}",
"packages_selected": "{count}/{max} paquetes seleccionados.",
"add_hint": "Añade al menos 2 paquetes para comparar."
@@ -1499,18 +1498,6 @@
"label": "Vulnerabilidades",
"description": "Vulnerabilidades de seguridad conocidas"
},
- "githubStars": {
- "label": "Estrellas de GitHub",
- "description": "Número de estrellas en el repositorio de GitHub"
- },
- "githubForks": {
- "label": "Bifurcaciones de GitHub",
- "description": "Número de bifurcaciones (forks) en el repositorio de GitHub"
- },
- "githubIssues": {
- "label": "Incidencias de GitHub",
- "description": "Número de incidencias en el repositorio de GitHub"
- },
"createdAt": {
"label": "Fecha de creación",
"description": "Cuándo se creó el paquete"
diff --git a/i18n/locales/fr-FR.json b/i18n/locales/fr-FR.json
index 909d3f375a..736477762d 100644
--- a/i18n/locales/fr-FR.json
+++ b/i18n/locales/fr-FR.json
@@ -1325,7 +1325,6 @@
"search_label": "Rechercher des paquets",
"search_first": "Rechercher un paquet...",
"search_add": "Ajouter un autre paquet...",
- "searching": "Recherche...",
"remove_package": "Supprimer {package}",
"packages_selected": "{count}/{max} paquets sélectionnés.",
"add_hint": "Ajoutez au moins 2 paquets à comparer."
@@ -1420,17 +1419,17 @@
"label": "Vulnérabilités",
"description": "Vulnérabilités de sécurité connues"
},
- "githubStars": {
- "label": "Étoiles GitHub",
- "description": "Nombre d’étoiles du dépôt GitHub"
- },
- "githubIssues": {
- "label": "Issues GitHub",
- "description": "Nombre d’issues ouvertes sur GitHub"
- },
"createdAt": {
"label": "Date de création",
"description": "Date de création du paquet"
+ },
+ "stars": {
+ "label": "Étoiles",
+ "description": "Nombre d’étoiles du dépôt"
+ },
+ "issues": {
+ "label": "Issues",
+ "description": "Nombre d’issues ouvertes dans le dépôt"
}
},
"values": {
diff --git a/i18n/locales/hi-IN.json b/i18n/locales/hi-IN.json
index 76a9dace66..86371f704c 100644
--- a/i18n/locales/hi-IN.json
+++ b/i18n/locales/hi-IN.json
@@ -1084,7 +1084,6 @@
"search_label": "पैकेज खोजें",
"search_first": "पैकेज खोजें...",
"search_add": "एक और पैकेज जोड़ें...",
- "searching": "खोज रहे हैं...",
"remove_package": "{package} हटाएं",
"packages_selected": "{count}/{max} पैकेज चुने गए।",
"add_hint": "तुलना करने के लिए कम से कम 2 पैकेज जोड़ें।"
diff --git a/i18n/locales/hu-HU.json b/i18n/locales/hu-HU.json
index ac0ab2a6b3..fd3da40eff 100644
--- a/i18n/locales/hu-HU.json
+++ b/i18n/locales/hu-HU.json
@@ -977,7 +977,6 @@
"search_label": "Csomagok keresése",
"search_first": "Csomag keresése...",
"search_add": "Egy másik csomag hozzáadása...",
- "searching": "Keresés...",
"remove_package": "{package} eltávolítása",
"packages_selected": "{count}/{max} csomag kiválasztva.",
"add_hint": "Adj hozzá legalább 2 csomagot az összehasonlításhoz."
diff --git a/i18n/locales/id-ID.json b/i18n/locales/id-ID.json
index 9d5cbe99c4..a28bf3fea5 100644
--- a/i18n/locales/id-ID.json
+++ b/i18n/locales/id-ID.json
@@ -1105,7 +1105,6 @@
"search_label": "Cari paket",
"search_first": "Cari paket...",
"search_add": "Tambah paket lain...",
- "searching": "Mencari...",
"remove_package": "Hapus {package}",
"packages_selected": "{count}/{max} paket dipilih.",
"add_hint": "Tambah setidaknya 2 paket untuk dibandingkan."
diff --git a/i18n/locales/it-IT.json b/i18n/locales/it-IT.json
index 9a98652cff..780a9c1d18 100644
--- a/i18n/locales/it-IT.json
+++ b/i18n/locales/it-IT.json
@@ -1328,7 +1328,6 @@
"search_label": "Cerca pacchetti",
"search_first": "Cerca un pacchetto...",
"search_add": "Aggiungi un altro pacchetto...",
- "searching": "Cercando...",
"remove_package": "Rimuovi {package}",
"packages_selected": "{count}/{max} pacchetti selezionati.",
"add_hint": "Aggiungi almeno 2 pacchetti da confrontare."
@@ -1423,18 +1422,6 @@
"label": "Vulnerabilità",
"description": "Vulnerabilità di sicurezza note"
},
- "githubStars": {
- "label": "Stelle GitHub",
- "description": "Numero di stelle sul repository GitHub"
- },
- "githubForks": {
- "label": "Fork GitHub",
- "description": "Numero di fork sul repository GitHub"
- },
- "githubIssues": {
- "label": "Issue GitHub",
- "description": "Numero di issue sul repository GitHub"
- },
"createdAt": {
"label": "Creato il",
"description": "Quando è stato creato il pacchetto"
diff --git a/i18n/locales/ja-JP.json b/i18n/locales/ja-JP.json
index 1e69b421f6..a296830153 100644
--- a/i18n/locales/ja-JP.json
+++ b/i18n/locales/ja-JP.json
@@ -1396,7 +1396,6 @@
"search_label": "パッケージを検索",
"search_first": "パッケージを検索...",
"search_add": "パッケージを追加...",
- "searching": "検索中...",
"remove_package": "{package} を削除",
"packages_selected": "{count}/{max} パッケージ選択中。",
"add_hint": "比較するには少なくとも2つのパッケージを追加してください。"
@@ -1491,18 +1490,6 @@
"label": "脆弱性",
"description": "既知のセキュリティ脆弱性"
},
- "githubStars": {
- "label": "GitHub Stars",
- "description": "GitHubリポジトリのスター数"
- },
- "githubForks": {
- "label": "GitHub Forks",
- "description": "GitHubリポジトリのフォーク数"
- },
- "githubIssues": {
- "label": "GitHub Issues",
- "description": "GitHubリポジトリのIssues数"
- },
"createdAt": {
"label": "作成日",
"description": "パッケージが作成された日時"
diff --git a/i18n/locales/kn-IN.json b/i18n/locales/kn-IN.json
index a515afb1d6..6efe73df65 100644
--- a/i18n/locales/kn-IN.json
+++ b/i18n/locales/kn-IN.json
@@ -766,7 +766,6 @@
"search_label": "ಪ್ಯಾಕೇಜ್ ಹುಡುಕಿ",
"search_first": "ಪ್ಯಾಕೇಜ್ ಹುಡುಕಿ...",
"search_add": "ಇನ್ನೊಂದು ಪ್ಯಾಕೇಜ್ ಸೇರಿಸಿ...",
- "searching": "ಹುಡುಕಲಾಗುತ್ತಿದೆ...",
"remove_package": "{package} ತೆಗೆದುಹಾಕಿ",
"packages_selected": "{count}/{max} ಪ್ಯಾಕೇಜ್ಗಳು ಆಯ್ಕೆಮಾಡಲಾಗಿದೆ.",
"add_hint": "ಹೋಲಿಸಲು ಕನಿಷ್ಠ 2 ಪ್ಯಾಕೇಜ್ಗಳನ್ನು ಸೇರಿಸಿ."
diff --git a/i18n/locales/ko-KR.json b/i18n/locales/ko-KR.json
index 3c722e893f..eb1c769fd6 100644
--- a/i18n/locales/ko-KR.json
+++ b/i18n/locales/ko-KR.json
@@ -1429,7 +1429,6 @@
"search_label": "패키지 검색",
"search_first": "패키지 검색...",
"search_add": "다른 패키지 추가...",
- "searching": "검색 중...",
"remove_package": "{package} 제거",
"packages_selected": "{count}/{max}개 패키지 선택됨.",
"add_hint": "비교하려면 패키지를 2개 이상 추가하세요."
@@ -1524,18 +1523,6 @@
"label": "취약점",
"description": "알려진 보안 취약점"
},
- "githubStars": {
- "label": "GitHub 스타",
- "description": "GitHub 저장소의 스타 수"
- },
- "githubForks": {
- "label": "GitHub 포크",
- "description": "GitHub 저장소의 포크 수"
- },
- "githubIssues": {
- "label": "GitHub 이슈",
- "description": "GitHub 저장소의 이슈 수"
- },
"createdAt": {
"label": "생성일",
"description": "패키지가 생성된 시점"
diff --git a/i18n/locales/mr-IN.json b/i18n/locales/mr-IN.json
index 644e78ae1e..80d9a26a0c 100644
--- a/i18n/locales/mr-IN.json
+++ b/i18n/locales/mr-IN.json
@@ -1055,7 +1055,6 @@
"search_label": "पॅकेजेस शोधा",
"search_first": "एखादे पॅकेज शोधा...",
"search_add": "आणखी एक पॅकेज जोडा...",
- "searching": "शोधत आहे...",
"remove_package": "{package} काढा",
"packages_selected": "{count}/{max} पॅकेजेस निवडली.",
"add_hint": "तुलनेसाठी किमान 2 पॅकेजेस जोडा."
diff --git a/i18n/locales/nb-NO.json b/i18n/locales/nb-NO.json
index a6092e4926..82d1ec07ac 100644
--- a/i18n/locales/nb-NO.json
+++ b/i18n/locales/nb-NO.json
@@ -1333,7 +1333,6 @@
"search_label": "Søk etter pakker",
"search_first": "Søk etter en pakke...",
"search_add": "Legg til en annen pakke...",
- "searching": "Søker...",
"remove_package": "Fjern {package}",
"packages_selected": "{count}/{max} pakker valgt.",
"add_hint": "Legg til minst 2 pakker for å sammenligne."
@@ -1428,18 +1427,6 @@
"label": "Sårbarheter",
"description": "Kjente sikkerhetssårbarheter"
},
- "githubStars": {
- "label": "GitHub-stjerner",
- "description": "Antall stjerner på GitHub-repositoriet"
- },
- "githubForks": {
- "label": "GitHub-forks",
- "description": "Antall forks på GitHub-repositoriet"
- },
- "githubIssues": {
- "label": "GitHub-saker",
- "description": "Antall saker på GitHub-repositoriet"
- },
"createdAt": {
"label": "Opprettet",
"description": "Når pakken ble opprettet"
diff --git a/i18n/locales/ne-NP.json b/i18n/locales/ne-NP.json
index 73914e2843..ffa3aaf29c 100644
--- a/i18n/locales/ne-NP.json
+++ b/i18n/locales/ne-NP.json
@@ -1480,7 +1480,6 @@
"search_label": "प्याकेज खोज्नुहोस्",
"search_first": "प्याकेज खोज्नुहोस्...",
"search_add": "अर्को प्याकेज थप्नुहोस्...",
- "searching": "खोजिँदैछ...",
"remove_package": "{package} हटाउनुहोस्",
"packages_selected": "{count}/{max} प्याकेज चयन गरिएका छन्।",
"add_hint": "तुलना गर्न कम्तीमा 2 प्याकेज थप्नुहोस्।"
@@ -1575,18 +1574,6 @@
"label": "कमजोरीहरू",
"description": "ज्ञात सुरक्षा कमजोरीहरू"
},
- "githubStars": {
- "label": "GitHub स्टार",
- "description": "GitHub रिपोजिटरीमा स्टारहरूको संख्या"
- },
- "githubForks": {
- "label": "GitHub फोर्क",
- "description": "GitHub रिपोजिटरीमा फोर्कहरूको संख्या"
- },
- "githubIssues": {
- "label": "GitHub इश्यू",
- "description": "GitHub रिपोजिटरीमा इश्यूहरूको संख्या"
- },
"createdAt": {
"label": "बनाइएको मिति",
"description": "प्याकेज कहिले बनाइयो"
diff --git a/i18n/locales/nl.json b/i18n/locales/nl.json
index 11a1d14cab..c2b55d4e92 100644
--- a/i18n/locales/nl.json
+++ b/i18n/locales/nl.json
@@ -1510,7 +1510,6 @@
"search_label": "Zoek voor pakketten",
"search_first": "Zoek voor een pakket...",
"search_add": "Voeg nog een pakket toe...",
- "searching": "Zoeken...",
"remove_package": "Verwijder {package}",
"packages_selected": "{count}/{max} pakketten geselecteerd.",
"add_hint": "Voeg tenminste 2 pakketten toe om te vergelijken"
@@ -1605,18 +1604,6 @@
"label": "Kwetsbaarheden",
"description": "Bekende beveiliging kwetsbaarheden"
},
- "githubStars": {
- "label": "GitHub Sterren",
- "description": "Aantal sterren van de GitHub-repository"
- },
- "githubForks": {
- "label": "GitHub Forks",
- "description": "Aantal forks van de GitHub-repository"
- },
- "githubIssues": {
- "label": "GitHub Issues",
- "description": "Aantal issues van de GitHub-repository"
- },
"createdAt": {
"label": "Aangemaakt op",
"description": "Wanneer het pakket is aangemaakt"
diff --git a/i18n/locales/pl-PL.json b/i18n/locales/pl-PL.json
index 61c2f21957..c746a806da 100644
--- a/i18n/locales/pl-PL.json
+++ b/i18n/locales/pl-PL.json
@@ -1042,7 +1042,6 @@
"search_label": "Szukaj pakietów",
"search_first": "Wyszukaj pakiet...",
"search_add": "Dodaj kolejny pakiet...",
- "searching": "Wyszukiwanie...",
"remove_package": "Usuń {package}",
"packages_selected": "Wybrano pakiety: {count}/{max}.",
"add_hint": "Dodaj co najmniej 2 pakiety do porównania."
diff --git a/i18n/locales/pt-BR.json b/i18n/locales/pt-BR.json
index 50f35f2820..076023cb26 100644
--- a/i18n/locales/pt-BR.json
+++ b/i18n/locales/pt-BR.json
@@ -1251,7 +1251,6 @@
"search_label": "Pesquisar por pacotes",
"search_first": "Pesquisar por um pacote...",
"search_add": "Adicionar outro pacote...",
- "searching": "Pesquisando...",
"remove_package": "Remover {package}",
"packages_selected": "{count}/{max} pacotes selecionados.",
"add_hint": "Adicione pelo menos 2 pacotes para comparar."
@@ -1346,14 +1345,6 @@
"label": "Vulnerabilidades",
"description": "Vulnerabilidades de segurança conhecidas"
},
- "githubStars": {
- "label": "Estrelas no Github",
- "description": "Número de estrelas no repositório GitHub"
- },
- "githubIssues": {
- "label": "Issues no Github",
- "description": "Número de issues no repositório GitHub"
- },
"createdAt": {
"label": "Criado em",
"description": "Quando o pacote foi criado"
diff --git a/i18n/locales/pt-PT.json b/i18n/locales/pt-PT.json
index b32593ec04..35ba20911c 100644
--- a/i18n/locales/pt-PT.json
+++ b/i18n/locales/pt-PT.json
@@ -1265,7 +1265,6 @@
"search_label": "Pesquisar por pacotes",
"search_first": "Pesquisar por um pacote...",
"search_add": "Adicionar outro pacote...",
- "searching": "A pesquisar...",
"remove_package": "Remover {package}",
"packages_selected": "{count}/{max} pacotes selecionados.",
"add_hint": "Adiciona pelo menos 2 pacotes para comparar."
@@ -1360,14 +1359,6 @@
"label": "Vulnerabilidades",
"description": "Vulnerabilidades de segurança conhecidas"
},
- "githubStars": {
- "label": "Estrelas no GitHub",
- "description": "Número de estrelas no repositório GitHub"
- },
- "githubIssues": {
- "label": "Issues no GitHub",
- "description": "Número de issues no repositório GitHub"
- },
"createdAt": {
"label": "Criado Em",
"description": "Quando o pacote foi criado"
diff --git a/i18n/locales/ro-RO.json b/i18n/locales/ro-RO.json
index 1d94ba46da..449061d96a 100644
--- a/i18n/locales/ro-RO.json
+++ b/i18n/locales/ro-RO.json
@@ -1276,7 +1276,6 @@
"search_label": "Căută pachete",
"search_first": "Căută pachetul...",
"search_add": "Adaugă alt pachet...",
- "searching": "Căutare...",
"remove_package": "Șterge {package}",
"packages_selected": "{count}/{max} pachete selectate.",
"add_hint": "Adaugă cel puțin 2 pachete pentru a le compara."
@@ -1371,14 +1370,6 @@
"label": "Vulnerabilități",
"description": "Vulnerabilități de securitate cunoscute"
},
- "githubStars": {
- "label": "Stele GitHub",
- "description": "Numărul de stele din repository-ul GitHub"
- },
- "githubIssues": {
- "label": "Probleme GitHub",
- "description": "Numărul de probleme din repository-ul GitHub"
- },
"createdAt": {
"label": "Creat la",
"description": "Când pachetul a fost creat"
diff --git a/i18n/locales/ru-RU.json b/i18n/locales/ru-RU.json
index f3155e9730..9d817894e0 100644
--- a/i18n/locales/ru-RU.json
+++ b/i18n/locales/ru-RU.json
@@ -1485,7 +1485,6 @@
"search_label": "Поиск пакетов",
"search_first": "Найти пакет...",
"search_add": "Добавить ещё один пакет...",
- "searching": "Поиск...",
"remove_package": "Удалить {package}",
"packages_selected": "Выбрано пакетов: {count}/{max}.",
"add_hint": "Добавьте как минимум 2 пакета для сравнения."
@@ -1580,18 +1579,6 @@
"label": "Уязвимости",
"description": "Известные уязвимости безопасности"
},
- "githubStars": {
- "label": "Звёзды GitHub",
- "description": "Количество звёзд у GitHub-репозитория"
- },
- "githubForks": {
- "label": "Форки GitHub",
- "description": "Количество форков у GitHub-репозитория"
- },
- "githubIssues": {
- "label": "Тикеты GitHub",
- "description": "Количество тикетов в GitHub-репозитории"
- },
"createdAt": {
"label": "Дата создания",
"description": "Когда пакет был создан"
@@ -1921,9 +1908,9 @@
"p2": "Пожалуйста, попробуйте позже или {viewon}"
},
"version_unavailable": "Запрошенная версия недоступна.",
+ "copy_as_markdown": "Скопировать список изменений как Markdown",
"ungh": {
"rate_limit": "К сожалению, достигнут лимит запросов GitHub. Попробуйте снова через некоторое время."
- },
- "copy_as_markdown": "Скопировать список изменений как Markdown"
+ }
}
}
diff --git a/i18n/locales/sr-Latn-RS.json b/i18n/locales/sr-Latn-RS.json
index 67a838fee8..2de498d615 100644
--- a/i18n/locales/sr-Latn-RS.json
+++ b/i18n/locales/sr-Latn-RS.json
@@ -1101,7 +1101,6 @@
"search_label": "Pretražite pakete",
"search_first": "Pretražite paket...",
"search_add": "Dodajte još jedan paket...",
- "searching": "Pretraživanje...",
"remove_package": "Uklonite {package}",
"packages_selected": "{count}/{max} paketa izabrano.",
"add_hint": "Dodajte najmanje 2 paketa za poređenje."
diff --git a/i18n/locales/ta-IN.json b/i18n/locales/ta-IN.json
index a8aa11d21f..8ed033021f 100644
--- a/i18n/locales/ta-IN.json
+++ b/i18n/locales/ta-IN.json
@@ -867,7 +867,6 @@
"search_label": "தொகுப்புகளைத் தேடு",
"search_first": "ஒரு தொகுப்பைத் தேடு...",
"search_add": "மற்றொரு தொகுப்பைச் சேர்...",
- "searching": "தேடுகிறது...",
"remove_package": "{package} ஐ நீக்கு",
"packages_selected": "{count}/{max} தொகுப்புகள் தேர்ந்தெடுக்கப்பட்டன.",
"add_hint": "ஒப்பிட குறைந்தது 2 தொகுப்புகளைச் சேர்க்கவும்."
diff --git a/i18n/locales/te-IN.json b/i18n/locales/te-IN.json
index 2311289bc9..ecbf9d6b91 100644
--- a/i18n/locales/te-IN.json
+++ b/i18n/locales/te-IN.json
@@ -766,7 +766,6 @@
"search_label": "ప్యాకేజ్ను శోధించండి",
"search_first": "ప్యాకేజ్ను శోధించండి...",
"search_add": "మరో ప్యాకేజ్ను జోడించండి...",
- "searching": "శోధిస్తున్నారు...",
"remove_package": "{package} ను తీసివేయండి",
"packages_selected": "{count}/{max} ప్యాకేజ్లు ఎంచుకోబడ్డాయి.",
"add_hint": "పోల్చడానికి కనీసం 2 ప్యాకేజ్లను జోడించండి."
diff --git a/i18n/locales/tr-TR.json b/i18n/locales/tr-TR.json
index 99e74aca52..2020a2e914 100644
--- a/i18n/locales/tr-TR.json
+++ b/i18n/locales/tr-TR.json
@@ -1284,7 +1284,6 @@
"search_label": "Paket ara",
"search_first": "İlk paketi ara...",
"search_add": "Paket ekle...",
- "searching": "Aranıyor...",
"remove_package": "{package} paketini kaldır",
"packages_selected": "{count} paket seçildi",
"add_hint": "Karşılaştırmak için paket ekleyin"
@@ -1379,14 +1378,6 @@
"label": "Güvenlik açıkları",
"description": "Bilinen güvenlik açıkları"
},
- "githubStars": {
- "label": "GitHub Yıldızları",
- "description": "GitHub deposundaki yıldız sayısı"
- },
- "githubIssues": {
- "label": "GitHub Sorunları",
- "description": "GitHub deposundaki sorun sayısı"
- },
"createdAt": {
"label": "Oluşturulma Tarihi",
"description": "Paketin oluşturulma tarihi"
diff --git a/i18n/locales/uk-UA.json b/i18n/locales/uk-UA.json
index 7746c0bb90..48f1343f85 100644
--- a/i18n/locales/uk-UA.json
+++ b/i18n/locales/uk-UA.json
@@ -838,10 +838,6 @@
"sparkline_zoom_reset": {
"title": "Скинути масштаб · двічі клацніть діаграму або натисніть Esc",
"aria_label": "Скинути масштаб"
- },
- "downloads_heatmap": {
- "legend": {},
- "copy_alt": {}
}
},
"downloads": {
@@ -1489,7 +1485,6 @@
"search_label": "Пошук пакетів",
"search_first": "Знайти пакет...",
"search_add": "Додати ще пакет...",
- "searching": "Пошук...",
"remove_package": "Видалити {package}",
"packages_selected": "Вибрано {count}/{max} пакетів.",
"add_hint": "Додайте щонайменше 2 пакети для порівняння."
@@ -1584,18 +1579,6 @@
"label": "Вразливості",
"description": "Відомі вразливості безпеки"
},
- "githubStars": {
- "label": "Зірки GitHub",
- "description": "Кількість зірок у репозиторії GitHub"
- },
- "githubForks": {
- "label": "Форки GitHub",
- "description": "Кількість форків у репозиторії GitHub"
- },
- "githubIssues": {
- "label": "Issues GitHub",
- "description": "Кількість issues у репозиторії GitHub"
- },
"createdAt": {
"label": "Створено",
"description": "Коли пакет було створено"
@@ -1925,7 +1908,6 @@
"p2": "Спробуйте пізніше або {viewon}"
},
"version_unavailable": "Запитана версія недоступна.",
- "copy_as_markdown": "Копіювати журнал змін як Markdown",
- "ungh": {}
+ "copy_as_markdown": "Копіювати журнал змін як Markdown"
}
}
diff --git a/i18n/locales/vi-VN.json b/i18n/locales/vi-VN.json
index 5293cc851c..8edfe9fba5 100644
--- a/i18n/locales/vi-VN.json
+++ b/i18n/locales/vi-VN.json
@@ -1101,7 +1101,6 @@
"search_label": "Tìm kiếm package",
"search_first": "Tìm kiếm package...",
"search_add": "Thêm một package khác...",
- "searching": "Đang tìm kiếm...",
"remove_package": "Gỡ {package}",
"packages_selected": "Đã chọn {count}/{max} package.",
"add_hint": "Thêm ít nhất 2 package để so sánh."
diff --git a/i18n/locales/zh-CN.json b/i18n/locales/zh-CN.json
index 4e913672b8..9f890a76d0 100644
--- a/i18n/locales/zh-CN.json
+++ b/i18n/locales/zh-CN.json
@@ -1281,7 +1281,6 @@
"search_label": "搜索包",
"search_first": "搜索包…",
"search_add": "添加另一个包…",
- "searching": "搜索中…",
"remove_package": "移除 {package}",
"packages_selected": "已选择 {count}/{max} 个包。",
"add_hint": "至少添加 2 个包以进行比较。"
@@ -1376,14 +1375,6 @@
"label": "漏洞",
"description": "已知安全漏洞"
},
- "githubStars": {
- "label": "GitHub 星标",
- "description": "GitHub 仓库的星标数量"
- },
- "githubIssues": {
- "label": "GitHub 问题数",
- "description": "GitHub 仓库的问题数量"
- },
"createdAt": {
"label": "创建时间",
"description": "包创建时间"
diff --git a/i18n/locales/zh-TW.json b/i18n/locales/zh-TW.json
index 5b02ba0487..5be3dea22f 100644
--- a/i18n/locales/zh-TW.json
+++ b/i18n/locales/zh-TW.json
@@ -1221,7 +1221,6 @@
"search_label": "搜尋套件",
"search_first": "搜尋套件…",
"search_add": "新增另一個套件…",
- "searching": "搜尋中…",
"remove_package": "移除 {package}",
"packages_selected": "已選擇 {count}/{max} 個套件。",
"add_hint": "至少新增 2 個套件以進行比較。"
diff --git a/i18n/schema.json b/i18n/schema.json
index 7bee340a85..3c10397ed4 100644
--- a/i18n/schema.json
+++ b/i18n/schema.json
@@ -4585,9 +4585,6 @@
"search_add": {
"type": "string"
},
- "searching": {
- "type": "string"
- },
"remove_package": {
"type": "string"
},
@@ -4873,7 +4870,7 @@
},
"additionalProperties": false
},
- "githubStars": {
+ "createdAt": {
"type": "object",
"properties": {
"label": {
@@ -4885,7 +4882,7 @@
},
"additionalProperties": false
},
- "githubForks": {
+ "stars": {
"type": "object",
"properties": {
"label": {
@@ -4897,7 +4894,7 @@
},
"additionalProperties": false
},
- "githubIssues": {
+ "forks": {
"type": "object",
"properties": {
"label": {
@@ -4909,7 +4906,7 @@
},
"additionalProperties": false
},
- "createdAt": {
+ "issues": {
"type": "object",
"properties": {
"label": {
diff --git a/knip.ts b/knip.ts
index e9098530f9..98318fd3ea 100644
--- a/knip.ts
+++ b/knip.ts
@@ -13,6 +13,7 @@ const config: KnipConfig = {
'lighthouse-setup.cjs',
'uno-preset-*.ts!',
'scripts/**/*.ts',
+ 'test/e2e-vercel/{playwright.config,serve}.ts',
'{*,.github/*,app/pages/blog/**}.md',
],
project: [
diff --git a/modules/blog.ts b/modules/blog.ts
index da76db2411..abdf68cdc7 100644
--- a/modules/blog.ts
+++ b/modules/blog.ts
@@ -14,7 +14,7 @@ import {
type ResolvedAuthor,
} from '../shared/schemas/blog'
import { isProduction } from '../config/env'
-import { BLUESKY_API } from '../shared/utils/constants'
+import { BLUESKY_API, BLUESKY_GET_PROFILES_MAX } from '../shared/utils/constants'
import { glob, mkdir, writeFile } from 'node:fs/promises'
import { existsSync, readFileSync } from 'node:fs'
import { imageMeta } from 'image-meta'
@@ -32,23 +32,31 @@ async function fetchBlueskyAvatars(
if (handles.length === 0) return avatarMap
try {
- const params = new URLSearchParams()
- for (const handle of handles) {
- params.append('actors', handle)
- }
+ const profiles: Array<{ handle: string; avatar?: string }> = []
- const response = await fetch(
- `${BLUESKY_API}/xrpc/app.bsky.actor.getProfiles?${params.toString()}`,
- )
+ // getProfiles rejects the whole request above its actor limit, so fetch in batches
+ for (let i = 0; i < handles.length; i += BLUESKY_GET_PROFILES_MAX) {
+ const params = new URLSearchParams()
+ for (const handle of handles.slice(i, i + BLUESKY_GET_PROFILES_MAX)) {
+ params.append('actors', handle)
+ }
- if (!response.ok) {
- console.warn(`[blog] Failed to fetch Bluesky profiles: ${response.status}`)
- return avatarMap
- }
+ const response = await fetch(
+ `${BLUESKY_API}/xrpc/app.bsky.actor.getProfiles?${params.toString()}`,
+ )
- const data = (await response.json()) as { profiles: Array<{ handle: string; avatar?: string }> }
+ if (!response.ok) {
+ console.warn(`[blog] Failed to fetch Bluesky profiles: ${response.status}`)
+ continue
+ }
+
+ const data = (await response.json()) as {
+ profiles: Array<{ handle: string; avatar?: string }>
+ }
+ profiles.push(...data.profiles)
+ }
- for (const profile of data.profiles) {
+ for (const profile of profiles) {
if (profile.avatar) {
const hash = crypto.createHash('sha256').update(profile.avatar).digest('hex')
const dest = join(imagesDir, `${hash}.png`)
diff --git a/modules/cache.ts b/modules/cache.ts
index a2e7c3a410..3d781890bc 100644
--- a/modules/cache.ts
+++ b/modules/cache.ts
@@ -5,6 +5,8 @@ import { provider } from 'std-env'
// Storage key for fetch cache - must match shared/utils/fetch-cache-config.ts
const FETCH_CACHE_STORAGE_BASE = 'fetch-cache'
+const MB = 1024 * 1024
+
export default defineNuxtModule({
meta: {
name: 'vercel-cache',
@@ -37,6 +39,13 @@ export default defineNuxtModule({
...nitroConfig.storage[FETCH_CACHE_STORAGE_BASE],
driver: 'vercel-runtime-cache',
}
+ } else {
+ // function filesystems are read-only
+ nitroConfig.storage[FETCH_CACHE_STORAGE_BASE] = {
+ driver: 'lru-cache',
+ max: 5_000,
+ maxSize: 32 * MB,
+ }
}
const env = process.env.VERCEL_ENV
diff --git a/modules/isr-fallback.ts b/modules/isr-fallback.ts
index a37c9fe0a4..ab35cff26e 100644
--- a/modules/isr-fallback.ts
+++ b/modules/isr-fallback.ts
@@ -31,12 +31,8 @@ export default defineNuxtModule({
for (const path of [
'package',
'package/[name]',
- 'package/[name]/v',
- 'package/[name]/v/[version]',
'package/[org]',
'package/[org]/[name]',
- 'package/[org]/[name]/v',
- 'package/[org]/[name]/v/[version]',
'',
]) {
const outputPath = resolve(nitro.options.output.serverDir, '..', path, htmlFallback)
diff --git a/modules/lunaria.ts b/modules/lunaria.ts
index 8f418c81ba..c2597838dc 100644
--- a/modules/lunaria.ts
+++ b/modules/lunaria.ts
@@ -28,7 +28,7 @@ export default defineNuxtModule({
if (!isCI || !existsSync(lunariaDistPath)) {
mkdirSync(lunariaDistPath, { recursive: true })
nuxt.hook('nitro:build:before', () => {
- execSync('node --experimental-transform-types ./lunaria/lunaria.ts', {
+ execSync('node ./lunaria/lunaria.ts', {
cwd: nuxt.options.rootDir,
stdio: 'inherit',
})
diff --git a/modules/og-image-cache.ts b/modules/og-image-cache.ts
new file mode 100644
index 0000000000..99608af8d9
--- /dev/null
+++ b/modules/og-image-cache.ts
@@ -0,0 +1,118 @@
+import { readFileSync, writeFileSync } from 'node:fs'
+import { resolve } from 'node:path'
+import { createResolver, defineNuxtModule } from 'nuxt/kit'
+import { provider } from 'std-env'
+import { OG_INVALID_CACHE_CONTROL } from './runtime/server/og-image-error-handler'
+
+interface VercelRoute {
+ handle?: string
+ src?: string
+ dest?: string
+ status?: number
+ headers?: Record