Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jscomp/common/bs_version.ml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* 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 = "5.1.0-dev.3"
let version = "5.1.1"
let header =
"// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE"
let package_name = "bs-platform"
Expand Down
2 changes: 1 addition & 1 deletion lib/4.02.3/bsb.ml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ 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 = "5.1.0-dev.3"
let version = "5.1.1"
let header =
"// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE"
let package_name = "bs-platform"
Expand Down
2 changes: 1 addition & 1 deletion lib/4.02.3/bsdep.ml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ 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 = "5.1.0-dev.3"
let version = "5.1.1"
let header =
"// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE"
let package_name = "bs-platform"
Expand Down
2 changes: 1 addition & 1 deletion lib/4.02.3/bsppx.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16164,7 +16164,7 @@ 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 = "5.1.0-dev.3"
let version = "5.1.1"
let header =
"// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE"
let package_name = "bs-platform"
Expand Down
2 changes: 1 addition & 1 deletion lib/4.02.3/unstable/bsb_native.ml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ 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 = "5.1.0-dev.3"
let version = "5.1.1"
let header =
"// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE"
let package_name = "bs-platform"
Expand Down
2 changes: 1 addition & 1 deletion lib/4.02.3/unstable/js_compiler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16071,7 +16071,7 @@ 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 = "5.1.0-dev.3"
let version = "5.1.1"
let header =
"// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE"
let package_name = "bs-platform"
Expand Down
2 changes: 1 addition & 1 deletion lib/4.02.3/unstable/native_ppx.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15284,7 +15284,7 @@ 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 = "5.1.0-dev.3"
let version = "5.1.1"
let header =
"// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE"
let package_name = "bs-platform"
Expand Down
2 changes: 1 addition & 1 deletion lib/4.02.3/whole_compiler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5270,7 +5270,7 @@ 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 = "5.1.0-dev.3"
let version = "5.1.1"
let header =
"// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE"
let package_name = "bs-platform"
Expand Down
100 changes: 22 additions & 78 deletions lib/js/ephemeron.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
var Obj = require("./obj.js");
var Sys = require("./sys.js");
var $$Array = require("./array.js");
var Block = require("./block.js");
var Curry = require("./curry.js");
var Random = require("./random.js");
var Hashtbl = require("./hashtbl.js");
var Caml_obj = require("./caml_obj.js");
var Caml_array = require("./caml_array.js");
var Caml_int32 = require("./caml_int32.js");
var Caml_option = require("./caml_option.js");
Expand Down Expand Up @@ -102,21 +102,13 @@ function MakeSeeded(H) {
}
};
};
var prng = Block.__(246, [(function (param) {
var prng = Caml_obj.caml_lazy_make((function (param) {
return Random.State[/* make_self_init */1](/* () */0);
})]);
}));
var create$1 = function ($staropt$star, initial_size) {
var random = $staropt$star !== undefined ? $staropt$star : Hashtbl.is_randomized(/* () */0);
var s = power_2_above(16, initial_size);
var seed;
if (random) {
var tag = prng.tag | 0;
seed = Random.State[/* bits */3](tag === 250 ? prng[0] : (
tag === 246 ? CamlinternalLazy.force_lazy_block(prng) : prng
));
} else {
seed = 0;
}
var seed = random ? Random.State[/* bits */3](CamlinternalLazy.force(prng)) : 0;
return /* record */[
/* size */0,
/* data */Caml_array.caml_make_vect(s, /* Empty */0),
Expand Down Expand Up @@ -670,9 +662,9 @@ function Make(H) {
}
};
};
var prng = Block.__(246, [(function (param) {
var prng = Caml_obj.caml_lazy_make((function (param) {
return Random.State[/* make_self_init */1](/* () */0);
})]);
}));
var clear = function (h) {
h[/* size */0] = 0;
var len = h[/* data */1].length;
Expand Down Expand Up @@ -1163,15 +1155,7 @@ function Make(H) {
var initial_size = sz;
var random = $staropt$star !== undefined ? $staropt$star : Hashtbl.is_randomized(/* () */0);
var s = power_2_above(16, initial_size);
var seed;
if (random) {
var tag = prng.tag | 0;
seed = Random.State[/* bits */3](tag === 250 ? prng[0] : (
tag === 246 ? CamlinternalLazy.force_lazy_block(prng) : prng
));
} else {
seed = 0;
}
var seed = random ? Random.State[/* bits */3](CamlinternalLazy.force(prng)) : 0;
return /* record */[
/* size */0,
/* data */Caml_array.caml_make_vect(s, /* Empty */0),
Expand Down Expand Up @@ -1340,21 +1324,13 @@ function MakeSeeded$1(H1, H2) {
}
};
};
var prng = Block.__(246, [(function (param) {
var prng = Caml_obj.caml_lazy_make((function (param) {
return Random.State[/* make_self_init */1](/* () */0);
})]);
}));
var create$1 = function ($staropt$star, initial_size) {
var random = $staropt$star !== undefined ? $staropt$star : Hashtbl.is_randomized(/* () */0);
var s = power_2_above(16, initial_size);
var seed;
if (random) {
var tag = prng.tag | 0;
seed = Random.State[/* bits */3](tag === 250 ? prng[0] : (
tag === 246 ? CamlinternalLazy.force_lazy_block(prng) : prng
));
} else {
seed = 0;
}
var seed = random ? Random.State[/* bits */3](CamlinternalLazy.force(prng)) : 0;
return /* record */[
/* size */0,
/* data */Caml_array.caml_make_vect(s, /* Empty */0),
Expand Down Expand Up @@ -1937,21 +1913,13 @@ function Make$1(H1, H2) {
}
};
};
var prng = Block.__(246, [(function (param) {
var prng = Caml_obj.caml_lazy_make((function (param) {
return Random.State[/* make_self_init */1](/* () */0);
})]);
}));
var create$1 = function ($staropt$star, initial_size) {
var random = $staropt$star !== undefined ? $staropt$star : Hashtbl.is_randomized(/* () */0);
var s = power_2_above(16, initial_size);
var seed;
if (random) {
var tag = prng.tag | 0;
seed = Random.State[/* bits */3](tag === 250 ? prng[0] : (
tag === 246 ? CamlinternalLazy.force_lazy_block(prng) : prng
));
} else {
seed = 0;
}
var seed = random ? Random.State[/* bits */3](CamlinternalLazy.force(prng)) : 0;
return /* record */[
/* size */0,
/* data */Caml_array.caml_make_vect(s, /* Empty */0),
Expand Down Expand Up @@ -2654,21 +2622,13 @@ function MakeSeeded$2(H) {
}
};
};
var prng = Block.__(246, [(function (param) {
var prng = Caml_obj.caml_lazy_make((function (param) {
return Random.State[/* make_self_init */1](/* () */0);
})]);
}));
var create$1 = function ($staropt$star, initial_size) {
var random = $staropt$star !== undefined ? $staropt$star : Hashtbl.is_randomized(/* () */0);
var s = power_2_above(16, initial_size);
var seed;
if (random) {
var tag = prng.tag | 0;
seed = Random.State[/* bits */3](tag === 250 ? prng[0] : (
tag === 246 ? CamlinternalLazy.force_lazy_block(prng) : prng
));
} else {
seed = 0;
}
var seed = random ? Random.State[/* bits */3](CamlinternalLazy.force(prng)) : 0;
return /* record */[
/* size */0,
/* data */Caml_array.caml_make_vect(s, /* Empty */0),
Expand Down Expand Up @@ -3292,9 +3252,9 @@ function Make$2(H) {
}
};
};
var prng = Block.__(246, [(function (param) {
var prng = Caml_obj.caml_lazy_make((function (param) {
return Random.State[/* make_self_init */1](/* () */0);
})]);
}));
var clear = function (h) {
h[/* size */0] = 0;
var len = h[/* data */1].length;
Expand Down Expand Up @@ -3785,15 +3745,7 @@ function Make$2(H) {
var initial_size = sz;
var random = $staropt$star !== undefined ? $staropt$star : Hashtbl.is_randomized(/* () */0);
var s = power_2_above(16, initial_size);
var seed;
if (random) {
var tag = prng.tag | 0;
seed = Random.State[/* bits */3](tag === 250 ? prng[0] : (
tag === 246 ? CamlinternalLazy.force_lazy_block(prng) : prng
));
} else {
seed = 0;
}
var seed = random ? Random.State[/* bits */3](CamlinternalLazy.force(prng)) : 0;
return /* record */[
/* size */0,
/* data */Caml_array.caml_make_vect(s, /* Empty */0),
Expand Down Expand Up @@ -3903,21 +3855,13 @@ var GenHashTable = [(function (funarg) {
}
};
};
var prng = Block.__(246, [(function (param) {
var prng = Caml_obj.caml_lazy_make((function (param) {
return Random.State[/* make_self_init */1](/* () */0);
})]);
}));
var create = function ($staropt$star, initial_size) {
var random = $staropt$star !== undefined ? $staropt$star : Hashtbl.is_randomized(/* () */0);
var s = power_2_above(16, initial_size);
var seed;
if (random) {
var tag = prng.tag | 0;
seed = Random.State[/* bits */3](tag === 250 ? prng[0] : (
tag === 246 ? CamlinternalLazy.force_lazy_block(prng) : prng
));
} else {
seed = 0;
}
var seed = random ? Random.State[/* bits */3](CamlinternalLazy.force(prng)) : 0;
return /* record */[
/* size */0,
/* data */Caml_array.caml_make_vect(s, /* Empty */0),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"postinstall": "node scripts/install.js"
},
"name": "bs-platform",
"version": "5.1.0-dev.3",
"version": "5.1.1",
"description": "bucklescript compiler, ocaml standard libary by bucklescript and its required runtime support",
"repository": {
"type": "git",
Expand Down
7 changes: 7 additions & 0 deletions scripts/ninja.js
Original file line number Diff line number Diff line change
Expand Up @@ -1780,6 +1780,12 @@ function main() {
updateDev();
updateRelease();

break;
case "cleanbuild":
console.log(`run cleaning first`)
cp.execSync(`node ${__filename} clean`,{cwd:__dirname,stdio:[0,1,2]})
cp.execSync(`node ${__filename} config`,{cwd:__dirname,stdio:[0,1,2]})
cp.execSync(`node ${__filename} build`,{cwd:__dirname,stdio:[0,1,2]})
break;
case "docs":
console.log(`building docs`);
Expand All @@ -1789,6 +1795,7 @@ function main() {
console.log(`supported subcommands:
[exe] config
[exe] build
[exe] cleanbuild
[exe] docs
[exe] help
[exe] clean
Expand Down