Repository navigation
Releases
v0.22.0
Needs @rsc-kit/core 0.43 for what is new. An app that doesn't call BuildCalls is unchanged.
rpc() is answered while the renderer builds. reg.BuildCalls("-calls") puts the arguments in the manifest, and reg.ServeCalls(os.Stdin, os.Stdout) answers the engine's calls when the program is run with them. What is the same for everyone is stored with the page. A function that reads the visitor through ctx, or refuses with a 401 or 403, streams per request. rsckit.NotTheVisitor(...) names a context key that isn't about the visitor. (#41)
With BuildCalls, the build runs the functions pages call, so it needs the database; stored answers last until the next build; and per-visitor state kept outside ctx isn't noticed.
v0.21.0
Breaking: an action is a module per class. HandleAction and RegisterAction take the name alone, reg.HandleAction("Orders.create", fn), and the app imports it as create from server-actions/orders. A dotted prefix is a folder (Billing.Invoices.send is server-actions/billing/invoices), and a name with no method, SendInvite, is the default export of server-actions/send-invite. This needs @rsc-kit/core 0.41+, which refuses the old flat manifest. (#40)
v0.20.0
A function named in Registry.Validates answers <Form>'s check before submit without writing. This needs @rsc-kit/core 0.40+. The function validates as it always does and returns once rsckit.Checking(ctx) says the call is a check. WriteManifest lists these functions under validates. A check to any other function, or one inside a batch, is a 400 that runs nothing. (#39)
v0.19.0
Breaking
- Purge url (#38):
CDN_PURGE_URLis now the only name read;RSC_PURGE_URLis removed.HomeportPurgeris nowCDNPurger.
Matches @rsc-kit/core 0.38 and rsc-kit/laravel 0.24.
v0.18.0
v0.17.0
The callback handler accepts RSC_HOST_CALL_SECRET_PREVIOUS as well as the secret while it is set, so the secret rotates without a refused call. Both are compared in constant time on every call, and an empty value matches nothing (#33). The README binds PORT, 8080 by default, on every address (#34). Matches @rsc-kit/core 0.30.54.
v0.16.1
Changed posts to RSC_PURGE_URL, falling back to the HOMEPORT_PURGE_URL Homeport sets (#32). Matches @rsc-kit/core 0.30.53.
v0.16.0
A required_if=Field value validate tag is described as a field shown only while that field has that value (x-visible), which @rsc-kit/press 0.30.52 draws.
v0.15.0
A guard reads the page it is asked about (rsckit.PageFrom), and every function the visitor's address (rsckit.ClientIP), read only once the secret matched. Needs @rsc-kit/core 0.30.50 to send them; with an older engine both are empty. (#29)
v0.14.0
What's Changed
- Typed: a validate tag is a form's hint, and a struct keeps its field order by @ramonmalcolm10 in #26
Full Changelog: v0.13.0...v0.14.0