Skip to content

Commit a24d17e

Browse files
authored
Merge pull request #3767 from BuckleScript/bump_version
bump minor version
2 parents 0afa8f8 + ea7945f commit a24d17e

File tree

11 files changed

+38
-87
lines changed

11 files changed

+38
-87
lines changed

jscomp/common/bs_version.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
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 = "5.1.0-dev.3"
25+
let version = "5.1.1"
2626
let header =
2727
"// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE"
2828
let package_name = "bs-platform"

lib/4.02.3/bsb.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ 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 = "5.1.0-dev.3"
58+
let version = "5.1.1"
5959
let header =
6060
"// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE"
6161
let package_name = "bs-platform"

lib/4.02.3/bsdep.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ 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 = "5.1.0-dev.3"
58+
let version = "5.1.1"
5959
let header =
6060
"// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE"
6161
let package_name = "bs-platform"

lib/4.02.3/bsppx.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16164,7 +16164,7 @@ end = struct
1616416164
* You should have received a copy of the GNU Lesser General Public License
1616516165
* along with this program; if not, write to the Free Software
1616616166
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
16167-
let version = "5.1.0-dev.3"
16167+
let version = "5.1.1"
1616816168
let header =
1616916169
"// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE"
1617016170
let package_name = "bs-platform"

lib/4.02.3/unstable/bsb_native.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ 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 = "5.1.0-dev.3"
58+
let version = "5.1.1"
5959
let header =
6060
"// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE"
6161
let package_name = "bs-platform"

lib/4.02.3/unstable/js_compiler.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16071,7 +16071,7 @@ end = struct
1607116071
* You should have received a copy of the GNU Lesser General Public License
1607216072
* along with this program; if not, write to the Free Software
1607316073
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
16074-
let version = "5.1.0-dev.3"
16074+
let version = "5.1.1"
1607516075
let header =
1607616076
"// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE"
1607716077
let package_name = "bs-platform"

lib/4.02.3/unstable/native_ppx.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15284,7 +15284,7 @@ end = struct
1528415284
* You should have received a copy of the GNU Lesser General Public License
1528515285
* along with this program; if not, write to the Free Software
1528615286
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
15287-
let version = "5.1.0-dev.3"
15287+
let version = "5.1.1"
1528815288
let header =
1528915289
"// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE"
1529015290
let package_name = "bs-platform"

lib/4.02.3/whole_compiler.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5270,7 +5270,7 @@ end = struct
52705270
* You should have received a copy of the GNU Lesser General Public License
52715271
* along with this program; if not, write to the Free Software
52725272
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
5273-
let version = "5.1.0-dev.3"
5273+
let version = "5.1.1"
52745274
let header =
52755275
"// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE"
52765276
let package_name = "bs-platform"

lib/js/ephemeron.js

