Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rescript

Package Overview
Dependencies
Maintainers
0
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rescript - npm Package Versions

1
8

10.1.4

Diff

Changelog

Source

10.1.4

:bug: Bug Fix
  • Fix implementation of directives https://github.com/rescript-lang/rescript-compiler/pull/6052
  • Fix issue if the lib dir is included in the sources of bsconfig.json https://github.com/rescript-lang/rescript-compiler/pull/6055
  • Fix issue with string escape in pattern match https://github.com/rescript-lang/rescript-compiler/pull/6062
  • Fix issue with literal comparison of string constants https://github.com/rescript-lang/rescript-compiler/pull/6065
:rocket: New Feature
  • Add support for toplevel await https://github.com/rescript-lang/rescript-compiler/pull/6054
:nail_care: Polish
  • Better error message for extension point https://github.com/rescript-lang/rescript-compiler/pull/6057
  • Improve format check help https://github.com/rescript-lang/rescript-compiler/pull/6056
  • Deprecate unsafe j`$(a)$(b)` interpolation: use string templates `${a}${b}` instead https://github.com/rescript-lang/rescript-compiler/pull/6067
cknittel
published 10.1.3 •

Changelog

Source

10.1.3

:rocket: New Feature
  • Add experimental suppport for directives. An annotation such as @@directive("use client;") emits use client; verbatim before imports https://github.com/rescript-lang/rescript-compiler/pull/5999
  • genType: add Core 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<_> https://github.com/rescript-lang/rescript-compiler/pull/6024
:boom: 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}.
:nail_care: Polish
  • Add the gap property to jsxDOMStyle https://github.com/rescript-lang/rescript-compiler/pull/5956
