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
Copy file name to clipboardExpand all lines: markdown-pages/docs/manual/migrate-to-v12.mdx
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,9 @@ If you encounter any missing information or issues during migration, please [ope
16
16
- Uncurried mode must be enabled (i.e. you have not opted-out from it)
17
17
- Your project must not contain any OCaml source code anymore, as support for `.ml` files is removed in this version. However there are ways to convert OCaml syntax with an older ReScript compiler version ([see below](#converting-generated-ml-files)).
18
18
- The old configuration filename that was deprecated in v11, `bsconfig.json`, is removed. Rename it to `rescript.json`.
19
-
- Minimum supported Node.js version is 20.0.0
19
+
- Minimum supported Node.js version is 20.11.0
20
20
21
-
### Standard library changes
21
+
### Standard Library Changes
22
22
23
23
In V12, the new standard library ships with the compiler, so you can uninstall and remove the `@rescript/core` dependency from your `rescript.json`
24
24
@@ -224,9 +224,9 @@ Below is a consolidated excerpt of all the breaking changes from the compiler ch
224
224
### Language & syntax
225
225
226
226
- Tag functions named `j` or `js` are no longer reserved, so add your own implementation whenever a tagged template expects them. https://github.com/rescript-lang/rescript-compiler/pull/6817
227
-
-`lazy` syntax was removed; use the `Lazy` module or `React.lazy_`instead. https://github.com/rescript-lang/rescript-compiler/pull/6342
227
+
-`lazy` syntax was removed; use the `Lazy` module instead. https://github.com/rescript-lang/rescript-compiler/pull/6342
228
228
- All legacy `@bs.*` attributes (e.g. `@bs.as`, `@bs.send`) and `@bs.open` were removed; use their prefix-free successors (`@as`, `@send`, `@open`, …). https://github.com/rescript-lang/rescript-compiler/pull/6643https://github.com/rescript-lang/rescript-compiler/pull/6629
229
-
-`@bs.send.pipe` was removed, together with the helper functions in `Js_typed_array` that relied on it; rewrite bindings to use explicit piping. https://github.com/rescript-lang/rescript-compiler/pull/6858https://github.com/rescript-lang/rescript-compiler/pull/6891
229
+
-`@bs.send.pipe` was removed; rewrite bindings to use `@send`. https://github.com/rescript-lang/rescript-compiler/pull/6858https://github.com/rescript-lang/rescript-compiler/pull/6891
230
230
- OCaml `.ml` files are no longer supported anywhere: `.ml` parsing/formatting went away and the `rescript convert` CLI was removed, so convert legacy files to `.res` before upgrading. https://github.com/rescript-lang/rescript-compiler/pull/6848https://github.com/rescript-lang/rescript-compiler/pull/6852https://github.com/rescript-lang/rescript-compiler/pull/6860
231
231
- The `%time` extension and the `caml_external_polyfill` module were deleted. https://github.com/rescript-lang/rescript-compiler/pull/6924https://github.com/rescript-lang/rescript-compiler/pull/6925
232
232
- Some global names and old keywords are no longer automatically prefixed during JS emission; update any code that was relying on the mangled names. https://github.com/rescript-lang/rescript-compiler/pull/6831
@@ -252,14 +252,14 @@ Below is a consolidated excerpt of all the breaking changes from the compiler ch
252
252
253
253
### Build system & CLI
254
254
255
-
- The new Rust-based `rewatch` build system now powers the `rescript` command. The old Ninja builder moved behind `rescript legacy`, the standalone `rewatch` command was removed, and `--compiler-args` became the `compiler-args` subcommand. https://github.com/rescript-lang/rescript/pull/7551https://github.com/rescript-lang/rescript/pull/7593
255
+
- The new Rust-based `rewatch` build system now powers the `rescript` command. The old Ninja-based builder system moved behind `rescript legacy`, and `--compiler-args` became the `compiler-args` subcommand. https://github.com/rescript-lang/rescript/pull/7551https://github.com/rescript-lang/rescript/pull/7593
256
256
- The `rescript legacy` subcommand was removed in favor of a stand-alone `rescript-legacy` binary. https://github.com/rescript-lang/rescript/pull/7928
257
257
-`rescript format` was reimplemented in Rust, its options now use the `--check` / `--stdin` long-form spelling, and the `--all` flag was removed because every tracked file (non-dev by default) is formatted automatically. https://github.com/rescript-lang/rescript/pull/7603https://github.com/rescript-lang/rescript/pull/7752
258
258
- The `rescript dump` command was removed; call `bsc` directly if you need to inspect `.cmi` files. https://github.com/rescript-lang/rescript/pull/7710
259
259
-`rewatch` now builds packages marked with `"type": "dev"` (and their `dev-dependencies`) by default, and the CLI `--dev` flag no longer has any effect. https://github.com/rescript-lang/rescript/pull/7934
260
260
261
261
### Configuration & platform
262
262
263
-
- The minimum supported Node.js version is now 20. https://github.com/rescript-lang/rescript/pull/7354
263
+
- The minimum supported Node.js version is now 20.11.0https://github.com/rescript-lang/rescript/pull/7354
264
264
- The `experimental-features` key in `rescript.json` now uses kebab-case to match the other config fields. https://github.com/rescript-lang/rescript/pull/7891
265
-
- The legacy `-bs-super-errors` flag was removed along with Super_errors. https://github.com/rescript-lang/rescript-compiler/pull/6814
265
+
- The legacy `-bs-super-errors` flag was removed. https://github.com/rescript-lang/rescript-compiler/pull/6814
0 commit comments