|
15 | 15 | #### :boom: Breaking Change |
16 | 16 |
|
17 | 17 | - The legacy rescript cli can be called through rewatch via `rewatch legacy`. Arguments to rewatch need to be passed after the subcommand. Argument `--compiler-args` is now a subcommand `compiler-args`. https://github.com/rescript-lang/rescript/pull/7551 |
18 | | -- Rename `Belt` functions ending with `Exn` to end with `OrThrow` https://github.com/rescript-lang/rescript/pull/7581 The following `Exn` functions are now deprecated: |
19 | | - - `Belt.Array.getExn` → `Belt.Array.getOrThrow` |
20 | | - - `Belt.Array.setExn` → `Belt.Array.setOrThrow` |
21 | | - - `Belt.Map.getExn` → `Belt.Map.getOrThrow` |
22 | | - - `Belt.MutableMap.getExn` → `Belt.MutableMap.getOrThrow` |
23 | | - - `Belt.Set.getExn` → `Belt.Set.getOrThrow` |
24 | | - - `Belt.MutableSet.getExn` → `Belt.MutableSet.getOrThrow` |
25 | | - - `Belt.List.getExn` → `Belt.List.getOrThrow` |
26 | | - - `Belt.List.tailExn` → `Belt.List.tailOrThrow` |
27 | | - - `Belt.List.headExn` → `Belt.List.headOrThrow` |
28 | | - - `Belt.MutableQueue.peekExn` → `Belt.MutableQueue.peekOrThrow` |
29 | | - - `Belt.MutableQueue.popExn` → `Belt.MutableQueue.popOrThrow` |
30 | | - - `Belt.Option.getExn` → `Belt.Option.getOrThrow` |
31 | | - - `Belt.Result.getExn` → `Belt.Result.getOrThrow` |
32 | | - - Old functions remain available but are marked as deprecated with guidance to use the new `OrThrow` variants. |
| 18 | + |
| 19 | +#### :rocket: New Feature |
| 20 | + |
| 21 | +- Add `OrThrow` aliases for `Belt` functions ending with `Exn`. https://github.com/rescript-lang/rescript/pull/7581, https://github.com/rescript-lang/rescript/pull/7590 The following aliases have been added: |
| 22 | + - `Belt.Array.getOrThrow` |
| 23 | + - `Belt.Array.setOrThrow` |
| 24 | + - `Belt.Map.getOrThrow` |
| 25 | + - `Belt.MutableMap.getOrThrow` |
| 26 | + - `Belt.Set.getOrThrow` |
| 27 | + - `Belt.MutableSet.getOrThrow` |
| 28 | + - `Belt.List.getOrThrow` |
| 29 | + - `Belt.List.tailOrThrow` |
| 30 | + - `Belt.List.headOrThrow` |
| 31 | + - `Belt.MutableQueue.peekOrThrow` |
| 32 | + - `Belt.MutableQueue.popOrThrow` |
| 33 | + - `Belt.Option.getOrThrow` |
| 34 | + - `Belt.Result.getOrThrow` |
33 | 35 |
|
34 | 36 | #### :bug: Bug fix |
35 | 37 |
|
|
0 commit comments