diff --git a/CHANGELOG.md b/CHANGELOG.md index c57afeca87..d8d83c2960 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,12 @@ - Make the `--help` arg be prioritized in the CLI, so correctly prints help message and skip other commands. https://github.com/rescript-lang/rescript-compiler/pull/6667 +# 11.1.0 + +#### :bug: Bug Fix + +- Revert escape JSX prop names with hyphens (#6705). https://github.com/rescript-lang/rescript-compiler/pull/6731 + # 11.1.0-rc.8 #### :rocket: New Feature diff --git a/jscomp/syntax/src/res_printer.ml b/jscomp/syntax/src/res_printer.ml index 233c904a78..cd790eeb20 100644 --- a/jscomp/syntax/src/res_printer.ml +++ b/jscomp/syntax/src/res_printer.ml @@ -4367,7 +4367,6 @@ and printJsxProps ~state args cmtTbl : Doc.t * Parsetree.expression option = loop [] args and printJsxProp ~state arg cmtTbl = - let printIdentLike ident = printIdentLike ~allowHyphen:true ident in match arg with | ( ((Asttypes.Labelled lblTxt | Optional lblTxt) as lbl), { diff --git a/jscomp/syntax/tests/printer/expr/expected/exoticIdent.res.txt b/jscomp/syntax/tests/printer/expr/expected/exoticIdent.res.txt index 675be0aa65..9048697886 100644 --- a/jscomp/syntax/tests/printer/expr/expected/exoticIdent.res.txt +++ b/jscomp/syntax/tests/printer/expr/expected/exoticIdent.res.txt @@ -60,7 +60,7 @@ assert(\"let") let x = 1 let x = -