Skip to content

Commit 1afc323

Browse files
committed
Update CHANGELOG.md
1 parent 7fa2f3a commit 1afc323

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,11 @@
7171
- String constants don't need escaping anymore.
7272
- Example: `let blockCommentsRe = %re("/\\/\\*([^*]|[\\r\\n]|(\\*+([^*/]|[\\r\\n])))*\\*+\\//g")`.
7373
- Fix: use `let blockCommentsRe = %re("/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\//g")` instead.
74-
- Externals without `@val` annotations do not work anymore, and externals with `= ""` give an error.
75-
- Example: `external setTimeout: (unit => unit, int) => float = "setTimeout"` is not supported anymore.
76-
- Fix: use `[@val] external setTimeout: (unit => unit, int) => float = "setTimeout"` instead.
77-
- Example2: `[@val] external setTimeout: (unit => unit, int) => float = ""` is not supported anymore.
78-
- Fix2: use `[@val] external setTimeout: (unit => unit, int) => float = "setTimeout"` instead.
79-
- String constants don't need escaping anymore.
80-
- Example: `let blockCommentsRe = %re("/\\/\\*([^*]|[\\r\\n]|(\\*+([^*/]|[\\r\\n])))*\\*+\\//g")`.
81-
- Fix: use `let blockCommentsRe = %re("/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\//g")` instead.
74+
- Remove parsing of "import" and "export" which was never officially supported https://github.com/rescript-lang/syntax/pull/597 https://github.com/rescript-lang/syntax/pull/599
75+
- Example: `export type t = int`
76+
- Fix: `@genType type t = int`
77+
- Example2: `import realValue: complexNumber => float from "./MyMath"`
78+
- Fix2: `@genType.import("./MyMath") external realValue: complexNumber => float = "realValue"`
8279

8380
#### :rocket: New Feature
8481

0 commit comments

Comments
 (0)