Skip to content
Draft
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
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
},
"build": {
"cache": true,
"dependsOn": ["^build"],
"dependsOn": [],
"inputs": ["production", "^production"],
"outputs": ["{projectRoot}/build", "{projectRoot}/dist"]
},
Expand Down
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"benchmark:client-nav": "pnpm nx run @benchmarks/client-nav:test:perf",
"benchmark:ssr": "pnpm nx run @benchmarks/ssr:test:perf",
"build": "nx affected --target=build --exclude=e2e/** --exclude=examples/**",
"build:all": "nx run-many --target=build --exclude=examples/** --exclude=e2e/**",
"build:declarations": "node scripts/build-declarations.mjs",
"build:all": "pnpm run build:declarations && nx run-many --target=build --exclude=examples/** --exclude=e2e/**",
"watch": "pnpm run build:all && nx watch --all -- pnpm run build:all",
"dev": "pnpm run watch",
"format": "prettier --experimental-cli --ignore-unknown '**/*' --write",
Expand Down Expand Up @@ -57,6 +58,7 @@
"@types/node": "25.0.9",
"@types/react": "^19.2.8",
"@types/react-dom": "^19.2.3",
"@typescript/native-preview": "7.0.0-dev.20260327.2",
"@vitest/browser": "^4.0.17",
"@vitest/ui": "^4.0.17",
"eslint": "^9.22.0",
Expand All @@ -71,14 +73,15 @@
"react-dom": "^19.2.3",
"redaxios": "^0.5.1",
"rimraf": "^6.1.2",
"rolldown-plugin-dts": "^0.23.1",
"tinyglobby": "^0.2.15",
"typescript": "^6.0.2",
"typescript55": "npm:typescript@5.5",
"typescript56": "npm:typescript@5.6",
"typescript57": "npm:typescript@5.7",
"typescript58": "npm:typescript@5.8",
"typescript59": "npm:typescript@5.9",
"vite": "^8.0.0",
"vite": "^8.0.3",
"vitest": "^4.0.17"
},
"pnpm": {
Expand Down Expand Up @@ -134,6 +137,9 @@
"@tanstack/router-utils": "workspace:*",
"@tanstack/start-static-server-functions": "workspace:*",
"@tanstack/nitro-v2-vite-plugin": "workspace:*"
},
"patchedDependencies": {
"@tanstack/vite-config": "patches/@tanstack__vite-config.patch"
}
}
}
10 changes: 9 additions & 1 deletion packages/arktype-adapter/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"rootDir": "./src"
"rootDir": "./src",
"isolatedDeclarations": true,
"allowJs": false,
"checkJs": false,
"composite": true,
"declaration": true,
"emitDeclarationOnly": true,
"declarationDir": "./dist/esm",
"noEmit": false
},
"include": ["src"]
}
1 change: 1 addition & 0 deletions packages/arktype-adapter/tsconfig.build.tsbuildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":"7.0.0-dev.20260327.2","checkPending":true,"root":[64],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.dom.d.ts","lib.dom.iterable.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","../../node_modules/.pnpm/@types+react@19.2.8/node_modules/@types/react/global.d.ts","../../node_modules/.pnpm/csstype@3.2.3/node_modules/csstype/index.d.ts","../../node_modules/.pnpm/@types+react@19.2.8/node_modules/@types/react/index.d.ts","../../node_modules/.pnpm/@types+react@19.2.8/node_modules/@types/react/jsx-runtime.d.ts","./src/index.ts"],"fileInfos":[{"version":"a1aa1a5e065d48ef5c7bb99e38412f96","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f","feb6c6fb19cdb246a5d8acb36a6901c7",{"version":"aae8996e8b5684814785a42cbbefcd79","affectsGlobalScope":true,"impliedNodeFormat":1},"abad6dd56cc8caf095c165df8124d237",{"version":"01ac052ec4a79e87229f90466a9645f8","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"edba5df642941aa062a62f6328c6df3d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"bb3a710cbcda0533bb127712927cbe37","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7a42de379b489e8f7b647455bebfc576","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02705151a5e1551b9162a9ed8ab763f7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"692bcd75364db0f65d428801c7884466","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4fc71cf4a15b8d99675a31df77f26e07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d1b49564ddaeca3df5b6dbae925d2242","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6a25be566d60ccfc2d6e8b7bfdeefa83","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a20e27646985dfd58c57ca6566553dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9969f02ad3cdcbf4f709405cda44167f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c9be4792a7a4f42c15ae7360bf28779","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f64453cbf9671f28158677fa5c43967a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"755636ad6f32b63f262ec9940496a366","affectsGlobalScope":true,"impliedNodeFormat":1},"8244c8f803a86fcac606483469eb85c3","717c365bc32aa9ee695c06ec59bf247f","6cf9f954dfe35ddb7805fa637c7fa795",{"version":"41a4b23a0bbc24ca1121b636299b6985","signature":"8c85034fee501a089e9632c9c8dc1a30","impliedNodeFormat":1}],"fileIdsList":[[60,61],[62]],"options":{"allowJs":false,"allowUnreachableCode":false,"allowUnusedLabels":false,"checkJs":false,"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationDir":"./dist/esm","isolatedDeclarations":true,"jsx":4,"module":99,"noImplicitReturns":true,"noUncheckedIndexedAccess":true,"noUnusedLocals":false,"noUnusedParameters":false,"rootDir":"./src","skipLibCheck":true,"strict":true,"stripInternal":true,"target":7,"allowSyntheticDefaultImports":true,"esModuleInterop":true},"referencedMap":[[62,1],[63,2]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64],"latestChangedDtsFile":"./dist/esm/index.d.ts"}
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export const createRouteFunctionsDirect = [
'createRoute',
] as const

