Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@tanstack/react-router

Package Overview
Dependencies
Maintainers
0
Versions
620
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/react-router - npm Package Compare versions

Comparing version 1.61.1 to 1.62.0

3

dist/esm/route.d.ts

@@ -297,2 +297,3 @@ import { RootRouteId } from './root.js';

private _to;
private _ssr;
get to(): TrimPathRight<TFullPath>;

@@ -302,2 +303,3 @@ get id(): TId;

get fullPath(): TFullPath;
get ssr(): boolean;
children?: TChildren;

@@ -338,2 +340,3 @@ originalIndex?: number;

originalIndex: number;
defaultSsr?: boolean;
}) => void;

@@ -340,0 +343,0 @@ addChildren<const TNewChildren extends Record<string, AnyRoute> | ReadonlyArray<AnyRoute>>(children: TNewChildren): Route<TParentRoute, TPath, TFullPath, TCustomId, TId, TSearchValidator, TParams, TRouterContext, TRouteContextFn, TBeforeLoadFn, TLoaderDeps, TLoaderFn, TNewChildren>;

@@ -88,2 +88,3 @@ import invariant from "tiny-invariant";

this._to = fullPath;
this._ssr = (options2 == null ? void 0 : options2.ssr) ?? opts.defaultSsr ?? true;
};

@@ -147,2 +148,5 @@ this.updateLoader = (options2) => {

}
get ssr() {
return this._ssr;
}
addChildren(children) {

@@ -149,0 +153,0 @@ return this._addFileChildren(children);

@@ -345,2 +345,3 @@ import { Store, NoInfer } from '@tanstack/react-store';

isServer?: boolean;
defaultSsr?: boolean;
}

@@ -347,0 +348,0 @@ export interface RouterErrorSerializer<TSerializedError> {

10

dist/esm/router.js

@@ -92,3 +92,6 @@ import { createMemoryHistory, createBrowserHistory, parseHref } from "@tanstack/history";

if (notFoundRoute) {
notFoundRoute.init({ originalIndex: 99999999999 });
notFoundRoute.init({
originalIndex: 99999999999,
defaultSsr: this.options.defaultSsr
});
this.routesById[notFoundRoute.id] = notFoundRoute;

@@ -98,3 +101,6 @@ }

childRoutes.forEach((childRoute, i) => {
childRoute.init({ originalIndex: i });
childRoute.init({
originalIndex: i,
defaultSsr: this.options.defaultSsr
});
const existingRoute = this.routesById[childRoute.id];

@@ -101,0 +107,0 @@ invariant(

{
"name": "@tanstack/react-router",
"version": "1.61.1",
"version": "1.62.0",
"description": "Modern and scalable routing for React applications",

@@ -5,0 +5,0 @@ "author": "Tanner Linsley",

@@ -885,2 +885,3 @@ import invariant from 'tiny-invariant'

private _to!: TrimPathRight<TFullPath>
private _ssr!: boolean

@@ -920,2 +921,6 @@ public get to() {

public get ssr() {
return this._ssr
}
// Optional

@@ -989,3 +994,3 @@ children?: TChildren

init = (opts: { originalIndex: number }): void => {
init = (opts: { originalIndex: number; defaultSsr?: boolean }): void => {
this.originalIndex = opts.originalIndex

@@ -1057,2 +1062,3 @@

this._to = fullPath as TrimPathRight<TFullPath>
this._ssr = options?.ssr ?? opts.defaultSsr ?? true
}

@@ -1059,0 +1065,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc