Following the first beta release, we have created a new beta version to help you adapt your software to the new features ahead of the release. Your feedback is critical to help us to improve the user experience.
This release fixes several regressions reported during first beta testing.
One noticeable user experience enhancement is that we’ve unified
rescript build and
rescript build -with-deps (aka the equivalent of
bsb -make-world) into the single command
rescript. Upon calling
rescript, it’ll figure out the unbuilt dependencies automatically, at almost zero cost.
So for most users, the only command to memorize is effectively just
rescript! This achieves what we’ve always wanted, while keeping a performance level we’re satisfied with.
We will mark this release as a stable release if no serious regressions are found, thanks!
======== below is the first beta release for reference =======
We’re finalizing the transfer of our npm package under the new name rescript. This is still a beta, so please report any problem.
The old package bs-platform will still exist, and we’ve carried the old binaries (
bsb) over to the new rescript package for compatibility.
Along with these old binaries, we’re adding a new one:
npm i rescript npx rescript init npx rescript build
The new rescript CLI adopts the subcommand approach so that it is more extensible in the future, it is pretty easy to learn those options:
npx rescript -h npx rescript format -h
Thanks to this approach and
npx, commands like
npx rescript format should work out of box, with zero installation, even on Windows!
The new CLI is not finalized yet, your feedback is welcome!
A list of changes are available here: https://github.com/rescript-lang/rescript-compiler/blob/master/Changes.md#91