You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@tanstack/history

Package Overview
Dependencies
Maintainers
4
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/history - npm Package Compare versions

Comparing version
1.145.7
to
1.151.1
+6
-1
dist/cjs/index.cjs

@@ -358,2 +358,5 @@ "use strict";

const getLocation = () => parseHref(entries[index], states[index]);
let blockers = [];
const _getBlockers = () => blockers;
const _setBlockers = (newBlockers) => blockers = newBlockers;
return createHistory({

@@ -384,3 +387,5 @@ getLocation,

},
createHref: (path) => path
createHref: (path) => path,
getBlockers: _getBlockers,
setBlockers: _setBlockers
});

@@ -387,0 +392,0 @@ }

@@ -356,2 +356,5 @@ const stateIndexKey = "__TSR_index";

const getLocation = () => parseHref(entries[index], states[index]);
let blockers = [];
const _getBlockers = () => blockers;
const _setBlockers = (newBlockers) => blockers = newBlockers;
return createHistory({

@@ -382,3 +385,5 @@ getLocation,

},
createHref: (path) => path
createHref: (path) => path,
getBlockers: _getBlockers,
setBlockers: _setBlockers
});

@@ -385,0 +390,0 @@ }

+1
-1
{
"name": "@tanstack/history",
"version": "1.145.7",
"version": "1.151.1",
"description": "Modern and scalable routing for React applications",

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

@@ -596,2 +596,7 @@ // While the public API was clearly inspired by the "history" npm package,

let blockers: Array<NavigationBlocker> = []
const _getBlockers = () => blockers
const _setBlockers = (newBlockers: Array<NavigationBlocker>) =>
(blockers = newBlockers)
return createHistory({

@@ -624,2 +629,4 @@ getLocation,

createHref: (path) => path,
getBlockers: _getBlockers,
setBlockers: _setBlockers,
})

@@ -626,0 +633,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet