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

rescript

Package Overview
Dependencies
Maintainers
5
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rescript - npm Package Versions

23
8

12.0.0-alpha.4

Diff

Changelog

Source

12.0.0-alpha.4

:boom: Breaking Change
  • OCaml compatibility in the stdlib and primitives are dropped/deprecated. https://github.com/rescript-lang/rescript-compiler/pull/6984
  • Remove JSX v3. https://github.com/rescript-lang/rescript-compiler/pull/7072
  • Remove js_cast.res. https://github.com/rescript-lang/rescript-compiler/pull/7075
:rocket: New Feature
  • Use FORCE_COLOR environmental variable to force colorized output. https://github.com/rescript-lang/rescript-compiler/pull/7033
  • Allow spreads of variants in patterns (| ...someVariant as v => ) when the variant spread is a subtype of the variant matched on. https://github.com/rescript-lang/rescript-compiler/pull/6721
  • Fix the issue where dynamic imports are not working for function-defined externals. https://github.com/rescript-lang/rescript-compiler/pull/7060
  • Allow pattern matching on dicts. switch someDict { | dict{"one": 1} => Js.log("one is one") }. https://github.com/rescript-lang/rescript-compiler/pull/7059
  • "ReScript Core" standard library is now included in the rescript npm package. https://github.com/rescript-lang/rescript-compiler/pull/7108 https://github.com/rescript-lang/rescript-compiler/pull/7116
  • Handle absolute filepaths in gentype. https://github.com/rescript-lang/rescript-compiler/pull/7104
:bug: Bug fix
  • Fix tuple coercion. https://github.com/rescript-lang/rescript-compiler/pull/7024
  • Fix attribute printing. https://github.com/rescript-lang/rescript-compiler/pull/7025
  • Fix "rescript format" with many files. https://github.com/rescript-lang/rescript-compiler/pull/7081
  • Fix bigint max, min. https://github.com/rescript-lang/rescript-compiler/pull/7088
  • Fix parsing issue with nested variant pattern type spreads. https://github.com/rescript-lang/rescript-compiler/pull/7080
  • Fix JSX settings inheritance: only 'version' propagates to dependencies, preserving their 'mode' and 'module'. https://github.com/rescript-lang/rescript-compiler/pull/7094
  • Fix variant cast to int. https://github.com/rescript-lang/rescript-compiler/pull/7058
  • Fix comments formatted away in function without arguments. https://github.com/rescript-lang/rescript-compiler/pull/7095
  • Fix genType JSX component compilation. https://github.com/rescript-lang/rescript-compiler/pull/7107
:nail_care: Polish
  • Add some context to error message for unused variables. https://github.com/rescript-lang/rescript-compiler/pull/7050
  • Improve error message when passing children prop to a component that doesn't accept it. https://github.com/rescript-lang/rescript-compiler/pull/7044
  • Improve error messages for pattern matching on option vs non-option, and vice versa. https://github.com/rescript-lang/rescript-compiler/pull/7035
  • Improve bigint literal comparison. https://github.com/rescript-lang/rescript-compiler/pull/7029
  • Improve output of @variadic bindings. https://github.com/rescript-lang/rescript-compiler/pull/7030
  • Improve error messages around JSX components. https://github.com/rescript-lang/rescript-compiler/pull/7038
  • Improve output of record copying. https://github.com/rescript-lang/rescript-compiler/pull/7043
  • Provide additional context in error message when unit is expected. https://github.com/rescript-lang/rescript-compiler/pull/7045
  • Improve error message when passing an object where a record is expected. https://github.com/rescript-lang/rescript-compiler/pull/7101
:house: Internal
  • Remove uncurried flag from bsb. https://github.com/rescript-lang/rescript-compiler/pull/7049
  • Build runtime/stdlib files with rescript/bsb instead of ninja.js. https://github.com/rescript-lang/rescript-compiler/pull/7063
  • Build tests with bsb and move them out of jscomp. https://github.com/rescript-lang/rescript-compiler/pull/7068
  • Run build_tests on Windows. https://github.com/rescript-lang/rescript-compiler/pull/7065
  • Rename folder "jscomp" to "compiler". https://github.com/rescript-lang/rescript-compiler/pull/7086
  • Disable -bs-cross-module-opt for tests. https://github.com/rescript-lang/rescript-compiler/pull/7071
  • Move ounit_tests into the tests folder. https://github.com/rescript-lang/rescript-compiler/pull/7096
  • Move syntax_tests into the tests folder. https://github.com/rescript-lang/rescript-compiler/pull/7090 https://github.com/rescript-lang/rescript-compiler/pull/7097
  • Capitalize runtime filenames. https://github.com/rescript-lang/rescript-compiler/pull/7110
  • Build mocha tests as esmodule / .mjs. https://github.com/rescript-lang/rescript-compiler/pull/7115
  • Use dict instead of Dict.t everywhere. https://github.com/rescript-lang/rescript-compiler/pull/7136
cknittel
published 11.1.4 •

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
  • Start converting tests from mocha to the node test runner. https://github.com/rescript-lang/rescript-compiler/pull/6956
: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
  • Improve error messages for function arity errors. https://github.com/rescript-lang/rescript-compiler/pull/6990
  • Add missing HTML attribute capture to JsxDOM.res. https://github.com/rescript-lang/rescript-compiler/pull/7006
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
23
8
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