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

rescript

Package Overview
Dependencies
Maintainers
4
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

11.0.0

Diff

Changelog

Source

11.0.0

No changes compared to rc.9.

cknittel
published 11.0.0-rc.9 •

Changelog

Source

11.0.0-rc.9

:rocket: New Feature
  • GenType: support @deriving(accessors) outputs. https://github.com/rescript-lang/rescript-compiler/pull/6537
  • Allow coercing ints and floats to unboxed variants that have a catch-all unboxed int or float case. https://github.com/rescript-lang/rescript-compiler/pull/6540
  • Allow tuples in untagged variants. https://github.com/rescript-lang/rescript-compiler/pull/6550
:bug: Bug Fix
  • GenType: now emits full suffix on JS import path to be compatible with .res.js. https://github.com/rescript-lang/rescript-compiler/pull/6541
:nail_care: Polish
  • Format docstrings. https://github.com/rescript-lang/rescript-compiler/pull/6417
  • JSX v4: make automatic mode the default. https://github.com/rescript-lang/rescript-compiler/pull/6552
cknittel
published 11.0.0-rc.8 •

Changelog

Source

11.0.0-rc.8

:rocket: New Feature
  • Add support for type coercion for invariant type arguments such as array payloads. https://github.com/rescript-lang/rescript-compiler/pull/6518
  • Start treating rescript command the same as the rescript build command, so now you can do rescript -w. https://github.com/rescript-lang/rescript-compiler/pull/6524
:bug: Bug Fix
  • Fix accidental removal of Belt.Result.Ok and Belt.Result.Error constructors in rc.5. https://github.com/rescript-lang/rescript-compiler/pull/6514
  • Add missing check that the runtime representation of variants matches implementation and interface. https://github.com/rescript-lang/rescript-compiler/pull/6513/files
  • GenType: only export types (not values) from module types. https://github.com/rescript-lang/rescript-compiler/pull/6516
  • Fix compiler crash with unboxed variant definition with only 1 constructor. https://github.com/rescript-lang/rescript-compiler/pull/6523
  • GenType: support mutual recursive types inside modules. https://github.com/rescript-lang/rescript-compiler/pull/6528
  • Workaround for @as in labels in uncurried externals, which was broken. https://github.com/rescript-lang/rescript-compiler/pull/6527
:nail_care: Polish
  • GenType: make outputs DCE-friendly. https://github.com/rescript-lang/rescript-compiler/pull/6508
cknittel
published 11.0.0-rc.7 •

Changelog

Source

11.0.0-rc.7

:rocket: New Feature
  • Allow empty inline records in variants. https://github.com/rescript-lang/rescript-compiler/pull/6494
  • Allow empty record patterns in pattern matching. https://github.com/rescript-lang/rescript-compiler/pull/6494
:bug: Bug Fix
  • Fix issue where an inline record with attributes did not parse. https://github.com/rescript-lang/rescript-compiler/pull/6499
  • Fix issue with uncurried function with 1 arg being a variable where an undefined variable could be emitted. https://github.com/rescript-lang/rescript-compiler/pull/6507
  • Fix runtime errors on @genType.as("alias") output. https://github.com/rescript-lang/rescript-compiler/pull/6509
cknittel
published 11.0.0-rc.6 •

Changelog

Source

11.0.0-rc.6

:rocket: New Feature
  • Freely configurable suffix for generated .js files. https://github.com/rescript-lang/rescript-compiler/pull/6472
:bug: Bug Fix
  • Fix issue with GenType and result introduced in rc.5. https://github.com/rescript-lang/rescript-compiler/pull/6464
  • Fix compiler crash when inlining complex constants in pattern matching. https://github.com/rescript-lang/rescript-compiler/pull/6471
  • Fix issue with generating async functions inside loops. https://github.com/rescript-lang/rescript-compiler/pull/6479
  • Fix issue with Gentype and string annotations with numbers such as @as("0"). https://github.com/rescript-lang/rescript-compiler/pull/6487
  • Fix error message on curried/uncurried signature mismatch. https://github.com/rescript-lang/rescript-compiler/pull/6414
