[new release] js_of_ocaml (8 packages) (6.3.0)#29348
Conversation
CHANGES: ## Features/Changes * Misc: install shell completion script generated by cmdliner (ocsigen/js_of_ocaml#2140) * Compiler/wasm: omit code pointer from closures when not used (ocsigen/js_of_ocaml#2059, ocsigen/js_of_ocaml#2093) * Compiler/wasm: number unboxing (ocsigen/js_of_ocaml#2069, ocsigen/js_of_ocaml#2101) * Compiler/wasm: specialization of number comparisons and bigarray operations (ocsigen/js_of_ocaml#1954) * Compiler/wasm: make the type of some Wasm primitives more precise (ocsigen/js_of_ocaml#2100) * Compiler: reference unboxing (ocsigen/js_of_ocaml#1958) * Compiler: js-parser: support import/export with attributes * Compiler: js-parser: support 'using X = E' for resource management (ocsigen/js_of_ocaml#2143) * Compiler: js-parser: support decorators * Compiler: js-parser: support html-comments * Compiler: avoid unnecessary boolean-to-integer conversions (ocsigen/js_of_ocaml#2168) * Runtime: improved handling of NaNs (ocsigen/js_of_ocaml#2110) * Lib: allow to reference values from the runtime (ocsigen/js_of_ocaml#2086) * Lib: add `Dom_html.onload` for WASM-safe load handling (ocsigen/js_of_ocaml#1948) * Runtime: make eval functions more robust (ocsigen/js_of_ocaml#2108) * Compiler: added a constant sinking pass (ocsigen/js_of_ocaml#2167) ## Bug fixes * Compiler: fix `Global_flow.do_escape` monotonicity * Compiler: fix static eval of `caml_nativeint_to_int` * Compiler: remove invalid conditional simplification * Lib: fix `characterData.substringData` method name typo in Dom module * Lib: fix various Dom_html bindings (submitEvent, mediaQueryListEvent, pointerEvent, element, inputElement, tableElement types and deprecations) * Lib: fix `numberList` type in Dom_svg to use `number_t` * Lib: fix `eventSource.url` type to use `js_string t` * Lib: fix `file.lastModifiedDate` type to use `Js.date t`, add `lastModified` * Lib: fix `Form.get_form_elements` infinite loop bug * Lib: fix `position.timestamp` type in Geolocation module * Lib: remove non-existent `setDay` and `setUTCDay` methods from `Js.date` * Lib: fix `_ACTIVE_TEXTURE_` type in WebGL to use `textureUnit` * Compiler: fix purity of comparison functions (again) (ocsigen/js_of_ocaml#2092) * Compiler: fix inlining (ocsigen/js_of_ocaml#2107) * Compiler: allow arrow functions in for loops * Ppx: disable spurious warning for unused "self" in object literal (ocsigen/js_of_ocaml#2128) * Ppx: fix labelled arguments for methods (ocsigen/js_of_ocaml#2126) * Runtime/wasm: fix Unix.times (ocsigen/js_of_ocaml#2096) * Runtime: runtime with target-env=browser should not rely on "require(..)" (ocsigen/js_of_ocaml#2129) * Runtime: fix fake filesystem with path containing special regexp chars. (ocsigen/js_of_ocaml#2132) * Runtime/wasm: fix unmarshalling of compressed data (ocsigen/js_of_ocaml#2141) * Runtime: fix compilation of loops at start of exception handlers (ocsigen/js_of_ocaml#2151) * Compiler: fix parallel renaming (ocsigen/js_of_ocaml#2156)
|
There are some failures that we should check, I don't remember them from the past: |
|
I'm also not sure if I should fix ocsigen/js_of_ocaml#2181 before the release |
|
I tsuspect that the timmy-lwt error is due to a recent version of lwt. |
|
@hhugo that would be helpful - I use js-of-ocaml all the time in a monorepo |
|
The data-encoding errors are unrelated. Tests fail both in native and Js. The test wrongly use |
|
The data-encoding issue is not new, it was spotted in #28907 |
|
I think this is good to go. |
|
I have opened #29390 for timmy-lwt |
|
debian-12, ubuntu-22.04, and ubuntu-24.04 offer The remaining
|
jmid
left a comment
There was a problem hiding this comment.
LGTM thanks!
FTR, CI is failing
- revdeps (binaryen, frama_c_codex, data-encoding)
- on platforms missing a system binaryen package (Centos + OpenSuse Leap)
- opam-2.0 workflows
- a FreeBSD workflow with an internal file descriptor error
Compiler from OCaml bytecode to JavaScript
CHANGES:
Features/Changes
Dom_html.onloadfor WASM-safe load handling ([BUG] Event handler not being executed ocsigen/js_of_ocaml#1948)Bug fixes
Global_flow.do_escapemonotonicitycaml_nativeint_to_intcharacterData.substringDatamethod name typo in Dom modulenumberListtype in Dom_svg to usenumber_teventSource.urltype to usejs_string tfile.lastModifiedDatetype to useJs.date t, addlastModifiedForm.get_form_elementsinfinite loop bugposition.timestamptype in Geolocation modulesetDayandsetUTCDaymethods fromJs.date_ACTIVE_TEXTURE_type in WebGL to usetextureUnit