Skip to content

Commit 29632f3

Browse files
committed
Changelog 0.31.0
1 parent be969b0 commit 29632f3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## 0.31.0
4+
5+
- **Breaking:** The old annotation syntax (`/* !varArg */`) **no longer works**, the only currently supported syntax is:
6+
7+
`/** @varArg */`.
8+
9+
- **Breaking:** Fixed some cases where variables were **incorrectly** not labeled `local`. The only variables that are implicitly put in the global context are _top-level variables in non-module files, without any imports or exports in their file_.
10+
11+
- Moved handling of parentheses out of the transformers and unified this logic in the printer. This might result in some more parentheses in the generated code, but also makes it more correct and fixes some related bugs.
12+
13+
- Added support for `array.includes`.
14+
15+
- Fixed a bug breaking global augmentation.
16+
17+
- Fixed hoisting breaking if there were synthetic nodes in the AST (i.e. when a TS transformer modified the AST).
18+
319
## 0.30.0
420

521
- **Breaking:** We dropped support for `var` variables. If you still have any `var` variable declarations, please use `let` or `const` instead.

0 commit comments

Comments
 (0)