Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 0 additions & 18 deletions src/components/Scarf.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions src/libraries/libraries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export const query: LibrarySlim = {
corePackageName: '@tanstack/query-core',
npmPackageNames: ['@tanstack/query-core', 'react-query'],
availableVersions: ['v5', 'v4', 'v3'],
scarfId: '53afb586-3934-4624-a37a-e680c1528e17',
defaultDocs: 'framework/react/overview',
sitemap: {
includeLandingPage: true,
Expand Down Expand Up @@ -209,7 +208,6 @@ export const router: LibrarySlim = {
latestVersion: 'v1',
latestBranch: 'main',
availableVersions: ['v1'],
scarfId: '3d14fff2-f326-4929-b5e1-6ecf953d24f4',
docsRoot: 'docs/router',
sitemap: {
includeLandingPage: true,
Expand Down Expand Up @@ -272,7 +270,6 @@ export const start: LibrarySlim = {
availableVersions: ['v0'],
corePackageName: '@tanstack/start-client-core',
npmPackageNames: ['@tanstack/start-client-core'],
scarfId: 'b6e2134f-e805-401d-95c3-2a7765d49a3d',
docsRoot: 'docs/start',
defaultDocs: 'framework/react/overview',
sitemap: {
Expand Down Expand Up @@ -313,7 +310,6 @@ export const table: LibrarySlim = {
latestVersion: 'v9',
latestBranch: 'main',
availableVersions: ['v9', 'v8'],
scarfId: 'dc8b39e1-3fe9-4f3a-8e56-d4e2cf420a9e',
defaultDocs: 'overview',
sitemap: {
includeLandingPage: true,
Expand Down Expand Up @@ -439,7 +435,6 @@ export const form: LibrarySlim = {
latestVersion: 'v1',
latestBranch: 'main',
availableVersions: ['v1', 'alpha'],
scarfId: '72ec4452-5d77-427c-b44a-57515d2d83aa',
sitemap: {
includeLandingPage: true,
includeDocsPages: true,
Expand All @@ -462,7 +457,6 @@ export const virtual: LibrarySlim = {
latestVersion: 'v3',
latestBranch: 'main',
availableVersions: ['v3'],
scarfId: '32372eb1-91e0-48e7-8df1-4808a7be6b94',
defaultDocs: 'introduction',
legacyPackages: ['react-virtual'],
sitemap: {
Expand All @@ -488,7 +482,6 @@ export const ranger: LibrarySlim = {
latestVersion: 'v0',
latestBranch: 'main',
availableVersions: ['v0'],
scarfId: 'dd278e06-bb3f-420c-85c6-6e42d14d8f61',
visible: false,
sitemap: {
includeLandingPage: true,
Expand Down Expand Up @@ -521,7 +514,6 @@ export const store: LibrarySlim = {
latestVersion: 'v0',
latestBranch: 'main',
availableVersions: ['v0'],
scarfId: '302d0fef-cb3f-43c6-b45c-f055b9745edb',
defaultDocs: 'overview',
sitemap: {
includeLandingPage: true,
Expand All @@ -547,7 +539,6 @@ export const pacer: LibrarySlim = {
latestVersion: 'v0',
latestBranch: 'main',
availableVersions: ['v0'],
scarfId: '302d0fef-cb3f-43c6-b45c-f055b9745edb',
defaultDocs: 'overview',
sitemap: {
includeLandingPage: true,
Expand Down Expand Up @@ -678,7 +669,6 @@ export const db: LibrarySlim = {
latestVersion: 'v0',
latestBranch: 'main',
availableVersions: ['v0'],
scarfId: '302d0fef-cb3f-43c6-b45c-f055b9745edb',
defaultDocs: 'overview',
sitemap: {
includeLandingPage: true,
Expand Down
1 change: 0 additions & 1 deletion src/libraries/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export type LibrarySlim = {
latestVersion: string
latestBranch?: string
availableVersions: string[]
scarfId?: string
defaultDocs?: string
docsRoot?: string
hideCodesandboxUrl?: true
Expand Down
8 changes: 8 additions & 0 deletions src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,14 @@ function ShellComponent({ children }: { children: React.ReactNode }) {
suppressHydrationWarning
/>
<HeadContent />
{import.meta.env.PROD ? (
<script
defer
src="https://namethathost.com/tracker.js"
data-site="b7d91d66-ccee-480a-9d33-f7a9f109edc4"
referrerPolicy="no-referrer"
/>
) : null}
<style
id="tanstack-highlight-theme"
dangerouslySetInnerHTML={{ __html: HIGHLIGHT_THEME_CSS }}
Expand Down
8 changes: 1 addition & 7 deletions src/routes/_library/$libraryId/route.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { createFileRoute } from '@tanstack/react-router'
import { notFound, Outlet } from '@tanstack/react-router'
import { Scarf } from '~/components/Scarf'
import { findLibrary, LibraryId } from '~/libraries'
import { seo } from '~/utils/seo'
import { ogImageUrl } from '~/utils/og'
Expand Down Expand Up @@ -65,10 +64,5 @@ function RouteForm() {
return null
}

return (
<>
<Outlet />
{library?.scarfId ? <Scarf id={library.scarfId} /> : null}
</>
)
return <Outlet />
}
15 changes: 14 additions & 1 deletion src/routes/privacy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function RouteComp() {
<div className="flex-1 space-y-12 w-full max-w-3xl mx-auto">
<header className="">
<h1 className="text-4xl font-bold">Privacy Policy</h1>
<p className="">Effective Date: January 18, 2025</p>
<p className="">Effective Date: September 10, 2026</p>
</header>

<section className="">
Expand Down Expand Up @@ -78,6 +78,19 @@ function RouteComp() {

<section>
<h2 className="text-2xl font-semibold">3. Cookies and Tracking</h2>
<p>
We use namethathost.com, operated by TanStack, to understand which
companies visit our public pages and which libraries interest them.
This tracker uses no cookies or persistent device IDs. It records
page paths without query strings and referring website origins. We
temporarily process IP addresses through ipapi.is to look up
associated company networks. A network match does not identify a
person or confirm that a company uses TanStack. Encrypted addresses
are held only for delivery and retries, and company lookups stop
after 24 hours. Our daily cleanup removes company cache entries
older than seven days and activity older than 30 days. This tracker
respects Do Not Track and Global Privacy Control.
</p>
<p>
The Site uses cookies and similar tracking technologies to analyze
trends, track user behavior, and gather demographic information.
Expand Down
15 changes: 0 additions & 15 deletions tests/static-data-contracts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import {
publicLibraries,
} from '../src/libraries/libraries'

const uuidPattern =
/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i

assert.deepEqual(
publicLibraries,
libraries.filter(isPublicLibrary),
Expand Down Expand Up @@ -40,18 +37,6 @@ for (const library of publicLibraries) {
)
}

for (const library of libraries) {
if (!library.scarfId) {
continue
}

assert.match(
library.scarfId,
uuidPattern,
`${library.id} scarfId must be a UUID`,
)
}

for (const maintainer of allMaintainers) {
const socialEntries = Object.entries(maintainer.social ?? {})

Expand Down
Loading