Skip to content

Commit 9c34956

Browse files
committed
update changes
1 parent 3c4e357 commit 9c34956

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

Changes.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,53 @@
22

33
# current
44

5-
- #4117 Upgrade to Reason 3.6.0 @ 8f71db0
5+
66

77
# 7.0.2
88

9+
- #4117 Upgrade to Reason 3.6.0 @ 8f71db0
10+
- #4097 introduce a js parser for syntax checking inside raw.
11+
12+
We can now tell whether the code inside raw is a function or not and the arity of raw function, so
13+
```ocaml
14+
let f = [%raw{|function(x){return x}|}]
15+
```
16+
```ocaml
17+
let f = fun%raw x -> {|x|}
18+
```
19+
will be treated the same, to make FFI simpler, the special form `fun%raw` will be discouraged.
20+
21+
- #4090 #4087 fix the unsoundess issue of Js.Array.push
22+
now the empty array `[||]` won't have a polymorophic type, it will have a concrete type.
23+
24+
- #41112 #4111 #4067 #4101 provide websocket error better error message and better docs
25+
26+
- #4108 fix warning concat in some edge cases (bsb)
27+
- #4100 make node process exit return 'a instead of unit
28+
- #4098 restore encoding int64 using a tuple for compatibility reasons
29+
30+
- #4114 fix SPA mode watcher path in react-hooks template
31+
32+
- #4199 Change ReactJS PPX to avoid modifying locations of existing code (better integration with editors)
33+
- #4122 toplevel [@@@warning "+101"] works for bucklescript warnings
34+
35+
`bsc -warn-help` listed several warnings for BuckleScript
36+
```
37+
101 BuckleScript warning: Unused bs attributes
38+
102 BuckleScript warning: polymorphic comparison introduced (maybe unsafe)
39+
103 BuckleScript warning: about fragile FFI definitions
40+
104 BuckleScript warning: bs.deriving warning with customized message
41+
105 BuckleScript warning: the external name is inferred from val name is unsafe from refactoring when changing value name
42+
106 BuckleScript warning: Unimplemented primitive used:
43+
107 BuckleScript warning: Integer literal exceeds the range of representable integers of type int
44+
108 BuckleScript warning: Uninterpreted delimiters (for unicode)
45+
```
946
- #4060 #4057 add unboxed type support
47+
48+
- #4078, #4069 better code generated for cases like `match x with true -> ..| false -> ..`
49+
- #4075, #4065 allow emoji in folder name
50+
- #4074 allow defining a custom hostname for websocket
51+
- #4064 fix shake_compile prefix & code param order
1052
- #4053 use setImmediate for rebuilding to fix watch mode for some specific editors
1153
- #4050 support pipe first poly variant
1254
- #4049 Add support for custom underscored namespace

jscomp/core/design.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ for example
179179

180180
```ocaml
181181
external filter : 'a array -> ('a -> bool [@bs.uncurry]) -> 'a array = "filter"
182+
[@@bs.send]
182183
183184
let f xs =
184185
xs |. filter (fun x -> x > 2)

0 commit comments

Comments
 (0)