Skip to content

Commit 1d56447

Browse files
committed
[new release] server-reason-react (0.3.0)
CHANGES: ## 0.2.0 - Remove data-reactroot attr from ReactDOM.renderToString ml-in-barcelona/server-reason-react#129 by @pedrobslisboa - Make useUrl return the provided serverUrl ml-in-barcelona/server-reason-react#125 by @purefunctor - Replace Js.Re implemenation from `pcre` to quickjs b1a3e225cdad1298d705fbbd9618e15b0427ef0f by @davesnx - Remove Belt.Array.push ml-in-barcelona/server-reason-react#122 by @davesnx ## 0.1.0 Initial release of server-reason-react, includes: - Server-side rendering of ReasonReact components (renderToString, renderToStaticMarkup & renderToLwtStream) - `server-reason-react.browser_ppx` for skipping code from the server - `server-reason-react.melange_ppx` for enabling melange bindings and extensions which run on the server - `server-reason-react.belt` a native Belt implementation - `server-reason-react.js` a native Js implementation (unsafe and limited) - `server-reason-react.url` and `server-reason-react.url-native` a universal library with both implementations to work with URLs on the server and the client - `server-reason-react.promise` and `server-reason-react.promise-native` a universal library with both implementations to work with Promises on the server and the client. Based on https://github.com/aantron/promise - `server-reason-react.melange-fetch` a fork of melange-fetch which is a melange library to fetch data on the client via the Fetch API. This fork is to be able to compile it on the server (not running). - `server-reason-react.webapi` a fork of melange-webapi which is a melange library to work with the Web API on the client. This fork is to be able to compile it on the server (not running).
1 parent 9a084ee commit 1d56447

File tree

1 file changed

+57
-0
lines changed
  • packages/server-reason-react/server-reason-react.0.3.0

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
opam-version: "2.0"
2+
synopsis: "Rendering React components on the server natively"
3+
maintainer: ["David Sancho <[email protected]>"]
4+
authors: ["David Sancho <[email protected]>"]
5+
license: "MIT"
6+
homepage: "https://github.com/ml-in-barcelona/server-reason-react"
7+
bug-reports: "https://github.com/ml-in-barcelona/server-reason-react/issues"
8+
depends: [
9+
"dune" {>= "3.9"}
10+
"ocaml" {>= "5.0.0"}
11+
"reason" {>= "3.10.0"}
12+
"melange" {>= "3.0.0"}
13+
"ppxlib" {> "0.23.0"}
14+
"quickjs" {>= "0.1.1"}
15+
"promise" {>= "1.1.2"}
16+
"lwt" {>= "5.6.0"}
17+
"lwt_ppx" {>= "2.1.0"}
18+
"uri" {>= "4.2.0"}
19+
"integers"
20+
"alcotest" {with-test}
21+
"alcotest-lwt" {with-test}
22+
"fmt" {with-test}
23+
"merlin" {with-test}
24+
"odoc" {with-doc}
25+
"ocamlformat" {= "0.26.1" & with-test}
26+
"ocaml-lsp-server" {with-test}
27+
"tiny_httpd" {with-test}
28+
"melange-webapi" {with-test}
29+
"reason-react" {with-test}
30+
"melange-webapi" {with-test}
31+
"reason-react-ppx" {with-test}
32+
]
33+
dev-repo: "git+https://github.com/ml-in-barcelona/server-reason-react.git"
34+
# build command is custom to add "@new-doc"
35+
build: [
36+
["dune" "subst"] {dev}
37+
[
38+
"dune"
39+
"build"
40+
"-p"
41+
name
42+
"-j"
43+
jobs
44+
"@install"
45+
"@runtest" {with-test}
46+
"@new-doc" {with-doc}
47+
]
48+
]
49+
url {
50+
src:
51+
"https://github.com/ml-in-barcelona/server-reason-react/releases/download/0.3.0/server-reason-react-0.3.0.tbz"
52+
checksum: [
53+
"sha256=2a6fc7197d251dc91babcf22cb6987e1d07e91ae631cc62a893df2c6da6b49b5"
54+
"sha512=c6ed6eb39b046b698844e561cf9a42a866e4df632a6e495a6473ba629ecd9ee534db0b5b42737776d9a4b15376bea1380b77749228c88a0fc0f6b10ead4b3a01"
55+
]
56+
}
57+
x-commit-hash: "702a5cd3c3fcc852b0d007d9f5782a69f844b4f9"

0 commit comments

Comments
 (0)