:nail_care: Polish
  • Improve some error messages in rescript.conf parsing. https://github.com/rescript-lang/rescript-compiler/pull/6469
cknittel
published 11.0.0-rc.5 •

Changelog

Source

11.0.0-rc.5

:rocket: New Feature
  • Allow coercing unboxed variants with only strings (now including with a single payload of string) to the primitive string. https://github.com/rescript-lang/rescript-compiler/pull/6441
  • Allow coercing strings to unboxed variants that have a catch-all unboxed string case. https://github.com/rescript-lang/rescript-compiler/pull/6443
  • Allow coercing int to float. https://github.com/rescript-lang/rescript-compiler/pull/6448
:bug: Bug Fix
  • Fix issue with dynamic import of module in nested expressions. https://github.com/rescript-lang/rescript-compiler/pull/6431
  • Fix issue where GenType was not supporting @tag on ordinary variants. https://github.com/rescript-lang/rescript-compiler/pull/6437
  • Fix using dynamic import of module in block instead of async function. https://github.com/rescript-lang/rescript-compiler/pull/6434
  • Fix issue with using dynamic import of module in uncurried mode. https://github.com/rescript-lang/rescript-compiler/pull/6434
  • Fix build error with JSX v4 transformation of React.forwardRef in uncurried mode. https://github.com/rescript-lang/rescript-compiler/pull/6447
  • Fix printing of exotic JSX names. https://github.com/rescript-lang/rescript-compiler/pull/6451
  • Fix locations when code with await fails to compile (all locations would point to the internal function unsafe_await). https://github.com/rescript-lang/rescript-compiler/pull/6452
  • Fix renaming fields (with @as) in inline records doesn't work when destructuring. https://github.com/rescript-lang/rescript-compiler/pull/6456
  • Fix rc.4 regressions:
    • Don't show compilation time when calling rescript build -help command. https://github.com/rescript-lang/rescript-compiler/pull/6439
    • Running rescript build -w with a compilation error doesn't exit with an error code and continues waiting for changes. https://github.com/rescript-lang/rescript-compiler/pull/6460
:house: Internal
  • Remove dependency stdlib-406 -> belt. https://github.com/rescript-lang/rescript-compiler/pull/6453
  • Playground: Add support for implicitly opened modules. https://github.com/rescript-lang/rescript-compiler/pull/6446
:nail_care: Polish
  • Add Deno to reserved names, so that modules named Deno don't clash with the globally exposed Deno object. https://github.com/rescript-lang/rescript-compiler/pull/6428
  • Disable ESLint/TSLint on gentype outputs properly. https://github.com/rescript-lang/rescript-compiler/pull/6442
  • Improve rescript CLI to use stdout/stderr appropriately for help command's message. https://github.com/rescript-lang/rescript-compiler/pull/6439
  • Generate f() instead of f(undefined) for f(). https://github.com/rescript-lang/rescript-compiler/pull/6459
cknittel
published 11.0.0-rc.4 •

Changelog

Source

11.0.0-rc.4

:rocket: New Feature
  • Support renaming fields in inline records with @as attribute. #6391
  • Support renaming object fields of @obj external ppx with @as attribute. #6391
  • Add builtin abstract types for File and Blob APIs. https://github.com/rescript-lang/rescript-compiler/pull/6383
  • Untagged variants: Support promise, RegExes, Dates, File and Blob. https://github.com/rescript-lang/rescript-compiler/pull/6383
  • Untagged variants: Support bool. https://github.com/rescript-lang/rescript-compiler/pull/6368
  • Support aliased types as payloads to untagged variants. https://github.com/rescript-lang/rescript-compiler/pull/6394
  • Support the async component for React Server Component in JSX V4. https://github.com/rescript-lang/rescript-compiler/pull/6399
  • Support rescript.json configuration file and deprecate bsconfig.json. https://github.com/rescript-lang/rescript-compiler/pull/6382
