@tanstack/router-core 0.0.1-beta.49 → 0.0.1-beta.50

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.49",
4
+ "version": "0.0.1-beta.50",
5
5
  "license": "MIT",
6
6
  "repository": "tanstack/router",
7
7
  "homepage": "https://tanstack.com/router",
package/src/router.ts CHANGED
@@ -319,10 +319,7 @@ export class Router<
319
319
  fetchServerDataFn: options?.fetchServerDataFn ?? defaultFetchServerDataFn,
320
320
  }
321
321
 
322
- this.history =
323
- this.options?.history ?? isServer
324
- ? createMemoryHistory()
325
- : createBrowserHistory()
322
+ this.history = this.options?.history ?? createBrowserHistory()
326
323
  this.store = createStore(getInitialRouterState())
327
324
  this.basepath = ''
328
325
 
@@ -1216,16 +1213,6 @@ export class Router<
1216
1213
 
1217
1214
  const parsedSearch = this.options.parseSearch(search)
1218
1215
 
1219
- console.log({
1220
- pathname: pathname,
1221
- searchStr: search,
1222
- search: replaceEqualDeep(previousLocation?.search, parsedSearch),
1223
- hash: hash.split('#').reverse()[0] ?? '',
1224
- href: `${pathname}${search}${hash}`,
1225
- state: state as LocationState,
1226
- key: state?.key || '__init__',
1227
- })
1228
-
1229
1216
  return {
1230
1217
  pathname: pathname,
1231
1218
  searchStr: search,