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
Restore legacy (. ...) uncurried syntax with deprecation warning (#8383)
* Restore legacy `(. ...)` uncurried syntax with deprecation warning
Accept the pre-v11 dotted uncurried syntax in function parameters,
arguments, and type parameters so projects depending on libraries
that still use it can parse again. Emit a `Warnings.Deprecated` on
every occurrence, pointing at the leading dot, similar to the
deprecation warnings rewatch emits for `bs-*` fields in rescript.json.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Rewatch: surface uncurried-dot deprecation for external deps
Rewatch suppresses warnings from external dependencies (users can't
act on them), but the legacy `(. ...)` uncurried-syntax deprecation
is a signal consumers need to see so they can report breakage
upstream before the syntax is removed. Add a small allow-list in
the stderr capture path for both the AST-parse phase and the
compile phase that keeps warning blocks mentioning that specific
deprecation while still dropping everything else from external
packages.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Fix ocamlformat of res_core.ml and add PR link to changelog
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Rewatch: normalize CRLF before splitting warning blocks
The "\n\n\n" block separator used by retain_critical_external_warnings
assumes LF line endings. On Windows bsc emits CRLF, so the splitter
would find no boundary and return the entire stderr — effectively
disabling external-dep warning suppression for any package that
emits the uncurried-dot deprecation alongside other warnings.
Normalize CRLF → LF before splitting. Add a CRLF test that exercises
the Windows-shaped input.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Christoph Knittel <ck@cca.io>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@
41
41
#### :nail_care: Polish
42
42
43
43
- Allow builds while watchers are running. https://github.com/rescript-lang/rescript/pull/8349
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
44
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
0 commit comments