Changelog
10.1.4
lib
dir is included in the sources of bsconfig.json https://github.com/rescript-lang/rescript-compiler/pull/6055await
https://github.com/rescript-lang/rescript-compiler/pull/6054j`$(a)$(b)`
interpolation: use string templates `${a}${b}`
instead https://github.com/rescript-lang/rescript-compiler/pull/6067Changelog
10.1.3
@@directive("use client;")
emits use client;
verbatim before imports https://github.com/rescript-lang/rescript-compiler/pull/5999genType
: add Core
standard library support for the following builtin types: Null.t
, Nullable.t
, Undefined.t
, Dict.t<_>
, Promise.t<_>
, Date.t
, BigInt.t
, RegExp.t
, Map.t<_, _>
, WeakMap.t<_, _>
, Set<_>
, WeakSet<_>
https://github.com/rescript-lang/rescript-compiler/pull/6024genType
: streamline the treatment of optionals as undefined https://github.com/rescript-lang/rescript-compiler/pull/6024
option<t>
as undefined | t
instead of null | undefined | t
. This is more permissive when importing functions taking optional values (allows to use option types), but stricter when e.g. exporting ReScript functions taking arguments of option type. Fallback: use Js.undefined<_>
instead.{x:option<string>}
as {x:(undefined | string)}
instead of {x?: string}
. This is more in line with TS's behaviour. Fallback: use {x?:string}
.async
https://github.com/rescript-lang/rescript-compiler/pull/5984Js.Promise2
where then
and catch
were returning undefined
https://github.com/rescript-lang/rescript-compiler/pull/5996@uncurry
external would be inlined and transformed in a way that loses async https://github.com/rescript-lang/rescript-compiler/pull/6011async
functions where hovering on the body with a type error would show 'a => promise<'a>
everywhere https://github.com/rescript-lang/rescript-compiler/pull/6014switch
expressions that contain braced cases
inside https://github.com/rescript-lang/syntax/pull/735@gentype.import
as an alias to @genType.import
in the compiler https://github.com/rescript-lang/rescript-compiler/pull/6021.gen.tsx
file https://github.com/rescript-lang/rescript-compiler/pull/5903float
values would be different from the compare for type float
https://github.com/rescript-lang/rescript-compiler/pull/6043~p as module(...)
https://github.com/rescript-lang/syntax/pull/739Changelog
10.1.2
Changelog
10.1.1
@as
instead{}
for inlined records where all fields are optional https://github.com/rescript-lang/rescript-compiler/pull/5900_
in the make function with JSX V4. https://github.com/rescript-lang/rescript-compiler/pull/5881Changelog
10.1.0
Changelog
10.1.0-rc.5
Changelog
10.1.0-rc.4
rescript format -check
. https://github.com/rescript-lang/rescript-compiler/pull/5760rescript format --help
usage was being swallowed https://github.com/rescript-lang/rescript-compiler/pull/5760{x: ? e}
https://github.com/rescript-lang/syntax/issues/714Changelog
10.1.0-rc.3
list{...x, 1, ...y, ...z}
). https://github.com/rescript-lang/syntax/pull/692@react.component
to set a props type from the outside. https://github.com/rescript-lang/syntax/pull/699await foo->bar
means await (foo->bar)
https://github.com/rescript-lang/syntax/pull/711Pconst_char
from char
to int
https://github.com/rescript-lang/syntax/pull/709Changelog
10.1.0-rc.2
...x
in non-last position would not be reported as syntax error https://github.com/rescript-lang/syntax/pull/673/async
in a function with labelled arguments.async
including an infinite loop https://github.com/rescript-lang/syntax/pull/680Changelog
10.1.0-rc.1
JsxDOM.domProps
: begin_
, end_
, to_
begin
, end
, to
instead.@string
or @int
attribute is used in a V4 component https://github.com/rescript-lang/rescript-compiler/issues/5724bsconfig.json
: .bs.mjs
and .bs.cjs
are allowed https://github.com/rescript-lang/rescript-compiler/pull/5631async
https://github.com/rescript-lang/rescript-compiler/pull/5718_
and comments.loading
, aria-*
DOM element attributes in JsxDOM.domProps
: ariaCurrent
, ariaInvalid
, ariaAutocomplete
, etc.JsxPPXReactSupport
module to relocate the helper functions for JSX v4 from rescript-react