Skip to content

Commit f6b95a3

Browse files
Some more feature mentions
1 parent 4e75fbe commit f6b95a3

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

_blogposts/2024-01-11-release-11-0-0.mdx

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,54 @@ The complete list of changes can be found [here](https://github.com/rescript-lan
1616

1717
## Compiler
1818

19+
Use your favorite package manager to install the new compiler release, e.g:
20+
21+
```sh
22+
npm install rescript@11
23+
```
24+
1925
As this release is packed, please refer to the following blogposts for a detailed breakdown of each of the main new features:
2026

2127
- [Better interop with customizable variants](/blog/improving-interop)
2228
- [Enhanced Ergonomics for Record Types](/blog/enhanced-ergonomics-for-record-types)
2329
- [First-class Dynamic Import Support](/blog/first-class-dynamic-import-support)
2430
- [Uncurried Mode](/blog/uncurried-mode)
2531

32+
Furthermore, there are a lot of smaller improvements of which we want to state only a few here.
33+
34+
### More types eligible for type coercion
35+
36+
The `:>` (type coercion) operator now supports a few more datatypes, check out its [Syntax Lookup](/syntax-lookup#type-coercion) page.
37+
38+
### Build System
39+
40+
The watcher can now be called with just `rescript -w`. Also `rescript build` will always build with dependencies by default so the argument `-with-deps` is not needed anymore.
41+
42+
### rescript.json
43+
44+
The compiler config file has been renamed to `rescript.json`. Since the rebrand from `BuckleScript` to `ReScript`, the `bs-` names make no sense anymore. Later on, we will also rename some of the config attributes, like `bs-dependencies`.
45+
46+
### Relaxed Suffix Rules
47+
48+
You can now freely choose the suffix of the generated JS files. For instance instead of `.bs.js` you can now use `.res.js`.
49+
50+
### Opening files from current project globally
51+
52+
It's now possible to have a module opened by default that is just part of the current project. Previously, this only worked with dependencies or namespaced projects. For example, a file with the path `src/Utils.res` can be added to `bsc-flags` like so:
53+
54+
```json
55+
{
56+
"bsc-flags": ["-open Utils"]
57+
}
58+
```
59+
2660
## Ecosystem
2761

2862
### Rescript Core
2963

3064
[ReScript Core](https://github.com/rescript-association/rescript-core) is ReScript's new standard library. It replaces the complete `Js` module as well as some of the more frequently used modules from `Belt` and is recommended to use with uncurried mode.
3165

32-
The latest docs on [https://rescript-lang.org](/) already use it for the examples, but please bear in mind that the [API docs](/docs/manual/latest/api) are not updated to it yet. This will happen soon though.
66+
The latest docs on [rescript-lang.org](/) already use it for the examples, but please bear in mind that the [API docs](/docs/manual/latest/api) are not updated to it yet. This will happen soon though.
3367

3468
### Create-ReScript-App
3569

@@ -78,6 +112,7 @@ As we now finish up the work on v11, we're looking forward to working on the nex
78112
- [Dedicated syntax for creating Dicts](https://github.com/rescript-lang/rescript-compiler/issues/6545)
79113
- [Array spread syntax](https://github.com/rescript-lang/rescript-compiler/issues/6546)
80114
- A [new custom build system](https://github.com/rolandpeelen/rewatch) with better support for workspaces / monorepos
115+
- More improvements to the type system
81116

82117
## Acknowledgements
83118

0 commit comments

Comments
 (0)