|
10 | 10 | > - :nail_care: [Polish] |
11 | 11 | > - :house: [Internal] |
12 | 12 |
|
13 | | -# 13.0.0-alpha.4 (Unreleased) |
| 13 | +# 13.0.0-alpha.4 |
14 | 14 |
|
15 | 15 | #### :boom: Breaking Change |
16 | 16 |
|
17 | 17 | - Support for `break` and `continue` in loops. `break` and `continue` are new keywords. https://github.com/rescript-lang/rescript/pull/8348 |
18 | 18 | - Fix iterator / iterable typedefs, add generator typedefs. https://github.com/rescript-lang/rescript/pull/8355 |
19 | | -- Remove deprecated %external extension. https://github.com/rescript-lang/rescript/pull/8376 |
20 | | - |
21 | | -#### :eyeglasses: Spec Compliance |
| 19 | +- Remove deprecated `%external` extension. https://github.com/rescript-lang/rescript/pull/8376 |
| 20 | +- Remove Belt API functions returning `undefined<'a>` (e.g., `Belt.Array.getUndefined`). Functions returning `option<'a>` should be used instead (e.g., `Belt.Array.get`). https://github.com/rescript-lang/rescript/pull/8377 |
22 | 21 |
|
23 | 22 | #### :rocket: New Feature |
24 | 23 |
|
| 24 | +- Implement `for...of` and `for await...of` loops. https://github.com/rescript-lang/rescript/pull/7887 |
| 25 | +- Add support for dict spreads: `dict{...foo, "bar": 2, ...qux}`. https://github.com/rescript-lang/rescript/pull/8369 |
25 | 26 | - Rewatch: add `--prod` flag to `build`, `watch`, and `clean` to skip dev-dependencies and dev sources (`"type": "dev"`), enabling builds in environments where dev packages aren't installed (e.g. after `pnpm install --prod`). https://github.com/rescript-lang/rescript/pull/8347 |
26 | 27 | - Rewatch: feature-gated source directories. Tag a source entry with `"feature": "<name>"` and select with `--features a,b` (or per-dep in `dependencies` / `dev-dependencies`) to include optional slices of a package's source tree at build time. Top-level `features` map supports transitive implications. https://github.com/rescript-lang/rescript/pull/8379 |
| 28 | +- Rewatch: improve watch output and add `--clear-screen` option. https://github.com/rescript-lang/rescript/pull/8373 |
27 | 29 | - Add `Dict.assignMany`, `Dict.concat`, `Dict.concatMany`, `Dict.concatAll`, `Array.concatAll` to the stdlib. https://github.com/rescript-lang/rescript/pull/8364 |
28 | | -- Implement `for...of` and `for await...of` loops. https://github.com/rescript-lang/rescript/pull/7887 |
29 | | -- Add support for dict spreads: `dict{...foo, "bar": 2, ...qux}`. https://github.com/rescript-lang/rescript/pull/8369 |
30 | 30 |
|
31 | 31 | #### :bug: Bug fix |
32 | 32 |
|
33 | 33 | - Fix partial application generalization for `...`. https://github.com/rescript-lang/rescript/pull/8343 |
34 | 34 | - Rewatch: preserve warnings after atomic-save full rebuilds. https://github.com/rescript-lang/rescript/pull/8358 |
35 | | - |
36 | 35 | - Preserve JSX prop locations across the AST0 translation layer, fixing `0:0` editor diagnostics in PPX-related flows. https://github.com/rescript-lang/rescript/pull/8350 |
37 | 36 | - Fix type lowering for `dict{}` and `async`, so you don't need to annotate one extra time when the type is known. https://github.com/rescript-lang/rescript/pull/8359 |
38 | | - |
39 | | -#### :memo: Documentation |
| 37 | +- Rewatch: don't suppress progress messages under `-v`/`-vv`. https://github.com/rescript-lang/rescript/pull/8371 |
| 38 | +- Rewatch: print 'Finished compilation' in watch plain output mode. https://github.com/rescript-lang/rescript/pull/8372 |
40 | 39 |
|
41 | 40 | #### :nail_care: Polish |
42 | 41 |
|
43 | 42 | - Allow builds while watchers are running. https://github.com/rescript-lang/rescript/pull/8349 |
| 43 | +- Rewatch: restore backward compatibility for `bsconfig.json`. https://github.com/rescript-lang/rescript/pull/8368 |
44 | 44 | - Restore parsing of the legacy `(. ...)` uncurried syntax for backwards compatibility with libraries still on older ReScript versions; emit a deprecation warning when it is used. Rewatch also surfaces this specific deprecation when it originates from an external dependency so users can report breakage upstream. https://github.com/rescript-lang/rescript/pull/8383 |
45 | 45 | - Rewatch: replace wave-based compile scheduler with a work-stealing DAG dispatcher ordered by critical-path priority, avoiding the per-wave stall on the slowest file. https://github.com/rescript-lang/rescript/pull/8374 |
46 | 46 |
|
|
0 commit comments