Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency rescript to v11 #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 11, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
rescript (source) 9.1.4 -> 11.1.4 age adoption passing confidence

Release Notes

rescript-lang/rescript-compiler (rescript)

v11.1.4: 11.1.4

Compare Source

🐛 Bug Fix

v11.1.3

Compare Source

🐛 Bug Fix

v11.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
💅 Polish

v11.0.0

Compare Source

No changes compared to rc.9.

v10.1.4

Compare Source

🐛 Bug Fix
🚀 New Feature
💅 Polish

v10.1.3

Compare Source

🚀 New Feature
💥 Breaking Change
  • genType: streamline the treatment of optionals as undefined https://github.com/rescript-lang/rescript-compiler/pull/6024
    • Represent 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.
    • Represent {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

v10.1.2

Compare Source

🐛 Bug Fix

v10.1.1

Compare Source

💥 Breaking Change
  • Parse the attributes of labelled argument to the pattern attributes of argument instead of function. https://github.com/rescript-lang/syntax/pull/722
  • The prop names duplicated to keyword are not mangled automatically in JSX v4.
    • Use @as instead
🚀 New Feature
🐛 Bug Fix

v10.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.
    • Example: "suffix": ".bs.js" // determine the suffix
    • Fix: remove the comment and use standard json.
  • Changed return type of Js.String.match_ as it was wrong. #​5070
    • Example: any use of Js.String.match_ and Js.String2.match_
    • Fix: follow the type errors
  • GenType is now vendored in the compiler and drops support for the Flow and untyped back-ends to focus on providing a better experience for TypeScript.
    • Fix: keep on using the older version of the compiler and the separate genType package if Flow support is required. Migrate to TS if one wants to upgrade the compiler version.
🚀 New Feature
🐛 Bug Fix
  • Classify bigint correctly #​5351
  • Fixed crash in rescript build on Windows #​5516
  • Fixed rescript init command not working #​5526
  • Fix issue with compiler log not terminated that causes problems with editor extension not clearing issues when fixed #​5545
💅 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.
  • Missing labels in function application is now an error (https://forum.rescript-lang.org/t/ann-more-strict-checks-in-missed-labels/2117).
    • Example: let f = (x, ~z) => x + z; f(1, 2)
    • Fix: do let f = (x, ~z) => x + z; f(1, ~z=2) instead
  • Externals without @val annotations do not work anymore, and externals with = "" give an error.
    • Example: external setTimeout: (unit => unit, int) => float = "setTimeout" is not supported anymore.
    • Fix: use @val external setTimeout: (unit => unit, int) => float = "setTimeout" instead.
    • Example2: @val external setTimeout: (unit => unit, int) => float = "" is not supported anymore.
    • Fix2: use @val external setTimeout: (unit => unit, int) => float = "setTimeout" instead.
  • Strings processed at compile-time don't need escaping anymore.
    • Example: let blockCommentsRe = %re("/\\/\\*([^*]|[\\r\\n]|(\\*+([^*/]|[\\r\\n])))*\\*+\\//g").
    • Fix: use let blockCommentsRe = %re("/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\//g") instead.
  • Remove parsing of "import" and "export" which was never officially supported https://github.com/rescript-lang/syntax/pull/597 https://github.com/rescript-lang/syntax/pull/599
    • Example: export type t = int
    • Fix: @genType type t = int
    • Example2: import realValue: complexNumber => float from "./MyMath"
    • Fix2: @genType.import("./MyMath") external realValue: complexNumber => float = "realValue"
🚀 New Feature
  • 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 @@&#8203;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-compiler@0fd8bb0.
🐛 Bug Fix
💅 Polish
  • Several Belt / Js libraries are now converted to ReScript syntax, with corresponding comments in Markdown format suitable for hovering. See #​5361.

Playground

🏠 Internal
  • Added jsoo_playground_main.ml as the rescript-lang.org playground bundle entrypoint
💥 Breaking Change

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants