Fixes
- #3001 fix regressios in refmt
- #2986 #2973 #2974 fix bsb websocket exit error
- #2983 #2988 determinsic behavior when NINJA_ANSI_FORCED=0 no color when NINJA_ANSI_FORCED=1 yes color
Fixes
- #2956 clean re.js for genFlow proj
- #2970 remove one obsolte error
- #2970 address one regression from refmt
Fixes
- #2963 fix ppx-flags quoting issue
Features
- #2951 sync up with reason
- #2964 customize ninja to make output less verbose Add NINJA_ANSI_FORCE env variable support so that third party tools running bsb can still preserve colors
- #2960 add tea theme support
- #2959 less verbose bsb output
- #2958 make
bsb -init
more forgiving
Fixes:
- #2949 fix optional regression
- #2946 fix react-lite theme on Linux
Fixes:
- #2832 fix compiler crash
- #2837
toFixed
,toExponential
too strict - #2841 fix some inconsistency betweeen debug mode and release mode
- #2865 fix reload latency issue in react-lite theme
- #2864 fix parallel build random failure
- #2874 consistency check for global bsb and local bsb
- #2914 Fix bug on Windows where path has colon in command line arg
- #2919 fix return value of
Js.Date.toJSON
- #2921 bs.deriving label -> labelGet, the
label
accessor is deprecated - #2924 rename Js.Nullable.test -> Js.Nullable.isNullable
- #2923 fix ghost location in error message
- #2931 fix a codegen bug in optimization pattern match
Features:
- #2280 prettier output in debug mode (chrome custom formatter)
- #2823 add build-success hook
bsb -make-world -w -build-success 'your_script'
-
#2856 provide websocket intergration with bsb
-
#2858 add react-lite theme hot module reloading without webpack
-
#2873 add Belt.Array.sliceToEnd
-
#2825 Add Belt.Array.partition
-
#2882, #2885, #2886, #2889, #2890,#2894, #2896, #2897,#2898, #2900 #2901, #2905, #2907, #2908, #2909, #2912, #2913 unbox optional and code optimization based on type kinds
-
#2910 fix optional inline regression, better codegen for optional equality
-
#2904 fix Js.Date.parse binding
-
#2899 Add Dom.htmlFormElement and Dom.htmlInputElement types
-
#2910 Improve package not found message
-
#2916 optimize value based optional
-
#2918 adapt polymoprhic comparison for the new optional representation
-
#2917 remove trailing
return undefined
-
#2935 comments in codegen for
ref
generation -
#2863 optimize away unused blocks
Fixes:
- Put back the deprecated
Js.to_bool
andJs.Boolean.*
for a little bit longer to avoid breackage in userland. These functions are all deprecated and don't do anythinng anymore, since we compilebool
toJs.boolean
directly.
Features:
- #2809, #2806 Sync up with latest reason
- #2805, allow
x |. Some
- #2797, #2771
-bs-g
- #2793 more bindings to Js.Console
- #2621 add Belt.Result module
- #2760 add Belt.Array.unzip
Perf:
- #2808 better code gen for if then else
- #2804 make HashSet.String size smaller
Fixes:
- #2812, compatibility with Node 10
- #2789, fix Weak.length
- #2790, fix Belt.Set performance issue
- #2786, fix polymorphic compare on nullables
- #2781, improve location info on bs.deriving abstract
- #2776, lift the function limitation on bs.deriving abstract
- #2752, fix binding Buffer.toString
Features:
-
#2740, #2726 Generalized safe/cleaner embedding raw function (https://bucklescript.github.io/docs/en/interop-cheatsheet.html#generaizlied-raw-js-since-300)
-
#2687, #2665, #2663 bs.deriving abstract type, a powerful way for idiomatic JS and FFI (https://bucklescript.github.io/docs/en/generate-converters-accessors.html#abstract-type)
-
#2696, #2742, #2706, #2711, compile OCaml boolean as JS boolean Breaking change to your code path relying on
Obj.magic
andbs.raw
-
#2741 add Node.Buffer.fromStringWithEncoding
-
#2737 add Js.Json.stringifyWithSpace
-
#2728 add console.error and console.trace
-
#2666 add List.sort to belt
-
#2664 pipe syntax support tuple
obj |. method a b
andobj |. (m1 , m2)
Perf:
- #2676 beter optimizations for tuple allocation
Docs:
- #2730, #2729, #2733, #2722, #2701, #2699 More docs to Belt
Fixes:
- #2657 more intuitive polymorphic comparison with objects
- #2686 playground unicode
- #2720, #2719, #2718, error message enhancment
- #2731 not inlining function contains
raw
- #2672 Fix ci
- #2652 fix Buffer name mangling on Node
- #2642 weird indentation in generated code
Features:
- #2646,#2622 Adding Belt.Option
- #2342, #2624 (|.) pipe syntax for t first convention
- #2589 Expose Id.MakeComparable functor
- #2587 Added production ready settings for react theme
-
- remove refmt syntax version 2
Performances:
- #2438 using concrete predicates for integer comparison
- #2584 better handling of if then else common sub expression
Fixes:
- #2303 defining or using a module named "Block" causes runtime errors
- #2616,#2612,#2554 better error message
- #2352 return value of assignment expression
- #2413 no break generated after return statement in some code branches
- #2633 [@bs.string] in FFI
- #2608 short-circuiting of && fails due to extraction of variable
- #2559 fix Bytes.create semantics
- #2638, bsb -w on windows freez
- #2448, js_int.ml not installed on windows
Features:
- Upgrade with latest reason syntax (native unucurry support etc)
- #2531 add missing functions in Js.Nullable fromoption/toOption
- #2527 Belt.List.shuffle
Fixes:
- #2503 bs.string and bs.obj interaction
- #2549, #2548, $2548, #2542, #2541 improve error message
Features:
- A beta release for the new stdlib called Belt
- #2436, #2381, #2377, #2353 bs.deriving abstract support
Performances:
- #2452 specialized comparison with Js.null, Js.undefined, Js.boolean
- #2412, provide specialized primitives for comparison with null/undefined
- #2361, better optimization for temporary tuple Fixes:
- #2451 better error message when arity mismatch for reason syntax
- #2399, turn partial application warnings to error in react template
- #2465 build on FreeBSD
- #2450 ignore bsb.lock
- #2356 ship build-schema.json
- #2489, #2464 capitalize names in combination of '/'
- #2459 subdirs:true by default for templates
- #2428, fix trailing space on react-jsx
- #2401, stop tab-aligning imports for smaller diff
- #2383, drop bs.deriving attribute after post-processing
Features:
- #2282, #2280,#2272,#2271,#2270,#2262,#2260,#2255,#2253 Automatically derive js converter between ocaml and Js values see docs: https://bucklescript.github.io/bucklescript/Manual.html#_mapping_between_js_values_and_ocaml_values_since_2_1_0
- #2238, #2225, #2221 Make the compiler relocatable prebuilt compiler (this release for Mac/Win)
- #2276 update reason syntax@d0d18
- #2229 improve error message with regard to
@bs
- #2266, add Js_global.(encode|decode)URI(Component) bindings
- #2220 make watcher mode in linux accept ninja progress animation
- #2163 better hints for binding module name
- #2187, #2186, #2179 add two warning numbers 101, 102 for polymorhic comparisons and unused bs attributes
Performance:
- #2269 type specialized comparison also applied to nullable polymorphic variants
- #2208 type specialized comparison allpied to nullable variants
- #2213 refine caml_obj_dump into caml_array_dup better array initialization code
Fixes:
- #2316 Pattern match with exception case and a single catch-all pattern is optimized incorrectly
- #2318 no absname in Match_failure
- #2250 #1285, fix code gen for object oriented code
- #2278, #2274 fix fatal errors regression and syntactice fatal errors(-werror A) don't stop building
- #2259 fix fatal errors don't stop generating cmj file
- #1972 bsb -init does not rely on
npm link
on *nix platform - #2207 nop rebuild to work around yarn bug
- #2226 kill bsb -w when stdin is closed
- #2184 bsb should exclude -I empty dirs
Features
- update reason3 syntax
Features:
-
#2112, introduced a key
suffix
, so that user can choosesuffix : ".bs.js"
-
#2138, in combination of
.bs.js
suffix andin-source
build, bsb is able to remove staled build artifact -
#2091 bsc xx.cmi will print xx.mli so users can generate mli in the beginning.
bsc -output-re xx.cmi
will print it in reason syntax -
#2096, clorized ninja build output
-
#2120 better error message in the location of
{json||json}
-
#2123 avoid namespace leaking in types
-
#2130 make Sys module not break React Native bindings
-
#2159, #2165 enhance user expereince of bsb (less verbose, status bar when failed)
-
#2134, allow people to make customized playground via a plugin
Fixes:
- #2157, fix unnecessary rebuilding when adding files with namespace option on
- #2145, fix bsb unnecessary rebuild issues
- #2150, fix an edge case of comparison between cyclic value
- #2140 tweak invalid npm package error message
- #2080, #2094 bsb -w can detect multiple processes running so no race condition
- #2097 default warning with "-30"
- #2101 fix bs.splice error message
- #2102 fix reason printer bug
- #2089 more logs when ocaml fails to build
- e16cbd03c64eb2b7e99570abdc29f5799778835f fix a binding of
Js.Re.matches
Features:
- #2049, add a dedicated
warning
field, so that it is easy to override, enablewarn-error
and customize it. - React JSX PPX V3 is in. This allows a custom component's
children
to be of any type. When the child's a single non-JSX item, it's not wrapped in an array anymore. - #2016, add a flag
bsb -v
to tell the version number - 64ea144746f998955f69d8eb4ec2b0179ce2d5b4 add Js.Typed_array subarray API
- #2030, error message: better unbound value message
- #2041, add a flag
bsb -verbose
, by default it is less noisy - #2047, make bsb error message more professional
- #2048, turn
-bs-super-error
by default for reason files
Deprecations:
- React JSX PPX V1 has been removed, and the bsconfig
"react-jsx": true
is removed too (use2
or3
). JSX only accept a version number - #1666, remove deprecated API
Fixes:
- #2029, error message: fix display line and column
- #2033, #2040 error message: trim output when too many lines
- #2042, better react error message
- #2053, better error message when file name is non-existent
- #2066, add a missing escaped char ':'
- #2063, add Js.Float for windows, remove deprecated Js.Float API
- #2070, fix -warn-error interaction with -bs-super-error
Fixes:
- #1943, Wrong name mangling for properties "_50"
- #1029, tree shaking in playground
- #1946, Fix invalid JS output
- #1965, more JS modules exported in playground
- #1559, add a comment when no js output produced
- #1989, fix a bug for exit inlining
- #2002, make default exports work with transpiled babel ES6 import
- A bunch of improvements for better error message by Cheng Lou and Cristiano Calcagno
Features:
- #1944, bspack support -main-export
- #1990, better optimizations for pattern match compilation
- #1991, Accept
bs.deriving accessors
applies tobs.config
as well for single field - #2001, improve global module compilation
- #2006,
"subdirs": true
will traverse the directory recursively - #1964, for
Capital_file.ml
generateCapital_file.js
instead ofcapital_file.js
Deprecations:
- #1968, remove support for Google module system
Fixes
- #1933 hyphen directory name fixes
Features:
- Namespace support in the build system
- #1839, #1653, allow in-source build in package-specs , allow single package-spec element in package-specs
- #1802 introduce [@bs.unwrap] for polymorphic variant as external argument
- Improve error message via -bs-super-errors
- Reason syntax error message for .re/.rei files
- #1908 two APIs for Js.Re
- #1905, #1906, simplify the workflow of handling null or undefined (via nullable) Optimizations:
- #1918, better code gen for pattern match
- #1865, Add Js.logN
Fixes
- #1925, fix missing js modules in playground
- #1893, fix Js.Array.append (Js.Vector.append)
Features:
- #1798 make
default
the same semantics as ES6 exports - #1785 upgrade playground
- #1758 generator support
- #1826 add
bsb -where
support so that bsb.exe can be located and cached in a more robust way
Optimizations:
- #1796, #1793 improve submodule arity inference
- #1810 don't rebuild ninja if binary already exists in bin folder
Fixes:
- #1811 add relative PPX paths to .merlin correctly
- #1822, fix an optimization bug
Internal:
- add a tool cmjdump.exe
Fixes:
- #1762, discard effectful unused code
- #1760, div by zero effect analysis
Fixes:
- #1573, don't include
-bs
flags in.merlin
- #1716, fix wrong optimization of recursive values
- #1728, bad inlining
- #1409, make sure when optional is None, bs.obj will not introduce such label
- #1737, same as #1409
- #1746, a corner case when mixing recursive value and functions, should make markup.ml work
- #1749, fix nested if, code block discarded issue
Fixes:
- #1676,
bsb -w
will always build regardless of filetype when fs.watch doesn't send a filename - #1655, fix #1653 Js.Promise.all[n] interfaces
- #1658, fix typeof = "null" issue
- #1656, bs.get/set/get_index/set_index respects bs.ignore
- #1654,
bsb -init
fails if package or current dir has space (parent dir can have spaces) - #1678, bs.get{null;undefined} in object type
- #1692, fix invalid js syntax output
- #1701, fix tailcall handling interaction with exception handler
- #1666, fix misuse of GADT API
Features:
- #1648, exposed
bsc
in the npm environment - #1647, special handling
bsb -init .
to reuse current directory - #1667, fix an optimization bug
- #1698, fix exit code incorrectly aggregated issue
- #1666, add Js.Json.classify and Js.Types.classify
- #1705, add DOM storage API
- #1672, sync up with new reason
- #1696, provide reason-react template
Internal:
- #1583, add -U -D support for bspack
Features:
-
#1630, add modules Option, Result, List, and Vector into Js namespace, update docs
-
#1613, allow bs.scope with bs.send/bs.send.pipe/bs.set/bs.get/bs.set_index/bs.get_index
-
#1604, add the functions
entries
,values
,fromList
,fromArray
andmap
toJs.Dict
-
#1632, bsb themes support
Fixes:
- #1581, more error checking
- #1633, fix missing installations
- #1581, more error checking %identity
Fixes:
- #1556, fix duplicated requires of runtime (report by Cheng Lou)
- #1568, internal compiler error
Features:
- #1564: scoped values in FF, see
bs.scope
in the Manual
Features:
- Significantly improve bsb experience
Features:
- #861, add
-bs-assume-no-mli
and-bs-no-implicit-include
for deterministic build - #851, add -bs-D -bs-list-conditionals flags
- add
-bs-syntax-only
- #854, add
-bs-binary-ast
Fixes:
- #831, bug fix with opam issues
Features:
- Provide
bspp.exe
for the official compiler
Features:
- #822, add
bsdep.exe
- #820, conditional compilation support
- #793, relax syntactic restrictions for all extension point so that
bs.obj
,obj
,bs.raw
,raw
, etc. will both work. Note that all attributes will still be qualified - #793, support
bs.splice
inbs.new
- #798, complete
bs.splice
support and documentation
Incompatible changes (to better support Windows):
-
bsc
,bspack
andbsppx
are renamed intobsc.exe
,bspack.exe
andbsppx.exe
-
No symlink from .bin any more.
Old symlinks:
tmp > ls -al node_modules/.bin/ total 96 drwxr-xr-x 14 hzhang295 staff 476 Sep 20 17:26 . drwxr-xr-x 4 hzhang295 staff 136 Sep 20 17:27 .. lrwxr-xr-x 1 hzhang295 staff 22 Sep 20 17:26 bsc -> ../bs-platform/bin/bsc lrwxr-xr-x 1 hzhang295 staff 25 Sep 20 17:26 bspack -> ../bs-platform/bin/bspack lrwxr-xr-x 1 hzhang295 staff 24 Sep 20 17:26 bsppx -> ../bs-platform/bin/bsppx
Now these symlinks are removed. You have to refer to
bs-platform/bin/bsc.exe
.
Features:
- #787, add an option
-bs-no-warn-unused-bs-attribute
Fixes:
- #743, Fix Bytes.blit when
src == dst
Features:
- #783, by default,
bsc.exe
will warn when it detect some OCaml data types are passed from/to external FFI - #784, add an option
-bs-eval
Fixes:
- #718, Enforce
#=
always return unit for better error messages
Features:
- FFI
- #694, support fields and mutable fields in JS object creation and private method
- #686, introduce phantom arguments (
bs.ignore
) for ad-hoc polymorphism
Initial release