Skip to content

Commit 00dde55

Browse files
cknittclaude
andcommitted
Polish the 13.0.0-alpha.7 changelog after a second review
Restore the representation change of moving `@unboxed` to the type, describe forwarding-function and create-interface fixes in user terms, spell out JavaScript and file extensions consistently, and drop the unexplained null folding note of #8950. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kbf3gLgT1DyDYCdt75qo9F Signed-off-by: Christoph Knittel <ck@cca.io>
1 parent ac59240 commit 00dde55

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@
2222
- Int range patterns such as `200 .. 299`, with `char` now an alias of `int`. https://github.com/rescript-lang/rescript/pull/8894 https://github.com/rescript-lang/rescript/pull/8892
2323
- `$` in identifiers, e.g. `let count$ = signal(0)`. https://github.com/rescript-lang/rescript/pull/8791
2424
- `for..of` over generators and iterators directly. https://github.com/rescript-lang/rescript/pull/8937
25-
- `debugger()` as a plain function. https://github.com/rescript-lang/rescript/pull/9163
25+
- `debugger()` as a plain function, replacing `%debugger`. https://github.com/rescript-lang/rescript/pull/9163
2626
3. **Untagged variants for real JavaScript APIs**
2727
- `@instanceOf("Class")` and `@typeOf` make bound JavaScript classes and opaque types untagged variant cases; `File`, `Blob`, `JsError`, `Symbol` and the `Intl` classes work as cases. https://github.com/rescript-lang/rescript/pull/8950
28-
- Many soundness and matching fixes, and smaller switches that test literals and `typeof` before any `instanceof`. https://github.com/rescript-lang/rescript/pull/9015
28+
- Smaller switches that test literals and `typeof` before any `instanceof`, and many matching fixes. https://github.com/rescript-lang/rescript/pull/9015 https://github.com/rescript-lang/rescript/pull/9010 https://github.com/rescript-lang/rescript/pull/9113
2929
4. **Standard library**
3030
- `Temporal` bindings. https://github.com/rescript-lang/rescript/pull/9094
3131
- Typed arrays as distinct types. https://github.com/rescript-lang/rescript/pull/9050
3232
5. **React Server Components**
3333
- Nested components such as `<Sidebar.Provider />` work as client references, since every nested `make` is exported flat. https://github.com/rescript-lang/rescript/pull/8904
3434
6. **The v13 cleanup**
3535
- The APIs deprecated in v12 are removed; run `rescript-tools migrate-all` with 12.3.2 before upgrading. https://github.com/rescript-lang/rescript/pull/9052
36-
- `@deriving(abstract)` and `jsConverter`, the `@ocaml.*` attributes, `@ocaml.doc`/`@ns.doc` doc comments, record syntax for dicts and macOS Intel support are removed. See the breaking changes below.
36+
- `@deriving(abstract)` and `@deriving(jsConverter)`, the `@ocaml.*` attributes, `@ocaml.doc`/`@ns.doc` doc comments, record syntax for dicts and macOS Intel support are removed. See the breaking changes below.
3737
7. **Correctness and tooling**
3838
- More correct JavaScript: left-to-right evaluation order, `await` rejected where it produced invalid JavaScript, NaN comparisons, and closed type holes with mutable records.
3939
- A more faithful formatter: it keeps line endings, comments and attributes, and handles byte order marks.
@@ -45,10 +45,10 @@
4545
- Replace `%debugger` with a `debugger()` function. https://github.com/rescript-lang/rescript/pull/9163
4646
- Coercing another type into a private record or variant is an error. https://github.com/rescript-lang/rescript/pull/9125
4747
- `TypedArray.map` and `TypedArray.mapWithIndex` keep the element type. https://github.com/rescript-lang/rescript/pull/9112
48-
- The new `Temporal` stdlib module shadows project modules named `Temporal`; nested ones are exported to JS as `$$Temporal`. https://github.com/rescript-lang/rescript/pull/9094
48+
- The new `Temporal` stdlib module shadows project modules named `Temporal`; nested modules named `Temporal` are exported to JavaScript as `$$Temporal`. https://github.com/rescript-lang/rescript/pull/9094
4949
- Remove the stdlib APIs deprecated in v12, such as `List.has`, `Error` and `Exn`; run `rescript-tools migrate-all` with 12.3.2 first. https://github.com/rescript-lang/rescript/pull/9052
5050
- Typed array types such as `Int8Array.t` are no longer interchangeable; upcast with `:> TypedArray.t<_>` to use the generic `TypedArray` functions. https://github.com/rescript-lang/rescript/pull/9050
51-
- `@unboxed` can only be written on a variant type, not on a constructor. https://github.com/rescript-lang/rescript/pull/9040
51+
- `@unboxed` can only be written on a variant type, not on a constructor. On the type, it makes a single-field inline record payload the field itself instead of the record object; give the record type a name to keep the object. https://github.com/rescript-lang/rescript/pull/9040
5252
- `.cmi` and `.cmt` files use ReScript magic numbers, so tools that read them as OCaml files no longer accept them. https://github.com/rescript-lang/rescript/pull/9000
5353
- Read doc comments only from `/** */`; `@ocaml.doc` and `@ns.doc` are ignored. https://github.com/rescript-lang/rescript/pull/8992
5454
- Remove the `@ocaml.*` attribute spellings, such as `@ocaml.warning`, and `%extension_constructor`; PPX output keeps working. https://github.com/rescript-lang/rescript/pull/8928
@@ -92,7 +92,7 @@
9292
- Parse several doc comments before the `|` of a variant constructor, as the formatter prints them. https://github.com/rescript-lang/rescript/pull/9203
9393
- Complete array elements after a spread, such as `[...xs, <cursor>]`. https://github.com/rescript-lang/rescript/pull/9199
9494
- Fix `await`, `break` and `continue` in a `while` condition. https://github.com/rescript-lang/rescript/pull/9177
95-
- Keep `async` functions and functions with a `@directive` that only forward their parameters to a call. https://github.com/rescript-lang/rescript/pull/9176
95+
- Stop the optimizer from replacing an `async` or `@directive` function that only forwards its parameters with the function it calls, as in `let g = async n => f(n)`. https://github.com/rescript-lang/rescript/pull/9176
9696
- Reject `await` in a function that an async function returns, as in `async x => y => await y`. https://github.com/rescript-lang/rescript/pull/9169
9797
- Fix the end location of template literals without interpolations when PPXs are used. https://github.com/rescript-lang/rescript/pull/9166
9898
- Fix `%todo` calling a user-defined `JsError` module instead of the standard library one. https://github.com/rescript-lang/rescript/pull/9160
@@ -119,7 +119,7 @@
119119
- Fill cases added by editor code actions with `%todo`. https://github.com/rescript-lang/rescript/pull/9110
120120
- Record coercion no longer makes an immutable field mutable or changes a mutable field's type. https://github.com/rescript-lang/rescript/pull/9086
121121
- Keep `let f: type a. t => a = x =>` on one line when it fits. https://github.com/rescript-lang/rescript/pull/9082
122-
- Fix attributes, doc comments, indentation and functor types in interfaces created by the editor. https://github.com/rescript-lang/rescript/pull/9077 https://github.com/rescript-lang/rescript/pull/9096 https://github.com/rescript-lang/rescript/pull/9144 https://github.com/rescript-lang/rescript/pull/9207
122+
- Keep attributes and doc comments, fix indentation, and print the types of applied functors and includes in interfaces created by the editor. https://github.com/rescript-lang/rescript/pull/9077 https://github.com/rescript-lang/rescript/pull/9096 https://github.com/rescript-lang/rescript/pull/9144 https://github.com/rescript-lang/rescript/pull/9207
123123
- Keep a line comment in a `switch`, `if`, `try` or loop operand in place when formatting. https://github.com/rescript-lang/rescript/pull/9061
124124
- Parse a doc comment before a function parameter. https://github.com/rescript-lang/rescript/pull/9055
125125
- Print a type reached through a module alias only once in type errors. https://github.com/rescript-lang/rescript/pull/9054
@@ -147,7 +147,7 @@
147147
- Show compiled file names as written, such as `ABC.cmi` instead of `aBC.cmi`, on case-insensitive file systems. https://github.com/rescript-lang/rescript/pull/8925
148148
- Warn when a `@deprecated` binding of a module without an interface is used. https://github.com/rescript-lang/rescript/pull/8924
149149
- Make `rescript-tools migrate` leave files untouched when no migration applies. https://github.com/rescript-lang/rescript/pull/8922
150-
- genType refers to values named like JS keywords or globals, such as `delete`, by their JS names. https://github.com/rescript-lang/rescript/pull/8920
150+
- genType refers to values named like JS keywords or globals, such as `delete`, by their JavaScript names. https://github.com/rescript-lang/rescript/pull/8920
151151
- Keep attributes and doc comments after `=` in front of a record or `..` type, as in `type t = @s.strict {...}`, so that PPXs see them. https://github.com/rescript-lang/rescript/pull/8919
152152
- Keep inline records in exceptions and constructors multiline when the source breaks the line after `{`. https://github.com/rescript-lang/rescript/pull/8918
153153
- Reanalyze no longer reports `Division_by_zero` for a non-zero literal divisor. https://github.com/rescript-lang/rescript/pull/8917
@@ -172,7 +172,7 @@
172172
- Evaluate the arguments of an inlined call left to right, as the call does, including unused ones. https://github.com/rescript-lang/rescript/pull/8786 https://github.com/rescript-lang/rescript/pull/9177
173173
- Fix a `@val` global being read from a local binding of the same name. https://github.com/rescript-lang/rescript/pull/8785
174174
- Fix parser recovery and completion for a missing record or dict value, as in `{a: , b: 1}`. https://github.com/rescript-lang/rescript/pull/8779
175-
- Fix generated JS names colliding with identifiers containing `$`. https://github.com/rescript-lang/rescript/pull/8778
175+
- Fix generated JavaScript names colliding with identifiers containing `$`. https://github.com/rescript-lang/rescript/pull/8778
176176
- Fix editor completion of values from modules included with `include await M`. https://github.com/rescript-lang/rescript/pull/8770
177177
- Fix editor completion inside dict literals and dict patterns. https://github.com/rescript-lang/rescript/pull/8770
178178
- Report the required Node.js version 22 when the platform package can't be found. https://github.com/rescript-lang/rescript/pull/8770
@@ -232,7 +232,6 @@
232232
- Generate smaller untagged variant switches that test literals and `typeof` before any `instanceof`. https://github.com/rescript-lang/rescript/pull/9015 https://github.com/rescript-lang/rescript/pull/9046 https://github.com/rescript-lang/rescript/pull/9047
233233
- List floats and bigints in the error for an invalid `@as` payload, since `@as` accepts them. https://github.com/rescript-lang/rescript/pull/8987
234234
- Put a blank line around multi-line top-level and module-level items when formatting. https://github.com/rescript-lang/rescript/pull/8961
235-
- Fold `null` into an untagged variant's object case, as it is matched at run time. https://github.com/rescript-lang/rescript/pull/8950
236235
- Use constant arguments directly when inlining a function. https://github.com/rescript-lang/rescript/pull/8942
237236
- Import the default export for `@module` externals whose `@scope` starts with `"default"`. https://github.com/rescript-lang/rescript/pull/8923
238237
- Report a spread of the wrong collection type, such as a list spread into an array, at the spread. https://github.com/rescript-lang/rescript/pull/8905
@@ -246,9 +245,9 @@
246245
- Generate JavaScript for list literals that grows linearly with their length instead of quadratically. https://github.com/rescript-lang/rescript/pull/8794
247246
- Emit the imports of a module used both with and without `default` in a stable order. https://github.com/rescript-lang/rescript/pull/8787
248247
- Speed up `rescript` builds by compiling modules in-process on several CPU cores. https://github.com/rescript-lang/rescript/pull/8781 https://github.com/rescript-lang/rescript/pull/8869 https://github.com/rescript-lang/rescript/pull/9170 https://github.com/rescript-lang/rescript/pull/9187 https://github.com/rescript-lang/rescript/pull/9188
249-
- Make .cmt and .cmti files smaller by no longer embedding a copy of the .cmi. https://github.com/rescript-lang/rescript/pull/8774
248+
- Make `.cmt` and `.cmti` files smaller by no longer embedding a copy of the `.cmi`. https://github.com/rescript-lang/rescript/pull/8774
250249
- Speed up dead code elimination of toplevel bindings in large modules. https://github.com/rescript-lang/rescript/pull/8773
251-
- Speed up compiling nested functions with local bindings named like JS globals. https://github.com/rescript-lang/rescript/pull/8772
250+
- Speed up compiling nested functions with local bindings named like JavaScript globals. https://github.com/rescript-lang/rescript/pull/8772
252251
- Speed up inlining decisions for large functions. https://github.com/rescript-lang/rescript/pull/8771
253252
- Make compilation slightly faster. https://github.com/rescript-lang/rescript/pull/8769
254253
- Compile dict spreads to object spread syntax instead of `Object.assign`. https://github.com/rescript-lang/rescript/pull/8747
@@ -281,7 +280,7 @@
281280
- Remove the error variant catalog `tests/ERROR_VARIANTS.md`. https://github.com/rescript-lang/rescript/pull/8898
282281
- Update Yarn, mocha, Biome and other development dependencies. https://github.com/rescript-lang/rescript/pull/8890
283282
- Upgrade opam to 2.6.1 in the devcontainer. https://github.com/rescript-lang/rescript/pull/8889
284-
- Build against libuv 1.53.0 via the rescript-lang/luv fork. https://github.com/rescript-lang/rescript/pull/8883
283+
- Build the OCaml build system against libuv 1.53.0 via the rescript-lang/luv fork. https://github.com/rescript-lang/rescript/pull/8883
285284
- Make compiler requests safe to run repeatedly and in parallel in one process. https://github.com/rescript-lang/rescript/pull/8864
286285
- Fix spurious failures when updating the super_errors snapshots. https://github.com/rescript-lang/rescript/pull/8840
287286
- Add and fix tests for reanalyze, the formatter, `rescript-tools migrate` and the build test fixtures. https://github.com/rescript-lang/rescript/pull/8838 https://github.com/rescript-lang/rescript/pull/8855 https://github.com/rescript-lang/rescript/pull/8856

0 commit comments

Comments
 (0)