:boom: Breaking Change
  • Update watcher rules to recompile only on config and *.res/*.resi/*.ml/.mli file changes. Solves the issue of unnecessary recompiles on .css, .ts, and other unrelated file changes. https://github.com/rescript-lang/rescript-compiler/pull/6420
  • Add smart printer for pipe chains. https://github.com/rescript-lang/rescript-compiler/pull/6411 (the formatter will reformat existing code in certain cases)
  • Js.Json.t now uses Boolean(bool) instead of explicit @as(true) True | @as(false) False. https://github.com/rescript-lang/rescript-compiler/pull/6421
:bug: Bug Fix
  • Fix issue with GenType and labelled arguments. https://github.com/rescript-lang/rescript-compiler/pull/6406
  • Fix dependencies reinitialization on every change in watch mode. Leads to faster rebuilds and cleaner terminal. https://github.com/rescript-lang/rescript-compiler/pull/6404
:nail_care: Polish
  • A little performance improvement for JSX V4 runtime helper by removing one object allocation for components with key prop. https://github.com/rescript-lang/rescript-compiler/pull/6376
  • The error message for "toplevel expressions should evaluate to unit" has been revamped and improved. https://github.com/rescript-lang/rescript-compiler/pull/6407
  • Improve "Somewhere wanted" error messages by changing wording and adding more context + suggested solutions to the error messages where appropriate. https://github.com/rescript-lang/rescript-compiler/pull/6410
  • Display the compile time for rescript build command. https://github.com/rescript-lang/rescript-compiler/pull/6404
  • Improve help message for build and clean commands. https://github.com/rescript-lang/rescript-compiler/pull/6404
  • Pass through the -verbose flag to builds in watch mode. https://github.com/rescript-lang/rescript-compiler/pull/6404
  • Improve error message when defining duplicate labels in a record. https://github.com/rescript-lang/rescript-compiler/pull/6415
  • Improve error message when trying to concatenate strings using the wrong operator. https://github.com/rescript-lang/rescript-compiler/pull/6416
cknittel
published 11.0.0-rc.3 •

Changelog

Source

11.0.0-rc.3

:bug: Bug Fix
  • Fix issue with JSX V4 when component props have the default value with same name. https://github.com/rescript-lang/rescript-compiler/pull/6377
  • Fixed code formatter with "uncurried": false in bsconfig. https://github.com/rescript-lang/rescript-compiler/pull/6378
:nail_care: Polish
  • Add Bun to reserved names, so that modules named Bun don't clash with the globally exposed Bun object. https://github.com/rescript-lang/rescript-compiler/pull/6381
cknittel
published 11.0.0-rc.2 •

Changelog

Source

11.0.0-rc.2

:rocket: New Feature
  • rescript build will always build its dependency by default. The argument -with-deps is not needed anymore. https://github.com/rescript-lang/rescript-compiler/pull/6350
:boom: Breaking Change
  • Stop mangling object field names. If you had objects with field names containing "__" or leading "_", they won't be mangled in the compiled JavaScript and represented as it is without changes. https://github.com/rescript-lang/rescript-compiler/pull/6354
:bug: Bug Fix
  • Fixed outcome printer resolution of uncurried config. https://github.com/rescript-lang/rescript-compiler/pull/6353
cknittel
published 11.0.0-rc.1 •

Changelog

Source

11.0.0-rc.1

:rocket: New Feature
  • GenType: Propagate comments from record fields to emitted TypeScript types. https://github.com/rescript-lang/rescript-compiler/pull/6333
:boom: Breaking Change
  • $$default is no longer exported from the generated JavaScript when using default exports. https://github.com/rescript-lang/rescript-compiler/pull/6328
:nail_care: Polish
  • Conditionally print error message about record with missing label potentially being a component. https://github.com/rescript-lang/rescript-compiler/pull/6337
  • Put definition in the bottom and the actual error at the top when reporting errors for supplying fields etc with the wrong name. https://github.com/rescript-lang/rescript-compiler/pull/6336
  • Fix left over places where polyvariant tag names were printed in OCaml syntax instead of ReScript. https://github.com/rescript-lang/rescript-compiler/pull/6348
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