We are pleased to announce that ReScript v10 is now live and ready to install via npm:
npm install rescript@10
(Please note that rescript@latest will be set to v10 in a few days)
The release blog post with all important highlights can be found here. The full list of changes (including breaking ones) can be found in our Changelog. The ReScript Playground is now using v10 by default as well.
Besides the changes on the software itself, we made some great progress behind the scenes:
Way improved OCaml development experience within the compiler project (dune / modern OCaml versions for development)
Repositories / READMEs got cleaned up and lots of stale information removed.
Most releases are now CI-automated.
Important (but detached) compiler changes such as the ReScript playground are now upstreamed to the compiler.
More community members got access to our infrastructure (GitHub, npm) to help us maintain all the different projects and repositories.
This is huge! A big thanks to everyone involved to help us make the release cycle way more efficient.
As this is a major release, there are quite a few breaking changes, but we made sure that those changes are no show-stoppers for 95% of our ReScript users.
Check out the Changelog for proposed migration paths and let us know if there’s anything missing when migrating your project to v10.
We hope you enjoy the new improvements as much as we do. Feel free to send us feedback and report your bugs / issues on our bug trackers.
Yeah. In previous versions /** */ had no special semantic meaning. In v10, the parser will interpret those comments as doc headers which allows the editor to show its text on hover.
We are facing an compilation issue on windows 10 with rescript@10, we are not facing it with rescript@9.1.4
Error: EPERM: operation not permitted, open 'C:\projects\frontend\js\.bsb.lock'
at Object.openSync (node:fs:585:3)
at acquireBuild (C:\projects\frontend\js\node_modules\rescript\rescript:207:10)
at build (C:\projects\frontend\js\node_modules\rescript\rescript:516:11)
at in_watch_mode (C:\projects\frontend\js\node_modules\rescript\rescript:587:5)
at ChildProcess.<anonymous> (C:\projects\frontend\js\node_modules\rescript\rescript:317:9)
at ChildProcess.emit (node:events:390:28)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {
errno: -4048,
syscall: 'open',
code: 'EPERM',
path: 'C:\\projects\\frontend\\js\\.bsb.lock'
}
I am on Windows 10 and on upgrade to rescript@10 I observed the same issue with “rescript build -w”
but not with either “rescript build” or “rescript build -with-deps”. Seems like this problem is limited to the watch mode.
I opened an issue about this build error. here
Just closing the lock file after opening it, the build process works normally.
This error already existed a long time, hoping our team will fix it soon.