|
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 | 33 |
|
19 | 34 | #### :bug: Bug fix |
20 | 35 |
|
|
51 | 66 | - `List.getExn` → `List.getOrThrow` |
52 | 67 | - `List.tailExn` → `List.tailOrThrow` |
53 | 68 | - `List.headExn` → `List.headOrThrow` |
54 | | - - `Belt.Array.getExn` → `Belt.Array.getOrThrow` |
55 | | - - `Belt.Array.setExn` → `Belt.Array.setOrThrow` |
56 | | - - `Belt.Map.getExn` → `Belt.Map.getOrThrow` |
57 | | - - `Belt.MutableMap.getExn` → `Belt.MutableMap.getOrThrow` |
58 | | - - `Belt.Set.getExn` → `Belt.Set.getOrThrow` |
59 | | - - `Belt.MutableSet.getExn` → `Belt.MutableSet.getOrThrow` |
60 | | - - `Belt.List.getExn` → `Belt.List.getOrThrow` |
61 | | - - `Belt.List.tailExn` → `Belt.List.tailOrThrow` |
62 | | - - `Belt.List.headExn` → `Belt.List.headOrThrow` |
63 | | - - `Belt.MutableQueue.peekExn` → `Belt.MutableQueue.peekOrThrow` |
64 | | - - `Belt.MutableQueue.popExn` → `Belt.MutableQueue.popOrThrow` |
65 | | - - `Belt.Option.getExn` → `Belt.Option.getOrThrow` |
66 | | - - `Belt.Result.getExn` → `Belt.Result.getOrThrow` |
67 | 69 | - Old functions remain available but are marked as deprecated with guidance to use the new `OrThrow` variants. |
68 | | - - https://github.com/rescript-lang/rescript/pull/7518, https://github.com/rescript-lang/rescript/pull/7554, https://github.com/rescript-lang/rescript/pull/7581 |
| 70 | + - https://github.com/rescript-lang/rescript/pull/7518, https://github.com/rescript-lang/rescript/pull/7554 |
69 | 71 |
|
70 | 72 | #### :rocket: New Feature |
71 | 73 |
|
|
0 commit comments