@tanstack/router-core 0.0.1-beta.41 → 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 (45) hide show
  1. package/LICENSE +21 -0
  2. package/build/cjs/actions.js +94 -0
  3. package/build/cjs/actions.js.map +1 -0
  4. package/build/cjs/history.js +163 -0
  5. package/build/cjs/history.js.map +1 -0
  6. package/build/cjs/index.js +18 -20
  7. package/build/cjs/index.js.map +1 -1
  8. package/build/cjs/interop.js +175 -0
  9. package/build/cjs/interop.js.map +1 -0
  10. package/build/cjs/path.js +4 -5
  11. package/build/cjs/path.js.map +1 -1
  12. package/build/cjs/route.js +16 -138
  13. package/build/cjs/route.js.map +1 -1
  14. package/build/cjs/routeConfig.js +1 -7
  15. package/build/cjs/routeConfig.js.map +1 -1
  16. package/build/cjs/routeMatch.js +194 -199
  17. package/build/cjs/routeMatch.js.map +1 -1
  18. package/build/cjs/router.js +726 -703
  19. package/build/cjs/router.js.map +1 -1
  20. package/build/cjs/store.js +54 -0
  21. package/build/cjs/store.js.map +1 -0
  22. package/build/esm/index.js +1305 -1114
  23. package/build/esm/index.js.map +1 -1
  24. package/build/stats-html.html +1 -1
  25. package/build/stats-react.json +229 -192
  26. package/build/types/index.d.ts +172 -109
  27. package/build/umd/index.development.js +1381 -2331
  28. package/build/umd/index.development.js.map +1 -1
  29. package/build/umd/index.production.js +1 -1
  30. package/build/umd/index.production.js.map +1 -1
  31. package/package.json +4 -4
  32. package/src/actions.ts +157 -0
  33. package/src/history.ts +199 -0
  34. package/src/index.ts +4 -7
  35. package/src/interop.ts +169 -0
  36. package/src/link.ts +2 -2
  37. package/src/route.ts +34 -239
  38. package/src/routeConfig.ts +3 -34
  39. package/src/routeInfo.ts +6 -21
  40. package/src/routeMatch.ts +270 -285
  41. package/src/router.ts +967 -963
  42. package/src/store.ts +52 -0
  43. package/build/cjs/sharedClone.js +0 -122
  44. package/build/cjs/sharedClone.js.map +0 -1
  45. 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":"6ea0-1"},{"name":"history@5.3.0/node_modules/history/index.js","uid":"6ea0-3"},{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"6ea0-5"},{"name":"@solidjs+reactivity@0.0.6/node_modules/@solidjs/reactivity/dist/index.js","uid":"6ea0-13"}]},{"name":"packages/router-core/src","children":[{"uid":"6ea0-7","name":"utils.ts"},{"uid":"6ea0-9","name":"path.ts"},{"uid":"6ea0-11","name":"qss.ts"},{"uid":"6ea0-15","name":"route.ts"},{"uid":"6ea0-17","name":"routeConfig.ts"},{"uid":"6ea0-19","name":"sharedClone.ts"},{"uid":"6ea0-21","name":"routeMatch.ts"},{"uid":"6ea0-23","name":"searchParams.ts"},{"uid":"6ea0-25","name":"router.ts"},{"uid":"6ea0-27","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"6ea0-1":{"renderedLength":429,"gzipLength":238,"brotliLength":0,"mainUid":"6ea0-0"},"6ea0-3":{"renderedLength":20618,"gzipLength":3797,"brotliLength":0,"mainUid":"6ea0-2"},"6ea0-5":{"renderedLength":181,"gzipLength":129,"brotliLength":0,"mainUid":"6ea0-4"},"6ea0-7":{"renderedLength":609,"gzipLength":290,"brotliLength":0,"mainUid":"6ea0-6"},"6ea0-9":{"renderedLength":5400,"gzipLength":1363,"brotliLength":0,"mainUid":"6ea0-8"},"6ea0-11":{"renderedLength":1303,"gzipLength":553,"brotliLength":0,"mainUid":"6ea0-10"},"6ea0-13":{"renderedLength":10394,"gzipLength":2512,"brotliLength":0,"mainUid":"6ea0-12"},"6ea0-15":{"renderedLength":4280,"gzipLength":965,"brotliLength":0,"mainUid":"6ea0-14"},"6ea0-17":{"renderedLength":1288,"gzipLength":484,"brotliLength":0,"mainUid":"6ea0-16"},"6ea0-19":{"renderedLength":3104,"gzipLength":957,"brotliLength":0,"mainUid":"6ea0-18"},"6ea0-21":{"renderedLength":8016,"gzipLength":2111,"brotliLength":0,"mainUid":"6ea0-20"},"6ea0-23":{"renderedLength":1297,"gzipLength":478,"brotliLength":0,"mainUid":"6ea0-22"},"6ea0-25":{"renderedLength":28053,"gzipLength":6556,"brotliLength":0,"mainUid":"6ea0-24"},"6ea0-27":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"6ea0-26"}},"nodeMetas":{"6ea0-0":{"id":"/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js","moduleParts":{"index.production.js":"6ea0-1"},"imported":[],"importedBy":[{"uid":"6ea0-2"}]},"6ea0-2":{"id":"/node_modules/.pnpm/history@5.3.0/node_modules/history/index.js","moduleParts":{"index.production.js":"6ea0-3"},"imported":[{"uid":"6ea0-0"}],"importedBy":[{"uid":"6ea0-26"},{"uid":"6ea0-24"}]},"6ea0-4":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"6ea0-5"},"imported":[],"importedBy":[{"uid":"6ea0-26"},{"uid":"6ea0-16"},{"uid":"6ea0-24"}]},"6ea0-6":{"id":"/packages/router-core/src/utils.ts","moduleParts":{"index.production.js":"6ea0-7"},"imported":[],"importedBy":[{"uid":"6ea0-26"},{"uid":"6ea0-8"},{"uid":"6ea0-24"}]},"6ea0-8":{"id":"/packages/router-core/src/path.ts","moduleParts":{"index.production.js":"6ea0-9"},"imported":[{"uid":"6ea0-6"}],"importedBy":[{"uid":"6ea0-26"},{"uid":"6ea0-16"},{"uid":"6ea0-24"}]},"6ea0-10":{"id":"/packages/router-core/src/qss.ts","moduleParts":{"index.production.js":"6ea0-11"},"imported":[],"importedBy":[{"uid":"6ea0-26"},{"uid":"6ea0-22"}]},"6ea0-12":{"id":"/node_modules/.pnpm/@solidjs+reactivity@0.0.6/node_modules/@solidjs/reactivity/dist/index.js","moduleParts":{"index.production.js":"6ea0-13"},"imported":[],"importedBy":[{"uid":"6ea0-14"},{"uid":"6ea0-20"},{"uid":"6ea0-24"}]},"6ea0-14":{"id":"/packages/router-core/src/route.ts","moduleParts":{"index.production.js":"6ea0-15"},"imported":[{"uid":"6ea0-12"}],"importedBy":[{"uid":"6ea0-26"},{"uid":"6ea0-24"}]},"6ea0-16":{"id":"/packages/router-core/src/routeConfig.ts","moduleParts":{"index.production.js":"6ea0-17"},"imported":[{"uid":"6ea0-4"},{"uid":"6ea0-8"}],"importedBy":[{"uid":"6ea0-26"}]},"6ea0-18":{"id":"/packages/router-core/src/sharedClone.ts","moduleParts":{"index.production.js":"6ea0-19"},"imported":[],"importedBy":[{"uid":"6ea0-26"},{"uid":"6ea0-20"},{"uid":"6ea0-24"}]},"6ea0-20":{"id":"/packages/router-core/src/routeMatch.ts","moduleParts":{"index.production.js":"6ea0-21"},"imported":[{"uid":"6ea0-12"},{"uid":"6ea0-18"}],"importedBy":[{"uid":"6ea0-26"},{"uid":"6ea0-24"}]},"6ea0-22":{"id":"/packages/router-core/src/searchParams.ts","moduleParts":{"index.production.js":"6ea0-23"},"imported":[{"uid":"6ea0-10"}],"importedBy":[{"uid":"6ea0-26"},{"uid":"6ea0-24"}]},"6ea0-24":{"id":"/packages/router-core/src/router.ts","moduleParts":{"index.production.js":"6ea0-25"},"imported":[{"uid":"6ea0-2"},{"uid":"6ea0-4"},{"uid":"6ea0-8"},{"uid":"6ea0-14"},{"uid":"6ea0-20"},{"uid":"6ea0-22"},{"uid":"6ea0-12"},{"uid":"6ea0-6"},{"uid":"6ea0-18"}],"importedBy":[{"uid":"6ea0-26"}]},"6ea0-26":{"id":"/packages/router-core/src/index.ts","moduleParts":{"index.production.js":"6ea0-27"},"imported":[{"uid":"6ea0-2"},{"uid":"6ea0-4"},{"uid":"6ea0-28"},{"uid":"6ea0-29"},{"uid":"6ea0-8"},{"uid":"6ea0-10"},{"uid":"6ea0-14"},{"uid":"6ea0-16"},{"uid":"6ea0-30"},{"uid":"6ea0-20"},{"uid":"6ea0-24"},{"uid":"6ea0-22"},{"uid":"6ea0-6"},{"uid":"6ea0-18"}],"importedBy":[],"isEntry":true},"6ea0-28":{"id":"/packages/router-core/src/frameworks.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"6ea0-26"}]},"6ea0-29":{"id":"/packages/router-core/src/link.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"6ea0-26"}]},"6ea0-30":{"id":"/packages/router-core/src/routeInfo.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"6ea0-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;