diff --git a/src/components/npm-stats/NPMSummary.tsx b/src/components/npm-stats/NPMSummary.tsx index 0b7b3330..1c63d1bc 100644 --- a/src/components/npm-stats/NPMSummary.tsx +++ b/src/components/npm-stats/NPMSummary.tsx @@ -86,7 +86,7 @@ function StatCard({ return (
{animated && npmData ? ( @@ -113,18 +113,18 @@ function NPMSummaryContent({ library }: { library: Library }) { const { data: recentStats } = useSuspenseQuery(recentDownloadsQuery(library)) return ( -
+

View download statistics for TanStack {library.name} packages. Compare different time periods and track usage trends.

-

+

*These top summary stats account for core packages, legacy package names, and all framework adapters.

-
+
{ handleRedirects( diff --git a/src/routes/$libraryId/$version.docs.framework.index.tsx b/src/routes/$libraryId/$version.docs.framework.index.tsx index 0d7ebfa4..c80825d0 100644 --- a/src/routes/$libraryId/$version.docs.framework.index.tsx +++ b/src/routes/$libraryId/$version.docs.framework.index.tsx @@ -20,8 +20,7 @@ function getPackageName( ): string { if (frameworkValue === 'vanilla') { // For vanilla, use corePackageName if provided, otherwise just libraryId - const coreName = library.corePackageName || libraryId - return `@tanstack/${coreName}` + return library.corePackageName ?? `@tanstack/${libraryId}` } // Special case: Angular Query uses experimental package if (frameworkValue === 'angular' && libraryId === 'query') { diff --git a/src/utils/npm-packages.ts b/src/utils/npm-packages.ts index 2ed31a25..53141a74 100644 --- a/src/utils/npm-packages.ts +++ b/src/utils/npm-packages.ts @@ -112,7 +112,7 @@ export function getLibraryMainPackage(library: LibrarySlim): string { // Use corePackageName if specified (e.g., table-core) if (library.corePackageName) { - return `@tanstack/${library.corePackageName}` + return library.corePackageName } return `@tanstack/${library.id}`