Socket
Socket
Sign inDemoInstall

rescript

Package Overview
Dependencies
Maintainers
0
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rescript - npm Package Versions

23
7

11.1.4

Diff

cknittel
published 12.0.0-alpha.3 •

Changelog

Source

12.0.0-alpha.3

:bug: Bug fix
  • Revert "Throws an instance of JavaScript's new Error() and adds the extension payload for cause option" (https://github.com/rescript-lang/rescript-compiler/pull/6611). https://github.com/rescript-lang/rescript-compiler/pull/7016
  • Fix dict literals error. https://github.com/rescript-lang/rescript-compiler/pull/7019
cknittel
published 12.0.0-alpha.2 •

Changelog

Source

12.0.0-alpha.2

:rocket: New Feature
  • Allow coercing polyvariants to variants when we can guarantee that the runtime representation matches. https://github.com/rescript-lang/rescript-compiler/pull/6981
  • Add new dict literal syntax (dict{"foo": "bar"}). https://github.com/rescript-lang/rescript-compiler/pull/6774
  • Optimize usage of the new dict literal syntax to emit an actual JS object literal. https://github.com/rescript-lang/rescript-compiler/pull/6538
:bug: Bug Fix
  • Fix issue where long layout break added a trailing comma in partial application .... https://github.com/rescript-lang/rescript-compiler/pull/6949
  • Fix incorrect format of function under unary operator. https://github.com/rescript-lang/rescript-compiler/pull/6953
  • Fix incorrect printing of module binding with signature. https://github.com/rescript-lang/rescript-compiler/pull/6963
  • Fix incorrect printing of external with @as attribute and _ placholder (fixed argument). https://github.com/rescript-lang/rescript-compiler/pull/6970
  • Disallow spreading anything but regular variants inside of other variants. https://github.com/rescript-lang/rescript-compiler/pull/6980
  • Fix comment removed when function signature has type keyword. https://github.com/rescript-lang/rescript-compiler/pull/6997
  • Fix parse error on doc comment before "and" in type def. https://github.com/rescript-lang/rescript-compiler/pull/7001
:house: Internal
  • Add dev container. https://github.com/rescript-lang/rescript-compiler/pull/6962
  • Convert more tests to the node test runner. https://github.com/rescript-lang/rescript-compiler/pull/6956
  • Remove attribute "internal.arity". https://github.com/rescript-lang/rescript-compiler/pull/7004
  • Remove dead modules. https://github.com/rescript-lang/rescript-compiler/pull/7008
:nail_care: Polish
  • Improve formatting in the generated js code. https://github.com/rescript-lang/rescript-compiler/pull/6932
    • }\ncatch{ -> } catch {
    • for(let i = 0 ,i_finish = r.length; i < i_finish; ++i){ -> for (let i = 0, i_finish = r.length; i < i_finish; ++i) {
    • while(true) { -> while (true) {
    • Fixed tabulation for switch case bodies
    • Fixed tabulation for throw new Error bodies
    • Removed empty line at the end of switch statement
    • Removed empty default case from switch statement in the generated code
  • Optimised the Type Extension runtime code and removed trailing /1 from RE_EXN_ID. https://github.com/rescript-lang/rescript-compiler/pull/6958
  • Compact output for anonymous functions. https://github.com/rescript-lang/rescript-compiler/pull/6945 https://github.com/rescript-lang/rescript-compiler/pull/7013
  • Rewatch 1.0.9. https://github.com/rescript-lang/rescript-compiler/pull/7010
cknittel
published 12.0.0-alpha.1 •

Changelog

Source

12.0.0-alpha.1

:rocket: New Feature
  • Allow @directive on functions for emitting function level directive code (let serverAction = @directive("'use server'") (~name) => {...}). https://github.com/rescript-lang/rescript-compiler/pull/6756
  • Add rewatch to the npm package as an alternative build tool. https://github.com/rescript-lang/rescript-compiler/pull/6762
  • Throws an instance of JavaScript's new Error() and adds the extension payload for cause option. https://github.com/rescript-lang/rescript-compiler/pull/6611
  • Allow free vars in types for type coercion e :> t. https://github.com/rescript-lang/rescript-compiler/pull/6828
  • Allow private in with constraints. https://github.com/rescript-lang/rescript-compiler/pull/6843
  • Add regex literals as syntax sugar for @bs.re. https://github.com/rescript-lang/rescript-compiler/pull/6776
  • Improved mechanism to determine arity of externals, which is consistent however the type is written. https://github.com/rescript-lang/rescript-compiler/pull/6874 https://github.com/rescript-lang/rescript-compiler/pull/6881 https://github.com/rescript-lang/rescript-compiler/pull/6883
  • Add Js.globalThis object binding. https://github.com/rescript-lang/rescript-compiler/pull/6909
:boom: Breaking Change
  • Make j and js allowed names for tag functions. https://github.com/rescript-lang/rescript-compiler/pull/6817
  • lazy syntax is no longer supported. If you're using it, use Lazy module or React.lazy_ instead. https://github.com/rescript-lang/rescript-compiler/pull/6342
  • Remove handling of attributes with bs. prefix (@bs.as -> @as etc.). https://github.com/rescript-lang/rescript-compiler/pull/6643
  • Remove obsolete @bs.open feature. https://github.com/rescript-lang/rescript-compiler/pull/6629
  • Drop Node.js version <18 support, due to it reaching End-of-Life. https://github.com/rescript-lang/rescript-compiler/pull/6429
  • Remove deprecated -bs-super-errors option. https://github.com/rescript-lang/rescript-compiler/pull/6814
  • Some global names and old keywords are no longer prefixed. https://github.com/rescript-lang/rescript-compiler/pull/6831
  • Remove ml parsing tests and conversion from .ml to .res via format. https://github.com/rescript-lang/rescript-compiler/pull/6848
  • Remove support for compiling .ml files, and general cleanup. https://github.com/rescript-lang/rescript-compiler/pull/6852
  • Remove rescript convert subcommand. https://github.com/rescript-lang/rescript-compiler/pull/6860
  • Remove support for @bs.send.pipe. This also removes all functions in Js_typed_array that rely on @bs.send.pipe. https://github.com/rescript-lang/rescript-compiler/pull/6858 https://github.com/rescript-lang/rescript-compiler/pull/6891
  • Remove deprecated Js.Vector and Js.List. https://github.com/rescript-lang/rescript-compiler/pull/6900
  • Remove support for %time extension. https://github.com/rescript-lang/rescript-compiler/pull/6924
  • Remove caml_external_polyfill module and the related behavior. https://github.com/rescript-lang/rescript-compiler/pull/6925
:bug: Bug Fix
  • Fix unhandled cases for exotic idents (allow to use exotic PascalCased identifiers for types). https://github.com/rescript-lang/rescript-compiler/pull/6777 https://github.com/rescript-lang/rescript-compiler/pull/6779 https://github.com/rescript-lang/rescript-compiler/pull/6897
  • Fix unused attribute check for @as. https://github.com/rescript-lang/rescript-compiler/pull/6795
  • Reactivate unused attribute check for @int. https://github.com/rescript-lang/rescript-compiler/pull/6802
  • Fix issue where using partial application ... can generate code that uses Curry at runtime. https://github.com/rescript-lang/rescript-compiler/pull/6872
  • Avoid generation of Curry with reverse application |>. https://github.com/rescript-lang/rescript-compiler/pull/6876
  • Fix issue where the internal ppx for pipe -> would not use uncurried application in uncurried mode. https://github.com/rescript-lang/rescript-compiler/pull/6878
:house: Internal
  • Build with OCaml 5.2.0. https://github.com/rescript-lang/rescript-compiler/pull/6797
  • Convert OCaml codebase to snake case style. https://github.com/rescript-lang/rescript-compiler/pull/6702
  • Fix -nostdlib internal compiler option. https://github.com/rescript-lang/rescript-compiler/pull/6824
  • Remove a number of ast nodes never populated by the .res parser, and resulting dead code. https://github.com/rescript-lang/rescript-compiler/pull/6830
  • Remove coercion with 2 types from internal representation. Coercion e : t1 :> t2 was only supported in .ml syntax and never by the .res parser. https://github.com/rescript-lang/rescript-compiler/pull/6829
  • Convert caml_format and js_math to .res. https://github.com/rescript-lang/rescript-compiler/pull/6834
  • Convert js.ml files to .res. https://github.com/rescript-lang/rescript-compiler/pull/6835
  • Remove old .ml tests. https://github.com/rescript-lang/rescript-compiler/pull/6847
  • Make compiler libs ready for uncurried mode. https://github.com/rescript-lang/rescript-compiler/pull/6861
  • Make tests ready for uncurried mode. https://github.com/rescript-lang/rescript-compiler/pull/6862
  • Make gentype tests uncurried. https://github.com/rescript-lang/rescript-compiler/pull/6866
  • Remove @@uncurried.swap, which was used for internal tests. https://github.com/rescript-lang/rescript-compiler/pull/6875
  • Build the compiler libraries/tests in uncurried mode. https://github.com/rescript-lang/rescript-compiler/pull/6864
  • Ignore -uncurried command-line flag. https://github.com/rescript-lang/rescript-compiler/pull/6885
  • Cleanup: remove tracking of uncurried state in parser/printer. https://github.com/rescript-lang/rescript-compiler/pull/6888
  • Remove %opaque primitive. https://github.com/rescript-lang/rescript-compiler/pull/6892
  • Reunify JsxC/JsxU -> Jsx etc. https://github.com/rescript-lang/rescript-compiler/pull/6895
  • Remove the transformation of foo(1,2) into Js.Internal.opaqueFullApply(Internal.opaque(f), 1, 2), and change the back-end to treat all applications as uncurried. https://github.com/rescript-lang/rescript-compiler/pull/6893
  • Remove @uncurry from ReScript sources (others, tests). https://github.com/rescript-lang/rescript-compiler/pull/6938
  • Remove leftover uncurried handling. https://github.com/rescript-lang/rescript-compiler/pull/6939 https://github.com/rescript-lang/rescript-compiler/pull/6940
:nail_care: Polish
  • Make the --help arg be prioritized in the CLI, so correctly prints help message and skip other commands. https://github.com/rescript-lang/rescript-compiler/pull/6667
  • Remove redundant space for empty return in generated js code. https://github.com/rescript-lang/rescript-compiler/pull/6745
  • Remove redundant space for export in generated js code. https://github.com/rescript-lang/rescript-compiler/pull/6560
  • Remove redundant space after continue in generated js code. https://github.com/rescript-lang/rescript-compiler/pull/6743
  • Remove empty export blocks in generated js code. https://github.com/rescript-lang/rescript-compiler/pull/6744
  • Fix indent for returned/thrown/wrapped in parentheses objects in generated js code. https://github.com/rescript-lang/rescript-compiler/pull/6746
  • Fix indent in generated js code. https://github.com/rescript-lang/rescript-compiler/pull/6747
  • In generated code, use let instead of var. https://github.com/rescript-lang/rescript-compiler/pull/6102
  • Turn off transformation for closures inside loops when capturing loop variables, now that let is emitted instead of var. https://github.com/rescript-lang/rescript-compiler/pull/6480
  • Improve unused attribute warning message. https://github.com/rescript-lang/rescript-compiler/pull/6787
  • Remove internal option use-stdlib from build schema. https://github.com/rescript-lang/rescript-compiler/pull/6778
  • Fix Js.Types.JSBigInt payload to use native bigint type. https://github.com/rescript-lang/rescript-compiler/pull/6911
  • Deprecate %external extension, which has never been officially introduced. https://github.com/rescript-lang/rescript-compiler/pull/6906
  • Deprecate xxxU functions in Belt. https://github.com/rescript-lang/rescript-compiler/pull/6941
cknittel
published 11.1.3 •

Changelog

Source

11.1.3

:bug: Bug Fix
  • Fix tag function location on compiler error. https://github.com/rescript-lang/rescript-compiler/pull/6816
  • Fix Deno compatibility issues on Windows. https://github.com/rescript-lang/rescript-compiler/pull/6850
  • Fix issue with infinite loops with type errors on recursive types. https://github.com/rescript-lang/rescript-compiler/pull/6867
  • Ignore @uncurry attribute in uncurried mode, to avoid generating calls to Curry at runtime. https://github.com/rescript-lang/rescript-compiler/pull/6869
  • Avoid generating calls to Curry when adjusting arity of uncurried functions. https://github.com/rescript-lang/rescript-compiler/pull/6870
  • Fix build after calling without -warn-error, see https://github.com/rescript-lang/rescript-compiler/issues/6868 for more details. https://github.com/rescript-lang/rescript-compiler/pull/6877
  • Fix issue with uninitialized _param in recursive functions with unit argument. https://github.com/rescript-lang/rescript-compiler/pull/6907
cknittel
published 11.1.3-rc.1 •

Changelog

Source

11.1.3-rc.1

:bug: Bug Fix
  • Omit standard library dir from load path if -nostdlib is set. https://github.com/rescript-lang/rescript-compiler/pull/6833
cknittel
published 11.1.2 •

Changelog

Source

11.1.2

:bug: Bug Fix
  • Fix issue where capitalised type variables were only allowed in certain positions. https://github.com/rescript-lang/rescript-compiler/pull/6820
cknittel
published 11.1.2-rc.1 •

Changelog

Source

11.1.2-rc.1

:rocket: New Feature
  • Support Windows 11 ARM (using the x64 binaries in emulation). https://github.com/rescript-lang/rescript-compiler/pull/6813
:bug: Bug Fix
  • Fix location of let bindings with attributes. https://github.com/rescript-lang/rescript-compiler/pull/6791
  • PPX v4: mark props type in externals as @live to avoid dead code warnings for prop fields in the editor tooling. https://github.com/rescript-lang/rescript-compiler/pull/6796
  • Fix issue where optional labels were not taken into account when disambiguating record value construction. https://github.com/rescript-lang/rescript-compiler/pull/6798
  • Fix issue in gentype when type Jsx.element surfaces to the user. https://github.com/rescript-lang/rescript-compiler/pull/6808
  • Fix inclusion check (impl vs interface) for untagged variants, and fix the outcome printer to show tags. https://github.com/rescript-lang/rescript-compiler/pull/6669
  • Fix encoding inside tagged template literals. https://github.com/rescript-lang/rescript-compiler/pull/6810
cknittel
published 11.1.1 •

Changelog

Source

11.1.1

:bug: Bug Fix
  • Fix issue of incorrect switch cases with identical bodies when mixing object and array. https://github.com/rescript-lang/rescript-compiler/pull/6792
  • Fix formatter eats comments on the first argument of a uncurried function. https://github.com/rescript-lang/rescript-compiler/pull/6763
  • Fix formatter removes parens in pipe operator with anonymous uncurried function. https://github.com/rescript-lang/rescript-compiler/pull/6766
cknittel
published 11.1.0 •

Changelog

Source

11.1.0

:bug: Bug Fix
  • Revert escape JSX prop names with hyphens (#6705). https://github.com/rescript-lang/rescript-compiler/pull/6731
23
7
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