diff --git a/CHANGELOG.md b/CHANGELOG.md index c7cf6c436c..7bebcf6526 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ - Use a single vendored @rescript/react package across the repo. https://github.com/rescript-lang/rescript/pull/7525 - Improve deprecated attribute extraction and support record form. https://github.com/rescript-lang/rescript/pull/8396 - Refactor analysis to decouple I/O from core logic. https://github.com/rescript-lang/rescript/pull/8426 +- Deprecate `Stdlib_Error` and `Stdlib_Exn` modules in favor of `JsError/JsExn`. https://github.com/rescript-lang/rescript/pull/8404 #### :house: Internal diff --git a/packages/@rescript/runtime/Stdlib_Error.resi b/packages/@rescript/runtime/Stdlib_Error.resi index 3abc756f86..86327ba713 100644 --- a/packages/@rescript/runtime/Stdlib_Error.resi +++ b/packages/@rescript/runtime/Stdlib_Error.resi @@ -3,6 +3,7 @@ Functions for working with JavaScript exceptions. See [`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) on MDN. */ +@@deprecated("Use `JsError` module") /** Represents a JavaScript exception. */ @deprecated({ diff --git a/packages/@rescript/runtime/Stdlib_Exn.resi b/packages/@rescript/runtime/Stdlib_Exn.resi index 5435507bc7..e82347c691 100644 --- a/packages/@rescript/runtime/Stdlib_Exn.resi +++ b/packages/@rescript/runtime/Stdlib_Exn.resi @@ -7,6 +7,7 @@ /*** Provide utilities for dealing with JS exceptions. */ +@@deprecated("Use `JsExn` module") /** Represents a JS exception */ @deprecated({