reroute-js 0.13.2 → 0.14.1
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.
- package/cli/bin.d.ts +1 -1
- package/cli/bin.js +22 -11
- package/cli/bin.js.map +8 -8
- package/cli/index.d.ts +1 -1
- package/cli/index.js +7 -7
- package/cli/index.js.map +3 -3
- package/cli/src/cli.d.ts +1 -1
- package/cli/src/commands/analyze.d.ts +1 -1
- package/cli/src/commands/build.d.ts +1 -1
- package/cli/src/commands/dev.d.ts +1 -1
- package/cli/src/commands/gen.d.ts +1 -1
- package/cli/src/commands/index.d.ts +1 -1
- package/cli/src/commands/init.d.ts +1 -1
- package/cli/src/commands/lib/command.d.ts +1 -1
- package/cli/src/commands/lib/env.d.ts +1 -1
- package/cli/src/commands/lib/env.d.ts.map +1 -1
- package/cli/src/commands/lib/index.d.ts +1 -1
- package/cli/src/commands/lib/log.d.ts +1 -1
- package/cli/src/commands/lib/markdown/availability.d.ts +1 -1
- package/cli/src/commands/lib/markdown/availability.d.ts.map +1 -1
- package/cli/src/commands/lib/markdown/index.d.ts +1 -1
- package/cli/src/commands/lib/markdown/processor.d.ts +1 -1
- package/cli/src/commands/lib/production.d.ts +1 -1
- package/cli/src/commands/lib/server.d.ts +1 -1
- package/cli/src/commands/lib/streaming/analyzer.d.ts +1 -1
- package/cli/src/commands/lib/streaming/suspense.d.ts +1 -1
- package/cli/src/commands/lib/tailwind.d.ts +1 -1
- package/cli/src/commands/lib/version.d.ts +1 -1
- package/cli/src/commands/start.d.ts +1 -1
- package/cli/src/index.d.ts +1 -1
- package/core/index.d.ts +1 -1
- package/core/index.js +12 -3
- package/core/index.js.map +6 -6
- package/core/src/bundler/hash.d.ts +1 -1
- package/core/src/bundler/index.d.ts +1 -1
- package/core/src/config.d.ts +27 -1
- package/core/src/config.d.ts.map +1 -1
- package/core/src/content/discovery.d.ts +1 -1
- package/core/src/content/index.d.ts +1 -1
- package/core/src/content/metadata.d.ts +1 -1
- package/core/src/index.d.ts +1 -1
- package/core/src/rss/discovery.d.ts +1 -1
- package/core/src/rss/discovery.d.ts.map +1 -1
- package/core/src/rss/generator.d.ts +1 -1
- package/core/src/rss/index.d.ts +1 -1
- package/core/src/sitemap/discovery.d.ts +1 -1
- package/core/src/sitemap/discovery.d.ts.map +1 -1
- package/core/src/sitemap/generator.d.ts +2 -1
- package/core/src/sitemap/generator.d.ts.map +1 -1
- package/core/src/sitemap/index.d.ts +1 -1
- package/core/src/ssr/index.d.ts +1 -1
- package/core/src/ssr/lib/cache.d.ts +1 -1
- package/core/src/ssr/lib/collections.d.ts +1 -1
- package/core/src/ssr/lib/compression.d.ts +1 -1
- package/core/src/ssr/lib/compute.d.ts +1 -1
- package/core/src/ssr/lib/data.d.ts +1 -1
- package/core/src/ssr/lib/html.d.ts +1 -1
- package/core/src/ssr/lib/index.d.ts +1 -1
- package/core/src/ssr/lib/metadata.d.ts +1 -1
- package/core/src/ssr/lib/mime.d.ts +1 -1
- package/core/src/ssr/lib/modules.d.ts +1 -1
- package/core/src/ssr/lib/path.d.ts +1 -1
- package/core/src/ssr/lib/preload.d.ts +1 -1
- package/core/src/ssr/lib/scripts.d.ts +1 -1
- package/core/src/ssr/lib/seed.d.ts +1 -1
- package/core/src/ssr/lib/styles.d.ts +1 -1
- package/core/src/ssr/lib/template.d.ts +1 -1
- package/core/src/ssr/lib/types.d.ts +1 -1
- package/core/src/ssr/render.d.ts +1 -1
- package/core/src/ssr/stream.d.ts +1 -1
- package/elysia/index.d.ts +1 -1
- package/elysia/index.js +19 -5
- package/elysia/index.js.map +8 -8
- package/elysia/src/index.d.ts +1 -1
- package/elysia/src/libs/cache.d.ts +1 -1
- package/elysia/src/libs/http.d.ts +1 -1
- package/elysia/src/libs/image.d.ts +1 -1
- package/elysia/src/plugin.d.ts +1 -1
- package/elysia/src/routes/artifacts.d.ts +1 -1
- package/elysia/src/routes/content.d.ts +1 -1
- package/elysia/src/routes/image.d.ts +1 -1
- package/elysia/src/routes/internal.d.ts +1 -1
- package/elysia/src/routes/redirects.d.ts +1 -1
- package/elysia/src/routes/rss.d.ts +1 -1
- package/elysia/src/routes/rss.d.ts.map +1 -1
- package/elysia/src/routes/sitemap.d.ts +1 -1
- package/elysia/src/routes/sitemap.d.ts.map +1 -1
- package/elysia/src/routes/ssr.d.ts +1 -1
- package/elysia/src/routes/static.d.ts +1 -1
- package/elysia/src/types.d.ts +1 -1
- package/package.json +1 -1
- package/react/index.d.ts +1 -1
- package/react/index.js +2 -2
- package/react/index.js.map +1 -1
- package/react/src/components/ClientOnly.d.ts +1 -1
- package/react/src/components/ContentRoute.d.ts +1 -1
- package/react/src/components/Image.d.ts +1 -1
- package/react/src/components/LazyRoute.d.ts +1 -1
- package/react/src/components/Link.d.ts +1 -1
- package/react/src/components/Markdown.d.ts +1 -1
- package/react/src/components/Outlet.d.ts +1 -1
- package/react/src/components/index.d.ts +1 -1
- package/react/src/hooks/index.d.ts +1 -1
- package/react/src/hooks/useContent.d.ts +1 -1
- package/react/src/hooks/useData.d.ts +1 -1
- package/react/src/hooks/useFeed.d.ts +1 -1
- package/react/src/hooks/useLayoutData.d.ts +1 -1
- package/react/src/hooks/useNavigate.d.ts +1 -1
- package/react/src/hooks/useParams.d.ts +1 -1
- package/react/src/hooks/useRouter.d.ts +1 -1
- package/react/src/hooks/useSearchParams.d.ts +1 -1
- package/react/src/index.d.ts +1 -1
- package/react/src/lib/content.d.ts +1 -1
- package/react/src/lib/head.d.ts +1 -1
- package/react/src/lib/index.d.ts +1 -1
- package/react/src/lib/lazy-route.d.ts +1 -1
- package/react/src/lib/route-loader.d.ts +1 -1
- package/react/src/providers/ContentProvider.d.ts +1 -1
- package/react/src/providers/RerouteProvider.d.ts +1 -1
- package/react/src/providers/RouterProvider.d.ts +1 -1
- package/react/src/providers/index.d.ts +1 -1
- package/react/src/types/any.d.ts +1 -1
- package/react/src/types/index.d.ts +1 -1
- package/react/src/types/router.d.ts +1 -1
package/cli/bin.d.ts
CHANGED
package/cli/bin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
3
|
/**
|
|
4
|
-
* reroute-js v0.
|
|
4
|
+
* reroute-js v0.14.1
|
|
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.
|
|
50
|
+
return "0.14.1";
|
|
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 "
|
|
68
|
+
return "6240baa";
|
|
69
69
|
}
|
|
70
70
|
return "dev";
|
|
71
71
|
}
|
|
@@ -503,7 +503,7 @@ async function discoverRoutes(cwd, isWatchMode) {
|
|
|
503
503
|
if (pattern.includes("[404]") || pattern.includes("[layout]") || pattern.includes("[skeleton]")) {
|
|
504
504
|
continue;
|
|
505
505
|
}
|
|
506
|
-
const isDynamic = pattern.includes("
|
|
506
|
+
const isDynamic = pattern.includes(":");
|
|
507
507
|
const sitemapRoute = {
|
|
508
508
|
path: path2,
|
|
509
509
|
pattern,
|
|
@@ -553,6 +553,9 @@ async function discoverCollectionContent(cwd, collection, isWatchMode, baseUrl)
|
|
|
553
553
|
async function discoverSSRDataRoutes(_cwd, clientDir, staticRoutes, isWatchMode, baseUrl, sitemapConfig) {
|
|
554
554
|
const ssrDataRoutes = new Map;
|
|
555
555
|
for (const route of staticRoutes) {
|
|
556
|
+
if (sitemapConfig?.excludeDiscovery?.includes(route.pattern)) {
|
|
557
|
+
continue;
|
|
558
|
+
}
|
|
556
559
|
try {
|
|
557
560
|
const abs = join2(clientDir, "routes", route.path);
|
|
558
561
|
const mod = await import(Bun.pathToFileURL(abs).href + (isWatchMode ? `?t=${Date.now()}` : ""));
|
|
@@ -923,6 +926,9 @@ async function discoverRSSData(cwd, clientDir, collections, baseUrl, isWatchMode
|
|
|
923
926
|
const { discoverRoutes: discoverRoutes2 } = await Promise.resolve().then(() => (init_discovery2(), exports_discovery));
|
|
924
927
|
const { staticRoutes } = await discoverRoutes2(cwd, isWatchMode);
|
|
925
928
|
for (const route of staticRoutes) {
|
|
929
|
+
if (rssConfig?.excludeDiscovery?.includes(route.pattern)) {
|
|
930
|
+
continue;
|
|
931
|
+
}
|
|
926
932
|
const items = await discoverSSRDataFeedItems(cwd, clientDir, route.pattern, route.path, isWatchMode, baseUrl, rssConfig);
|
|
927
933
|
if (items.length > 0) {
|
|
928
934
|
ssrDataFeeds.set(route.pattern, items);
|
|
@@ -1102,6 +1108,9 @@ async function generateSitemap(discovery3, baseUrl, options = {}) {
|
|
|
1102
1108
|
if (route.pattern.includes(":")) {
|
|
1103
1109
|
continue;
|
|
1104
1110
|
}
|
|
1111
|
+
if (options.excludeRoutes?.includes(route.pattern)) {
|
|
1112
|
+
continue;
|
|
1113
|
+
}
|
|
1105
1114
|
let loc = route.pattern;
|
|
1106
1115
|
if (loc === "/index") {
|
|
1107
1116
|
loc = "/";
|
|
@@ -2930,8 +2939,9 @@ function loadEnvFiles(cwd, mode = "development") {
|
|
|
2930
2939
|
}
|
|
2931
2940
|
}
|
|
2932
2941
|
}
|
|
2933
|
-
if (loadedFiles.length > 0) {
|
|
2942
|
+
if (loadedFiles.length > 0 && !envLoadedLog) {
|
|
2934
2943
|
console.log(`[reroute/env] Loaded: ${loadedFiles.join(", ")}`);
|
|
2944
|
+
envLoadedLog = true;
|
|
2935
2945
|
}
|
|
2936
2946
|
return env;
|
|
2937
2947
|
}
|
|
@@ -2953,6 +2963,7 @@ function envToDefineObject(env) {
|
|
|
2953
2963
|
}
|
|
2954
2964
|
return define;
|
|
2955
2965
|
}
|
|
2966
|
+
var envLoadedLog = false;
|
|
2956
2967
|
var init_env = () => {};
|
|
2957
2968
|
|
|
2958
2969
|
// packages/cli/src/commands/lib/markdown/availability.ts
|
|
@@ -3013,13 +3024,13 @@ function logMarkdownStatus(cwd) {
|
|
|
3013
3024
|
if (config2.isConfigured) {
|
|
3014
3025
|
console.log("[reroute/markdown] Markdown rendering available");
|
|
3015
3026
|
if (config2.hasShiki) {
|
|
3016
|
-
console.log("[reroute/markdown]
|
|
3027
|
+
console.log("[reroute/markdown] Shiki syntax highlighting enabled");
|
|
3017
3028
|
}
|
|
3018
3029
|
if (config2.hasRemarkGfm) {
|
|
3019
|
-
console.log("[reroute/markdown]
|
|
3030
|
+
console.log("[reroute/markdown] GitHub Flavored Markdown enabled");
|
|
3020
3031
|
}
|
|
3021
3032
|
if (config2.hasMdx) {
|
|
3022
|
-
console.log("[reroute/markdown]
|
|
3033
|
+
console.log("[reroute/markdown] MDX compiler enabled (JSX in markdown)");
|
|
3023
3034
|
}
|
|
3024
3035
|
}
|
|
3025
3036
|
}
|
|
@@ -7497,7 +7508,7 @@ async function getVersionString2() {
|
|
|
7497
7508
|
}
|
|
7498
7509
|
async function getVersion2() {
|
|
7499
7510
|
if (true) {
|
|
7500
|
-
return "0.
|
|
7511
|
+
return "0.14.1";
|
|
7501
7512
|
}
|
|
7502
7513
|
const possiblePaths = [
|
|
7503
7514
|
path3.join(import.meta.dir, "../../../package.json"),
|
|
@@ -7514,10 +7525,10 @@ async function getVersion2() {
|
|
|
7514
7525
|
}
|
|
7515
7526
|
async function getCommit2() {
|
|
7516
7527
|
if (true) {
|
|
7517
|
-
return "
|
|
7528
|
+
return "6240baa";
|
|
7518
7529
|
}
|
|
7519
7530
|
return "dev";
|
|
7520
7531
|
}
|
|
7521
7532
|
main();
|
|
7522
7533
|
|
|
7523
|
-
//# debugId=
|
|
7534
|
+
//# debugId=1E205BB3B9C4D39E64756E2164756E21
|