Skip to content

Commit 2cd46c8

Browse files
committed
prepare 1.4.2 release note
1 parent 9b656cd commit 2cd46c8

File tree

9 files changed

+136
-10
lines changed

9 files changed

+136
-10
lines changed

.merlin

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
####{BSB GENERATED: NO EDIT
2+
FLG -ppx /Users/hzhang295/git/bucklescript/node_modules/reason/bin/ppx_lwt
23
S /Users/hzhang295/git/bucklescript/jscomp/bin/../lib/ocaml
34
B /Users/hzhang295/git/bucklescript/jscomp/bin/../lib/ocaml
45
FLG -ppx /Users/hzhang295/git/bucklescript/jscomp/bin/bsppx.exe
56

6-
FLG -w -40-30 -w +a
7+
FLG -w -40 -bs-no-version-header -bs-cross-module-opt
78
S jscomp/test/
89
B lib/bs/jscomp/test/
910

bsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
"-bs-no-version-header",
1818
"-bs-cross-module-opt"
1919
],
20-
// "ppx-flags" :
21-
// [
22-
// "reason/bin/ppx_lwt"
23-
// ],
20+
"ppx-flags" :
21+
[
22+
"reason/bin/ppx_lwt"
23+
],
2424
// "js-post-build" :
2525
// {
2626
// "cmd" : "cat"

docs/Manual.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@
488488
<h1><a href="https://github.com/bloomberg/bucklescript">BuckleScript</a> User Manual</h1>
489489
<div class="details">
490490
<span id="author" class="author">Hongbo Zhang</span><br>
491-
<span id="revnumber">version 1.3.4</span>
491+
<span id="revnumber">version 1.4.2</span>
492492
</div>
493493
<div id="toc" class="toc2">
494494
<div id="toctitle">Table of Contents</div>
@@ -5370,7 +5370,7 @@ <h3 id="_1_0"><a class="anchor" href="#_1_0"></a>1.0</h3>
53705370
</div>
53715371
<div id="footer">
53725372
<div id="footer-text">
5373-
Version 1.3.4<br>
5373+
Version 1.4.2<br>
53745374
</div>
53755375
</div>
53765376
</body>

jscomp/test/.depend

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ google_closure_test.cmj : test_google_closure.cmj mt.cmj
182182
gpr496_test.cmj : ../stdlib/pervasives.cmj mt.cmj ../runtime/js.cmj
183183
gpr_1063_test.cmj :
184184
gpr_1072.cmj : ../runtime/js.cmj
185+
gpr_1072_reg.cmj :
185186
gpr_405_test.cmj : ../stdlib/hashtbl.cmj gpr_405_test.cmi
186187
gpr_441.cmj :
187188
gpr_459_test.cmj : mt.cmj

jscomp/test/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ OTHERS := literals a test_ari test_export2 test_internalOO test_obj_simple_ffi t
8888
include_side_effect\
8989
exception_alias\
9090
prepend_data_ffi\
91-
gbk
92-
91+
gbk\
92+
gpr_1072_reg
9393

9494
SOURCE_LIST := $(OTHERS)
9595
TESTS := $(addsuffix .cmj, $(SOURCE_LIST) )

jscomp/test/gpr_1072_reg.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
'use strict';
2+
3+
4+
var v1 = {
5+
localeMatcher: "best fit",
6+
formatMatcher: "basic",
7+
day: "2-digit",
8+
timeZoneName: "short"
9+
};
10+
11+
exports.v1 = v1;
12+
/* v1 Not a pure module */

