@tanstack/router-core 0.0.1-beta.35 → 0.0.1-beta.39

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 (38) hide show
  1. package/build/cjs/index.js +2 -1
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/path.js +5 -7
  4. package/build/cjs/path.js.map +1 -1
  5. package/build/cjs/route.js +112 -96
  6. package/build/cjs/route.js.map +1 -1
  7. package/build/cjs/routeConfig.js +2 -2
  8. package/build/cjs/routeConfig.js.map +1 -1
  9. package/build/cjs/routeMatch.js +107 -65
  10. package/build/cjs/routeMatch.js.map +1 -1
  11. package/build/cjs/router.js +352 -372
  12. package/build/cjs/router.js.map +1 -1
  13. package/build/cjs/searchParams.js +4 -3
  14. package/build/cjs/searchParams.js.map +1 -1
  15. package/build/cjs/sharedClone.js +122 -0
  16. package/build/cjs/sharedClone.js.map +1 -0
  17. package/build/cjs/utils.js +1 -59
  18. package/build/cjs/utils.js.map +1 -1
  19. package/build/esm/index.js +686 -614
  20. package/build/esm/index.js.map +1 -1
  21. package/build/stats-html.html +1 -1
  22. package/build/stats-react.json +183 -158
  23. package/build/types/index.d.ts +61 -78
  24. package/build/umd/index.development.js +1032 -617
  25. package/build/umd/index.development.js.map +1 -1
  26. package/build/umd/index.production.js +1 -1
  27. package/build/umd/index.production.js.map +1 -1
  28. package/package.json +2 -1
  29. package/src/index.ts +1 -0
  30. package/src/link.ts +20 -12
  31. package/src/route.ts +160 -140
  32. package/src/routeConfig.ts +7 -2
  33. package/src/routeMatch.ts +146 -99
  34. package/src/router.ts +462 -523
  35. package/src/sharedClone.ts +118 -0
  36. package/src/utils.ts +0 -65
  37. package/build/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -31
  38. package/build/cjs/_virtual/_rollupPluginBabelHelpers.js.map +0 -1