Lines changed: 22 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
var Obj = require("./obj.js");
44
var Sys = require("./sys.js");
55
var $$Array = require("./array.js");
6-
var Block = require("./block.js");
76
var Curry = require("./curry.js");
87
var Random = require("./random.js");
98
var Hashtbl = require("./hashtbl.js");
9+
var Caml_obj = require("./caml_obj.js");
1010
var Caml_array = require("./caml_array.js");
1111
var Caml_int32 = require("./caml_int32.js");
1212
var Caml_option = require("./caml_option.js");
@@ -102,21 +102,13 @@ function MakeSeeded(H) {
102102
}
103103
};
104104
};
105-
var prng = Block.__(246, [(function (param) {
105+
var prng = Caml_obj.caml_lazy_make((function (param) {
106106
return Random.State[/* make_self_init */1](/* () */0);
107-
})]);
107+
}));
108108
var create$1 = function ($staropt$star, initial_size) {
109109
var random = $staropt$star !== undefined ? $staropt$star : Hashtbl.is_randomized(/* () */0);
110110
var s = power_2_above(16, initial_size);
111-
var seed;
112-
if (random) {
113-
var tag = prng.tag | 0;
114-
seed = Random.State[/* bits */3](tag === 250 ? prng[0] : (
115-
tag === 246 ? CamlinternalLazy.force_lazy_block(prng) : prng
116-
));
117-
} else {
118-
seed = 0;
119-
}
111+
var seed = random ? Random.State[/* bits */3](CamlinternalLazy.force(prng)) : 0;
120112
return /* record */[
121113
/* size */0,
122114
/* data */Caml_array.caml_make_vect(s, /* Empty */0),
@@ -670,9 +662,9 @@ function Make(H) {
670662
}
671663
};
672664
};
673-
var prng = Block.__(246, [(function (param) {
665+
var prng = Caml_obj.caml_lazy_make((function (param) {
674666
return Random.State[/* make_self_init */1](/* () */0);
675-
})]);
667+
}));
676668
var clear = function (h) {
677669
h[/* size */0] = 0;
678670
var len = h[/* data */1].length;
@@ -1163,15 +1155,7 @@ function Make(H) {
11631155
var initial_size = sz;
11641156
var random = $staropt$star !== undefined ? $staropt$star : Hashtbl.is_randomized(/* () */0);
11651157
var s = power_2_above(16, initial_size);
1166-
var seed;
1167-
if (random) {
1168-
var tag = prng.tag | 0;
1169-
seed = Random.State[/* bits */3](tag === 250 ? prng[0] : (
1170-
tag === 246 ? CamlinternalLazy.force_lazy_block(prng) : prng
1171-
));
1172-
} else {
1173-
seed = 0;
1174-
}
1158+
var seed = random ? Random.State[/* bits */3](CamlinternalLazy.force(prng)) : 0;
11751159
return /* record */[
11761160
/* size */0,
11771161
/* data */Caml_array.caml_make_vect(s, /* Empty */0),
@@ -1340,21 +1324,13 @@ function MakeSeeded$1(H1, H2) {
13401324
}
13411325
};
13421326
};
1343-
var prng = Block.__(246, [(function (param) {
1327+
var prng = Caml_obj.caml_lazy_make((function (param) {
13441328
return Random.State[/* make_self_init */1](/* () */0);
1345-
})]);
1329+
}));
13461330
var create$1 = function ($staropt$star, initial_size) {
13471331
var random = $staropt$star !== undefined ? $staropt$star : Hashtbl.is_randomized(/* () */0);
13481332
var s = power_2_above(16, initial_size);
1349-
var seed;
1350-
if (random) {
1351-
var tag = prng.tag | 0;
1352-
seed = Random.State[/* bits */3](tag === 250 ? prng[0] : (
1353-
tag === 246 ? CamlinternalLazy.force_lazy_block(prng) : prng
1354-
));
1355-
} else {
1356-
seed = 0;
1357-
}
1333+
var seed = random ? Random.State[/* bits */3](CamlinternalLazy.force(prng)) : 0;
13581334
return /* record */[
13591335
/* size */0,
13601336
/* data */Caml_array.caml_make_vect(s, /* Empty */0),
@@ -1937,21 +1913,13 @@ function Make$1(H1, H2) {
19371913
}
19381914
};
19391915
};
1940-
var prng = Block.__(246, [(function (param) {
1916+
var prng = Caml_obj.caml_lazy_make((function (param) {
19411917
return Random.State[/* make_self_init */1](/* () */0);
1942-
})]);
1918+
}));
19431919
var create$1 = function ($staropt$star, initial_size) {
19441920
var random = $staropt$star !== undefined ? $staropt$star : Hashtbl.is_randomized(/* () */0);
19451921
var s = power_2_above(16, initial_size);
1946-
var seed;
1947-
if (random) {
1948-
var tag = prng.tag | 0;
1949-
seed = Random.State[/* bits */3](tag === 250 ? prng[0] : (
1950-
tag === 246 ? CamlinternalLazy.force_lazy_block(prng) : prng
1951-
));
1952-
} else {
1953-
seed = 0;
1954-
}
1922+
var seed = random ? Random.State[/* bits */3](CamlinternalLazy.force(prng)) : 0;
19551923
return /* record */[
19561924
/* size */0,
19571925
/* data */Caml_array.caml_make_vect(s, /* Empty */0),
@@ -2654,21 +2622,13 @@ function MakeSeeded$2(H) {
26542622
}
26552623
};
26562624
};
2657-
var prng = Block.__(246, [(function (param) {
2625+
var prng = Caml_obj.caml_lazy_make((function (param) {
26582626
return Random.State[/* make_self_init */1](/* () */0);
2659-
})]);
2627+
}));
26602628
var create$1 = function ($staropt$star, initial_size) {
26612629
var random = $staropt$star !== undefined ? $staropt$star : Hashtbl.is_randomized(/* () */0);
26622630
var s = power_2_above(16, initial_size);
2663-
var seed;
2664-
if (random) {
2665-
var tag = prng.tag | 0;
2666-
seed = Random.State[/* bits */3](tag === 250 ? prng[0] : (
2667-
tag === 246 ? CamlinternalLazy.force_lazy_block(prng) : prng
2668-
));
2669-
} else {
2670-
seed = 0;
2671-
}
2631+
var seed = random ? Random.State[/* bits */3](CamlinternalLazy.force(prng)) : 0;
26722632
return /* record */[
26732633
/* size */0,
26742634
/* data */Caml_array.caml_make_vect(s, /* Empty */0),
@@ -3292,9 +3252,9 @@ function Make$2(H) {
32923252
}
32933253
};
32943254
};
3295-
var prng = Block.__(246, [(function (param) {
3255+
var prng = Caml_obj.caml_lazy_make((function (param) {
32963256
return Random.State[/* make_self_init */1](/* () */0);
3297-
})]);
3257+
}));
32983258
var clear = function (h) {
32993259
h[/* size */0] = 0;
33003260
var len = h[/* data */1].length;
@@ -3785,15 +3745,7 @@ function Make$2(H) {
37853745
var initial_size = sz;
37863746
var random = $staropt$star !== undefined ? $staropt$star : Hashtbl.is_randomized(/* () */0);
37873747
var s = power_2_above(16, initial_size);
3788-
var seed;
3789-
if (random) {
3790-
var tag = prng.tag | 0;
3791-
seed = Random.State[/* bits */3](tag === 250 ? prng[0] : (
3792-
tag === 246 ? CamlinternalLazy.force_lazy_block(prng) : prng
3793-
));
3794-
} else {
3795-
seed = 0;
3796-
}
3748+
var seed = random ? Random.State[/* bits */3](CamlinternalLazy.force(prng)) : 0;
37973749
return /* record */[
37983750
/* size */0,
37993751
/* data */Caml_array.caml_make_vect(s, /* Empty */0),
@@ -3903,21 +3855,13 @@ var GenHashTable = [(function (funarg) {
39033855
}
39043856
};
39053857
};
3906-
var prng = Block.__(246, [(function (param) {
3858+
var prng = Caml_obj.caml_lazy_make((function (param) {
39073859
return Random.State[/* make_self_init */1](/* () */0);
3908-
})]);
3860+
}));
39093861
var create = function ($staropt$star, initial_size) {
39103862
var random = $staropt$star !== undefined ? $staropt$star : Hashtbl.is_randomized(/* () */0);
39113863
var s = power_2_above(16, initial_size);
3912-
var seed;
3913-
if (random) {
3914-
var tag = prng.tag | 0;
3915-
seed = Random.State[/* bits */3](tag === 250 ? prng[0] : (
3916-
tag === 246 ? CamlinternalLazy.force_lazy_block(prng) : prng
3917-
));
3918-
} else {
3919-
seed = 0;
3920-
}
3864+
var seed = random ? Random.State[/* bits */3](CamlinternalLazy.force(prng)) : 0;
39213865
return /* record */[
39223866
/* size */0,
39233867
/* data */Caml_array.caml_make_vect(s, /* Empty */0),

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"postinstall": "node scripts/install.js"
3434
},
3535
"name": "bs-platform",
36-
"version": "5.1.0-dev.3",
36+
"version": "5.1.1",
3737
"description": "bucklescript compiler, ocaml standard libary by bucklescript and its required runtime support",
3838
"repository": {
3939
"type": "git",

0 commit comments

Comments
 (0)