reroute-js 0.9.1 → 0.9.3

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 (90) hide show
  1. package/cli/bin.d.ts +1 -1
  2. package/cli/bin.js +8 -7
  3. package/cli/bin.js.map +3 -3
  4. package/cli/index.d.ts +1 -1
  5. package/cli/index.js +3 -3
  6. package/cli/index.js.map +2 -2
  7. package/cli/src/cli.d.ts +1 -1
  8. package/cli/src/commands/analyze.d.ts +1 -1
  9. package/cli/src/commands/build.d.ts +1 -1
  10. package/cli/src/commands/build.d.ts.map +1 -1
  11. package/cli/src/commands/dev.d.ts +1 -1
  12. package/cli/src/commands/gen.d.ts +1 -1
  13. package/cli/src/commands/init.d.ts +1 -1
  14. package/cli/src/commands/start.d.ts +1 -1
  15. package/cli/src/libs/command.d.ts +1 -1
  16. package/cli/src/libs/index.d.ts +1 -1
  17. package/cli/src/libs/log.d.ts +1 -1
  18. package/cli/src/libs/markdown-processor.d.ts +1 -1
  19. package/cli/src/libs/markdown.d.ts +1 -1
  20. package/cli/src/libs/production.d.ts +1 -1
  21. package/cli/src/libs/server.d.ts +1 -1
  22. package/cli/src/libs/tailwind.d.ts +1 -1
  23. package/cli/src/libs/version.d.ts +1 -1
  24. package/core/index.d.ts +1 -1
  25. package/core/index.js +2 -2
  26. package/core/index.js.map +1 -1
  27. package/core/src/bundler/hash.d.ts +1 -1
  28. package/core/src/bundler/index.d.ts +1 -1
  29. package/core/src/content/discovery.d.ts +1 -1
  30. package/core/src/content/index.d.ts +1 -1
  31. package/core/src/content/metadata.d.ts +1 -1
  32. package/core/src/index.d.ts +1 -1
  33. package/core/src/ssr/data.d.ts +1 -1
  34. package/core/src/ssr/index.d.ts +1 -1
  35. package/core/src/ssr/modules.d.ts +1 -1
  36. package/core/src/ssr/render.d.ts +1 -1
  37. package/core/src/ssr/seed.d.ts +1 -1
  38. package/core/src/template/html.d.ts +1 -1
  39. package/core/src/template/index.d.ts +1 -1
  40. package/core/src/types.d.ts +1 -1
  41. package/core/src/utils/cache.d.ts +1 -1
  42. package/core/src/utils/compression.d.ts +1 -1
  43. package/core/src/utils/index.d.ts +1 -1
  44. package/core/src/utils/mime.d.ts +1 -1
  45. package/core/src/utils/path.d.ts +1 -1
  46. package/elysia/index.d.ts +1 -1
  47. package/elysia/index.js +3 -3
  48. package/elysia/index.js.map +1 -1
  49. package/elysia/src/index.d.ts +1 -1
  50. package/elysia/src/libs/cache.d.ts +1 -1
  51. package/elysia/src/libs/http.d.ts +1 -1
  52. package/elysia/src/libs/image.d.ts +1 -1
  53. package/elysia/src/plugin.d.ts +1 -1
  54. package/elysia/src/routes/artifacts.d.ts +1 -1
  55. package/elysia/src/routes/content.d.ts +1 -1
  56. package/elysia/src/routes/dev.d.ts +1 -1
  57. package/elysia/src/routes/image.d.ts +1 -1
  58. package/elysia/src/routes/ssr.d.ts +1 -1
  59. package/elysia/src/routes/static.d.ts +1 -1
  60. package/elysia/src/types.d.ts +1 -1
  61. package/package.json +1 -1
  62. package/react/index.d.ts +1 -1
  63. package/react/index.js +65 -65
  64. package/react/index.js.map +2 -2
  65. package/react/src/components/ClientOnly.d.ts +1 -1
  66. package/react/src/components/ContentRoute.d.ts +1 -1
  67. package/react/src/components/Image.d.ts +1 -1
  68. package/react/src/components/Link.d.ts +1 -1
  69. package/react/src/components/Markdown.d.ts +1 -1
  70. package/react/src/components/Outlet.d.ts +1 -1
  71. package/react/src/components/index.d.ts +1 -1
  72. package/react/src/hooks/index.d.ts +1 -1
  73. package/react/src/hooks/useContent.d.ts +1 -1
  74. package/react/src/hooks/useData.d.ts +1 -1
  75. package/react/src/hooks/useNavigate.d.ts +1 -1
  76. package/react/src/hooks/useParams.d.ts +1 -1
  77. package/react/src/hooks/useRouter.d.ts +1 -1
  78. package/react/src/hooks/useSearchParams.d.ts +1 -1
  79. package/react/src/index.d.ts +1 -1
  80. package/react/src/providers/ContentProvider.d.ts +1 -1
  81. package/react/src/providers/RerouteProvider.d.ts +1 -1
  82. package/react/src/providers/RouterProvider.d.ts +1 -1
  83. package/react/src/providers/index.d.ts +1 -1
  84. package/react/src/types/any.d.ts +1 -1
  85. package/react/src/types/index.d.ts +1 -1
  86. package/react/src/types/router.d.ts +1 -1
  87. package/react/src/utils/content.d.ts +1 -1
  88. package/react/src/utils/head.d.ts +1 -1
  89. package/react/src/utils/index.d.ts +1 -1
  90. package/react/src/utils/lazy-route.d.ts +1 -1
