You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unicode is now supported in regular strings and chars (when the symbol fits). This is now going to work: let str = "Σ". And, you'll be able to pattern match on unicode chars: switch c { | 'Σ' => "what a fine unicode char" | _ => "unicode is fun" }
Doc comments /** ... */ are now supported. Inernally, they are attributes, so are only valid at positions where @foo is allowed, or a syntax error is given. Similarly for module-level /*** comments */ that can go where @@attributes go.
🐛 Bug Fix
Fix printing for inline nullary functor types #477
Fix stripping of quotes for empty poly variants #474
Implement syntax for arity zero vs arity one in uncurried application in #139
Fix parsing of first class module exprs as part of binary/ternary expr in #256
Fix formatter hanging on deeply nested function calls #261
Libraries
💥 Breaking Change
"Attributes not allowed here". If you see this error chances are you're using a ppx that needs updating to a new version.
See an exampe of how to update a ppx
Example: for rescript-relay 0.23.0 is not supported.
Fix: use rescript-relay@beta or the new version when released.
Removed printing modules (Printf, Format etc) and related functions. Details of files added/removed: rescript-lang/rescript@0fd8bb0.
Here are the verbatim release notes: for each item, need to evaluate whether some doc update is required.
10.0.1
🐛 Bug Fix
10.0.0
Compiler
💥 Breaking Change
bsconfig.json
does not support// line
comments anymore."suffix": ".bs.js" // determine the suffix
Js.String.match_
as it was wrong. #5070Js.String.match_
andJs.String2.match_
🚀 New Feature
type opt = {x: int, y?: string}
were added as an experimental feature #5423 #5452 New Syntax@new @variadic
(see Support @new @variadic rescript#5364)🐛 Bug Fix
rescript build
on Windows #5516rescript init
command not working #5526💅 Polish
Changed Linux build to depend on GLIBC 2.28 again for compatibility with Debian 10.
Proper M1 support (CI now supports M1 native builds)
Syntax
💥 Breaking Change
@bs.send.pipe
is now removed. Earlier it was deprecated.let f = (x, ~z) => x + z; f(1, 2)
let f = (x, ~z) => x + z; f(1, ~z=2)
instead@val
annotations do not work anymore, and externals with= ""
give an error.external setTimeout: (unit => unit, int) => float = "setTimeout"
is not supported anymore.@val external setTimeout: (unit => unit, int) => float = "setTimeout"
instead.@val external setTimeout: (unit => unit, int) => float = ""
is not supported anymore.@val external setTimeout: (unit => unit, int) => float = "setTimeout"
instead.let blockCommentsRe = %re("/\\/\\*([^*]|[\\r\\n]|(\\*+([^*/]|[\\r\\n])))*\\*+\\//g")
.let blockCommentsRe = %re("/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\//g")
instead.export type t = int
@genType type t = int
import realValue: complexNumber => float from "./MyMath"
@genType.import("./MyMath") external realValue: complexNumber => float = "realValue"
🚀 New Feature
let str = "Σ"
. And, you'll be able to pattern match on unicode chars:switch c { | 'Σ' => "what a fine unicode char" | _ => "unicode is fun" }
/** ... */
are now supported. Inernally, they are attributes, so are only valid at positions where@foo
is allowed, or a syntax error is given. Similarly for module-level/*** comments */
that can go where@@attributes
go.🐛 Bug Fix
Libraries
💥 Breaking Change
See an exampe of how to update a ppx
rescript-relay
0.23.0 is not supported.rescript-relay@beta
or the new version when released.🐛 Bug Fix
bytes_to_string
bytes_to_string is missing rescript#5573 Further fix for %bytes_to_string rescript#5589💅 Polish
Playground
🏠 Internal
jsoo_playground_main.ml
as the rescript-lang.org playground bundle entrypoint💥 Breaking Change
The text was updated successfully, but these errors were encountered: