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

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.
Files changed (44) hide show
  1. package/build/cjs/actions.js +94 -0
  2. package/build/cjs/actions.js.map +1 -0
  3. package/build/cjs/history.js +163 -0
  4. package/build/cjs/history.js.map +1 -0
  5. package/build/cjs/index.js +18 -20
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/interop.js +175 -0
  8. package/build/cjs/interop.js.map +1 -0
  9. package/build/cjs/path.js +4 -5
  10. package/build/cjs/path.js.map +1 -1
  11. package/build/cjs/route.js +16 -138
  12. package/build/cjs/route.js.map +1 -1
  13. package/build/cjs/routeConfig.js +1 -7
  14. package/build/cjs/routeConfig.js.map +1 -1
  15. package/build/cjs/routeMatch.js +194 -199
  16. package/build/cjs/routeMatch.js.map +1 -1
  17. package/build/cjs/router.js +726 -703
  18. package/build/cjs/router.js.map +1 -1
  19. package/build/cjs/store.js +54 -0
  20. package/build/cjs/store.js.map +1 -0
  21. package/build/esm/index.js +1305 -1114
  22. package/build/esm/index.js.map +1 -1
  23. package/build/stats-html.html +1 -1
  24. package/build/stats-react.json +229 -192
  25. package/build/types/index.d.ts +172 -109
  26. package/build/umd/index.development.js +1381 -2331
  27. package/build/umd/index.development.js.map +1 -1
  28. package/build/umd/index.production.js +1 -1
  29. package/build/umd/index.production.js.map +1 -1
  30. package/package.json +3 -3
  31. package/src/actions.ts +157 -0
  32. package/src/history.ts +199 -0
  33. package/src/index.ts +4 -7
  34. package/src/interop.ts +169 -0
  35. package/src/link.ts +2 -2
  36. package/src/route.ts +34 -239
  37. package/src/routeConfig.ts +3 -34
  38. package/src/routeInfo.ts +6 -21
  39. package/src/routeMatch.ts +270 -285
  40. package/src/router.ts +967 -963
  41. package/src/store.ts +52 -0
  42. package/build/cjs/sharedClone.js +0 -122
  43. package/build/cjs/sharedClone.js.map +0 -1
  44. package/src/sharedClone.ts +0 -118
