@tanstack/react-router 1.98.3 → 1.98.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-router",
3
- "version": "1.98.3",
3
+ "version": "1.98.7",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -53,8 +53,8 @@
53
53
  "jsesc": "^3.1.0",
54
54
  "tiny-invariant": "^1.3.3",
55
55
  "tiny-warning": "^1.0.3",
56
- "@tanstack/history": "1.98.1",
57
- "@tanstack/router-core": "^1.98.1"
56
+ "@tanstack/router-core": "^1.98.7",
57
+ "@tanstack/history": "1.98.7"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@testing-library/jest-dom": "^6.6.3",
package/src/Match.tsx CHANGED
@@ -1,5 +1,3 @@
1
- 'use client'
2
-
3
1
  import * as React from 'react'
4
2
  import invariant from 'tiny-invariant'
5
3
  import warning from 'tiny-warning'
package/src/link.tsx CHANGED
@@ -1,5 +1,3 @@
1
- 'use client'
2
-
3
1
  import * as React from 'react'
4
2
  import { flushSync } from 'react-dom'
5
3
  import {
package/src/router.ts CHANGED
@@ -459,9 +459,9 @@ export interface RouterOptions<
459
459
  defaultRemountDeps?: (opts: MakeRemountDepsOptionsUnion<TRouteTree>) => any
460
460
 
461
461
  /**
462
- * If `false`, scroll restoration will be disabled
462
+ * If `true`, scroll restoration will be enabled
463
463
  *
464
- * @default true
464
+ * @default false
465
465
  */
466
466
  scrollRestoration?: boolean
467
467
  getScrollRestorationKey?: (location: ParsedLocation) => string