@tanstack/router-core 0.0.1-beta.2 → 0.0.1-beta.4

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@tanstack/router-core",
3
3
  "author": "Tanner Linsley",
4
- "version": "0.0.1-beta.2",
4
+ "version": "0.0.1-beta.4",
5
5
  "license": "MIT",
6
6
  "repository": "tanstack/router",
7
7
  "homepage": "https://tanstack.com/router",
package/src/qss.ts CHANGED
@@ -30,6 +30,7 @@ function toValue(mix) {
30
30
  var str = decodeURIComponent(mix)
31
31
  if (str === 'false') return false
32
32
  if (str === 'true') return true
33
+ if (str.charAt(0) === '0') return str
33
34
  return +str * 0 === 0 ? +str : str
34
35
  }
35
36
 
package/src/router.ts CHANGED
@@ -320,13 +320,12 @@ export interface Router<
320
320
  }
321
321
 
322
322
  // Detect if we're in the DOM
323
- const isServer = Boolean(
324
- typeof window === 'undefined' || !window.document?.createElement,
325
- )
323
+ const isServer =
324
+ typeof window === 'undefined' || !window.document?.createElement
326
325
 
327
326
  // This is the default history object if none is defined
328
327
  const createDefaultHistory = () =>
329
- !isServer ? createBrowserHistory() : createMemoryHistory()
328
+ isServer ? createMemoryHistory() : createBrowserHistory()
330
329
 
331
330
  export function createRouter<
332
331
  TRouteConfig extends AnyRouteConfig = RouteConfig,