Skip to content

Commit 5dfe621

Browse files
authored
Merge pull request #2511 from BuckleScript/fix_2387
fix #2387
2 parents 52d347b + 3d32a3d commit 5dfe621

File tree

10 files changed

+42
-18
lines changed

10 files changed

+42
-18
lines changed

Diff for: Changes.md

+24
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11

2+
# 2.2.0
3+
Features:
4+
- A beta release for the new stdlib called Belt
5+
- #2436, #2381, #2377, #2353 bs.deriving abstract support
6+
7+
8+
Performances:
9+
- #2452 specialized comparison with Js.null, Js.undefined, Js.boolean
10+
- #2412, provide specialized primitives for comparison with null/undefined
11+
- #2361, better optimization for temporary tuple
12+
Fixes:
13+
- #2451 better error message when arity mismatch for reason syntax
14+
- #2399, turn partial application warnings to error in react template
15+
- #2465 build on FreeBSD
16+
- #2450 ignore bsb.lock
17+
- #2356 ship build-schema.json
18+
- #2489, #2464 capitalize names in combination of '/'
19+
- #2459 subdirs:true by default for templates
20+
- #2428, fix trailing space on react-jsx
21+
- #2401, stop tab-aligning imports for smaller diff
22+
- #2383, drop bs.deriving attribute after post-processing
223
# 2.1.0
324
Features:
425
- #2282, #2280,#2272,#2271,#2270,#2262,#2260,#2255,#2253
@@ -21,6 +42,9 @@ Performance:
2142
- #2213 refine caml_obj_dump into caml_array_dup better array initialization code
2243

2344
Fixes:
45+
- #2316 Pattern match with exception case and a single catch-all pattern is optimized incorrectly
46+
- #2318 no absname in Match_failure
47+
- #2250 #1285, fix code gen for object oriented code
2448
- #2278, #2274 fix fatal errors regression and syntactice fatal errors(-werror A) don't stop building
2549
- #2259 fix fatal errors don't stop generating cmj file
2650
- #1972 bsb -init does not rely on `npm link` on *nix platform

Diff for: jscomp/common/bs_version.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
* You should have received a copy of the GNU Lesser General Public License
2323
* along with this program; if not, write to the Free Software
2424
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
25-
let version = "2.1.1"
25+
let version = "2.2.0"
2626
let header =
27-
"// Generated by BUCKLESCRIPT VERSION 2.1.1, PLEASE EDIT WITH CARE"
27+
"// Generated by BUCKLESCRIPT VERSION 2.2.0, PLEASE EDIT WITH CARE"
2828
let package_name = "bs-platform"
2929

Diff for: lib/bsb.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ end = struct
5555
* You should have received a copy of the GNU Lesser General Public License
5656
* along with this program; if not, write to the Free Software
5757
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
58-
let version = "2.1.1"
58+
let version = "2.2.0"
5959
let header =
60-
"// Generated by BUCKLESCRIPT VERSION 2.1.1, PLEASE EDIT WITH CARE"
60+
"// Generated by BUCKLESCRIPT VERSION 2.2.0, PLEASE EDIT WITH CARE"
6161
let package_name = "bs-platform"
6262

6363
end

Diff for: lib/bsb_helper.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ end = struct
177177
* You should have received a copy of the GNU Lesser General Public License
178178
* along with this program; if not, write to the Free Software
179179
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
180-
let version = "2.1.1"
180+
let version = "2.2.0"
181181
let header =
182-
"// Generated by BUCKLESCRIPT VERSION 2.1.1, PLEASE EDIT WITH CARE"
182+
"// Generated by BUCKLESCRIPT VERSION 2.2.0, PLEASE EDIT WITH CARE"
183183
let package_name = "bs-platform"
184184

185185
end

Diff for: lib/bsdep.ml

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ end = struct
5555
* You should have received a copy of the GNU Lesser General Public License
5656
* along with this program; if not, write to the Free Software
5757
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
58-
let version = "2.1.1"
58+
let version = "2.2.0"
5959
let header =
60-
"// Generated by BUCKLESCRIPT VERSION 2.1.1, PLEASE EDIT WITH CARE"
60+
"// Generated by BUCKLESCRIPT VERSION 2.2.0, PLEASE EDIT WITH CARE"
6161
let package_name = "bs-platform"
6262

6363
end
@@ -1722,7 +1722,7 @@ let parse_options errflag s =
17221722
current := {error; active}
17231723

17241724
(* If you change these, don't forget to change them in man/ocamlc.m *)
1725-
let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50";;
1725+
let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50-102";;
17261726
let defaults_warn_error = "-a";;
17271727

17281728
let () = parse_options false defaults_w;;

Diff for: lib/bspp.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1659,7 +1659,7 @@ let parse_options errflag s =
16591659
current := {error; active}
16601660

16611661
(* If you change these, don't forget to change them in man/ocamlc.m *)
1662-
let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50";;
1662+
let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50-102";;
16631663
let defaults_warn_error = "-a";;
16641664

16651665
let () = parse_options false defaults_w;;

Diff for: lib/bsppx.ml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1659,7 +1659,7 @@ let parse_options errflag s =
16591659
current := {error; active}
16601660

16611661
(* If you change these, don't forget to change them in man/ocamlc.m *)
1662-
let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50";;
1662+
let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50-102";;
16631663
let defaults_warn_error = "-a";;
16641664

16651665
let () = parse_options false defaults_w;;
@@ -15823,9 +15823,9 @@ end = struct
1582315823
* You should have received a copy of the GNU Lesser General Public License
1582415824
* along with this program; if not, write to the Free Software
1582515825
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
15826-
let version = "2.1.1"
15826+
let version = "2.2.0"
1582715827
let header =
15828-
"// Generated by BUCKLESCRIPT VERSION 2.1.1, PLEASE EDIT WITH CARE"
15828+
"// Generated by BUCKLESCRIPT VERSION 2.2.0, PLEASE EDIT WITH CARE"
1582915829
let package_name = "bs-platform"
1583015830

1583115831
end

Diff for: lib/whole_compiler.ml

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ end = struct
5555
* You should have received a copy of the GNU Lesser General Public License
5656
* along with this program; if not, write to the Free Software
5757
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
58-
let version = "2.1.1"
58+
let version = "2.2.0"
5959
let header =
60-
"// Generated by BUCKLESCRIPT VERSION 2.1.1, PLEASE EDIT WITH CARE"
60+
"// Generated by BUCKLESCRIPT VERSION 2.2.0, PLEASE EDIT WITH CARE"
6161
let package_name = "bs-platform"
6262

6363
end
@@ -1722,7 +1722,7 @@ let parse_options errflag s =
17221722
current := {error; active}
17231723

17241724
(* If you change these, don't forget to change them in man/ocamlc.m *)
1725-
let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50";;
1725+
let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50-102";;
17261726
let defaults_warn_error = "-a";;
17271727

17281728
let () = parse_options false defaults_w;;

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"postinstall": "node scripts/install.js"
3333
},
3434
"name": "bs-platform",
35-
"version": "2.1.1",
35+
"version": "2.2.0",
3636
"description": "bucklescript compiler, ocaml standard libary by bucklescript and its required runtime support",
3737
"repository": {
3838
"type": "git",

Diff for: vendor/ocaml/utils/warnings.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ let parse_options errflag s =
254254
current := {error; active}
255255

256256
(* If you change these, don't forget to change them in man/ocamlc.m *)
257-
let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50";;
257+
let defaults_w = "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50-102";;
258258
let defaults_warn_error = "-a";;
259259

260260
let () = parse_options false defaults_w;;

0 commit comments

Comments
 (0)