void 0.7.3 → 0.7.5
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/{better-auth-shared-APuDaPqW.mjs → better-auth-shared-CjnJZFC0.mjs} +51 -5
- package/dist/cli/cli.mjs +8 -8
- package/dist/{db-ClNu7vYQ.mjs → db-RqxhOT2E.mjs} +1 -1
- package/dist/{deploy-BkjqNk9U.mjs → deploy-CRIz77mw.mjs} +243 -56
- package/dist/index.mjs +56 -22
- package/dist/{init-CPny6w9D.mjs → init-FMZ29UZW.mjs} +2 -2
- package/dist/pages/client.d.mts +4 -3
- package/dist/pages/client.mjs +18 -6
- package/dist/pages/protocol.d.mts +1 -1
- package/dist/pages/protocol.mjs +5 -0
- package/dist/{plugin-inference-oZ6Ybu2_.mjs → plugin-inference-CCtRkt9O.mjs} +41 -12
- package/dist/{prepare-DKkx-2Kt.mjs → prepare-PqAbhLte.mjs} +2 -2
- package/dist/{preset-DFvePt0l.mjs → preset-jKn1hQwP.mjs} +1 -1
- package/dist/{protocol-CK4OFwfR.d.mts → protocol-DxGzKEz2.d.mts} +1 -0
- package/dist/runtime/better-auth-pg.mjs +1 -1
- package/dist/runtime/better-auth.mjs +1 -1
- package/dist/runtime/live-client.d.mts +34 -0
- package/dist/runtime/live-client.mjs +283 -0
- package/dist/runtime/live-server.d.mts +13 -0
- package/dist/runtime/live-server.mjs +417 -0
- package/dist/runtime/live.d.mts +107 -0
- package/dist/runtime/live.mjs +409 -0
- package/dist/runtime/migration-handler.mjs +34 -1
- package/dist/runtime/sse-client.d.mts +22 -0
- package/dist/runtime/sse-client.mjs +36 -0
- package/dist/runtime/sse.d.mts +35 -0
- package/dist/runtime/sse.mjs +172 -0
- package/dist/{scan-C6HMEIdW.mjs → scan-QtRTdh94.mjs} +1 -1
- package/package.json +27 -2
- package/skills/void/docs/guide/live.md +230 -0
- package/skills/void/docs/guide/pages-routing/overview.md +11 -0
- package/skills/void/docs/guide/sse.md +187 -0
- package/skills/void/docs/index.md +12 -15
- package/skills/void/docs/reference/api.md +12 -4
|
@@ -4,40 +4,37 @@ theme: dark
|
|
|
4
4
|
|
|
5
5
|
hero:
|
|
6
6
|
name: Void.
|
|
7
|
-
text: Ship
|
|
8
|
-
tagline:
|
|
7
|
+
text: Ship Vite apps at warp speed
|
|
8
|
+
tagline: A deployment platform designed for Vite. A powerful backend SDK to make your Vite apps truly full-stack.
|
|
9
9
|
actions:
|
|
10
10
|
- theme: brand
|
|
11
11
|
text: Get Started
|
|
12
12
|
link: ./guide/
|
|
13
|
-
- theme: alt
|
|
14
|
-
text: Join Early Access
|
|
15
|
-
link: https://tally.so/r/D4VE85
|
|
16
13
|
image:
|
|
17
14
|
src: /hero.svg
|
|
18
15
|
alt: Void deployment platform
|
|
19
16
|
|
|
20
17
|
features:
|
|
18
|
+
- iconify: lucide:terminal
|
|
19
|
+
title: One Command to Production
|
|
20
|
+
details: '`void deploy` builds your app, runs migrations, provisions resources, and deploys it.'
|
|
21
21
|
- iconify: lucide:layers
|
|
22
22
|
title: Truly Full-Stack
|
|
23
|
-
details: Database, KV storage, object storage, AI inference, authentication, queues, and cron jobs
|
|
23
|
+
details: Database, KV storage, object storage, AI inference, authentication, queues, and cron jobs. All built-in. Import what you need, skip what you don't.
|
|
24
24
|
- iconify: lucide:wand-sparkles
|
|
25
25
|
title: Your Code is Your Infra
|
|
26
|
-
details: Void scans your source code, detects what you use, and provisions
|
|
26
|
+
details: Void scans your source code, detects what you use, and automatically provisions every resource. No config files. No dashboard clicks. Locally and in the cloud.
|
|
27
27
|
- iconify: lucide:shield-check
|
|
28
|
-
title:
|
|
29
|
-
details:
|
|
28
|
+
title: Performant and Reliable
|
|
29
|
+
details: Built on Cloudflare's battle tested, global network. Fast, secure, and always available from day one.
|
|
30
30
|
- iconify: lucide:blocks
|
|
31
|
-
title:
|
|
32
|
-
details: React, Vue, Svelte, Solid,
|
|
31
|
+
title: Your Framework, Your Rendering
|
|
32
|
+
details: React, Vue, Svelte, Solid, Vite-based meta-frameworks. SSR, SSG, ISR, islands with partial hydration, and markdown.
|
|
33
33
|
- iconify: lucide:bot
|
|
34
34
|
title: AI-Native
|
|
35
35
|
details: Built-in skills, MCP support, and reference prompts let coding agents scaffold and ship full-stack apps in a single prompt.
|
|
36
|
-
- iconify: lucide:terminal
|
|
37
|
-
title: One Command to Production
|
|
38
|
-
details: '`void deploy` builds your app, runs migrations, provisions resources, and deploys to Cloudflare Workers, without requiring a Cloudflare account or knowledge about the infra.'
|
|
39
36
|
|
|
40
|
-
footer_heading:
|
|
37
|
+
footer_heading: Deploy at Warp Speed
|
|
41
38
|
footer_subheading: Vite. Optimized. Isomorphic. Deploy.
|
|
42
39
|
---
|
|
43
40
|
|
|
@@ -742,7 +742,8 @@ Imported from `"@void/vue"`.
|
|
|
742
742
|
| Export | Description |
|
|
743
743
|
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
744
744
|
| `Link` | Vue component for SPA navigation. Renders `<a>` for GET, `<button>` for non-GET methods. Props: `href`, `method`, `data`, `prefetch`, `cacheFor`, `preserveScroll`, `preserveState`, `replace`, `reloadDocument`, `viewTransition`, `onNavigate`. |
|
|
745
|
-
| `useRouter()` | Returns the Void Router with current route state (`url`, `path`, `query`) and navigation methods: `visit`, `refresh`, awaitable `prefetch`, `flush`, `flushAll`.
|
|
745
|
+
| `useRouter()` | Returns the Void Router with current route state (`url`, `path`, `query`, `params`) and navigation methods: `visit`, `refresh`, awaitable `prefetch`, `flush`, `flushAll`. |
|
|
746
|
+
| `useParams()` | Returns dynamic route params for the page currently being rendered. |
|
|
746
747
|
| `useNavigation()` | Returns pending navigation state: `{ state, location, method }`, where `state` is `"idle"`, `"loading"`, or `"submitting"` and `location` is the pending destination. |
|
|
747
748
|
| `useForm(url, defaults, options?)` | Typed reactive form helper bound to a page action URL. Returns `{ data, post, put, patch, delete, pending, errors, error, hasChanges, wasSuccessful, recentlySuccessful, reset, clearErrors, clearError }`. |
|
|
748
749
|
| `useShared()` | Returns shared data injected by middleware via `c.set("shared", {...})`. |
|
|
@@ -789,7 +790,8 @@ Imported from `"@void/react"`.
|
|
|
789
790
|
| Export | Description |
|
|
790
791
|
| ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
791
792
|
| `Link` | React component for SPA navigation. Renders `<a>` for GET, `<button>` for non-GET methods. Props: `href`, `method`, `data`, `prefetch`, `cacheFor`, `preserveScroll`, `preserveState`, `replace`, `reloadDocument`, `viewTransition`, `onNavigate`. |
|
|
792
|
-
| `useRouter()` | Returns the Void Router with current route state (`url`, `path`, `query`) and navigation methods: `visit`, `refresh`, awaitable `prefetch`, `flush`, `flushAll`. React navigations are scheduled as transitions.
|
|
793
|
+
| `useRouter()` | Returns the Void Router with current route state (`url`, `path`, `query`, `params`) and navigation methods: `visit`, `refresh`, awaitable `prefetch`, `flush`, `flushAll`. React navigations are scheduled as transitions. |
|
|
794
|
+
| `useParams()` | Returns dynamic route params for the page currently being rendered. |
|
|
793
795
|
| `useNavigation()` | Returns pending navigation state: `{ state, location, method }`, where `state` is `"idle"`, `"loading"`, or `"submitting"` and `location` is the pending destination. |
|
|
794
796
|
| `useForm(url, defaults, options?)` | Form helper hook. Returns `{ data, setData, post, put, patch, delete, pending, errors, error, hasChanges, wasSuccessful, recentlySuccessful, reset, clearErrors, clearError }`. |
|
|
795
797
|
| `action(url, options?)` | Awaitable one-shot page action helper. Uses `POST` by default and accepts `{ data, method, params }`, where `method` can be `"PUT"`, `"PATCH"`, or `"DELETE"`. Returns an `ActionResult`. |
|
|
@@ -845,7 +847,8 @@ Imported from `"@void/svelte"`.
|
|
|
845
847
|
| `Link` | Svelte component for SPA navigation. Renders `<a>` for GET, `<button>` for non-GET methods. Props: `href`, `method`, `data`, `prefetch`, `cacheFor`, `preserveScroll`, `preserveState`, `replace`, `reloadDocument`, `viewTransition`, `onNavigate`. |
|
|
846
848
|
| `useForm(url, defaults, options?)` | Form helper using Svelte 5 runes. Returns `{ data, post, put, patch, delete, pending, errors, error, hasChanges, wasSuccessful, recentlySuccessful, reset, clearErrors, clearError }`. |
|
|
847
849
|
| `useShared()` | Returns shared data injected by middleware via `c.set("shared", {...})`. |
|
|
848
|
-
| `useRouter()` | Returns the Void Router with current route state (`url`, `path`, `query`) and navigation methods: `visit`, `refresh`, awaitable `prefetch`, `flush`, `flushAll`.
|
|
850
|
+
| `useRouter()` | Returns the Void Router with current route state (`url`, `path`, `query`, `params`) and navigation methods: `visit`, `refresh`, awaitable `prefetch`, `flush`, `flushAll`. |
|
|
851
|
+
| `useParams()` | Returns dynamic route params for the page currently being rendered. |
|
|
849
852
|
| `useNavigation()` | Returns pending navigation state: `{ state, location, method }`, where `state` is `"idle"`, `"loading"`, or `"submitting"` and `location` is the pending destination. |
|
|
850
853
|
|
|
851
854
|
Svelte `Link` GET `data` is merged into the rendered `href` query string. Primitive values are serialized with `String(value)`, arrays become repeated keys, `null` and `undefined` are omitted, and nested objects throw. `prefetch` and `reloadDocument` are GET-only and throw for mutation links.
|
|
@@ -888,7 +891,8 @@ Imported from `"@void/solid"`.
|
|
|
888
891
|
| `Link` | Solid component for SPA navigation. Renders `<a>` for GET, `<button>` for non-GET methods. Props: `href`, `method`, `data`, `prefetch`, `cacheFor`, `preserveScroll`, `preserveState`, `replace`, `reloadDocument`, `viewTransition`, `onNavigate`. |
|
|
889
892
|
| `useForm(url, defaults, options?)` | Form helper using Solid stores. Returns `{ data, setData, post, put, patch, delete, pending, errors, error, hasChanges, wasSuccessful, recentlySuccessful, reset, clearErrors, clearError }`. |
|
|
890
893
|
| `useShared()` | Returns shared data injected by middleware via `c.set("shared", {...})`. |
|
|
891
|
-
| `useRouter()` | Returns the Void Router with current route state (`url`, `path`, `query`) and navigation methods: `visit`, `refresh`, awaitable `prefetch`, `flush`, `flushAll`.
|
|
894
|
+
| `useRouter()` | Returns the Void Router with current route state (`url`, `path`, `query`, `params`) and navigation methods: `visit`, `refresh`, awaitable `prefetch`, `flush`, `flushAll`. |
|
|
895
|
+
| `useParams()` | Returns dynamic route params for the page currently being rendered. |
|
|
892
896
|
| `useNavigation()` | Returns pending navigation state: `{ state, location, method }`, where `state` is `"idle"`, `"loading"`, or `"submitting"` and `location` is the pending destination. |
|
|
893
897
|
|
|
894
898
|
Solid `Link` GET `data` is merged into the rendered `href` query string. Primitive values are serialized with `String(value)`, arrays become repeated keys, `null` and `undefined` are omitted, and nested objects throw. `prefetch` and `reloadDocument` are GET-only and throw for mutation links.
|
|
@@ -902,6 +906,10 @@ Solid `Link` GET `data` is merged into the rendered `href` query string. Primiti
|
|
|
902
906
|
| `void/auth` | `defineAuth`, `getUser`, `getSession`, `requireAuth`, `AuthUser`, `AuthSession`, `AuthState` |
|
|
903
907
|
| `void/client` | `fetch`, `fetchStream`, `FetchError`, `auth`, `createAuthClient`, `AuthUser`, `AuthSession`, `AuthState` |
|
|
904
908
|
| `void/ws` | `defineRoom`, `defineWebSocket`, `connect`, WebSocket context and connection types |
|
|
909
|
+
| `void/sse` | `eventStream`, `formatSse`, `formatSseText`, `getLastEventId`, `SseStreamClosedError`, SSE message and stream types |
|
|
910
|
+
| `void/sse/client` | `connectEventStream`, browser `EventSource` wrapper types |
|
|
911
|
+
| `void/live` | `defineLiveStream`, SSE topic fanout runtime types. Server-only. |
|
|
912
|
+
| `void/live/client` | `connectLiveStream`, browser helper for one SSE connection plus POST subscribe/unsubscribe control. |
|
|
905
913
|
| `void/response` | `convertReturnValue` |
|
|
906
914
|
| `void/validator` | `runValidation`, `ValidatorSlots`, `HandlerInput` |
|
|
907
915
|
| `void/drizzle-zod` | Re-exports [`drizzle-zod`](https://orm.drizzle.team/docs/zod) for schema-derived Zod validators for Drizzle tables |
|