@@ -4024,7 +4024,7 @@ var drawChart = (function (exports) {
4024
4024
  </script>
4025
4025
  <script>
4026
4026
  /*<!--*/
4027
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"node_modules/.pnpm","children":[{"name":"@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js","uid":"e1ac-1"},{"name":"history@5.3.0/node_modules/history/index.js","uid":"e1ac-3"},{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"e1ac-5"},{"name":"@solidjs+reactivity@0.0.6/node_modules/@solidjs/reactivity/dist/index.js","uid":"e1ac-13"}]},{"name":"packages/router-core/src","children":[{"uid":"e1ac-7","name":"utils.ts"},{"uid":"e1ac-9","name":"path.ts"},{"uid":"e1ac-11","name":"qss.ts"},{"uid":"e1ac-15","name":"route.ts"},{"uid":"e1ac-17","name":"routeConfig.ts"},{"uid":"e1ac-19","name":"sharedClone.ts"},{"uid":"e1ac-21","name":"routeMatch.ts"},{"uid":"e1ac-23","name":"searchParams.ts"},{"uid":"e1ac-25","name":"router.ts"},{"uid":"e1ac-27","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"e1ac-1":{"renderedLength":429,"gzipLength":238,"brotliLength":0,"mainUid":"e1ac-0"},"e1ac-3":{"renderedLength":20618,"gzipLength":3797,"brotliLength":0,"mainUid":"e1ac-2"},"e1ac-5":{"renderedLength":181,"gzipLength":129,"brotliLength":0,"mainUid":"e1ac-4"},"e1ac-7":{"renderedLength":609,"gzipLength":290,"brotliLength":0,"mainUid":"e1ac-6"},"e1ac-9":{"renderedLength":5400,"gzipLength":1363,"brotliLength":0,"mainUid":"e1ac-8"},"e1ac-11":{"renderedLength":1303,"gzipLength":553,"brotliLength":0,"mainUid":"e1ac-10"},"e1ac-13":{"renderedLength":10394,"gzipLength":2512,"brotliLength":0,"mainUid":"e1ac-12"},"e1ac-15":{"renderedLength":4280,"gzipLength":965,"brotliLength":0,"mainUid":"e1ac-14"},"e1ac-17":{"renderedLength":1288,"gzipLength":484,"brotliLength":0,"mainUid":"e1ac-16"},"e1ac-19":{"renderedLength":3104,"gzipLength":957,"brotliLength":0,"mainUid":"e1ac-18"},"e1ac-21":{"renderedLength":8016,"gzipLength":2111,"brotliLength":0,"mainUid":"e1ac-20"},"e1ac-23":{"renderedLength":1297,"gzipLength":478,"brotliLength":0,"mainUid":"e1ac-22"},"e1ac-25":{"renderedLength":28053,"gzipLength":6556,"brotliLength":0,"mainUid":"e1ac-24"},"e1ac-27":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"e1ac-26"}},"nodeMetas":{"e1ac-0":{"id":"/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js","moduleParts":{"index.production.js":"e1ac-1"},"imported":[],"importedBy":[{"uid":"e1ac-2"}]},"e1ac-2":{"id":"/node_modules/.pnpm/history@5.3.0/node_modules/history/index.js","moduleParts":{"index.production.js":"e1ac-3"},"imported":[{"uid":"e1ac-0"}],"importedBy":[{"uid":"e1ac-26"},{"uid":"e1ac-24"}]},"e1ac-4":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"e1ac-5"},"imported":[],"importedBy":[{"uid":"e1ac-26"},{"uid":"e1ac-16"},{"uid":"e1ac-24"}]},"e1ac-6":{"id":"/packages/router-core/src/utils.ts","moduleParts":{"index.production.js":"e1ac-7"},"imported":[],"importedBy":[{"uid":"e1ac-26"},{"uid":"e1ac-8"},{"uid":"e1ac-24"}]},"e1ac-8":{"id":"/packages/router-core/src/path.ts","moduleParts":{"index.production.js":"e1ac-9"},"imported":[{"uid":"e1ac-6"}],"importedBy":[{"uid":"e1ac-26"},{"uid":"e1ac-16"},{"uid":"e1ac-24"}]},"e1ac-10":{"id":"/packages/router-core/src/qss.ts","moduleParts":{"index.production.js":"e1ac-11"},"imported":[],"importedBy":[{"uid":"e1ac-26"},{"uid":"e1ac-22"}]},"e1ac-12":{"id":"/node_modules/.pnpm/@solidjs+reactivity@0.0.6/node_modules/@solidjs/reactivity/dist/index.js","moduleParts":{"index.production.js":"e1ac-13"},"imported":[],"importedBy":[{"uid":"e1ac-14"},{"uid":"e1ac-20"},{"uid":"e1ac-24"}]},"e1ac-14":{"id":"/packages/router-core/src/route.ts","moduleParts":{"index.production.js":"e1ac-15"},"imported":[{"uid":"e1ac-12"}],"importedBy":[{"uid":"e1ac-26"},{"uid":"e1ac-24"}]},"e1ac-16":{"id":"/packages/router-core/src/routeConfig.ts","moduleParts":{"index.production.js":"e1ac-17"},"imported":[{"uid":"e1ac-4"},{"uid":"e1ac-8"}],"importedBy":[{"uid":"e1ac-26"}]},"e1ac-18":{"id":"/packages/router-core/src/sharedClone.ts","moduleParts":{"index.production.js":"e1ac-19"},"imported":[],"importedBy":[{"uid":"e1ac-26"},{"uid":"e1ac-20"},{"uid":"e1ac-24"}]},"e1ac-20":{"id":"/packages/router-core/src/routeMatch.ts","moduleParts":{"index.production.js":"e1ac-21"},"imported":[{"uid":"e1ac-12"},{"uid":"e1ac-18"}],"importedBy":[{"uid":"e1ac-26"},{"uid":"e1ac-24"}]},"e1ac-22":{"id":"/packages/router-core/src/searchParams.ts","moduleParts":{"index.production.js":"e1ac-23"},"imported":[{"uid":"e1ac-10"}],"importedBy":[{"uid":"e1ac-26"},{"uid":"e1ac-24"}]},"e1ac-24":{"id":"/packages/router-core/src/router.ts","moduleParts":{"index.production.js":"e1ac-25"},"imported":[{"uid":"e1ac-2"},{"uid":"e1ac-4"},{"uid":"e1ac-8"},{"uid":"e1ac-14"},{"uid":"e1ac-20"},{"uid":"e1ac-22"},{"uid":"e1ac-12"},{"uid":"e1ac-6"},{"uid":"e1ac-18"}],"importedBy":[{"uid":"e1ac-26"}]},"e1ac-26":{"id":"/packages/router-core/src/index.ts","moduleParts":{"index.production.js":"e1ac-27"},"imported":[{"uid":"e1ac-2"},{"uid":"e1ac-4"},{"uid":"e1ac-28"},{"uid":"e1ac-29"},{"uid":"e1ac-8"},{"uid":"e1ac-10"},{"uid":"e1ac-14"},{"uid":"e1ac-16"},{"uid":"e1ac-30"},{"uid":"e1ac-20"},{"uid":"e1ac-24"},{"uid":"e1ac-22"},{"uid":"e1ac-6"},{"uid":"e1ac-18"}],"importedBy":[],"isEntry":true},"e1ac-28":{"id":"/packages/router-core/src/frameworks.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"e1ac-26"}]},"e1ac-29":{"id":"/packages/router-core/src/link.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"e1ac-26"}]},"e1ac-30":{"id":"/packages/router-core/src/routeInfo.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"e1ac-26"}]}},"env":{"rollup":"2.79.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
4027
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"node_modules/.pnpm","children":[{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"59bc-1"},{"name":"immer@9.0.16/node_modules/immer/dist/immer.esm.mjs","uid":"59bc-15"}]},{"name":"packages/router-core/src","children":[{"uid":"59bc-3","name":"history.ts"},{"uid":"59bc-5","name":"utils.ts"},{"uid":"59bc-7","name":"path.ts"},{"uid":"59bc-9","name":"qss.ts"},{"uid":"59bc-11","name":"route.ts"},{"uid":"59bc-13","name":"routeConfig.ts"},{"uid":"59bc-17","name":"store.ts"},{"uid":"59bc-19","name":"interop.ts"},{"uid":"59bc-21","name":"routeMatch.ts"},{"uid":"59bc-23","name":"searchParams.ts"},{"uid":"59bc-25","name":"router.ts"},{"uid":"59bc-27","name":"actions.ts"},{"uid":"59bc-29","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"59bc-1":{"renderedLength":199,"gzipLength":134,"brotliLength":0,"mainUid":"59bc-0"},"59bc-3":{"renderedLength":4475,"gzipLength":1123,"brotliLength":0,"mainUid":"59bc-2"},"59bc-5":{"renderedLength":663,"gzipLength":295,"brotliLength":0,"mainUid":"59bc-4"},"59bc-7":{"renderedLength":5601,"gzipLength":1328,"brotliLength":0,"mainUid":"59bc-6"},"59bc-9":{"renderedLength":1395,"gzipLength":558,"brotliLength":0,"mainUid":"59bc-8"},"59bc-11":{"renderedLength":415,"gzipLength":208,"brotliLength":0,"mainUid":"59bc-10"},"59bc-13":{"renderedLength":1261,"gzipLength":478,"brotliLength":0,"mainUid":"59bc-12"},"59bc-15":{"renderedLength":8205,"gzipLength":3240,"brotliLength":0,"mainUid":"59bc-14"},"59bc-17":{"renderedLength":893,"gzipLength":351,"brotliLength":0,"mainUid":"59bc-16"},"59bc-19":{"renderedLength":5233,"gzipLength":1686,"brotliLength":0,"mainUid":"59bc-18"},"59bc-21":{"renderedLength":7941,"gzipLength":2036,"brotliLength":0,"mainUid":"59bc-20"},"59bc-23":{"renderedLength":1387,"gzipLength":483,"brotliLength":0,"mainUid":"59bc-22"},"59bc-25":{"renderedLength":28381,"gzipLength":6477,"brotliLength":0,"mainUid":"59bc-24"},"59bc-27":{"renderedLength":2424,"gzipLength":644,"brotliLength":0,"mainUid":"59bc-26"},"59bc-29":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"59bc-28"}},"nodeMetas":{"59bc-0":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"59bc-1"},"imported":[],"importedBy":[{"uid":"59bc-28"},{"uid":"59bc-12"},{"uid":"59bc-24"},{"uid":"59bc-26"}]},"59bc-2":{"id":"/packages/router-core/src/history.ts","moduleParts":{"index.production.js":"59bc-3"},"imported":[],"importedBy":[{"uid":"59bc-28"},{"uid":"59bc-24"}]},"59bc-4":{"id":"/packages/router-core/src/utils.ts","moduleParts":{"index.production.js":"59bc-5"},"imported":[],"importedBy":[{"uid":"59bc-28"},{"uid":"59bc-6"},{"uid":"59bc-24"}]},"59bc-6":{"id":"/packages/router-core/src/path.ts","moduleParts":{"index.production.js":"59bc-7"},"imported":[{"uid":"59bc-4"}],"importedBy":[{"uid":"59bc-28"},{"uid":"59bc-12"},{"uid":"59bc-24"}]},"59bc-8":{"id":"/packages/router-core/src/qss.ts","moduleParts":{"index.production.js":"59bc-9"},"imported":[],"importedBy":[{"uid":"59bc-28"},{"uid":"59bc-22"}]},"59bc-10":{"id":"/packages/router-core/src/route.ts","moduleParts":{"index.production.js":"59bc-11"},"imported":[],"importedBy":[{"uid":"59bc-28"},{"uid":"59bc-24"}]},"59bc-12":{"id":"/packages/router-core/src/routeConfig.ts","moduleParts":{"index.production.js":"59bc-13"},"imported":[{"uid":"59bc-0"},{"uid":"59bc-6"}],"importedBy":[{"uid":"59bc-28"}]},"59bc-14":{"id":"/node_modules/.pnpm/immer@9.0.16/node_modules/immer/dist/immer.esm.mjs","moduleParts":{"index.production.js":"59bc-15"},"imported":[],"importedBy":[{"uid":"59bc-16"}]},"59bc-16":{"id":"/packages/router-core/src/store.ts","moduleParts":{"index.production.js":"59bc-17"},"imported":[{"uid":"59bc-14"}],"importedBy":[{"uid":"59bc-28"},{"uid":"59bc-20"},{"uid":"59bc-24"},{"uid":"59bc-26"}]},"59bc-18":{"id":"/packages/router-core/src/interop.ts","moduleParts":{"index.production.js":"59bc-19"},"imported":[],"importedBy":[{"uid":"59bc-28"},{"uid":"59bc-20"},{"uid":"59bc-24"}]},"59bc-20":{"id":"/packages/router-core/src/routeMatch.ts","moduleParts":{"index.production.js":"59bc-21"},"imported":[{"uid":"59bc-16"},{"uid":"59bc-18"}],"importedBy":[{"uid":"59bc-28"},{"uid":"59bc-24"}]},"59bc-22":{"id":"/packages/router-core/src/searchParams.ts","moduleParts":{"index.production.js":"59bc-23"},"imported":[{"uid":"59bc-8"}],"importedBy":[{"uid":"59bc-28"},{"uid":"59bc-24"}]},"59bc-24":{"id":"/packages/router-core/src/router.ts","moduleParts":{"index.production.js":"59bc-25"},"imported":[{"uid":"59bc-0"},{"uid":"59bc-6"},{"uid":"59bc-10"},{"uid":"59bc-20"},{"uid":"59bc-22"},{"uid":"59bc-16"},{"uid":"59bc-4"},{"uid":"59bc-18"},{"uid":"59bc-2"}],"importedBy":[{"uid":"59bc-28"}]},"59bc-26":{"id":"/packages/router-core/src/actions.ts","moduleParts":{"index.production.js":"59bc-27"},"imported":[{"uid":"59bc-0"},{"uid":"59bc-16"}],"importedBy":[{"uid":"59bc-28"}]},"59bc-28":{"id":"/packages/router-core/src/index.ts","moduleParts":{"index.production.js":"59bc-29"},"imported":[{"uid":"59bc-0"},{"uid":"59bc-2"},{"uid":"59bc-30"},{"uid":"59bc-31"},{"uid":"59bc-6"},{"uid":"59bc-8"},{"uid":"59bc-10"},{"uid":"59bc-12"},{"uid":"59bc-32"},{"uid":"59bc-20"},{"uid":"59bc-24"},{"uid":"59bc-22"},{"uid":"59bc-4"},{"uid":"59bc-18"},{"uid":"59bc-26"},{"uid":"59bc-16"}],"importedBy":[],"isEntry":true},"59bc-30":{"id":"/packages/router-core/src/frameworks.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"59bc-28"}]},"59bc-31":{"id":"/packages/router-core/src/link.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"59bc-28"}]},"59bc-32":{"id":"/packages/router-core/src/routeInfo.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"59bc-28"}]}},"env":{"rollup":"2.79.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
4028
4028
 
4029
4029
  const run = () => {
4030
4030
  const width = window.innerWidth;