rescript-compiler

The compiler for ReScript.

OTHER License

Downloads
67.3K
Stars
6.5K
Committers
365

Bot releases are hidden (Show)

rescript-compiler - 11.0.0-rc.5

Published by cknitt 12 months ago

🚀 New Feature

🐛 Bug Fix

🏠 Internal

💅 Polish

rescript-compiler - 11.0.0-rc.4

Published by cknitt about 1 year ago

🚀 New Feature

💥 Breaking Change

🐛 Bug Fix

💅 Polish

rescript-compiler - 11.0.0-rc.3

Published by cknitt about 1 year ago

🐛 Bug Fix

💅 Polish

rescript-compiler - 11.0.0-rc.2

Published by cknitt about 1 year ago

🚀 New Feature

💥 Breaking Change

🐛 Bug Fix

rescript-compiler - 11.0.0-rc.1

Published by cknitt about 1 year ago

🚀 New Feature

💥 Breaking Change

💅 Polish

rescript-compiler - 11.0.0-beta.4

Published by cknitt over 1 year ago

🚀 New Feature

💥 Breaking Change

🐛 Bug Fix

rescript-compiler - 11.0.0-beta.3

Published by cknitt over 1 year ago

🚀 New Feature

🐛 Bug Fix

rescript-compiler - 11.0.0-beta.2

Published by cknitt over 1 year ago

🚀 New Feature

💥 Breaking Change

🐛 Bug Fix

rescript-compiler - 11.0.0-beta.1

Published by cknitt over 1 year ago

🚀 Main New Feature

💅 Polish

🐛 Bug Fix

rescript-compiler - 11.0.0-alpha.6

Published by cknitt over 1 year ago

💥 Breaking Change

🐛 Bug Fix

💅 Polish

rescript-compiler - 11.0.0-alpha.5

Published by cknitt over 1 year ago

🚀 Main New Feature

💥 Breaking Change

🐛 Bug Fix

rescript-compiler - 11.0.0-alpha.4

Published by cknitt over 1 year ago

🚀 Main New Feature

🐛 Bug Fix

💅 Polish

rescript-compiler - 11.0.0-alpha.3

Published by cknitt over 1 year ago

🚀 Main New Feature

🐛 Bug Fix

rescript-compiler - 11.0.0-alpha.2

Published by cknitt over 1 year ago

🐛 Bug Fix

🚀 Main New Features

rescript-compiler - 11.0.0-alpha.1

Published by cknitt over 1 year ago

🚀 Main New Features

  • Introduce experimental uncurried mode. For experimentation only. PR #5796
  • Customization of runtime representation of variants and introduction of untagged variants PR #6095, PR #6103

🚀 New Feature

💥 Breaking Change

  • Remove support for the legacy Reason syntax. Existing Reason code can be converted to ReScript syntax using ReScript 9 as follows:
    • npm i -g rescript@9
    • rescript convert <reason files>
  • Remove obsolete built-in project templates and the "rescript init" functionality. This is replaced by create-rescript-app which is maintained separately.
  • Do not attempt to build ReScript from source on npm postinstall for platforms without prebuilt binaries anymore.
  • Made pinned dependencies transitive: if a is a pinned dependency of b and b is a pinned dependency of c, then a is implicitly a pinned dependency of c. This change is only breaking if your build process assumes non-transitivity.
  • Curried after uncurried is not fused anymore: (. x) => y => 3 is not equivalent to (. x, y) => 3 anymore. It's instead equivalent to (. x) => { y => 3 }.
    Also, (. int) => string => bool is not equivalen to (. int, string) => bool anymore.
    These are only breaking changes for unformatted code.
  • Exponentiation operator ** is now right-associative. 2. ** 3. ** 2. now compile to Math.pow(2, Math.pow(3, 2)) and not anymore Math.pow(Math.pow(2, 3), 2). Parentheses can be used to change precedence.
  • Remove unsafe j`$(a)$(b)` interpolation deprecated in compiler version 10 https://github.com/rescript-lang/rescript-compiler/pull/6068
  • Remove deprecated module Printexc
  • @deriving(jsConverter) not supported anymore for variant types https://github.com/rescript-lang/rescript-compiler/pull/6088
  • New representation for variants, where the tag is a string instead of a number. https://github.com/rescript-lang/rescript-compiler/pull/6088
  • GenType: removed support for @genType.as for records and variants which has become unnecessary. Use the language's @as instead to channge the runtime representation without requiring any runtime conversion during FFI. https://github.com/rescript-lang/rescript-compiler/pull/6099 https://github.com/rescript-lang/rescript-compiler/pull/6101

🐛 Bug Fix

💅 Polish

rescript-compiler - 10.1.4

Published by cknitt over 1 year ago

🐛 Bug Fix

🚀 New Feature

💅 Polish

rescript-compiler - 10.1.3

Published by cknitt over 1 year ago

🚀 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

rescript-compiler - 10.1.2

Published by cknitt over 1 year ago

🐛 Bug Fix

rescript-compiler - 10.1.1

Published by cknitt almost 2 years ago

💥 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

rescript-compiler - 10.1.0

Published by cknitt almost 2 years ago

🐛 Bug Fix