diff --git a/Changes.md b/Changes.md index d03645dcbe..9e85725c65 100644 --- a/Changes.md +++ b/Changes.md @@ -1,4 +1,25 @@ +# 2.2.0 +Features: +- A beta release for the new stdlib called Belt +- #2436, #2381, #2377, #2353 bs.deriving abstract support + + +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 +- #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 +42,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 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 d1426f9fa3..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 @@ -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..b4443e885b 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;; @@ -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 7df8fa5b9c..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 @@ -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/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", 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;;