Skip to content

Commit 11b5878

Browse files
committed
deprecate Exn module
1 parent 8d86e62 commit 11b5878

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Next version
44

5-
- BREAKING: Remove `Exn` module. https://github.com/rescript-association/rescript-core/pull/230
5+
- Deprecated `Exn` module. Use the `Error` module instead. https://github.com/rescript-association/rescript-core/pull/230
66

77
## 1.5.2
88

src/RescriptCore.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ var $$BigUint64Array;
8282

8383
var $$Intl;
8484

85+
var Exn;
86+
8587
var $$Option;
8688

8789
var List;
@@ -131,6 +133,7 @@ export {
131133
$$BigInt64Array ,
132134
$$BigUint64Array ,
133135
$$Intl ,
136+
Exn ,
134137
$$Option ,
135138
List ,
136139
Result ,

src/RescriptCore.res

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ async function main() {
9494
*/
9595
external import: 'a => promise<'a> = "#import"
9696

97+
@deprecated("Use `Error` module instead")
98+
module Exn = Js.Exn
99+
97100
module Option = Core__Option
98101
module List = Core__List
99102
module Result = Core__Result

0 commit comments

Comments
 (0)