export const createRouteFunctions = [
...createRouteFunctionsDirect,
...createRouteFunctionsIndirect,
] as const
export const createRouteFunctions: ReadonlyArray<
| (typeof createRouteFunctionsDirect)[number]
| (typeof createRouteFunctionsIndirect)[number]
> = [...createRouteFunctionsDirect, ...createRouteFunctionsIndirect] as const

export type CreateRouteFunction = (typeof createRouteFunctions)[number]

Expand All @@ -37,4 +37,5 @@ export const sortRules = [
] as const

export type CheckedProperties = (typeof sortRules)[number][number][number]
export const checkedProperties = getCheckedProperties(sortRules)
export const checkedProperties: ReadonlyArray<CheckedProperties> =
getCheckedProperties(sortRules)
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import type { CreateRouteFunction } from './constants'
import type { ExtraRuleDocs } from '../../types'

const createRule = ESLintUtils.RuleCreator<ExtraRuleDocs>(getDocsUrl)
const createRule: ReturnType<typeof ESLintUtils.RuleCreator<ExtraRuleDocs>> = ESLintUtils.RuleCreator<ExtraRuleDocs>(getDocsUrl)

const createRouteFunctionSet = new Set(createRouteFunctions)
function isCreateRouteFunction(node: any): node is CreateRouteFunction {
Expand All @@ -20,7 +20,7 @@ function isCreateRouteFunction(node: any): node is CreateRouteFunction {

export const name = 'create-route-property-order'

export const rule = createRule({
export const rule: ReturnType<typeof createRule> = createRule({
name,
meta: {
type: 'problem',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ export type PathAsPropertyFunction = (typeof pathAsPropertyFunctions)[number]
/**
* All route functions that need param name validation
*/
export const allRouteFunctions = [
...pathAsFirstArgFunctions,
...pathAsPropertyFunctions,
] as const
export const allRouteFunctions: ReadonlyArray<
| (typeof pathAsFirstArgFunctions)[number]
| (typeof pathAsPropertyFunctions)[number]
> = [...pathAsFirstArgFunctions, ...pathAsPropertyFunctions] as const

export type RouteFunction = (typeof allRouteFunctions)[number]

Expand All @@ -33,4 +33,4 @@ export type RouteFunction = (typeof allRouteFunctions)[number]
* Must start with letter, underscore, or dollar sign
* Can contain letters, numbers, underscores, or dollar signs
*/
export const VALID_PARAM_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z0-9_$]*$/
export const VALID_PARAM_NAME_REGEX: RegExp = /^[a-zA-Z_$][a-zA-Z0-9_$]*$/
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import { pathAsFirstArgFunctions, pathAsPropertyFunctions } from './constants'
import type { TSESTree } from '@typescript-eslint/utils'
import type { ExtraRuleDocs } from '../../types'

const createRule = ESLintUtils.RuleCreator<ExtraRuleDocs>(getDocsUrl)
const createRule: ReturnType<typeof ESLintUtils.RuleCreator<ExtraRuleDocs>> = ESLintUtils.RuleCreator<ExtraRuleDocs>(getDocsUrl)

const pathAsFirstArgSet = new Set<string>(pathAsFirstArgFunctions)
const pathAsPropertySet = new Set<string>(pathAsPropertyFunctions)

export const name = 'route-param-names'

export const rule = createRule({
export const rule: ReturnType<typeof createRule> = createRule({
name,
meta: {
type: 'problem',
Expand Down
13 changes: 11 additions & 2 deletions packages/eslint-plugin-router/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"rootDir": "./src"
"rootDir": "./src",
"isolatedDeclarations": true,
"allowJs": false,
"checkJs": false,
"composite": true,
"declaration": true,
"emitDeclarationOnly": true,
"declarationDir": "./dist/esm",
"noEmit": false
},
"include": ["src"]
"include": ["src"],
"exclude": ["src/__tests__"]
}
1 change: 1 addition & 0 deletions packages/eslint-plugin-router/tsconfig.build.tsbuildinfo

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion packages/history/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"rootDir": "./src"
"rootDir": "./src",
"isolatedDeclarations": true,
"allowJs": false,
"checkJs": false,
"composite": true,
"declaration": true,
"emitDeclarationOnly": true,
"declarationDir": "./dist/esm",
"noEmit": false
},
"include": ["src"]
}
Loading
Loading