Skip to content

Deprecate js_cast.res #7074

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions jscomp/others/js_cast.res
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions jscomp/others/js_cast.resi
Original file line number Diff line number Diff line change
Expand Up @@ -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`
*/
Expand Down