Skip to content

Releases

v0.22.0

Choose a tag to compare

@ramonmalcolm10 ramonmalcolm10 released this 24 Nov 09:23
28f6137

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

Choose a tag to compare

@ramonmalcolm10 ramonmalcolm10 released this 20 Nov 13:05
90742c7

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

Choose a tag to compare

@ramonmalcolm10 ramonmalcolm10 released this 19 Nov 07:16
9c14e05

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

Choose a tag to compare

@ramonmalcolm10 ramonmalcolm10 released this 16 Nov 09:11
2c0807a

Breaking

  • Purge url (#38): CDN_PURGE_URL is now the only name read; RSC_PURGE_URL is removed. HomeportPurger is now CDNPurger.

Matches @rsc-kit/core 0.38 and rsc-kit/laravel 0.24.

v0.18.0

Choose a tag to compare

@ramonmalcolm10 ramonmalcolm10 released this 14 Nov 08:04
b877162

Added

  • rsckit.ClientUserAgent(ctx) — the visitor's User-Agent, which the renderer sends on every host call as X-Rsc-Client-User-Agent (rsc-kit 0.35.0). Empty with an engine before 0.35.0, and when the page renders as nobody. (#37)

Docs

  • README: a note on Content-Security-Policy. (#35)

v0.17.0

Choose a tag to compare

@ramonmalcolm10 ramonmalcolm10 released this 08 Nov 14:43
e91589f

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

Choose a tag to compare

@ramonmalcolm10 ramonmalcolm10 released this 08 Nov 12:26
ac0a478

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

Choose a tag to compare

@ramonmalcolm10 ramonmalcolm10 released this 07 Nov 19:26
297e298

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

Choose a tag to compare

@ramonmalcolm10 ramonmalcolm10 released this 07 Nov 14:53
45f4b3e

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

Choose a tag to compare

@ramonmalcolm10 ramonmalcolm10 released this 07 Nov 05:46
b8f2ef5

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