@@ -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":"3fab-1"},{"name":"history@5.3.0/node_modules/history/index.js","uid":"3fab-3"},{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"3fab-5"}]},{"name":"packages/router-core/src","children":[{"uid":"3fab-7","name":"utils.ts"},{"uid":"3fab-9","name":"path.ts"},{"uid":"3fab-11","name":"qss.ts"},{"uid":"3fab-15","name":"route.ts"},{"uid":"3fab-17","name":"routeConfig.ts"},{"uid":"3fab-19","name":"routeMatch.ts"},{"uid":"3fab-21","name":"searchParams.ts"},{"uid":"3fab-23","name":"router.ts"},{"uid":"3fab-25","name":"index.ts"}]},{"uid":"3fab-13","name":"\u0000rollupPluginBabelHelpers.js"}]}],"isRoot":true},"nodeParts":{"3fab-1":{"renderedLength":435,"gzipLength":241,"brotliLength":0,"mainUid":"3fab-0"},"3fab-3":{"renderedLength":20630,"gzipLength":3800,"brotliLength":0,"mainUid":"3fab-2"},"3fab-5":{"renderedLength":181,"gzipLength":129,"brotliLength":0,"mainUid":"3fab-4"},"3fab-7":{"renderedLength":2322,"gzipLength":896,"brotliLength":0,"mainUid":"3fab-6"},"3fab-9":{"renderedLength":5590,"gzipLength":1400,"brotliLength":0,"mainUid":"3fab-8"},"3fab-11":{"renderedLength":1303,"gzipLength":553,"brotliLength":0,"mainUid":"3fab-10"},"3fab-13":{"renderedLength":429,"gzipLength":238,"brotliLength":0,"mainUid":"3fab-12"},"3fab-15":{"renderedLength":3633,"gzipLength":946,"brotliLength":0,"mainUid":"3fab-14"},"3fab-17":{"renderedLength":1305,"gzipLength":485,"brotliLength":0,"mainUid":"3fab-16"},"3fab-19":{"renderedLength":7451,"gzipLength":1988,"brotliLength":0,"mainUid":"3fab-18"},"3fab-21":{"renderedLength":1290,"gzipLength":482,"brotliLength":0,"mainUid":"3fab-20"},"3fab-23":{"renderedLength":31581,"gzipLength":7030,"brotliLength":0,"mainUid":"3fab-22"},"3fab-25":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"3fab-24"}},"nodeMetas":{"3fab-0":{"id":"/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js","moduleParts":{"index.production.js":"3fab-1"},"imported":[],"importedBy":[{"uid":"3fab-2"}]},"3fab-2":{"id":"/node_modules/.pnpm/history@5.3.0/node_modules/history/index.js","moduleParts":{"index.production.js":"3fab-3"},"imported":[{"uid":"3fab-0"}],"importedBy":[{"uid":"3fab-24"},{"uid":"3fab-22"}]},"3fab-4":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"3fab-5"},"imported":[],"importedBy":[{"uid":"3fab-24"},{"uid":"3fab-16"},{"uid":"3fab-22"}]},"3fab-6":{"id":"/packages/router-core/src/utils.ts","moduleParts":{"index.production.js":"3fab-7"},"imported":[],"importedBy":[{"uid":"3fab-24"},{"uid":"3fab-8"},{"uid":"3fab-18"},{"uid":"3fab-22"}]},"3fab-8":{"id":"/packages/router-core/src/path.ts","moduleParts":{"index.production.js":"3fab-9"},"imported":[{"uid":"3fab-6"}],"importedBy":[{"uid":"3fab-24"},{"uid":"3fab-16"},{"uid":"3fab-22"}]},"3fab-10":{"id":"/packages/router-core/src/qss.ts","moduleParts":{"index.production.js":"3fab-11"},"imported":[],"importedBy":[{"uid":"3fab-24"},{"uid":"3fab-20"}]},"3fab-12":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"3fab-13"},"imported":[],"importedBy":[{"uid":"3fab-14"},{"uid":"3fab-18"},{"uid":"3fab-22"},{"uid":"3fab-20"}]},"3fab-14":{"id":"/packages/router-core/src/route.ts","moduleParts":{"index.production.js":"3fab-15"},"imported":[{"uid":"3fab-12"}],"importedBy":[{"uid":"3fab-24"},{"uid":"3fab-22"}]},"3fab-16":{"id":"/packages/router-core/src/routeConfig.ts","moduleParts":{"index.production.js":"3fab-17"},"imported":[{"uid":"3fab-4"},{"uid":"3fab-8"}],"importedBy":[{"uid":"3fab-24"}]},"3fab-18":{"id":"/packages/router-core/src/routeMatch.ts","moduleParts":{"index.production.js":"3fab-19"},"imported":[{"uid":"3fab-12"},{"uid":"3fab-6"}],"importedBy":[{"uid":"3fab-24"},{"uid":"3fab-22"}]},"3fab-20":{"id":"/packages/router-core/src/searchParams.ts","moduleParts":{"index.production.js":"3fab-21"},"imported":[{"uid":"3fab-12"},{"uid":"3fab-10"}],"importedBy":[{"uid":"3fab-24"},{"uid":"3fab-22"}]},"3fab-22":{"id":"/packages/router-core/src/router.ts","moduleParts":{"index.production.js":"3fab-23"},"imported":[{"uid":"3fab-12"},{"uid":"3fab-2"},{"uid":"3fab-4"},{"uid":"3fab-8"},{"uid":"3fab-14"},{"uid":"3fab-18"},{"uid":"3fab-20"},{"uid":"3fab-6"}],"importedBy":[{"uid":"3fab-24"}]},"3fab-24":{"id":"/packages/router-core/src/index.ts","moduleParts":{"index.production.js":"3fab-25"},"imported":[{"uid":"3fab-2"},{"uid":"3fab-4"},{"uid":"3fab-26"},{"uid":"3fab-27"},{"uid":"3fab-8"},{"uid":"3fab-10"},{"uid":"3fab-14"},{"uid":"3fab-16"},{"uid":"3fab-28"},{"uid":"3fab-18"},{"uid":"3fab-22"},{"uid":"3fab-20"},{"uid":"3fab-6"}],"importedBy":[],"isEntry":true},"3fab-26":{"id":"/packages/router-core/src/frameworks.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"3fab-24"}]},"3fab-27":{"id":"/packages/router-core/src/link.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"3fab-24"}]},"3fab-28":{"id":"/packages/router-core/src/routeInfo.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"3fab-24"}]}},"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":"@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js","uid":"a445-1"},{"name":"history@5.3.0/node_modules/history/index.js","uid":"a445-3"},{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"a445-5"},{"name":"@solidjs+reactivity@0.0.6/node_modules/@solidjs/reactivity/dist/index.js","uid":"a445-13"}]},{"name":"packages/router-core/src","children":[{"uid":"a445-7","name":"utils.ts"},{"uid":"a445-9","name":"path.ts"},{"uid":"a445-11","name":"qss.ts"},{"uid":"a445-15","name":"route.ts"},{"uid":"a445-17","name":"routeConfig.ts"},{"uid":"a445-19","name":"sharedClone.ts"},{"uid":"a445-21","name":"routeMatch.ts"},{"uid":"a445-23","name":"searchParams.ts"},{"uid":"a445-25","name":"router.ts"},{"uid":"a445-27","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"a445-1":{"renderedLength":429,"gzipLength":238,"brotliLength":0,"mainUid":"a445-0"},"a445-3":{"renderedLength":20618,"gzipLength":3797,"brotliLength":0,"mainUid":"a445-2"},"a445-5":{"renderedLength":181,"gzipLength":129,"brotliLength":0,"mainUid":"a445-4"},"a445-7":{"renderedLength":609,"gzipLength":290,"brotliLength":0,"mainUid":"a445-6"},"a445-9":{"renderedLength":5400,"gzipLength":1363,"brotliLength":0,"mainUid":"a445-8"},"a445-11":{"renderedLength":1303,"gzipLength":553,"brotliLength":0,"mainUid":"a445-10"},"a445-13":{"renderedLength":10394,"gzipLength":2512,"brotliLength":0,"mainUid":"a445-12"},"a445-15":{"renderedLength":4280,"gzipLength":965,"brotliLength":0,"mainUid":"a445-14"},"a445-17":{"renderedLength":1288,"gzipLength":484,"brotliLength":0,"mainUid":"a445-16"},"a445-19":{"renderedLength":3104,"gzipLength":957,"brotliLength":0,"mainUid":"a445-18"},"a445-21":{"renderedLength":8016,"gzipLength":2111,"brotliLength":0,"mainUid":"a445-20"},"a445-23":{"renderedLength":1297,"gzipLength":478,"brotliLength":0,"mainUid":"a445-22"},"a445-25":{"renderedLength":28053,"gzipLength":6556,"brotliLength":0,"mainUid":"a445-24"},"a445-27":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"a445-26"}},"nodeMetas":{"a445-0":{"id":"/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js","moduleParts":{"index.production.js":"a445-1"},"imported":[],"importedBy":[{"uid":"a445-2"}]},"a445-2":{"id":"/node_modules/.pnpm/history@5.3.0/node_modules/history/index.js","moduleParts":{"index.production.js":"a445-3"},"imported":[{"uid":"a445-0"}],"importedBy":[{"uid":"a445-26"},{"uid":"a445-24"}]},"a445-4":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"a445-5"},"imported":[],"importedBy":[{"uid":"a445-26"},{"uid":"a445-16"},{"uid":"a445-24"}]},"a445-6":{"id":"/packages/router-core/src/utils.ts","moduleParts":{"index.production.js":"a445-7"},"imported":[],"importedBy":[{"uid":"a445-26"},{"uid":"a445-8"},{"uid":"a445-24"}]},"a445-8":{"id":"/packages/router-core/src/path.ts","moduleParts":{"index.production.js":"a445-9"},"imported":[{"uid":"a445-6"}],"importedBy":[{"uid":"a445-26"},{"uid":"a445-16"},{"uid":"a445-24"}]},"a445-10":{"id":"/packages/router-core/src/qss.ts","moduleParts":{"index.production.js":"a445-11"},"imported":[],"importedBy":[{"uid":"a445-26"},{"uid":"a445-22"}]},"a445-12":{"id":"/node_modules/.pnpm/@solidjs+reactivity@0.0.6/node_modules/@solidjs/reactivity/dist/index.js","moduleParts":{"index.production.js":"a445-13"},"imported":[],"importedBy":[{"uid":"a445-14"},{"uid":"a445-20"},{"uid":"a445-24"}]},"a445-14":{"id":"/packages/router-core/src/route.ts","moduleParts":{"index.production.js":"a445-15"},"imported":[{"uid":"a445-12"}],"importedBy":[{"uid":"a445-26"},{"uid":"a445-24"}]},"a445-16":{"id":"/packages/router-core/src/routeConfig.ts","moduleParts":{"index.production.js":"a445-17"},"imported":[{"uid":"a445-4"},{"uid":"a445-8"}],"importedBy":[{"uid":"a445-26"}]},"a445-18":{"id":"/packages/router-core/src/sharedClone.ts","moduleParts":{"index.production.js":"a445-19"},"imported":[],"importedBy":[{"uid":"a445-26"},{"uid":"a445-20"},{"uid":"a445-24"}]},"a445-20":{"id":"/packages/router-core/src/routeMatch.ts","moduleParts":{"index.production.js":"a445-21"},"imported":[{"uid":"a445-12"},{"uid":"a445-18"}],"importedBy":[{"uid":"a445-26"},{"uid":"a445-24"}]},"a445-22":{"id":"/packages/router-core/src/searchParams.ts","moduleParts":{"index.production.js":"a445-23"},"imported":[{"uid":"a445-10"}],"importedBy":[{"uid":"a445-26"},{"uid":"a445-24"}]},"a445-24":{"id":"/packages/router-core/src/router.ts","moduleParts":{"index.production.js":"a445-25"},"imported":[{"uid":"a445-2"},{"uid":"a445-4"},{"uid":"a445-8"},{"uid":"a445-14"},{"uid":"a445-20"},{"uid":"a445-22"},{"uid":"a445-12"},{"uid":"a445-6"},{"uid":"a445-18"}],"importedBy":[{"uid":"a445-26"}]},"a445-26":{"id":"/packages/router-core/src/index.ts","moduleParts":{"index.production.js":"a445-27"},"imported":[{"uid":"a445-2"},{"uid":"a445-4"},{"uid":"a445-28"},{"uid":"a445-29"},{"uid":"a445-8"},{"uid":"a445-10"},{"uid":"a445-14"},{"uid":"a445-16"},{"uid":"a445-30"},{"uid":"a445-20"},{"uid":"a445-24"},{"uid":"a445-22"},{"uid":"a445-6"},{"uid":"a445-18"}],"importedBy":[],"isEntry":true},"a445-28":{"id":"/packages/router-core/src/frameworks.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"a445-26"}]},"a445-29":{"id":"/packages/router-core/src/link.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"a445-26"}]},"a445-30":{"id":"/packages/router-core/src/routeInfo.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"a445-26"}]}},"env":{"rollup":"2.79.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
4028
4028
 
4029
4029
  const run = () => {
4030
4030
  const width = window.innerWidth;