From 674273bde14f5f26ceb70f1efcf894bcdfd3e477 Mon Sep 17 00:00:00 2001 From: Woonki Moon Date: Thu, 4 May 2023 17:55:09 +0900 Subject: [PATCH 1/2] deprecate -bs-super-errors flag for backward compat --- jscomp/bsc/rescript_compiler_main.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jscomp/bsc/rescript_compiler_main.ml b/jscomp/bsc/rescript_compiler_main.ml index d4513248e5..6a4d63173c 100644 --- a/jscomp/bsc/rescript_compiler_main.ml +++ b/jscomp/bsc/rescript_compiler_main.ml @@ -292,6 +292,9 @@ let buckle_script_flags : (string * Bsc_args.spec * string) array = (******************************************************************************) + "-bs-super-errors", unit_call (fun _ -> ()), + "*deprecated* Better error message combined with other tools "; + "-unboxed-types", set Clflags.unboxed_types, "*internal* Unannotated unboxable types will be unboxed"; From 27624e0e5d5b4ccd917bfef743fbe80fac1c1bfa Mon Sep 17 00:00:00 2001 From: Woonki Moon Date: Thu, 4 May 2023 18:01:21 +0900 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5409a914f..1d98bed0ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ #### :boom: Breaking Change -- `-bs-super-errors` flag has been removed along with Super_errors. https://github.com/rescript-lang/rescript-compiler/pull/6199 +- `-bs-super-errors` flag has been deprecated along with Super_errors. https://github.com/rescript-lang/rescript-compiler/pull/6243 #### :bug: Bug Fix