package/cli/bin.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * reroute-js v0.9.1
2
+ * reroute-js v0.9.3
3
3
  *
4
4
  * @license MIT
5
5
  * @copyright 2025 stewones <hi@stewan.io>
package/cli/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
3
  /**
4
- * reroute-js v0.9.1
4
+ * reroute-js v0.9.3
5
5
  *
6
6
  * @license MIT
7
7
  * @copyright 2025 stewones <hi@stewan.io>
@@ -47,7 +47,7 @@ async function getVersionString() {
47
47
  }
48
48
  async function getVersion() {
49
49
  if (true) {
50
- return "0.9.1";
50
+ return "0.9.3";
51
51
  }
52
52
  const possiblePaths = [
53
53
  path.join(import.meta.dir, "../../../../package.json"),
@@ -65,7 +65,7 @@ async function getVersion() {
65
65
  }
66
66
  async function getCommit() {
67
67
  if (true) {
68
- return "75cc9e9";
68
+ return "6ab0123";
69
69
  }
70
70
  return "dev";
71
71
  }
@@ -663,7 +663,7 @@ var init_markdown_processor = () => {};
663
663
 
664
664
  // packages/cli/src/libs/production.ts
665
665
  function isProductionMode(args = []) {
666
- return Bun.env.NODE_ENV === "production" || args.includes("--prod");
666
+ return true;
667
667
  }
668
668
 
669
669
  // packages/cli/src/libs/tailwind.ts
@@ -2165,6 +2165,7 @@ async function build(args) {
2165
2165
  const buildArgs = ["build", "src/index.ts", "--target", "bun", "--compile"];
2166
2166
  if (isProduction) {
2167
2167
  buildArgs.push("--minify");
2168
+ buildArgs.push("--external", "sharp");
2168
2169
  }
2169
2170
  const filteredArgs = args.filter((arg, idx) => {
2170
2171
  if (outfileArgIndex !== -1) {
@@ -5509,7 +5510,7 @@ async function getVersionString2() {
5509
5510
  }
5510
5511
  async function getVersion2() {
5511
5512
  if (true) {
5512
- return "0.9.1";
5513
+ return "0.9.3";
5513
5514
  }
5514
5515
  const possiblePaths = [
5515
5516
  path3.join(import.meta.dir, "../../../package.json"),
@@ -5526,10 +5527,10 @@ async function getVersion2() {
5526
5527
  }
5527
5528
  async function getCommit2() {
5528
5529
  if (true) {
5529
- return "75cc9e9";
5530
+ return "6ab0123";
5530
5531
  }
5531
5532
  return "dev";
5532
5533
  }
5533
5534
  main();
5534
5535
 
5535
- //# debugId=2FE626A79390776364756E2164756E21
5536
+ //# debugId=5E12626DFBD4514964756E2164756E21