diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d8d088f1f..95de0280cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ # 11.1.5 (Unreleased) - Deprecate JSX 3 https://github.com/rescript-lang/rescript-compiler/pull/7042 +- Deprecate js_cast.res https://github.com/rescript-lang/rescript-compiler/pull/7074 # 11.1.4 diff --git a/jscomp/others/js_cast.res b/jscomp/others/js_cast.res index 07135415d9..01916604b8 100644 --- a/jscomp/others/js_cast.res +++ b/jscomp/others/js_cast.res @@ -22,6 +22,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +@@deprecated("This module is not supported anymore and will be removed in the next major version.") + external intOfBool: bool => int = "%identity" external floatOfInt: int => float = "%identity" diff --git a/jscomp/others/js_cast.resi b/jscomp/others/js_cast.resi index 8ef323b732..95afe01f09 100644 --- a/jscomp/others/js_cast.resi +++ b/jscomp/others/js_cast.resi @@ -37,6 +37,8 @@ If for any reason, the runtime representation changes, those function will be modified accordingly. */ +@@deprecated("This module is not supported anymore and will be removed in the next major version.") + /** `intOfBool(b)` returns `1` for when `b` is `true` and `0` when `b` is `false` */