rari 0.5.5 → 0.5.6
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/dist/client.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as fetchWithTimeout, S as createNavigationError, _ as LayoutErrorBoundary, a as LoadingSpinner, b as NavigationErrorOverlay, c as createHttpRuntimeClient, d as clearPropsCacheForComponent, f as extractMetadata, g as hasServerSideDataFetching, h as extractStaticParams, i as HttpRuntimeClient, l as createLoadingBoundary, m as extractServerPropsWithCache, n as DefaultLoading, o as NotFound, p as extractServerProps, r as ErrorBoundary, s as createErrorBoundary, t as DefaultError, u as clearPropsCache, v as ClientRouter, w as LayoutManager, x as NavigationErrorHandler, y as StatePreserver } from "./runtime-client-
|
|
1
|
+
import { C as fetchWithTimeout, S as createNavigationError, _ as LayoutErrorBoundary, a as LoadingSpinner, b as NavigationErrorOverlay, c as createHttpRuntimeClient, d as clearPropsCacheForComponent, f as extractMetadata, g as hasServerSideDataFetching, h as extractStaticParams, i as HttpRuntimeClient, l as createLoadingBoundary, m as extractServerPropsWithCache, n as DefaultLoading, o as NotFound, p as extractServerProps, r as ErrorBoundary, s as createErrorBoundary, t as DefaultError, u as clearPropsCache, v as ClientRouter, w as LayoutManager, x as NavigationErrorHandler, y as StatePreserver } from "./runtime-client-CGCu6fmO.mjs";
|
|
2
2
|
|
|
3
3
|
export { ClientRouter, DefaultError, DefaultLoading, ErrorBoundary, HttpRuntimeClient, LayoutErrorBoundary, LayoutManager, LoadingSpinner, NavigationErrorHandler, NavigationErrorOverlay, NotFound, StatePreserver, clearPropsCache, clearPropsCacheForComponent, createErrorBoundary, createHttpRuntimeClient, createLoadingBoundary, createNavigationError, extractMetadata, extractServerProps, extractServerPropsWithCache, extractStaticParams, fetchWithTimeout, hasServerSideDataFetching };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as headers, i as rariRouter, n as defineRariOptions, o as RariResponse, r as rari, t as defineRariConfig } from "./vite-CNKYWQs-.mjs";
|
|
2
2
|
import { i as writeManifest, n as generateAppRouteManifest, r as loadManifest, t as AppRouteGenerator } from "./app-routes-BjA_L5R4.mjs";
|
|
3
|
-
import { c as createHttpRuntimeClient, d as clearPropsCacheForComponent, f as extractMetadata, g as hasServerSideDataFetching, h as extractStaticParams, i as HttpRuntimeClient, m as extractServerPropsWithCache, p as extractServerProps, u as clearPropsCache } from "./runtime-client-
|
|
3
|
+
import { c as createHttpRuntimeClient, d as clearPropsCacheForComponent, f as extractMetadata, g as hasServerSideDataFetching, h as extractStaticParams, i as HttpRuntimeClient, m as extractServerPropsWithCache, p as extractServerProps, u as clearPropsCache } from "./runtime-client-CGCu6fmO.mjs";
|
|
4
4
|
import "./loading-component-map-UZ-MQYv0.mjs";
|
|
5
5
|
import "./server-build-BVvKXTME.mjs";
|
|
6
6
|
|
|
@@ -1377,7 +1377,10 @@ var LayoutErrorBoundary = class extends Component {
|
|
|
1377
1377
|
//#region src/router/props-extractor.ts
|
|
1378
1378
|
async function extractServerProps(componentPath, params, searchParams) {
|
|
1379
1379
|
try {
|
|
1380
|
-
const module = await import(
|
|
1380
|
+
const module = await import(
|
|
1381
|
+
/* @vite-ignore */
|
|
1382
|
+
componentPath
|
|
1383
|
+
);
|
|
1381
1384
|
let props = {};
|
|
1382
1385
|
let revalidate;
|
|
1383
1386
|
let notFound = false;
|
|
@@ -1436,7 +1439,10 @@ async function extractServerProps(componentPath, params, searchParams) {
|
|
|
1436
1439
|
}
|
|
1437
1440
|
async function extractMetadata(componentPath, params, searchParams) {
|
|
1438
1441
|
try {
|
|
1439
|
-
const module = await import(
|
|
1442
|
+
const module = await import(
|
|
1443
|
+
/* @vite-ignore */
|
|
1444
|
+
componentPath
|
|
1445
|
+
);
|
|
1440
1446
|
if (module.metadata && typeof module.metadata === "object") return module.metadata;
|
|
1441
1447
|
if (typeof module.generateMetadata === "function") {
|
|
1442
1448
|
const metadata = await module.generateMetadata({
|
|
@@ -1453,7 +1459,10 @@ async function extractMetadata(componentPath, params, searchParams) {
|
|
|
1453
1459
|
}
|
|
1454
1460
|
async function extractStaticParams(componentPath) {
|
|
1455
1461
|
try {
|
|
1456
|
-
const module = await import(
|
|
1462
|
+
const module = await import(
|
|
1463
|
+
/* @vite-ignore */
|
|
1464
|
+
componentPath
|
|
1465
|
+
);
|
|
1457
1466
|
if (typeof module.generateStaticParams === "function") {
|
|
1458
1467
|
const params = await module.generateStaticParams();
|
|
1459
1468
|
if (Array.isArray(params)) return params;
|
|
@@ -1466,7 +1475,10 @@ async function extractStaticParams(componentPath) {
|
|
|
1466
1475
|
}
|
|
1467
1476
|
async function hasServerSideDataFetching(componentPath) {
|
|
1468
1477
|
try {
|
|
1469
|
-
const module = await import(
|
|
1478
|
+
const module = await import(
|
|
1479
|
+
/* @vite-ignore */
|
|
1480
|
+
componentPath
|
|
1481
|
+
);
|
|
1470
1482
|
return !!(module.getData || module.getServerSideProps || module.getStaticProps || module.generateMetadata || module.generateStaticParams);
|
|
1471
1483
|
} catch {
|
|
1472
1484
|
return false;
|
package/dist/vite.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as headers, i as rariRouter, n as defineRariOptions, o as RariResponse, r as rari, t as defineRariConfig } from "./vite-CNKYWQs-.mjs";
|
|
2
2
|
import { i as writeManifest, n as generateAppRouteManifest, r as loadManifest, t as AppRouteGenerator } from "./app-routes-BjA_L5R4.mjs";
|
|
3
|
-
import { c as createHttpRuntimeClient, d as clearPropsCacheForComponent, f as extractMetadata, g as hasServerSideDataFetching, h as extractStaticParams, i as HttpRuntimeClient, m as extractServerPropsWithCache, p as extractServerProps, u as clearPropsCache } from "./runtime-client-
|
|
3
|
+
import { c as createHttpRuntimeClient, d as clearPropsCacheForComponent, f as extractMetadata, g as hasServerSideDataFetching, h as extractStaticParams, i as HttpRuntimeClient, m as extractServerPropsWithCache, p as extractServerProps, u as clearPropsCache } from "./runtime-client-CGCu6fmO.mjs";
|
|
4
4
|
import "./loading-component-map-UZ-MQYv0.mjs";
|
|
5
5
|
import "./server-build-BVvKXTME.mjs";
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rari",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.6",
|
|
5
5
|
"description": "Runtime Accelerated Rendering Infrastructure (Rari)",
|
|
6
6
|
"author": "Ryan Skinner",
|
|
7
7
|
"license": "MIT",
|
|
@@ -89,20 +89,20 @@
|
|
|
89
89
|
"picocolors": "^1.1.1"
|
|
90
90
|
},
|
|
91
91
|
"optionalDependencies": {
|
|
92
|
-
"rari-darwin-arm64": "0.5.
|
|
93
|
-
"rari-darwin-x64": "0.5.
|
|
94
|
-
"rari-linux-arm64": "0.5.
|
|
95
|
-
"rari-linux-x64": "0.5.
|
|
96
|
-
"rari-win32-x64": "0.5.
|
|
92
|
+
"rari-darwin-arm64": "0.5.2",
|
|
93
|
+
"rari-darwin-x64": "0.5.2",
|
|
94
|
+
"rari-linux-arm64": "0.5.2",
|
|
95
|
+
"rari-linux-x64": "0.5.2",
|
|
96
|
+
"rari-win32-x64": "0.5.2"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
99
|
"@types/node": "^24.10.1",
|
|
100
100
|
"@types/react": "^19.2.7",
|
|
101
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
101
|
+
"@typescript/native-preview": "7.0.0-dev.20251203.1",
|
|
102
102
|
"chokidar": "^4.0.3",
|
|
103
103
|
"eslint": "^9.39.1",
|
|
104
|
-
"oxlint": "^1.
|
|
105
|
-
"rolldown-vite": "^7.2.
|
|
104
|
+
"oxlint": "^1.31.0",
|
|
105
|
+
"rolldown-vite": "^7.2.10",
|
|
106
106
|
"tsdown": "^0.15.12"
|
|
107
107
|
}
|
|
108
108
|
}
|
|
@@ -81,7 +81,7 @@ export async function extractServerProps(
|
|
|
81
81
|
searchParams: Record<string, string>,
|
|
82
82
|
): Promise<ServerPropsResult> {
|
|
83
83
|
try {
|
|
84
|
-
const module = await import(componentPath)
|
|
84
|
+
const module = await import(/* @vite-ignore */ componentPath)
|
|
85
85
|
|
|
86
86
|
let props: Record<string, any> = {}
|
|
87
87
|
let revalidate: number | undefined
|
|
@@ -160,7 +160,7 @@ export async function extractMetadata(
|
|
|
160
160
|
searchParams: Record<string, string>,
|
|
161
161
|
): Promise<MetadataResult> {
|
|
162
162
|
try {
|
|
163
|
-
const module = await import(componentPath)
|
|
163
|
+
const module = await import(/* @vite-ignore */ componentPath)
|
|
164
164
|
|
|
165
165
|
if (module.metadata && typeof module.metadata === 'object') {
|
|
166
166
|
return module.metadata
|
|
@@ -185,7 +185,7 @@ export async function extractStaticParams(
|
|
|
185
185
|
componentPath: string,
|
|
186
186
|
): Promise<StaticParamsResult> {
|
|
187
187
|
try {
|
|
188
|
-
const module = await import(componentPath)
|
|
188
|
+
const module = await import(/* @vite-ignore */ componentPath)
|
|
189
189
|
|
|
190
190
|
if (typeof module.generateStaticParams === 'function') {
|
|
191
191
|
const params = await module.generateStaticParams()
|
|
@@ -206,7 +206,7 @@ export async function hasServerSideDataFetching(
|
|
|
206
206
|
componentPath: string,
|
|
207
207
|
): Promise<boolean> {
|
|
208
208
|
try {
|
|
209
|
-
const module = await import(componentPath)
|
|
209
|
+
const module = await import(/* @vite-ignore */ componentPath)
|
|
210
210
|
|
|
211
211
|
return !!(
|
|
212
212
|
module.getData
|