Skip to content

12.0.0-alpha.15

Pre-release
Pre-release
Compare
Choose a tag to compare
@cknitt cknitt released this 09 Jul 12:35
· 112 commits to master since this release
bf99e3e

💥 Breaking Change

  • New rewatch based build system. #7551 #7593
    • The new rewatch based build system is now the default and is exposed through the rescript command. The rewatch command has been removed.
    • The previous Ninja-based build system is now available via the rescript legacy subcommand.
    • Argument --compiler-args is now a subcommand compiler-args.
  • Remove String.getSymbol, String.getSymbolUnsafe, String.setSymbol from standard library. #7571

🐛 Bug fix

  • Ignore inferred arity in functions inside %raw functions, leaving to %ffi the responsibility to check the arity since it gives an error in case of mismatch. #7542
  • Pass the rewatch exit code through in wrapper script. #7565
  • Prop punning when types don't match results in I/O error: _none_: No such file or directory. #7533
  • Pass location to children prop in jsx ppx. #7540
  • Fix crash when -bs-g is used with untagged variants. #7575
  • Fix issue with preserve mode where jsx is declared as an external without a @module attribute. #7591
  • Rewatch: don't add deps to modules that are in packages that are not a dependency. #7612
  • Rewatch: fix non-unicode stderr. #7613
  • Fix rewatch considering warning configs of non-local dependencies. #7614
  • Rewatch: fix panic if package.json name different from module name. #7616
  • Fix finding the standard library for pnpm. #7615

💅 Polish

  • Better error message for when trying to await something that is not a promise. #7561
  • Better error messages for object field missing and object field type mismatches. #7580
  • Better error messages for when polymorphic variants does not match for various reasons. #7596
  • Improved completions for inline records. #7601
  • Add OrThrow aliases for Belt functions ending with Exn. #7581, #7590 The following aliases have been added:
    • Belt.Array.getOrThrow
    • Belt.Array.setOrThrow
    • Belt.Map.getOrThrow
    • Belt.MutableMap.getOrThrow
    • Belt.Set.getOrThrow
    • Belt.MutableSet.getOrThrow
    • Belt.List.getOrThrow
    • Belt.List.tailOrThrow
    • Belt.List.headOrThrow
    • Belt.MutableQueue.peekOrThrow
    • Belt.MutableQueue.popOrThrow
    • Belt.Option.getOrThrow
    • Belt.Result.getOrThrow

🏠 Internal

  • Remove @return(undefined_to_opt) and %undefined_to_opt primitive. #7462
  • Migrate rewatch to Rust 2024 edition. #7602