Skip to content

Commit 32161a3

Browse files
committed
Merge branch 'master' into jsx-ast
2 parents b57f2df + e78c8cd commit 32161a3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+239
-563
lines changed

CHANGELOG.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@
1010
> - :house: [Internal]
1111
> - :nail_care: [Polish]
1212
13-
# 12.0.0-alpha.9 (Unreleased)
13+
# 12.0.0-alpha.10 (Unreleased)
14+
15+
#### :rocket: New Feature
16+
17+
- Add popover attributes to JsxDOM.domProps. https://github.com/rescript-lang/rescript/pull/7317
18+
19+
#### :house: Internal
20+
21+
- Clean up legacy tags handling. https://github.com/rescript-lang/rescript/pull/7309
22+
23+
# 12.0.0-alpha.9
1424

1525
#### :boom: Breaking Change
1626

@@ -36,14 +46,14 @@
3646
- Fix runtime type check for Object in untagged variants when one variant case is `null`. https://github.com/rescript-lang/rescript/pull/7303
3747
- Fix files that were being truncated when sent to the CDN over FTP. https://github.com/rescript-lang/rescript/pull/7306
3848
- Fix better editor completion for applications. https://github.com/rescript-lang/rescript/pull/7291
39-
- Fix @react.componentWithProps no longer works with @directive("'use memo'"). https://github.com/rescript-lang/rescript/pull/7300
49+
- Fix `@react.componentWithProps` no longer works with `@directive("'use memo'")`. https://github.com/rescript-lang/rescript/pull/7300
4050

4151
#### :house: Internal
4252

43-
- Remove ignore in res_scanner.ml . https://github.com/rescript-lang/rescript/pull/7280
53+
- Remove `ignore` in `res_scanner.ml`. https://github.com/rescript-lang/rescript/pull/7280
4454
- Use the new stdlib modules in the analysis tests. https://github.com/rescript-lang/rescript/pull/7295
4555
- Build with OCaml 5.3.0. https://github.com/rescript-lang/rescript/pull/7294
46-
- Simplify JSON.Decode implementation. https://github.com/rescript-lang/rescript/pull/7304
56+
- Simplify `JSON.Decode` implementation. https://github.com/rescript-lang/rescript/pull/7304
4757

4858
# 12.0.0-alpha.8
4959

CONTRIBUTING.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ Make sure you have [opam](https://opam.ocaml.org/doc/Install.html) installed on
4747
opam init
4848

4949
# Any recent OCaml version works as a development compiler
50-
opam switch create 5.3.0 # can also create local switch with opam switch create
50+
# Can also create local switch with opam switch create
51+
# If you get "No compiler matching `5.3.0' found" error,
52+
# then you need to run `opam update && opam upgrade` first
53+
opam switch create 5.3.0
5154

5255
# Install dev dependencies from OPAM
5356
opam install . --deps-only --with-test --with-dev-setup -y

compiler/common/bs_version.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
* You should have received a copy of the GNU Lesser General Public License
2222
* along with this program; if not, write to the Free Software
2323
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
24-
let version = "12.0.0-alpha.9"
24+
let version = "12.0.0-alpha.10"
2525
let header = "// Generated by ReScript, PLEASE EDIT WITH CARE"
2626
let package_name = ref "rescript"

compiler/core/js_exp_make.ml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,6 @@ let eight_int_literal : t =
338338
let nine_int_literal : t =
339339
{expression_desc = Number (Int {i = 9l; c = None}); comment = None}
340340

341-
let obj_int_tag_literal : t =
342-
{expression_desc = Number (Int {i = 248l; c = None}); comment = None}
343-
344341
let int ?comment ?c i : t = {expression_desc = Number (Int {i; c}); comment}
345342

346343
let bigint ?comment sign i : t =
@@ -364,7 +361,6 @@ let small_int i : t =
364361
| 7 -> seven_int_literal
365362
| 8 -> eight_int_literal
366363
| 9 -> nine_int_literal
367-
| 248 -> obj_int_tag_literal
368364
| i -> int (Int32.of_int i)
369365

370366
let true_ : t = {comment = None; expression_desc = Bool true}

compiler/core/js_exp_make.mli

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ val zero_int_literal : t
132132

133133
(* val one_int_literal : t *)
134134
val zero_float_lit : t
135-
(* val obj_int_tag_literal : t *)
136135

137136
val zero_bigint_literal : t
138137

compiler/core/js_of_lam_block.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ let make_block mutable_flag (tag_info : Lam_tag_info.t) tag args =
3333

3434
let field (field_info : Lam_compat.field_dbg_info) e (i : int32) =
3535
match field_info with
36-
| Fld_tuple | Fld_array ->
36+
| Fld_tuple ->
3737
E.array_index_by_int ?comment:(Lam_compat.str_of_field_info field_info) e i
3838
| Fld_poly_var_content -> E.poly_var_value_access e
3939
| Fld_poly_var_tag -> E.poly_var_tag_access e

compiler/core/lam_analysis.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ let rec no_side_effects (lam : Lam.t) : bool =
9797
(* TODO *)
9898
| Praw_js_code _
9999
(* byte swap *)
100-
| Parraysets | Parraysetu | Poffsetref _ | Praise | Plazyforce | Psetfield _
101-
->
100+
| Parraysets | Parraysetu | Poffsetref _ | Praise | Psetfield _ ->
102101
false)
103102
| Llet (_, _, arg, body) -> no_side_effects arg && no_side_effects body
104103
| Lswitch (_, _) -> false

compiler/core/lam_compat.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,10 @@ type field_dbg_info = Lambda.field_dbg_info =
7373
| Fld_extension
7474
| Fld_variant
7575
| Fld_cons
76-
| Fld_array
7776

7877
let str_of_field_info (x : field_dbg_info) : string option =
7978
match x with
80-
| Fld_array | Fld_extension | Fld_variant | Fld_cons | Fld_poly_var_tag
79+
| Fld_extension | Fld_variant | Fld_cons | Fld_poly_var_tag
8180
| Fld_poly_var_content | Fld_tuple ->
8281
None
8382
| Fld_record {name; _}

compiler/core/lam_compat.mli

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ type field_dbg_info = Lambda.field_dbg_info =
3737
| Fld_extension
3838
| Fld_variant
3939
| Fld_cons
40-
| Fld_array
4140

4241
val str_of_field_info : field_dbg_info -> string option
4342

compiler/core/lam_compile_primitive.ml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -605,13 +605,3 @@ let translate output_prefix loc (cxt : Lam_compile_context.t)
605605
match args with
606606
| [e1] -> E.runtime_call Primitive_modules.hash "hash_final_mix" args
607607
| _ -> assert false)
608-
| Plazyforce
609-
(* FIXME: we don't inline lazy force or at least
610-
let buckle handle it
611-
*)
612-
(* let parm = Ident.create "prim" in
613-
Lfunction(Curried, [parm],
614-
Matching.inline_lazy_force (Lvar parm) Location.none)
615-
It is inlined, this should not appear here *)
616-
->
617-
assert false

0 commit comments

Comments
 (0)