From 3750d7a3e83906f8e26a317bb95f7b9aaa8381ee Mon Sep 17 00:00:00 2001 From: Hongbo Zhang Date: Mon, 12 Feb 2018 10:37:22 +0800 Subject: [PATCH 1/5] [compiler] disable warning 102 (polymoprhic comparison) by default to make it less disruptive --- vendor/ocaml/utils/warnings.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/ocaml/utils/warnings.ml b/vendor/ocaml/utils/warnings.ml index e09a42dc11..b65fee9881 100644 --- a/vendor/ocaml/utils/warnings.ml +++ b/vendor/ocaml/utils/warnings.ml @@ -254,7 +254,7 @@ let parse_options errflag s = current := {error; active} (* If you change these, don't forget to change them in man/ocamlc.m *) -let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50";; +let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50-102";; let defaults_warn_error = "-a";; let () = parse_options false defaults_w;; From 0999f46a72929dd69b3a12f164ada2b575de60be Mon Sep 17 00:00:00 2001 From: Hongbo Zhang Date: Mon, 12 Feb 2018 10:38:11 +0800 Subject: [PATCH 2/5] snapshot changes --- lib/bsdep.ml | 2 +- lib/bspp.ml | 2 +- lib/bsppx.ml | 2 +- lib/whole_compiler.ml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/bsdep.ml b/lib/bsdep.ml index d1426f9fa3..cf3c253f91 100644 --- a/lib/bsdep.ml +++ b/lib/bsdep.ml @@ -1722,7 +1722,7 @@ let parse_options errflag s = current := {error; active} (* If you change these, don't forget to change them in man/ocamlc.m *) -let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50";; +let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50-102";; let defaults_warn_error = "-a";; let () = parse_options false defaults_w;; diff --git a/lib/bspp.ml b/lib/bspp.ml index 3442267e04..61c18778a8 100644 --- a/lib/bspp.ml +++ b/lib/bspp.ml @@ -1659,7 +1659,7 @@ let parse_options errflag s = current := {error; active} (* If you change these, don't forget to change them in man/ocamlc.m *) -let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50";; +let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50-102";; let defaults_warn_error = "-a";; let () = parse_options false defaults_w;; diff --git a/lib/bsppx.ml b/lib/bsppx.ml index 836537fcd0..ed9e864369 100644 --- a/lib/bsppx.ml +++ b/lib/bsppx.ml @@ -1659,7 +1659,7 @@ let parse_options errflag s = current := {error; active} (* If you change these, don't forget to change them in man/ocamlc.m *) -let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50";; +let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50-102";; let defaults_warn_error = "-a";; let () = parse_options false defaults_w;; diff --git a/lib/whole_compiler.ml b/lib/whole_compiler.ml index 7df8fa5b9c..003e5ba9ed 100644 --- a/lib/whole_compiler.ml +++ b/lib/whole_compiler.ml @@ -1722,7 +1722,7 @@ let parse_options errflag s = current := {error; active} (* If you change these, don't forget to change them in man/ocamlc.m *) -let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50";; +let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50-102";; let defaults_warn_error = "-a";; let () = parse_options false defaults_w;; From 269fcb189ba52e92773defc5bd2b1073a8504fd8 Mon Sep 17 00:00:00 2001 From: Hongbo Zhang Date: Mon, 12 Feb 2018 11:08:33 +0800 Subject: [PATCH 3/5] bump version --- jscomp/common/bs_version.ml | 4 ++-- lib/bsb.ml | 4 ++-- lib/bsb_helper.ml | 4 ++-- lib/bsdep.ml | 4 ++-- lib/bsppx.ml | 4 ++-- lib/whole_compiler.ml | 4 ++-- package.json | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/jscomp/common/bs_version.ml b/jscomp/common/bs_version.ml index 59693be9b6..a0e8a041bd 100644 --- a/jscomp/common/bs_version.ml +++ b/jscomp/common/bs_version.ml @@ -22,8 +22,8 @@ * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *) -let version = "2.1.1" +let version = "2.2.0" let header = - "// Generated by BUCKLESCRIPT VERSION 2.1.1, PLEASE EDIT WITH CARE" + "// Generated by BUCKLESCRIPT VERSION 2.2.0, PLEASE EDIT WITH CARE" let package_name = "bs-platform" \ No newline at end of file diff --git a/lib/bsb.ml b/lib/bsb.ml index a49b5c8d95..77a345422b 100644 --- a/lib/bsb.ml +++ b/lib/bsb.ml @@ -55,9 +55,9 @@ end = struct * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *) -let version = "2.1.1" +let version = "2.2.0" let header = - "// Generated by BUCKLESCRIPT VERSION 2.1.1, PLEASE EDIT WITH CARE" + "// Generated by BUCKLESCRIPT VERSION 2.2.0, PLEASE EDIT WITH CARE" let package_name = "bs-platform" end diff --git a/lib/bsb_helper.ml b/lib/bsb_helper.ml index cbea7f2eb2..e406cfca95 100644 --- a/lib/bsb_helper.ml +++ b/lib/bsb_helper.ml @@ -177,9 +177,9 @@ end = struct * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *) -let version = "2.1.1" +let version = "2.2.0" let header = - "// Generated by BUCKLESCRIPT VERSION 2.1.1, PLEASE EDIT WITH CARE" + "// Generated by BUCKLESCRIPT VERSION 2.2.0, PLEASE EDIT WITH CARE" let package_name = "bs-platform" end diff --git a/lib/bsdep.ml b/lib/bsdep.ml index cf3c253f91..ea5547ad68 100644 --- a/lib/bsdep.ml +++ b/lib/bsdep.ml @@ -55,9 +55,9 @@ end = struct * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *) -let version = "2.1.1" +let version = "2.2.0" let header = - "// Generated by BUCKLESCRIPT VERSION 2.1.1, PLEASE EDIT WITH CARE" + "// Generated by BUCKLESCRIPT VERSION 2.2.0, PLEASE EDIT WITH CARE" let package_name = "bs-platform" end diff --git a/lib/bsppx.ml b/lib/bsppx.ml index ed9e864369..b4443e885b 100644 --- a/lib/bsppx.ml +++ b/lib/bsppx.ml @@ -15823,9 +15823,9 @@ end = struct * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *) -let version = "2.1.1" +let version = "2.2.0" let header = - "// Generated by BUCKLESCRIPT VERSION 2.1.1, PLEASE EDIT WITH CARE" + "// Generated by BUCKLESCRIPT VERSION 2.2.0, PLEASE EDIT WITH CARE" let package_name = "bs-platform" end diff --git a/lib/whole_compiler.ml b/lib/whole_compiler.ml index 003e5ba9ed..3da4684bd3 100644 --- a/lib/whole_compiler.ml +++ b/lib/whole_compiler.ml @@ -55,9 +55,9 @@ end = struct * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *) -let version = "2.1.1" +let version = "2.2.0" let header = - "// Generated by BUCKLESCRIPT VERSION 2.1.1, PLEASE EDIT WITH CARE" + "// Generated by BUCKLESCRIPT VERSION 2.2.0, PLEASE EDIT WITH CARE" let package_name = "bs-platform" end diff --git a/package.json b/package.json index f8d3bf2a51..37d6ad911f 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "postinstall": "node scripts/install.js" }, "name": "bs-platform", - "version": "2.1.1", + "version": "2.2.0", "description": "bucklescript compiler, ocaml standard libary by bucklescript and its required runtime support", "repository": { "type": "git", From 111f3bd5c5dfaa3f686649b8a15705d481ad432f Mon Sep 17 00:00:00 2001 From: Hongbo Zhang Date: Mon, 12 Feb 2018 11:29:10 +0800 Subject: [PATCH 4/5] add changeslog --- Changes.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Changes.md b/Changes.md index d03645dcbe..828fff4146 100644 --- a/Changes.md +++ b/Changes.md @@ -1,4 +1,24 @@ +# 2.2.0 +Features: +- A beta release for the new stdlib called Belt +- #2436, #2381, #2377, #2353 bs.deriving abstract support +- #2451 better error message when arity mismatch for reason syntax + +Performances: +- #2452 specialized comparison with Js.null, Js.undefined, Js.boolean +- #2412, provide specialized primitives for comparison with null/undefined +- #2361, better optimization for temporary tuple +Fixes: +- #2399, turn partial application warnings to error in react template +- #2465 build on FreeBSD +- #2450 ignore bsb.lock +- #2356 ship build-schema.json +- #2489, #2464 capitalize names in combination of '/' +- #2459 subdirs:true by default for templates +- #2428, fix trailing space on react-jsx +- #2401, stop tab-aligning imports for smaller diff +- #2383, drop bs.deriving attribute after post-processing # 2.1.0 Features: - #2282, #2280,#2272,#2271,#2270,#2262,#2260,#2255,#2253 @@ -21,6 +41,9 @@ Performance: - #2213 refine caml_obj_dump into caml_array_dup better array initialization code Fixes: +- #2316 Pattern match with exception case and a single catch-all pattern is optimized incorrectly +- #2318 no absname in Match_failure +- #2250 #1285, fix code gen for object oriented code - #2278, #2274 fix fatal errors regression and syntactice fatal errors(-werror A) don't stop building - #2259 fix fatal errors don't stop generating cmj file - #1972 bsb -init does not rely on `npm link` on *nix platform From 3d32a3da30b0b6a463a66e9dba5e9bb58bb04da3 Mon Sep 17 00:00:00 2001 From: Hongbo Zhang Date: Mon, 12 Feb 2018 11:41:38 +0800 Subject: [PATCH 5/5] tweak --- Changes.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Changes.md b/Changes.md index 828fff4146..9e85725c65 100644 --- a/Changes.md +++ b/Changes.md @@ -3,13 +3,14 @@ Features: - A beta release for the new stdlib called Belt - #2436, #2381, #2377, #2353 bs.deriving abstract support -- #2451 better error message when arity mismatch for reason syntax + Performances: - #2452 specialized comparison with Js.null, Js.undefined, Js.boolean - #2412, provide specialized primitives for comparison with null/undefined - #2361, better optimization for temporary tuple Fixes: +- #2451 better error message when arity mismatch for reason syntax - #2399, turn partial application warnings to error in react template - #2465 build on FreeBSD - #2450 ignore bsb.lock