[new release] server-reason-react (0.5.0)#29631
Open
davesnx wants to merge 1 commit intoocaml:masterfrom
Open
Conversation
97a25a4 to
349a37b
Compare
jmid
reviewed
Apr 2, 2026
| "odoc" {with-doc} | ||
| "ocamlformat" {= "0.28.1" & with-test} | ||
| "ocaml-lsp-server" {with-dev-setup} | ||
| "dream" {= "1.0.0~alpha8" & with-dev-setup} |
Member
There was a problem hiding this comment.
It looks like dream is now a strict with-test dependency:
https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/349a37baa45c59815f2dc7b56e76ea0458925ba8/variant/compilers,5.4,server-reason-react.0.5.0,tests
#=== ERROR while compiling server-reason-react.0.5.0 ==========================#
# context 2.5.0 | linux/x86_64 | ocaml-base-compiler.5.4.1 | pinned(https://github.com/ml-in-barcelona/server-reason-react/releases/download/0.5.0/server-reason-react-0.5.0.tbz)
# path ~/.opam/5.4/.opam-switch/build/server-reason-react.0.5.0
# command ~/.opam/opam-init/hooks/sandbox.sh build dune build -p server-reason-react -j 71 @install @runtest
# exit-code 1
# env-file ~/.opam/log/server-reason-react-8-847dd1.env
# output-file ~/.opam/log/server-reason-react-8-847dd1.out
### output ###
# File "demo/dream-nested-router/dune", line 5, characters 2-7:
# 5 | dream
# ^^^^^
# Error: Library "dream" not found.
# -> required by _build/default/demo/dream-nested-router/test_router_rsc.exe
# -> required by alias demo/dream-nested-router/runtest-test_router_rsc in
# demo/dream-nested-router/dune:2
# -> required by alias demo/dream-nested-router/runtest
I don't know if with-test subsumes with-dev-setup though - or if one should state (with-test | with-dev-setup) 🤔
Contributor
Author
There was a problem hiding this comment.
Wops, a dev only library sneak out. Pushing a fix
349a37b to
63d5257
Compare
Member
|
Tests are failing (though not completely consistently) with Is that expected? Also, a revdep ( Is this related to this release? |
Contributor
Author
|
Yeah, need to add a upper bound in styled-ppx for the ci to pass |
CHANGES: * Support Promise caching in react.client.components by @davesnx * Reorder head content exactly like react-dom/server by @davesnx * Implement hydration-compatible `useId` using React's tree-position-based algorithm, matching React 19 output. Adds `?identifier_prefix` to `renderToString`, `renderToStaticMarkup`, `renderToStream` and `render_html`. Fixes ml-in-barcelona/server-reason-react#93 * Fix `renderToString` rendering Suspense children twice (once as trial, once with markers) due to side-effectful match expression. Children are now rendered into a separate buffer * Change shape for React.Event.* since Js.t is now supported. All methods fail at runtime with `Runtime.fail_impossible_action_in_ssr` * [server-reason-react.ppx] Strip units at any position (supporting mlx difference with [@jsx] transformations) * Add runtime error with clear message when `React.cloneElement` is used with uppercase components by @davesnx * Allow `[@platform js]` and `[@browser_only]` on externals to conditionally exclude them from native builds. Fixes ml-in-barcelona/server-reason-react#170 by @davesnx * Generate `makeProps` in the PPX by @davesnx in ml-in-barcelona/server-reason-react#364 * Implement `Js.t` natively with `Js.Internal` and a type registry by @davesnx in ml-in-barcelona/server-reason-react#363 * Add `React.useActionState` by @davesnx * Add `key` into client components by @davesnx * Fix several functions in Belt to match specification (`Belt.Array.setExn`, `Belt.Array.concat`, `Belt.MutableMap.remove`, `Belt.HashMap.keepMapInPlace`, and avoid double callback evaluation) by @yasunariw in ml-in-barcelona/server-reason-react#362 * Implement `Belt.Array.getUndefined` and annotate `Belt.Array.push` as not implemented by @davesnx * Remove deprecated folder from Belt and reorganise Belt tests by @davesnx * Fix leaking `was_previous` when node was closing by @davesnx in ml-in-barcelona/server-reason-react#361 * Fix `React.cloneElement` on `Static {}` components by @davesnx in ml-in-barcelona/server-reason-react#359 * Require ppxlib >= 0.36 by @davesnx
b7a9c7d to
4c0065b
Compare
mseri
added a commit
that referenced
this pull request
Apr 4, 2026
Member
|
Thanks a lot. One last noisy cram test failure: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rendering React components on the server natively
CHANGES:
React.cloneElementis used with uppercase components by @davesnx[@platform js]and[@browser_only]on externals to conditionally exclude them from native builds. Fixes melange externals should be marked as browser_only, instead of raising ml-in-barcelona/server-reason-react#170 by @davesnxmakePropsin the PPX by @davesnx in [I-112] Generate makeProps in the ppx ml-in-barcelona/server-reason-react#364Js.tnatively withJs.Internaland a type registry by @davesnx in Implement Js.t natively ml-in-barcelona/server-reason-react#363React.useActionStateby @davesnxkeyinto client components by @davesnxBelt.Array.setExn,Belt.Array.concat,Belt.MutableMap.remove,Belt.HashMap.keepMapInPlace, and avoid double callback evaluation) by @yasunariw in Fix some functions in Belt to match specification ml-in-barcelona/server-reason-react#362Belt.Array.getUndefinedand annotateBelt.Array.pushas not implemented by @davesnxwas_previouswhen node was closing by @davesnx in Fix leaking was previous when node was closing ml-in-barcelona/server-reason-react#361React.cloneElementonStatic {}components by @davesnx in React.cloneElement a Static {} ml-in-barcelona/server-reason-react#359