You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
+
26
60
## Ecosystem
27
61
28
62
### Rescript Core
29
63
30
64
[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.
31
65
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.
33
67
34
68
### Create-ReScript-App
35
69
@@ -78,6 +112,7 @@ As we now finish up the work on v11, we're looking forward to working on the nex
78
112
-[Dedicated syntax for creating Dicts](https://github.com/rescript-lang/rescript-compiler/issues/6545)
0 commit comments