github vitejs/vite-plugin-react plugin-rsc@0.5.33

one month ago

Features

  • rsc: add ability to access client entry URL from ssr environment and deprecate loadBootstrapScriptContent (#1360) (c2e0273)
  • rsc: allow transformWrapExport filter by node ast (#1385) (64ae63c)
  • rsc: allow proxy export filter by node ast (#1397) (2fee299)
  • rsc: provide ast node value metadata in transformHoistInlineDirective + update example to exclude undeclared caller arguments for use cache cache keys (inline directive) (#1404) (cd829da)
  • rsc: support hoisting with runtime wrapper in transformHoistInlineDirective + add callable use cache example (#1330) (0f45d15)

Bug Fixes

  • rsc: align transform API types with Vite AST (#1351) (2906fbf)
  • rsc: avoid rewriting filtered exports in transformWrapExport (#1387) (fba021f)
  • rsc: reject static non-function exports for use server file (#1383) (c046a90)
  • rsc: reject uninitialized export in use server file (#1384) (96f3cdd)
  • rsc: treat strings as directives only at the top (#1396) (fcb0ca5)
  • rsc: use module export effect transform for use server file directive (#1355) (640d7d7)

Documentation

  • rsc: prefer /rsc/server and /rsc/client entry points over /rsc (#1345) (8d4b7f2)

Miscellaneous Chores

  • deps: update react-related dependencies (#1374) (ad9d77c)
  • rsc: add use cache example with closure encryption (#1398) (f97d959)
  • rsc: add action request routing example with cross-environment server reference module reachability (#1341) (b8c9264)
  • rsc: align example framework baseline (#1344) (317f769)
  • rsc: remove stale source map todo in transformServerActionServer (#1354) (88f7f0c)
  • rsc: update action reachability example to validate progressive form action (#1364) (793a994)
  • rsc: update example to exclude undeclared caller arguments for use cache cache keys (file directive only) (#1401) (b0521cc)

Code Refactoring

Tests

  • rsc: add e2e for react source map features (#1358) (9db4976)
  • rsc: add readable source map snapshots (#1368) (c185eaa)
  • rsc: add test case for use cache form action cache hits after hydrated reload (#1402) (d10e2ae)
  • rsc: add transform source map fixtures (#1365) (7f0d3c3)
  • rsc: decrypt cache captures once in use cache example (#1403) (42ce5d4)
  • rsc: fail fast when fixture server exits (#1367) (9cb1fda)
  • rsc: invoke re-exported server reference (#1376) (001fe79)
  • rsc: migrate hoist output fixtures (#1406) (c5683a6)
  • rsc: migrate transform output fixtures (#1399) (e208d99)
  • rsc: test use server transform function name preservation (#1366) (8a4439a)
  • rsc: verify server action closure encryption (#1400) (8629f28)

Continuous Integration

Don't miss a new vite-plugin-react release

NewReleases is sending notifications on new releases.