:bug: Bug Fix
  • Fix issue where error messages related to non-existent props were displayed without location information https://github.com/rescript-lang/syntax/pull/730
  • Fix issue where uncurried functions were incorrectly converting the type of a prop given as a default value to curried https://github.com/rescript-lang/syntax/pull/731
  • Fix issue with nested async functions, where the inner function would be emitted without async https://github.com/rescript-lang/rescript-compiler/pull/5984
  • Fix issue with printing async functions with locally abstract types https://github.com/rescript-lang/syntax/pull/732
  • Fix issue with async context and locally abstract types https://github.com/rescript-lang/rescript-compiler/pull/5985
  • Fix support for recursive components in JSX V4 https://github.com/rescript-lang/syntax/pull/733
  • GenType: fix issue with V3 compatibility mode (see https://github.com/rescript-lang/rescript-compiler/issues/5990) https://github.com/rescript-lang/rescript-compiler/pull/5992
  • Fix issue with overlapping labelled argument with default value https://github.com/rescript-lang/syntax/pull/734
  • Fix issue with using alias and default value together https://github.com/rescript-lang/syntax/pull/734
  • Fix issue in Js.Promise2 where then and catch were returning undefined https://github.com/rescript-lang/rescript-compiler/pull/5996
  • Fix issue in the compiler back-end where async functions passed to an @uncurry external would be inlined and transformed in a way that loses async https://github.com/rescript-lang/rescript-compiler/pull/6011
  • Fix location issue for the treatment of async functions where hovering on the body with a type error would show 'a => promise<'a> everywhere https://github.com/rescript-lang/rescript-compiler/pull/6014
  • Fix formatting of switch expressions that contain braced cases inside https://github.com/rescript-lang/syntax/pull/735
  • Fix formatting of props spread for multiline JSX expression https://github.com/rescript-lang/syntax/pull/736
  • Support @gentype.import as an alias to @genType.import in the compiler https://github.com/rescript-lang/rescript-compiler/pull/6021
  • In GenType, check annotations also in module types to decide whether to produce the .gen.tsx file https://github.com/rescript-lang/rescript-compiler/pull/5903
  • Fix issue with JSX V4 and newtype https://github.com/rescript-lang/syntax/pull/737
  • Fix issue with JSX V4 when components are nested https://github.com/rescript-lang/syntax/pull/738
  • Fix issue where generic compare on float values would be different from the compare for type float https://github.com/rescript-lang/rescript-compiler/pull/6043
  • Improve code generated for default arguments in JSX V4 https://github.com/rescript-lang/syntax/pull/739
  • Fix issue with JSX V4 props of the form ~p as module(...) https://github.com/rescript-lang/syntax/pull/739
cknittel
published 10.1.2 •

Changelog

Source

10.1.2

:bug: Bug Fix
  • Fix an issue where error messages related to duplicate props were displayed without a loc and were unclear https://github.com/rescript-lang/syntax/pull/728
cknittel
published 10.1.1 •

Changelog

Source

10.1.1

:boom: 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
:rocket: New Feature
  • Add support for empty inlined record literal {} for inlined records where all fields are optional https://github.com/rescript-lang/rescript-compiler/pull/5900
:bug: Bug Fix
  • Prevent inlining of async functions in additional cases https://github.com/rescript-lang/rescript-compiler/issues/5860
  • Fix build error where aliasing arguments to _ in the make function with JSX V4. https://github.com/rescript-lang/rescript-compiler/pull/5881
  • Fix parsing of spread props as an expression in JSX V4 https://github.com/rescript-lang/rescript-compiler/pull/5885
  • Fix dropping attributes from props in make function in JSX V4 https://github.com/rescript-lang/rescript-compiler/pull/5905
cknittel
published 10.1.0 •

Changelog

Source

10.1.0

:bug: Bug Fix
  • Fix issue where no error was reported when ? was used for non-optional fields. https://github.com/rescript-lang/rescript-compiler/pull/5853
  • Fix issue where optional fields in inline records were not supported and would cause type errors https://github.com/rescript-lang/rescript-compiler/pull/5827
cknittel
published 10.1.0-rc.5 •

Changelog

Source

10.1.0-rc.5

:bug: Bug Fix
  • Prevent inlining of async functions in last stage of the compiler when the functions are not exported (not in interface file or shadowed) https://github.com/rescript-lang/rescript-compiler/pull/5790
cknittel
published 10.1.0-rc.4 •

Changelog

Source

10.1.0-rc.4

:rocket: New Feature
  • Support format check with rescript format -check. https://github.com/rescript-lang/rescript-compiler/pull/5760
:bug: Bug Fix
  • Fix issue where the last line of rescript format --help usage was being swallowed https://github.com/rescript-lang/rescript-compiler/pull/5760
  • Specialize the printing of the rhs of a record field assignment for optional values {x: ? e} https://github.com/rescript-lang/syntax/issues/714
cknittel
published 10.1.0-rc.3 •

Changelog

Source

10.1.0-rc.3

:rocket: New Feature
  • Support the use of spread anywhere in list creation (e.g. list{...x, 1, ...y, ...z}). https://github.com/rescript-lang/syntax/pull/692
  • Add support for the argument of @react.component to set a props type from the outside. https://github.com/rescript-lang/syntax/pull/699
:bug: Bug Fix
  • Fix issue where the JSX key type is not an optional string https://github.com/rescript-lang/syntax/pull/693
  • Prevent inlining of async functions https://github.com/rescript-lang/rescript-compiler/issues/5754
  • Fix build error for JSX fragment without children https://github.com/rescript-lang/syntax/pull/704
  • Fix issue where async as an id cannot be used with application and labelled arguments https://github.com/rescript-lang/syntax/issues/707
  • Fix 5557: the exhaustive checking for char is incorrect during the unicode migration https://github.com/rescript-lang/rescript-compiler/pull/5749
  • Fix 5753: the comment for unicode char is inaccurate https://github.com/rescript-lang/syntax/pull/709
  • Treat await as almost-unary operator weaker than pipe so await foo->bar means await (foo->bar) https://github.com/rescript-lang/syntax/pull/711
:nail_care: Polish
  • Change payload of Pconst_char from char to int https://github.com/rescript-lang/syntax/pull/709
cknittel
published 10.1.0-rc.2 •

Changelog

Source

10.1.0-rc.2

:bug: Bug Fix
  • Fix issue with changes not being applied with React Native's Metro bundler for files with warnings https://github.com/rescript-lang/rescript-compiler/pull/5738
  • Fix emitting unary minus for floats in case of negative constants https://github.com/rescript-lang/rescript-compiler/pull/5737
  • Fix issue where a spread ...x in non-last position would not be reported as syntax error https://github.com/rescript-lang/syntax/pull/673/
  • Fix issue where the formatter would delete async in a function with labelled arguments.
  • Fix several printing issues with async including an infinite loop https://github.com/rescript-lang/syntax/pull/680
  • Fix issue where certain JSX expressions would be formatted differenctly in compiler 10.1.0-rc.1 https://github.com/rescript-lang/syntax/issues/675
  • Fix issue where printing nested pipe discards await https://github.com/rescript-lang/syntax/issues/687
cknittel
published 10.1.0-rc.1 •

Changelog

Source

10.1.0-rc.1

:boom: Breaking Change
  • Deprecate DOM element attributes in JsxDOM.domProps: begin_, end_, to_
    • Use begin, end, to instead.
  • Emit an error when a @string or @int attribute is used in a V4 component https://github.com/rescript-lang/rescript-compiler/issues/5724

:rocket: New Feature

  • Add extra variants for output filename suffixes in bsconfig.json: .bs.mjs and .bs.cjs are allowed https://github.com/rescript-lang/rescript-compiler/pull/5631
  • Safe promises: t-first Js.Promise2 bindings, and remove warning for nested promises https://github.com/rescript-lang/rescript-compiler/pull/5709
:bug: Bug Fix
  • Fix issue where uncurried async functions were emitted without async https://github.com/rescript-lang/rescript-compiler/pull/5718
  • Fix location issue in error messages with JSX V4 where the multiple props types are defined https://github.com/rescript-lang/syntax/pull/655
  • Fix location issue in make function in JSX V4 that breaks dead code elimination https://github.com/rescript-lang/syntax/pull/660
  • Fix parsing (hence pretty printing) of expressions with underscore _ and comments.
  • Fix printing of comments inside JSX tag https://github.com/rescript-lang/syntax/pull/664
  • Fix issue where formatter erases tail comments inside JSX tag https://github.com/rescript-lang/syntax/issues/663
  • Fix issue where the JSX prop has type annotation of the first class module https://github.com/rescript-lang/syntax/pull/666
  • Fix issue where an empty record literal {} expected to have a non-record type would type check https://github.com/rescript-lang/rescript-compiler/pull/5729
:eyeglasses: Spec Compliance
  • Functions with consecutive dots now print as multiple arrow functions like in JavaScript.
:nail_care: Polish
  • Add loading, aria-* DOM element attributes in JsxDOM.domProps: ariaCurrent, ariaInvalid, ariaAutocomplete, etc.
  • Change the internal representation of props for the lowercase components to record. https://github.com/rescript-lang/syntax/pull/665
  • Add JsxPPXReactSupport module to relocate the helper functions for JSX v4 from rescript-react
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc