one 1.1.283 → 1.1.284

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. package/dist/cjs/cleanUrl.js +9 -5
  2. package/dist/cjs/cleanUrl.js.map +1 -1
  3. package/dist/cjs/cleanUrl.native.js +9 -5
  4. package/dist/cjs/cleanUrl.native.js.map +2 -2
  5. package/dist/cjs/createHandleRequest.js +2 -2
  6. package/dist/cjs/createHandleRequest.js.map +1 -1
  7. package/dist/cjs/createHandleRequest.native.js +2 -2
  8. package/dist/cjs/createHandleRequest.native.js.map +2 -2
  9. package/dist/cjs/getRoutes.js +1 -1
  10. package/dist/cjs/getRoutes.native.js +1 -1
  11. package/dist/cjs/getRoutes.native.js.map +1 -1
  12. package/dist/cjs/getURL.js +2 -2
  13. package/dist/cjs/getURL.js.map +1 -1
  14. package/dist/cjs/router/constants.js +2 -3
  15. package/dist/cjs/router/constants.js.map +1 -1
  16. package/dist/cjs/router/constants.native.js +3 -5
  17. package/dist/cjs/router/constants.native.js.map +2 -2
  18. package/dist/cjs/router/router.js +1 -1
  19. package/dist/cjs/router/router.js.map +1 -1
  20. package/dist/cjs/router/router.native.js +2 -3
  21. package/dist/cjs/router/router.native.js.map +1 -1
  22. package/dist/cjs/useLoader.js +1 -1
  23. package/dist/cjs/useLoader.js.map +1 -1
  24. package/dist/cjs/useLoader.native.js +1 -1
  25. package/dist/cjs/useLoader.native.js.map +1 -1
  26. package/dist/cjs/useViteRoutes.js.map +1 -1
  27. package/dist/cjs/useViteRoutes.native.js.map +1 -1
  28. package/dist/cjs/utils/dynamicImport.native.js +1 -1
  29. package/dist/cjs/utils/dynamicImport.native.js.map +1 -1
  30. package/dist/cjs/vite/build.js +1 -1
  31. package/dist/cjs/vite/build.js.map +1 -1
  32. package/dist/cjs/vite/build.native.js +1 -1
  33. package/dist/cjs/vite/build.native.js.map +1 -1
  34. package/dist/esm/cleanUrl.js +10 -5
  35. package/dist/esm/cleanUrl.js.map +1 -1
  36. package/dist/esm/cleanUrl.mjs +13 -6
  37. package/dist/esm/cleanUrl.mjs.map +1 -1
  38. package/dist/esm/cleanUrl.native.js +13 -5
  39. package/dist/esm/cleanUrl.native.js.map +1 -1
  40. package/dist/esm/createHandleRequest.js +2 -1
  41. package/dist/esm/createHandleRequest.js.map +1 -1
  42. package/dist/esm/createHandleRequest.mjs +2 -1
  43. package/dist/esm/createHandleRequest.mjs.map +1 -1
  44. package/dist/esm/createHandleRequest.native.js +2 -1
  45. package/dist/esm/createHandleRequest.native.js.map +1 -1
  46. package/dist/esm/getRoutes.js +1 -1
  47. package/dist/esm/getRoutes.mjs +1 -1
  48. package/dist/esm/getRoutes.mjs.map +1 -1
  49. package/dist/esm/getRoutes.native.js +1 -1
  50. package/dist/esm/getURL.js +1 -1
  51. package/dist/esm/getURL.js.map +1 -1
  52. package/dist/esm/getURL.mjs +1 -1
  53. package/dist/esm/getURL.mjs.map +1 -1
  54. package/dist/esm/router/constants.js +2 -3
  55. package/dist/esm/router/constants.js.map +1 -1
  56. package/dist/esm/router/constants.mjs +2 -3
  57. package/dist/esm/router/constants.mjs.map +1 -1
  58. package/dist/esm/router/constants.native.js +2 -3
  59. package/dist/esm/router/constants.native.js.map +1 -1
  60. package/dist/esm/router/router.js +1 -1
  61. package/dist/esm/router/router.js.map +1 -1
  62. package/dist/esm/router/router.mjs +1 -1
  63. package/dist/esm/router/router.mjs.map +1 -1
  64. package/dist/esm/router/router.native.js +3 -5
  65. package/dist/esm/router/router.native.js.map +1 -1
  66. package/dist/esm/useLoader.js +1 -1
  67. package/dist/esm/useLoader.js.map +1 -1
  68. package/dist/esm/useLoader.mjs +1 -1
  69. package/dist/esm/useLoader.mjs.map +1 -1
  70. package/dist/esm/useLoader.native.js +1 -1
  71. package/dist/esm/useLoader.native.js.map +1 -1
  72. package/dist/esm/useViteRoutes.js.map +1 -1
  73. package/dist/esm/useViteRoutes.mjs.map +1 -1
  74. package/dist/esm/useViteRoutes.native.js.map +1 -1
  75. package/dist/esm/utils/dynamicImport.native.js +1 -1
  76. package/dist/esm/utils/dynamicImport.native.js.map +1 -1
  77. package/dist/esm/vite/build.js +1 -1
  78. package/dist/esm/vite/build.js.map +1 -1
  79. package/dist/esm/vite/build.mjs +1 -1
  80. package/dist/esm/vite/build.mjs.map +1 -1
  81. package/dist/esm/vite/build.native.js +1 -1
  82. package/dist/esm/vite/build.native.js.map +1 -1
  83. package/package.json +5 -5
  84. package/src/cleanUrl.ts +17 -6
  85. package/src/createHandleRequest.ts +2 -5
  86. package/src/getRoutes.ts +1 -1
  87. package/src/getURL.ts +4 -1
  88. package/src/router/constants.ts +0 -5
  89. package/src/router/router.ts +6 -2
  90. package/src/useLoader.ts +2 -1
  91. package/src/useViteRoutes.tsx +0 -2
  92. package/src/utils/dynamicImport.ts +1 -1
  93. package/src/vite/build.ts +1 -1
  94. package/types/cleanUrl.d.ts +2 -2
  95. package/types/cleanUrl.d.ts.map +1 -1
  96. package/types/createHandleRequest.d.ts.map +1 -1
  97. package/types/getURL.d.ts.map +1 -1
  98. package/types/router/constants.d.ts +0 -1
  99. package/types/router/constants.d.ts.map +1 -1
  100. package/types/router/router.d.ts.map +1 -1
  101. package/types/useLoader.d.ts.map +1 -1
  102. package/types/useViteRoutes.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","vxrnBuild","getManifest","loadUserOneOptions","replaceLoader","getLoaderPath","getPreloadPath","ensureDir","readFile","outputFile","process","on","err","console","error","message","args","userOptions","serverOutputFormat","server","outputFormat","env","VXRN_REACT_19","ONE_SERVER_URL","warn","vxrnOutput","analyze","options","toAbsolute","p","resolve","root","manifest","optimizeDeps","apiBuildConfig","webBuildConfig","configFile","appType","apiRoutes","length","info","processEnvDefines","Object","fromEntries","entries","map","key","value","JSON","stringify","apiRouteExternalRegex","buildRegexExcludingDeps","include","apiEntryPoints","reduce","page","file","slice","apiOutputFormat","api","plugins","exclude","define","ssr","noExternal","external","emptyOutDir","outDir","copyPublicDir","minify","rollupOptions","treeshake","moduleSideEffects","preserveEntrySignatures","input","output","entryFileNames","exports","format","esModule","chunkInfo","name","replace","chunkFileNames","dir","dirname","basename","extname","assetFileNames","assetInfo","baseName","ext","globalThis","require","import","meta","url","assets","builtRoutes","render","entryServer","serverEntry","serverImport","default","exit","stack","staticDir","clientDir","outputEntries","serverOutput","index","collectImports","imports","css","type","Set","flatMap","found","clientManifest","flat","filter","x","endsWith","startsWith","push","id","facadeModuleId","includes","relativeId","cwd","onlyBuild","buildArgs","only","contains","clientManifestKey","keys","find","clientManifestEntry","findMatchingRoute","route","foundRoute","pageRoutes","entryImports","layoutEntries","layouts","layout","clientKey","contextKey","layoutImports","entry","preloadSetupFilePreloads","setupFile","needle","file2","preloads","path","allEntries","allCSS","DEBUG","serverJsPath","fileName","exported","Error","cause","generateStaticParams","paramsList","params","cleanId","getPathnameFromFilePath","htmlPath","removeTrailingSlash","clientJsPath","htmlOutPath","loaderData","cleanPath","preloadPath","writeFile","preload","loaderProps","__vxrnLoaderProps__","__vxrnresetState","loader","code","withLoader","loaderPartialPath","html","errMsg","moveAllFiles","rm","force","recursive","buildInfoForWriting","routeMap","acc","buildInfo","writeJSON","postBuildLogs","web","deploy","platform","afterBuild","VXRN_ANALYZE_BUNDLE","forEach","log","src","dest","copy","overwrite","errorOnExist","strict","nameWithParams","part","split","escapeRegex","string","deps","regexPattern","dep","RegExp"],"sources":["../../../src/vite/build.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,OAAA,MAAa;AACpB,OAAOC,UAAA,MAAgB;AACvB,SAASC,aAAA,QAAqB;AAC9B,OAAOC,IAAA,IAAQC,IAAA,EAAMC,QAAA,QAAgB;AAErC,SAASC,aAAA,QAAqB;AAC9B,SAASC,WAAA,EAAaC,KAAA,IAASC,SAAA,QAAoC;AACnE,SAASC,WAAA,EAAaC,eAAA,EAAiBH,KAAA,IAASI,SAAA,QAA2C;AAG3F,SAASC,WAAA,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IAAA,CAAK,CAAC,MAAM,KAAK;UACnB,MAAM9F,KAAA,GAAQiD,MAAA,CAAO6C,IAAA,CAAK1J,KAAA,CAAM,GAAG0J,IAAA,CAAK5K,MAAA,GAAS,CAAC,CAAC;UACnD,IAAI,CAAC8E,KAAA,EAAO;YACV,IAAI4F,MAAA,EACF,MAAM,IAAI/C,KAAA,CACR;AAAA;AAAA,0BAEUP,IAAI;AAAA,0BACJwD,IAAI;AAAA,8BACAnD,QAAQ;AAAA;AAAA;AAAA,IAGlChH,IAAA,CAAKC,SAAA,CAAUqH,MAAA,EAAQ,MAAM,CAAC,CAAC,EACrB;YAGF,OAAO,MAAM6C,IAAA,CAAKjI,OAAA,CAAQ,KAAK,EAAE,EAAEA,OAAA,CAAQ,KAAK,EAAE;UACpD;UACA,OAAOmC,KAAA;QACT;QACA,OAAO8F,IAAA;MACT,CAAC,EACA1N,IAAA,CAAK,GAAG,CAAC;IACd,GAAG;EAEH,OAAO,GAAG4F,OAAO,GAAG6H,cAAc,GAAGhI,OAAA,CAAQ,WAAW,GAAG;AAC7D;AAEA,SAASmI,YAAYC,MAAA,EAAgB;EACnC,OAAOA,MAAA,CAAOpI,OAAA,CAAQ,uBAAuB,MAAM;AACrD;AAEA,SAAS/B,wBAAwBoK,IAAA,EAAgB;EAM/C,MAAMC,YAAA,GAAe,oBAJCD,IAAA,CAAK1K,GAAA,CAAK4K,GAAA,IAAQJ,WAAA,CAAYI,GAAG,CAAC,EAEjBhO,IAAA,CAAK,GAAG,CAEU;EACzD,OAAO,IAAIiO,MAAA,CAAOF,YAAY;AAChC","ignoreList":[]}
