Skip to content

Commit 7b15027

Browse files
committed
Update CHANGELOG
1 parent 27acb16 commit 7b15027

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

CHANGELOG.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,23 @@
1515
#### :boom: Breaking Change
1616

1717
- 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`
3335

3436
#### :bug: Bug fix
3537

0 commit comments

Comments
 (0)