chore(deps): update dependency rescript to v11 #38
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
9.1.4
->11.1.4
Release Notes
rescript-lang/rescript-compiler (rescript)
v11.1.4
: 11.1.4Compare Source
🐛 Bug Fix
...
. #6949type
keyword. #6997v11.1.3
Compare Source
🐛 Bug Fix
@uncurry
attribute in uncurried mode, to avoid generating calls toCurry
at runtime. #6869-warn-error
, see #6868 for more details. #6877_param
in recursive functions with unit argument. #6907v11.1.2
Compare Source
🐛 Bug Fix
v11.1.1
Compare Source
🐛 Bug Fix
v11.1.0
Compare Source
🐛 Bug Fix
v11.0.1
Compare Source
🐛 Bug Fix
Not_found
instead of giving a proper error message. #6574💅 Polish
v11.0.0
Compare Source
No changes compared to rc.9.
v10.1.4
Compare Source
🐛 Bug Fix
lib
dir is included in the sources of bsconfig.json #6055🚀 New Feature
await
#6054💅 Polish
j`$(a)$(b)`
interpolation: use string templates`${a}${b}`
instead #6067v10.1.3
Compare Source
🚀 New Feature
@@​directive("use client;")
emitsuse client;
verbatim before imports #5999genType
: addCore
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<_>
#6024💥 Breaking Change
genType
: streamline the treatment of optionals as undefined #6024option<t>
asundefined | t
instead ofnull | 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: useJs.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}
.💅 Polish
🐛 Bug Fix
async
#5984Js.Promise2
wherethen
andcatch
were returningundefined
#5996@uncurry
external would be inlined and transformed in a way that loses async #6011async
functions where hovering on the body with a type error would show'a => promise<'a>
everywhere #6014switch
expressions that contain bracedcases
inside rescript-lang/syntax#735@gentype.import
as an alias to@genType.import
in the compiler #6021.gen.tsx
file #5903float
values would be different from the compare for typefloat
#6043~p as module(...)
rescript-lang/syntax#739v10.1.2
Compare Source
🐛 Bug Fix
v10.1.1
Compare Source
💥 Breaking Change
@as
instead🚀 New Feature
{}
for inlined records where all fields are optional #5900🐛 Bug Fix
_
in the make function with JSX V4. #5881v10.1.0
Compare Source
🐛 Bug Fix
v10.0.1
Compare Source
🐛 Bug Fix
v10.0.0
Compare Source
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 #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.0fd8bb0
.🐛 Bug Fix
bytes_to_string
#5573 #5589💅 Polish
Playground
🏠 Internal
jsoo_playground_main.ml
as the rescript-lang.org playground bundle entrypoint💥 Breaking Change
You can find more old changelog from docs/changelog
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.