1
+ {"version":3,"names":["FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","vxrnBuild","getLoaderPath","getPreloadPath","getManifest","loadUserOneOptions","replaceLoader","ensureDir","readFile","outputFile","process","on","err","console","error","message","args","userOptions","serverOutputFormat","server","outputFormat","env","VXRN_REACT_19","ONE_SERVER_URL","warn","vxrnOutput","analyze","options","toAbsolute","p","resolve","root","manifest","optimizeDeps","apiBuildConfig","webBuildConfig","configFile","appType","apiRoutes","length","info","processEnvDefines","Object","fromEntries","entries","map","key","value","JSON","stringify","apiRouteExternalRegex","buildRegexExcludingDeps","include","apiEntryPoints","reduce","page","file","slice","apiOutputFormat","api","plugins","exclude","define","ssr","noExternal","external","emptyOutDir","outDir","copyPublicDir","minify","rollupOptions","treeshake","moduleSideEffects","preserveEntrySignatures","input","output","entryFileNames","exports","format","esModule","chunkInfo","name","replace","chunkFileNames","dir","dirname","basename","extname","assetFileNames","assetInfo","baseName","ext","globalThis","require","import","meta","url","assets","builtRoutes","render","entryServer","serverEntry","serverImport","default","exit","stack","staticDir","clientDir","outputEntries","serverOutput","index","collectImports","imports","css","type","Set","flatMap","found","clientManifest","flat","filter","x","endsWith","startsWith","push","id","facadeModuleId","includes","relativeId","cwd","onlyBuild","buildArgs","only","contains","clientManifestKey","keys","find","clientManifestEntry","findMatchingRoute","route","foundRoute","pageRoutes","entryImports","layoutEntries","layouts","layout","clientKey","contextKey","layoutImports","entry","preloadSetupFilePreloads","setupFile","needle","file2","preloads","path","allEntries","allCSS","DEBUG","serverJsPath","fileName","exported","Error","cause","generateStaticParams","paramsList","params","cleanId","getPathnameFromFilePath","htmlPath","removeTrailingSlash","clientJsPath","htmlOutPath","loaderData","cleanPath","preloadPath","writeFile","preload","loaderProps","__vxrnLoaderProps__","__vxrnresetState","loader","code","withLoader","loaderPartialPath","html","errMsg","moveAllFiles","rm","force","recursive","buildInfoForWriting","routeMap","acc","buildInfo","writeJSON","postBuildLogs","web","deploy","platform","afterBuild","VXRN_ANALYZE_BUNDLE","forEach","log","src","dest","copy","overwrite","errorOnExist","strict","nameWithParams","part","split","escapeRegex","string","deps","regexPattern","dep","RegExp"],"sources":["../../../src/vite/build.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,OAAA,MAAa;AACpB,OAAOC,UAAA,MAAgB;AACvB,SAASC,aAA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10 @@ import Path, { join, relative } from "node:path";
5
5
  import { nodeExternals } from "rollup-plugin-node-externals";
6
6
  import { mergeConfig, build as viteBuild } from "vite";
7
7
  import { fillOptions, getOptimizeDeps, build as vxrnBuild } from "vxrn";
8
+ import { getLoaderPath, getPreloadPath } from "../cleanUrl.native.js";
8
9
  import { getManifest } from "./getManifest.native.js";
9
10
  import { loadUserOneOptions } from "./one.native.js";
10
11
  import { replaceLoader } from "./replaceLoader.native.js";
11
- import { getLoaderPath, getPreloadPath } from "../cleanUrl.native.js";
12
12
  var {
13
13
  ensureDir,
14
14
  readFile,
@@ -1 +1 @@
1
- {"version":3,"names":["FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","vxrnBuild","getManifest","loadUserOneOptions","replaceLoader","getLoaderPath","getPreloadPath","ensureDir","readFile","outputFile","process","on","err","console","error","message","args","_userOptions_build_server","_userOptions_build","_userOptions_web","_options_server","userOptions","_userOptions_build_server_outputFormat","serverOutputFormat","server","outputFormat","env","VXRN_REACT_19","ONE_SERVER_URL","warn","vxrnOutput","analyze","options","toAbsolute","p","resolve","root","manifest","optimizeDeps","apiBuildConfig","webBuildConfig","configFile","appType","apiRoutes","length","_userOptions_build_api","_userOptions_build1","info","processEnvDefines","Object","fromEntries","entries","map","param","key","value","JSON","stringify","apiRouteExternalRegex","buildRegexExcludingDeps","include","apiEntryPoints","reduce","page","file","slice","_userOptions_build_api_outputFormat","apiOutputFormat","api","plugins","exclude","define","ssr","noExternal","external","emptyOutDir","outDir","copyPublicDir","minify","rollupOptions","treeshake","moduleSideEffects","preserveEntrySignatures","input","output","entryFileNames","exports","format","esModule","chunkInfo","name","replace","chunkFileNames","dir","dirname","basename","extname","assetFileNames","assetInfo","_assetInfo_name","baseName","ext","globalThis","require","import","meta","url","assets","builtRoutes","render","entryServer","serverEntry","_serverImport_default_default","serverImport","default","exit","stack","staticDir","clientDir","outputEntries","serverOutput","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_loop","index","_step","_vxrnOutput_buildArgs","_foundRoute_layouts","_exported_generateStaticParams","type","push","id","facadeModuleId","includes","relativeId","cwd","onlyBuild","buildArgs","only","contains","clientManifestKey","keys","clientManifest","find","endsWith","clientManifestEntry","findMatchingRoute","route","foundRoute","pageRoutes","startsWith","collectImports","imports","css","arguments","Set","flatMap","found","flat","filter","x","entryImports","_foundRoute_layouts_flatMap","layoutEntries","layouts","layout","clientKey","contextKey","layoutImports","entry","preloadSetupFilePreloads","setupFile","needle","file2","preloads","path2","allEntries","allCSS","DEBUG","serverJsPath","fileName","exported","Error","cause","generateStaticParams","_ref","paramsList","call","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","Symbol","iterator","_step1","next","done","params","cleanId","path","getPathnameFromFilePath","htmlPath","removeTrailingSlash","clientJsPath","htmlOutPath","loaderData","cleanPath","preloadPath","writeFile","preload","_globalThis___vxrnresetState","_globalThis","loaderProps","__vxrnLoaderProps__","__vxrnresetState","loader","_exported_loader","_ref1","code","withLoader","loaderPartialPath","html","errMsg","return","_iterator","moveAllFiles","rm","force","recursive","routeMap","acc"],"sources":["../../../src/vite/build.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,OAAA,MAAa;AACpB,OAAOC,UAAA,MAAgB;AACvB,SAASC,aAAA,QAAqB;AAC9B,OAAOC,IAAA,IAAQC,IAAA,EAAMC,QAAA,QAAgB;AAErC,SAASC,aAAA,QAAqB;AAC9B,SAASC,WAAA,EAAaC,KAAA,IAASC,SAAA,QAAoC;AACnE,SAASC,WAAA,EAAaC,eAAA,EAAiBH,KAAA,IAASI,SAAA,QAA2C;AAG3F,SAASC,WAAA,QAAmB;AAC5B,SAASC,kBAAA,QAA0B;AACnC,SAASC,aAAA,QAAqB;AAE9B,SAAmBC,aAAA,EAAeC,cAAA,QAAsB;AAExD;EAAMC,SAAE;EAAAC,QAAW;EAAAC;AAAU,IAAWpB,OAAI;AAE5CqB,OAAA,CAAQC,E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OAAAC,eAAA,GAAAnL,GAAA;QACF;UAAU;YACR,CAAAiL,0BAAA,IAAAG,UAAA,CAAAgC,MAAA,YAAAhC,UAAA,CAAAgC,MAAA;UAAA;YAEc,IAAAlC,kBACA,QAAAC,eACA;UAAQ;QAAA;MAGlC,GAAAkC,SAAK,GAAU1G,aAAQ,CAAM0E,MAAE,CAAAC,QAAA,KAAApE,KAAA,IAAAL,yBAAA,IAAAK,KAAA,GAAAmG,SAAA,CAAA7B,IAAA,IAAAC,IAAA,GAAA5E,yBAAA,aAAAG,KAAA;EAAA,SAAAhH,GACrB;IAGF8G,iBAAO,GAAM,IAAKC,cAAa,GAAI/G,GAAA;EAAe,UACpD;IACA;MACF,CAAA6G,yBAAA,IAAAwG,SAAA,CAAAD,MAAA,YAAAC,SAAA,CAAAD,MAAA;IACA,UAAO;MACR,IACAtG,iBAAS,EACX,MAAAC,cAAA;IAEH;EACF;EAEA,MAAAuG,YAAS,CAAY7G,SAAgB,EAAAC,SAAA,SAAAjI,OAAA,CAAA8O,EAAA,CAAA9G,SAAA;IACnC+G,KAAO;IACTC,SAAA;EAEA;EAME,IAAAC,QAAM,GAAA1H,WAAe,CAAA9C,MAAA,WAJCyK,GAAK,EAAAlL,KAAK;MAKhC;QAAO0J,SAAI;QAAOL;MAAA,IAAYrJ,KAAA;MAChC,OAAAkL,GAAA,CAAAxB,SAAA,IAAAL,QAAA,EAAA6B,GAAA","ignoreList":[]}
1
+ {"version":3,"names":["FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","vxrnBuild","getLoaderPath","getPreloadPath","getManifest","loadUserOneOptions","replaceLoader","ensureDir","readFile","outputFile","process","on","err","console","error","message","args","_userOptions_build_server","_userOptions_build","_userOptions_web","_options_server","userOptions","_userOptions_build_server_outputFormat","serverOutputFormat","server","outputFormat","env","VXRN_REACT_19","ONE_SERVER_URL","warn","vxrnOutput","analyze","options","toAbsolute","p","resolve","root","manifest","optimizeDeps","apiBuildConfig","webBuildConfig","configFile","appType","apiRoutes","length","_userOptions_build_api","_userOptions_build1","info","processEnvDefines","Object","fromEntries","entries","map","param","key","value","JSON","stringify","apiRouteExternalRegex","buildRegexExcludingDeps","include","apiEntryPoints","reduce","page","file","slice","_userOptions_build_api_outputFormat","apiOutputFormat","api","plugins","exclude","define","ssr","noExternal","external","emptyOutDir","outDir","copyPublicDir","minify","rollupOptions","treeshake","moduleSideEffects","preserveEntrySignatures","input","output","entryFileNames","exports","format","esModule","chunkInfo","name","replace","chunkFileNames","dir","dirname","basename","extname","assetFileNames","assetInfo","_assetInfo_name","baseName","ext","globalThis","require","import","meta","url","assets","builtRoutes","render","entryServer","serverEntry","_serverImport_default_default","serverImport","default","exit","stack","staticDir","clientDir","outputEntries","serverOutput","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_loop","index","_step","_vxrnOutput_buildArgs","_foundRoute_layouts","_exported_generateStaticParams","type","push","id","facadeModuleId","includes","relativeId","cwd","onlyBuild","buildArgs","only","contains","clientManifestKey","keys","clientManifest","find","endsWith","clientManifestEntry","findMatchingRoute","route","foundRoute","pageRoutes","startsWith","collectImports","imports","css","arguments","Set","flatMap","found","flat","filter","x","entryImports","_foundRoute_layouts_flatMap","layoutEntries","layouts","layout","clientKey","contextKey","layoutImports","entry","preloadSetupFilePreloads","setupFile","needle","file2","preloads","path2","allEntries","allCSS","DEBUG","serverJsPath","fileName","exported","Error","cause","generateStaticParams","_ref","paramsList","call","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","Symbol","iterator","_step1","next","done","params","cleanId","path","getPathnameFromFilePath","htmlPath","removeTrailingSlash","clientJsPath","htmlOutPath","loaderData","cleanPath","preloadPath","writeFile","preload","_globalThis___vxrnresetState","_globalThis","loaderProps","__vxrnLoaderProps__","__vxrnresetState","loader","_exported_loader","_ref1","code","withLoader","loaderPartialPath","html","errMsg","return","_iterator","moveAllFiles","rm","force","recursive","routeMap","acc"],"sources":["../../../src/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AA9C,MAAA,WAJCyK,GAAK,EAAAlL,KAAK;MAKhC;QAAO0J,SAAI;QAAOL;MAAA,IAAYrJ,KAAA;MAChC,OAAAkL,GAAA,CAAAxB,SAAA,IAAAL,QAAA,EAAA6B,GAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "one",
3
- "version": "1.1.283",
3
+ "version": "1.1.284",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "sideEffects": false,
@@ -89,12 +89,12 @@
89
89
  "@react-navigation/native-stack": "~6.9.13",
90
90
  "@react-navigation/routers": "~6.1.9",
91
91
  "@ungap/structured-clone": "^1.2.0",
92
- "@vxrn/universal-color-scheme": "1.1.283",
93
- "@vxrn/use-isomorphic-layout-effect": "1.1.283",
92
+ "@vxrn/universal-color-scheme": "1.1.284",
93
+ "@vxrn/use-isomorphic-layout-effect": "1.1.284",
94
94
  "babel-dead-code-elimination": "^1.0.6",
95
95
  "citty": "^0.1.6",
96
96
  "core-js": "^3.38.1",
97
- "create-vxrn": "1.1.283",
97
+ "create-vxrn": "1.1.284",
98
98
  "dotenv": "^16.4.5",
99
99
  "escape-string-regexp": "^5.0.0",
100
100
  "expo-linking": "~6.3.1",
@@ -116,7 +116,7 @@
116
116
  "url-parse": "^1.5.10",
117
117
  "vite": "6.0.0-beta.1",
118
118
  "vite-tsconfig-paths": "^5.0.1",
119
- "vxrn": "1.1.283",
119
+ "vxrn": "1.1.284",
120
120
  "ws": "^8.18.0",
121
121
  "xxhashjs": "^0.2.2"
122
122
  },
package/src/cleanUrl.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { CACHE_KEY, CLIENT_BASE_URL } from './router/constants'
1
+ import { getURL } from './getURL'
2
+ import { CACHE_KEY } from './router/constants'
2
3
  import { removeSearch } from './utils/removeSearch'
3
4
 
4
- export function cleanUrl(path: string) {
5
+ function cleanUrl(path: string) {
5
6
  return (
6
7
  removeSearch(path)
7
8
  .replaceAll('/', '_')
@@ -10,13 +11,23 @@ export function cleanUrl(path: string) {
10
11
  )
11
12
  }
12
13
 
13
- const clientSideSearch = typeof window !== 'undefined' ? `?cache=${CACHE_KEY}` : ''
14
- const clientSideURL = typeof window !== 'undefined' ? CLIENT_BASE_URL : ''
14
+ const isClient = typeof window !== 'undefined'
15
+ const clientSideSearch = isClient ? `?cache=${CACHE_KEY}` : ''
16
+ const clientSideURL = isClient ? getURL() : ''
15
17
 
16
18
  export function getPreloadPath(currentPath: string) {
17
19
  return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}_preload.js${clientSideSearch}`
18
20
  }
19
21
 
20
- export function getLoaderPath(currentPath: string) {
21
- return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}_vxrn_loader.js${clientSideSearch}`
22
+ export function getLoaderPath(currentPath: string, includeUrl = isClient) {
23
+ const baseURL = includeUrl ? getURL() : ''
24
+ const devPath = process.env.NODE_ENV === 'development' ? '/_one' : ''
25
+ return `${baseURL}${devPath}/assets/${cleanUrl(currentPath.slice(1))}_vxrn_loader.js${clientSideSearch}`
26
+ }
27
+
28
+ export function getPathFromLoaderPath(loaderPath: string) {
29
+ return loaderPath
30
+ .replace('_vxrn_loader.js', '')
31
+ .replace(/^(\/_one)?\/assets/, '')
32
+ .replace('_', '/')
22
33
  }
@@ -1,3 +1,4 @@
1
+ import { getPathFromLoaderPath } from './cleanUrl'
1
2
  import type { RouteInfo } from './server/createRoutesManifest'
2
3
  import { isResponse } from './utils/isResponse'
3
4
  import { promiseWithResolvers } from './utils/promiseWithResolvers'
@@ -105,11 +106,7 @@ export function createHandleRequest(
105
106
  const isClientRequestingNewRoute = pathname.endsWith('_vxrn_loader.js')
106
107
 
107
108
  if (isClientRequestingNewRoute) {
108
- const originalUrl = pathname
109
- .replace('_vxrn_loader.js', '')
110
- .replace(/^\/assets/, '')
111
- .replace('_', '/')
112
-
109
+ const originalUrl = getPathFromLoaderPath(pathname)
113
110
  const finalUrl = new URL(originalUrl, url.origin)
114
111
 
115
112
  for (const route of pageRoutes) {
package/src/getRoutes.ts CHANGED
@@ -517,7 +517,7 @@ function appendNotFoundRoute(directory: DirectoryNode) {
517
517
  directory.files.set('+not-found', [
518
518
  {
519
519
  loadRoute() {
520
- console.warn(`Loading not found`)
520
+ console.info(`Loading not found`)
521
521
  return { default: () => null }
522
522
  },
523
523
  type: 'spa',
package/src/getURL.ts CHANGED
@@ -1,4 +1,7 @@
1
- import { CLIENT_BASE_URL } from './router/constants'
1
+ const CLIENT_BASE_URL =
2
+ typeof window !== 'undefined' && window.location
3
+ ? `${window.location.protocol}//${window.location.host}`
4
+ : ``
2
5
 
3
6
  export function getURL() {
4
7
  return process.env.ONE_SERVER_URL ?? CLIENT_BASE_URL
@@ -1,8 +1,3 @@
1
- export const CLIENT_BASE_URL =
2
- typeof window !== 'undefined' && window.location
3
- ? `${window.location.protocol}//${window.location.host}`
4
- : ``
5
-
6
1
  // for example we have loaders like _vxrn_loader.js safari caches things
7
2
  // aggressively so we want to have a search params that clears that cache
8
3
  // uniquely across deploys this will be unique per-deploy nicely:
@@ -9,6 +9,7 @@ import { nanoid } from 'nanoid/non-secure'
9
9
  import { Fragment, startTransition, useSyncExternalStore, type ComponentType } from 'react'
10
10
  import { Platform } from 'react-native'
11
11
  import type { RouteNode } from '../Route'
12
+ import { getLoaderPath, getPreloadPath } from '../cleanUrl'
12
13
  import type { State } from '../fork/getPathFromState'
13
14
  import { deepEqual, getPathDataFromState } from '../fork/getPathFromState'
14
15
  import { stripBaseUrl } from '../fork/getStateFromPath'
@@ -25,10 +26,8 @@ import { dynamicImport } from '../utils/dynamicImport'
25
26
  import { removeSearch } from '../utils/removeSearch'
26
27
  import { shouldLinkExternally } from '../utils/url'
27
28
  import type { One } from '../vite/types'
28
- import { CACHE_KEY, CLIENT_BASE_URL } from './constants'
29
29
  import { getNormalizedStatePath, type UrlObject } from './getNormalizedStatePath'
30
30
  import { setLastAction } from './lastAction'
31
- import { getLoaderPath, getPreloadPath } from '../cleanUrl'
32
31
 
33
32
  // Module-scoped variables
34
33
  export let routeNode: RouteNode | null = null
@@ -410,6 +409,11 @@ function setupPreload(href: string) {
410
409
  }
411
410
 
412
411
  export function preloadRoute(href: string) {
412
+ if (process.env.TAMAGUI_TARGET === 'native') {
413
+ // not enabled for now
414
+ return
415
+ }
416
+
413
417
  setupPreload(href)
414
418
  if (typeof preloadingLoader[href] === 'function') {
415
419
  void preloadingLoader[href]()
package/src/useLoader.ts CHANGED
@@ -87,7 +87,8 @@ export function useLoader<
87
87
 
88
88
  if (!promises[currentPath]) {
89
89
  const getData = async () => {
90
- const loaderJSUrl = getLoaderPath(currentPath)
90
+ // for native add a prefix to route around vite dev server being in front of ours
91
+ const loaderJSUrl = getLoaderPath(currentPath, true)
91
92
 
92
93
  try {
93
94
  const response = await (async () => {
@@ -1,8 +1,6 @@
1
1
  import { getLoaderPath } from './cleanUrl'
2
- import { CACHE_KEY, CLIENT_BASE_URL } from './router/constants'
3
2
  import type { GlobbedRouteImports } from './types'
4
3
  import { dynamicImport } from './utils/dynamicImport'
5
- import { removeSearch } from './utils/removeSearch'
6
4
  import type { One } from './vite/types'
7
5
 
8
6
  // essentially a development helper
@@ -4,7 +4,7 @@ export const dynamicImport = (path: string) => {
4
4
  if (process.env.TAMAGUI_TARGET === 'native') {
5
5
  // import causes an "invalid expression" bug in react native
6
6
  // TODO make this work, probably needs to fetch + eval?
7
- console.warn(`dynamicImport TODO`, path)
7
+ console.info(`dynamicImport TODO`, path)
8
8
  return require(path)
9
9
  }
10
10
 
package/src/vite/build.ts CHANGED
@@ -6,13 +6,13 @@ import type { OutputAsset } from 'rollup'
6
6
  import { nodeExternals } from 'rollup-plugin-node-externals'
7
7
  import { mergeConfig, build as viteBuild, type InlineConfig } from 'vite'
8
8
  import { fillOptions, getOptimizeDeps, build as vxrnBuild, type ClientManifestEntry } from 'vxrn'
9
+ import { getLoaderPath, getPreloadPath } from '../cleanUrl'
9
10
  import type { RouteInfo } from '../server/createRoutesManifest'
10
11
  import type { LoaderProps, RenderApp } from '../types'
11
12
  import { getManifest } from './getManifest'
12
13
  import { loadUserOneOptions } from './one'
13
14
  import { replaceLoader } from './replaceLoader'
14
15
  import type { One } from './types'
15
- import { cleanUrl, getLoaderPath, getPreloadPath } from '../cleanUrl'
16
16
 
17
17
  const { ensureDir, readFile, outputFile } = FSExtra
18
18
 
@@ -1,4 +1,4 @@
1
- export declare function cleanUrl(path: string): string;
2
1
  export declare function getPreloadPath(currentPath: string): string;
3
- export declare function getLoaderPath(currentPath: string): string;
2
+ export declare function getLoaderPath(currentPath: string, includeUrl?: boolean): string;
3
+ export declare function getPathFromLoaderPath(loaderPath: string): string;
4
4
  //# sourceMappingURL=cleanUrl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cleanUrl.d.ts","sourceRoot":"","sources":["../src/cleanUrl.ts"],"names":[],"mappings":"AAGA,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,UAOpC;AAKD,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,UAEjD;AAED,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,UAEhD"}
1
+ {"version":3,"file":"cleanUrl.d.ts","sourceRoot":"","sources":["../src/cleanUrl.ts"],"names":[],"mappings":"AAiBA,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,UAEjD;AAED,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,UAAW,UAIvE;AAED,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,UAKvD"}
@@ -1 +1 @@
1
- {"version":3,"file":"createHandleRequest.d.ts","sourceRoot":"","sources":["../src/createHandleRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAI9D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAEvC,KAAK,mBAAmB,CAAC,eAAe,SAAS,MAAM,GAAG,EAAE,IAAI;IAC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5D,CAAA;AAED,KAAK,sBAAsB,GAAG,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAA;AAEtD,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,GAAG,CAAC,aAAa,EAC1B,QAAQ,EAAE;IACR,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IACxD,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IAC3D,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;CACzD;;uBAgCgD,OAAO,KAAG,OAAO,CAAC,sBAAsB,CAAC;EA0I3F"}
@@ -1 +1 @@
1
- {"version":3,"file":"getURL.d.ts","sourceRoot":"","sources":["../src/getURL.ts"],"names":[],"mappings":"AAEA,wBAAgB,MAAM,WAErB"}
1
+ {"version":3,"file":"getURL.d.ts","sourceRoot":"","sources":["../src/getURL.ts"],"names":[],"mappings":"AAKA,wBAAgB,MAAM,WAErB"}
@@ -1,3 +1,2 @@
1
- export declare const CLIENT_BASE_URL: string;
2
1
  export declare const CACHE_KEY: string;
3
2
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/router/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,QAGpB,CAAA;AAKR,eAAO,MAAM,SAAS,QAA8B,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/router/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,QAA8B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/router/router.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,iCAAiC,EAEvC,MAAM,0BAA0B,CAAA;AAGjC,OAAO,EAAmD,KAAK,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AAM,QAUxC;AAED,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,CAAC,aAAa,iBAwG3F"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLoader.d.ts","sourceRoot":"","sources":["../src/useLoader.ts"],"names":[],"mappings":"AAiBA,wBAAgB,SAAS,CACvB,MAAM,SAAS,QAAQ,EACvB,QAAQ,GAAG,MAAM,SAAS,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,GAAG,UAAU,CAAC,MAAM,CAAC,GAAG,OAAO,EACxE,MAAM,EAAE,MAAM,GAAG,QAAQ,SAAS,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAuH9E"}
1
+ {"version":3,"file":"useLoader.d.ts","sourceRoot":"","sources":["../src/useLoader.ts"],"names":[],"mappings":"AAiBA,wBAAgB,SAAS,CACvB,MAAM,SAAS,QAAQ,EACvB,QAAQ,GAAG,MAAM,SAAS,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,GAAG,UAAU,CAAC,MAAM,CAAC,GAAG,OAAO,EACxE,MAAM,EAAE,MAAM,GAAG,QAAQ,SAAS,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAwH9E"}
@@ -1 +1 @@
1
- {"version":3,"file":"useViteRoutes.d.ts","sourceRoot":"","sources":["../src/useViteRoutes.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAGlD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAQvC,wBAAgB,aAAa,CAC3B,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,EAC1B,OAAO,CAAC,EAAE,MAAM,OAajB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,OAKhF;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,mBAAmB,EAC1B,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,GACzB,GAAG,CAAC,YAAY,CAwGlB"}
1
+ {"version":3,"file":"useViteRoutes.d.ts","sourceRoot":"","sources":["../src/useViteRoutes.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAQvC,wBAAgB,aAAa,CAC3B,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,EAC1B,OAAO,CAAC,EAAE,MAAM,OAajB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,OAKhF;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,mBAAmB,EAC1B,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,GACzB,GAAG,CAAC,YAAY,CAwGlB"}