|
2 | 2 | author: rescript-team |
3 | 3 | date: "2025-11-25" |
4 | 4 | previewImg: /blog/compiler_release_12_0.webp |
| 5 | +articleImg: /blog/compiler_release_12_0.webp |
5 | 6 | badge: release |
6 | 7 | title: "Announcing ReScript 12" |
7 | 8 | description: | |
@@ -38,7 +39,7 @@ Projects that previously published custom runtime shims should revisit their set |
38 | 39 | ### Updated bitwise operator surface |
39 | 40 |
|
40 | 41 | Legacy OCaml-style bitwise functions such as `land`, `lor`, and `lsl` are deprecated. |
41 | | -They continue to work in v12 with warnings but will be removed in v13. |
| 42 | +They continue to work in v12 with warnings but will be removed in a future version. |
42 | 43 | ReScript now prefers unified operator syntax: `&&&`, `|||`, `^^^`, and `~~~` cover AND, OR, XOR, and NOT for both `int` and `bigint`. |
43 | 44 |
|
44 | 45 | ### API naming alignment |
@@ -89,7 +90,7 @@ Projects attempting to compile with v3 will receive an explicit error, ensuring |
89 | 90 | The standard library continues its shift away from OCaml-specific aliases. |
90 | 91 | Functions such as `succ`, `pred`, `abs_float`, `string_of_int`, `fst`, `raise`, and the `char` type are now deprecated. |
91 | 92 | The recommended replacements are the JavaScript-aligned counterparts in `Int`, `Float`, `Bool`, `Pair`, and related modules, alongside the `throw` keyword for exceptions. |
92 | | -References to the OCaml composition operators (`|>`, `@@`) now warn and will be removed in v13; the ReScript pipe operator `->` replaces them. |
| 93 | +References to the OCaml composition operators (`|>`, `@@`) now warn and will be removed in a future version; the ReScript pipe operator `->` replaces them. |
93 | 94 | The migration tool highlights deprecated usage, and incremental cleanups are encouraged so your codebase is ready before the next major release. |
94 | 95 |
|
95 | 96 | ## New features |
|
0 commit comments