jscomp/test/gpr_1072_reg.ml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
2+
type t
3+
4+
5+
external make :
6+
?localeMatcher:
7+
([`lookup | `best_fit [@bs.as "best fit"]] [@bs.string]) ->
8+
9+
?timeZone:string ->
10+
?hour12:bool ->
11+
?formatMatcher:
12+
([`basic | `best_fit [@bs.as "best fit"]] [@bs.string]) ->
13+
14+
?weekday:([`narrow | `short | `long] [@bs.string]) ->
15+
?era:([`narrow | `short | `long] [@bs.string]) ->
16+
?year:([`numeric | `two_digit [@bs.as "2-digit"]] [@bs.string]) ->
17+
?month:
18+
([`narrow |
19+
`short |
20+
`long |
21+
`numeric |
22+
`two_digit [@bs.as "2-digit"]] [@bs.string]) ->
23+
24+
?day:([`numeric | `two_digit [@bs.as "2-digit"]] [@bs.string]) ->
25+
?hour:([`numeric | `two_digit [@bs.as "2-digit"]] [@bs.string]) ->
26+
?minute:([`numeric | `two_digit [@bs.as "2-digit"]] [@bs.string]) ->
27+
?second:([`numeric | `two_digit [@bs.as "2-digit"]] [@bs.string]) ->
28+
?timeZoneName:([`short | `long] [@bs.string]) ->
29+
unit ->
30+
t =
31+
"" [@@bs.obj]
32+
33+
34+
let v1 =
35+
make
36+
~localeMatcher:`best_fit
37+
~formatMatcher:`basic
38+
~day:`two_digit
39+
~timeZoneName:`short
40+
()
41+
42+
43+
44+
45+
46+
(** In the future we might allow below cases , issues are [`num] maybe escaped
47+
we need prevent its escaping
48+
49+
external make2 :
50+
?localeMatcher:
51+
([`lookup | `best_fit [@bs.as "best fit"]] [@bs.string]) ->
52+
53+
?timeZone:string ->
54+
?hour12:bool ->
55+
?formatMatcher:
56+
([`basic | `best_fit [@bs.as "best fit"]] [@bs.string]) ->
57+
58+
?weekday:([`narrow | `short | `long] [@bs.string]) ->
59+
?era:([`narrow | `short | `long] [@bs.string]) ->
60+
?year:([`numeric | `two_digit [@bs.as "2-digit"]] [@bs.string]) ->
61+
?month:
62+
([`narrow |
63+
`short |
64+
`long |
65+
`numeric |
66+
`two_digit [@bs.as "2-digit"]] [@bs.string]) ->
67+
68+
?day:(([`numeric | `two_digit [@bs.as "2-digit"]] [@bs.string]) as 'num) ->
69+
?hour:('num) ->
70+
?minute:('num) ->
71+
?second:('num) ->
72+
?timeZoneName:([`short | `long] [@bs.string]) ->
73+
unit ->
74+
t =
75+
"" [@@bs.obj]
76+
77+
78+
let v2 =
79+
make2
80+
~localeMatcher:`best_fit
81+
~formatMatcher:`basic
82+
~day:`two_digit
83+
~timeZoneName:`short
84+
~hour:`two_digit
85+
()
86+
*)

site/docsource/Manual.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# https://github.com/bloomberg/bucklescript[BuckleScript] User Manual
22
Hongbo Zhang
3-
v1.3.4
3+
v1.4.2
44
:toc: left
55
:toclevels: 4
66
:source-highlighter: pygments

site/docsource/Release.1.4.2.adoc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
3+
4+
BuckleScript 1.4.2 release comes with quite a few enhancement.
5+
6+
Most notable features:
7+
8+
1. The build system is ready to handle multiple npm packages, and its module system can be
9+
overriden by the end user. For example, if the library A(end user) depends library B and library C,
10+
we only need tell the build system that A needs goog module system, then B, C will be built using
11+
goog module system too.
12+
13+
There are quite lots of enhancements to the build system, we strongly recommend users to re-read
14+
the documentation http://bloomberg.github.io/bucklescript/Manual.html#_build_system_support
15+
16+
2. FFI add a new feature: http://bloomberg.github.io/bucklescript/Manual.html#_fixed_arguments
17+
18+
3. FFI can handle `bs.obj` and `bs.string` combination:
19+
https://github.com/bloomberg/bucklescript/issues/1072
20+
21+
22+
23+
24+
25+
26+

0 commit comments

Comments
 (0)