|
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.Map.getExn` → `Belt.Map.getOrThrow` |
| 20 | + - `Belt.MutableMap.getExn` → `Belt.MutableMap.getOrThrow` |
| 21 | + - `Belt.Set.getExn` → `Belt.Set.getOrThrow` |
| 22 | + - `Belt.MutableSet.getExn` → `Belt.MutableSet.getOrThrow` |
| 23 | + - `Belt.List.getExn` → `Belt.List.getOrThrow` |
| 24 | + - `Belt.List.tailExn` → `Belt.List.tailOrThrow` |
| 25 | + - `Belt.List.headExn` → `Belt.List.headOrThrow` |
| 26 | + - `Belt.MutableQueue.peekExn` → `Belt.MutableQueue.peekOrThrow` |
| 27 | + - `Belt.MutableQueue.popExn` → `Belt.MutableQueue.popOrThrow` |
| 28 | + - `Belt.Option.getExn` → `Belt.Option.getOrThrow` |
| 29 | + - `Belt.Result.getExn` → `Belt.Result.getOrThrow` |
| 30 | + - Old functions remain available but are marked as deprecated with guidance to use the new `OrThrow` variants. |
18 | 31 |
|
19 | 32 | #### :bug: Bug fix
|
20 | 33 |
|
|
53 | 66 | - `List.headExn` → `List.headOrThrow`
|
54 | 67 | - `Belt.Array.getExn` → `Belt.Array.getOrThrow`
|
55 | 68 | - `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