Skip to content

Releases

plugin-rsc@0.5.39

Choose a tag to compare

@github-actions github-actions released this 05 Nov 05:50
123c153

Features

  • rsc: allow rejecting server references during decodeReply/decodeAction (#1520) (505da21)

Bug Fixes

  • deps: update all non-major dependencies (#1517) (b3e9835)
  • deps: update all non-major dependencies (#1531) (ef758ba)
  • rsc: inline packages with react in dependencies (#1550) (d724b6b)
  • rsc: reuse server css resources element across renders (#1534) (9678b48)

Documentation

  • rsc: document barrel package workaround for validate-imports (#1519) (4ffd181)

Tests

plugin-react@6.2.1

Choose a tag to compare

@github-actions github-actions released this 02 Nov 09:15
29efd1c

Fix refreshInclude and refreshExclude options not working (#1543)

Fix mistake from #1516

plugin-react@6.2.0

Choose a tag to compare

@github-actions github-actions released this 02 Nov 07:46
d0f7234

Add refreshInclude and refreshExclude options (#1516)

Add refreshInclude and refreshExclude options to skip fast refresh for certain files that won't run in the browser.

Expand oxc-transform-react peer dependency range (#1540)

The peer dependency version range for oxc-transform-react was expanded from ^0.152.0 to >=0.152.0 <0.157.0.

Expand @rolldown/plugin-babel peer dependency range (#1541)

The peer dependency version range for @rolldown/plugin-babel was expanded from ^0.1.7 || ^0.2.0 to ^0.1.7 || ^0.2.0 || ^0.3.0.

plugin-rsc@0.5.38

Choose a tag to compare

@github-actions github-actions released this 15 Oct 02:01
2e8512f

Bug Fixes

  • deps: update react 19.3.1 (#1509) (65a1dd5)
  • rsc: skip glob dynamic import specifiers in scan build strip (#1506) (9147ee2)

Continuous Integration

  • rsc: speed up e2e matrix with test subsets and sharding (#1507) (00be872)

plugin-rsc@0.5.37

Choose a tag to compare

@github-actions github-actions released this 13 Oct 10:31
ae8da11

Features

  • rsc: expose closure captures in transformHoistInlineDirective meta (#1496) (e465056)

Bug Fixes

  • rsc: bind encrypted "use server" closures to their action id (#1499) (e77496b)
  • rsc: drop Server Function source from client sourcemaps (#1497) (6f7c8a1)
  • rsc: keep CSS wrappers out of a trailing comment when a module has no final newline (fix #1495) (#1494) (9a68f29)

Miscellaneous Chores

  • deps: update dependency typescript to v7 (#1422) (443be64)

Tests

  • rsc: remove TEST_SKIP_BUILD from e2e fixture (#1502) (bd74d49)

plugin-rsc@0.5.36

Choose a tag to compare

@github-actions github-actions released this 07 Oct 02:51
1bed9c4

Bug Fixes

  • deps: update all non-major dependencies (#1445) (ee97d2f)
  • deps: update all non-major dependencies (#1486) (98277e7)
  • deps: update dependency es-module-lexer to v3 (#1455) (f4e4a48)
  • deps: update dependency srvx to v1 (#1456) (a574a54)
  • rsc: finalize asset manifest after css (#1470) (14be507)
  • rsc: resolve facade client entry with strictExecutionOrder (#1480) (0982f02)
  • rsc: use crossOrigin: anonymous for css (#1469) (9b5ca53)

Tests

  • rsc: fix setupIsolatedFixture in ecosystem CI (#1471) (fd25651)
  • rsc: fix e2e flakes in use-cache-persistent and isolated fixture setup (#1487) (7212f34)
  • rsc: make e2e file editor async and space out writes (#1489) (8063121)
  • rsc: remove React canary checks (#1463) (df9f995)
  • rsc: run cloudflare e2e on a copy of starter-extra (#1488) (c714161)
  • rsc: wait for hydration in performance-track e2e (#1490) (bbf45d7)

plugin-react@6.1.2

Choose a tag to compare

@github-actions github-actions released this 05 Oct 10:06
ac47648

Fix HMR for compound components (#1484)

Adding or removing a component from a compound component was not handled, creating stale updates. Doing this now triggers hmr invalidate on the file and propagates the invalidation to importers.

Fix compiler.logDiagnostics option not working (#1483)

With oxc-transform-react >= 0.148, the logDiagnostics was not working. This version fixes it and requires oxc-transform-react >= 0.152 as a peer dependency if you are using the compiler option. compiler.logDiagnostics option is now deprecated and should be swapped for the builtin compiler.reportDiagnostics.

Disable refresh for non-jsx with compiler enabled (fix #1478) (#1485)

When the compiler was enabled, TS files could trigger fast refresh which would cause runtime errors. The logic now follows what the builtin oxc plugin in Vite does.

plugin-rsc@0.5.35

Choose a tag to compare

@github-actions github-actions released this 16 Sep 00:49
a309c8b

Features

Bug Fixes

Miscellaneous Chores

  • deps: update dependency @types/react-dom to ^19.2.5 (#1432) (e7c2b6d)
  • deps: update dependency @types/react-dom to ^19.2.7 (#1444) (f135533)
  • deps: update tsdown to v0.23 (#1451) (736efe2)

Code Refactoring

Tests

  • rsc: copy use cache/server mixed directive handling to examples/use-cache-persistent (#1417) (523e45b)

plugin-react@6.1.1

Choose a tag to compare

@github-actions github-actions released this 28 Aug 03:30
04cac50

Add compiler.logDiagnostics option

Recoverable React Compiler diagnostics are no longer logged by default. Set compiler.logDiagnostics to true to log them through Vite. Fatal diagnostics are always logged and fail the transform.

Respect environment sourcemap option for React Compiler transform when builder.sharedPlugins is enabled (#1439)

The React Compiler transform was using the top-level sourcemap option instead of the environment sourcemap option. This caused a problem when the experimental builder.sharedPlugins was enabled.

plugin-react@6.1.0

Choose a tag to compare

@github-actions github-actions released this 20 Aug 02:47
39b3173

Add experimental native React Compiler support (#1419)

Add experimental native React Compiler support.

You can use it by installing oxc-transform-react and enabling it via the compiler option:

npm install -D oxc-transform-react
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

export default defineConfig({
  plugins: [
     react({ compiler: true })
  ]
})