From ca483e9d4cb17082e3eebfa085cfcafd8469531c Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Fri, 1 May 2026 19:03:18 -0300 Subject: [PATCH] Deprecate `Stdlib_Error` and `Stdlib_Exn` modules in favor of `JsError`/`JsExn` --- packages/@rescript/runtime/Stdlib_Error.resi | 1 + packages/@rescript/runtime/Stdlib_Exn.resi | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/@rescript/runtime/Stdlib_Error.resi b/packages/@rescript/runtime/Stdlib_Error.resi index 3abc756f860..86327ba7130 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 5435507bc7b..e82347c6911 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({