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.4Release Notes
rescript-lang/rescript-compiler (rescript)
v11.1.4: 11.1.4Compare Source
🐛 Bug Fix
.... #6949typekeyword. #6997v11.1.3Compare Source
🐛 Bug Fix
@uncurryattribute in uncurried mode, to avoid generating calls toCurryat runtime. #6869-warn-error, see #6868 for more details. #6877_paramin recursive functions with unit argument. #6907v11.1.2Compare Source
🐛 Bug Fix
v11.1.1Compare Source
🐛 Bug Fix
v11.1.0Compare Source
🐛 Bug Fix
v11.0.1Compare Source
🐛 Bug Fix
Not_foundinstead of giving a proper error message. #6574💅 Polish
v11.0.0Compare Source
No changes compared to rc.9.
v10.1.4Compare Source
🐛 Bug Fix
libdir 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.3Compare Source
🚀 New Feature
@@​directive("use client;")emitsuse client;verbatim before imports #5999genType: addCorestandard 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 | tinstead 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.Promise2wherethenandcatchwere returningundefined#5996@uncurryexternal would be inlined and transformed in a way that loses async #6011asyncfunctions where hovering on the body with a type error would show'a => promise<'a>everywhere #6014switchexpressions that contain bracedcasesinside rescript-lang/syntax#735@gentype.importas an alias to@genType.importin the compiler #6021.gen.tsxfile #5903floatvalues would be different from the compare for typefloat#6043~p as module(...)rescript-lang/syntax#739v10.1.2Compare Source
🐛 Bug Fix
v10.1.1Compare Source
💥 Breaking Change
@asinstead🚀 New Feature
{}for inlined records where all fields are optional #5900🐛 Bug Fix
_in the make function with JSX V4. #5881v10.1.0Compare Source
🐛 Bug Fix
v10.0.1Compare Source
🐛 Bug Fix
v10.0.0Compare Source
Compiler
💥 Breaking Change
bsconfig.jsondoes not support// linecomments anymore."suffix": ".bs.js" // determine the suffixJs.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 buildon Windows #5516rescript initcommand 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.pipeis 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@valannotations 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 = intimport 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@foois allowed, or a syntax error is given. Similarly for module-level/*** comments */that can go where@@​attributesgo.🐛 Bug Fix
Libraries
💥 Breaking Change
See an exampe of how to update a ppx
rescript-relay0.23.0 is not supported.rescript-relay@betaor the new version when released.0fd8bb0.🐛 Bug Fix
bytes_to_string#5573 #5589💅 Polish
Playground
🏠 Internal
jsoo_playground_main.mlas 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.