You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/lib/api-reference.mjs
+27-18Lines changed: 27 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -148,12 +148,21 @@ const pages = [
148
148
description:
149
149
"Partial pre-rendering controls: `usePrerender` to mark a component for build-time rendering, and the `withPrerender` HOC wrapper.",
150
150
},
151
+
{
152
+
slug: "function",
153
+
title: "Function",
154
+
importPath: "@lazarv/react-server/function",
155
+
dts: "server/function.d.ts",
156
+
order: 9,
157
+
description:
158
+
'Server-function validation: `createFunction` wraps a `"use server"` handler with a per-arg parse/validate spec, plus the wire-aware helpers (`formData`, `file`, `blob`, `arrayBuffer`, `typedArray`, `map`, `set`, `stream`, `asyncIterable`, `iterable`, `promise`) for the rest of the Flight protocol surface.',
159
+
},
151
160
{
152
161
slug: "memory-cache",
153
162
title: "Memory Cache",
154
163
importPath: "@lazarv/react-server/memory-cache",
155
164
dts: ["cache/index.d.ts","cache/client.d.ts"],
156
-
order: 9,
165
+
order: 10,
157
166
description:
158
167
"Default in-memory cache provider. Exposes `useCache`, `invalidate`, and the client-side helpers used when the runtime's built-in cache is active.",
159
168
},
@@ -162,7 +171,7 @@ const pages = [
162
171
title: "Storage Cache",
163
172
importPath: "@lazarv/react-server/storage-cache",
164
173
dts: "cache/storage-cache.d.ts",
165
-
order: 10,
174
+
order: 11,
166
175
description:
167
176
"Durable cache backend built on [unstorage](https://unstorage.unjs.io/). Supports any unstorage driver — Redis, Cloudflare KV, Upstash, filesystem, etc.",
168
177
},
@@ -171,7 +180,7 @@ const pages = [
171
180
title: "RSC",
172
181
importPath: "@lazarv/react-server/rsc",
173
182
dts: "cache/rsc.d.ts",
174
-
order: 11,
183
+
order: 12,
175
184
description:
176
185
"Low-level RSC serialization helpers — serialize and deserialize React server component payloads directly. Most apps should not need these.",
177
186
},
@@ -180,7 +189,7 @@ const pages = [
180
189
title: "Worker",
181
190
importPath: "@lazarv/react-server/worker",
182
191
dts: "worker/index.d.ts",
183
-
order: 12,
192
+
order: 13,
184
193
description:
185
194
'Helpers for modules marked with the `"use worker"` directive. On the server runs in a Node Worker Thread; on the client runs in a Web Worker.',
186
195
},
@@ -189,7 +198,7 @@ const pages = [
189
198
title: "MCP",
190
199
importPath: "@lazarv/react-server/mcp",
191
200
dts: "server/mcp.d.ts",
192
-
order: 13,
201
+
order: 14,
193
202
description:
194
203
"Model Context Protocol primitives. Build typed tools, resources, and prompts, then expose them through an MCP server route handler.",
195
204
},
@@ -198,7 +207,7 @@ const pages = [
198
207
title: "HTTP",
199
208
importPath: "@lazarv/react-server/http",
200
209
dts: "lib/http/index.d.ts",
201
-
order: 14,
210
+
order: 15,
202
211
description:
203
212
"Low-level HTTP context types shared across middleware, route handlers, and server functions.",
204
213
},
@@ -207,7 +216,7 @@ const pages = [
207
216
title: "Config",
208
217
importPath: "@lazarv/react-server/config",
209
218
dts: ["config/index.d.ts","config/schema.d.ts"],
210
-
order: 15,
219
+
order: 16,
211
220
description:
212
221
"Configuration schema and helpers. Import `ReactServerConfig` for typed `react-server.config.mjs` files and `generateJsonSchema` to emit the JSON Schema consumed by editors.",
"Shared types and helpers for building deploy adapters. The same surface is re-exported from every `@lazarv/react-server/adapters/<target>` subpath — each concrete adapter is a thin wrapper around `createAdapter`.",
222
231
},
@@ -225,7 +234,7 @@ const pages = [
225
234
title: "Node",
226
235
importPath: "@lazarv/react-server/node",
227
236
dts: "lib/start/node.d.ts",
228
-
order: 17,
237
+
order: 18,
229
238
description:
230
239
"Mount the runtime inside an existing Node.js HTTP server (Express, Fastify, NestJS, raw `http`). Used in middleware mode and custom server setups.",
231
240
},
@@ -234,7 +243,7 @@ const pages = [
234
243
title: "Dev",
235
244
importPath: "@lazarv/react-server/dev",
236
245
dts: "lib/dev/index.d.ts",
237
-
order: 18,
246
+
order: 19,
238
247
description:
239
248
"Programmatic entry point to the development server. Equivalent to invoking the `react-server` CLI without arguments.",
240
249
},
@@ -243,7 +252,7 @@ const pages = [
243
252
title: "Build",
244
253
importPath: "@lazarv/react-server/build",
245
254
dts: "lib/build/index.d.ts",
246
-
order: 19,
255
+
order: 20,
247
256
description:
248
257
"Programmatic build entry point. Equivalent to the `react-server build` CLI command — useful for custom build pipelines.",
249
258
},
@@ -252,7 +261,7 @@ const pages = [
252
261
title: "DevTools",
253
262
importPath: "@lazarv/react-server/devtools",
254
263
dts: "devtools/index.d.ts",
255
-
order: 20,
264
+
order: 21,
256
265
description:
257
266
"Configuration surface for the in-browser DevTools panel. Opt the panel in and out per environment and tune what it tracks.",
258
267
},
@@ -261,19 +270,19 @@ const pages = [
261
270
title: "Telemetry",
262
271
importPath: "@lazarv/react-server/telemetry",
263
272
dts: "telemetry/index.d.ts",
264
-
order: 21,
273
+
order: 22,
265
274
description:
266
275
"OpenTelemetry integration. Safe no-op when OpenTelemetry packages are not installed — import `getTracer`, `getMeter`, `withSpan`, and friends directly without guarding.",
0 commit comments