package virtual_dom
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=812711b4d5ce634a413580cd7096482de8d71abec9ae37bb01f7c0dcec2968ec
Description
The library itself may be found at https://github.com/Matt-Esch/virtual-dom.
Published: 26 May 2024
README
"Virtual_dom: a virtual DOM diffing library"
This library is an OCaml wrapper of Matt Esch's virtual-dom library. It provides a simple, immutable representation of a desired state of the DOM, as well as primitives for updating the real DOM in the browser to match that, both by slamming the entire DOM in place, and by computing diffs between successive virtual-DOMs, and applying the resulting patch to the real DOM.
It has been vendored internally as the external library has gone unsupported for many years and we needed some modifications.
Contributing
Please exercise a high degree of caution if you modify this library. Our testing infrastructure doesn't support robust browser testing, so any changes here should be thoroughly smoke tested on a variety of apps with different usecases and potential DOM ~ab~uses. We intend this code to be as stable/unchanging as possible because of the difficult testing situation and near ubiquitous use in web apps at Jane Street.
Dependencies (15)
-
uri
>= "3.0.0"
-
tyxml
>= "4.3.0"
-
lambdasoup
>= "0.6.3"
-
js_of_ocaml-ppx
>= "5.1.1" & < "5.7.0"
-
js_of_ocaml
>= "5.1.1" & < "5.7.0"
-
gen_js_api
>= "1.0.8"
-
dune
>= "3.11.0"
-
base64
>= "3.4.0"
-
stdio
>= "v0.17" & < "v0.18"
-
ppx_jane
>= "v0.17" & < "v0.18"
-
js_of_ocaml_patches
>= "v0.17" & < "v0.18"
-
core_kernel
>= "v0.17" & < "v0.18"
-
core
>= "v0.17" & < "v0.18"
-
base
>= "v0.17" & < "v0.18"
-
ocaml
>= "5.1.0"
Dev Dependencies
None
Used by (9)
-
bonsai
>= "v0.17.0"
- codicons
-
incr_dom
>= "v0.17.0"
-
incr_dom_interactive
>= "v0.17.0"
-
incr_dom_partial_render
>= "v0.17.0"
-
incr_dom_sexp_form
>= "v0.17.0"
-
memtrace_viewer
>= "v0.17.0"
-
ppx_css
>= "v0.17.0"
- virtual_dom_toplayer
Conflicts
None