Skip to content

Commit 446a4b7

Browse files
committed
CHANGELOG.md 1.1.0
1 parent 1b9d48f commit 446a4b7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

CHANGELOG.md

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

3+
## 1.1.0
4+
5+
- **[Breaking]** We now use TypeScript's JSX transformer instead of maintaining our own. As a result, `React.createElement` now requires a self parameter, so remove `@noSelf`, `this: void` if necessary.
6+
- **[Breaking(-ish)]** Due to limitations in 5.1, try/catch can no longer be used in async or generator functions when targetting Lua 5.1. This was already broken but now tstl will explicitly give an error if you try.
7+
- Added support for the `switch` statement in all versions! (Before they were not supported in 5.1 and universal).
8+
- Added support for `string.prototype.replaceAll` and improved `string.prototype.replace` implementation.
9+
- Added `noResolvePaths` tsconfig option to disable module resolution for environment-provided modules.
10+
- Implemented support for void expressions, i.e `void(0)` or `void(ignoreThisReturnValue())`.
11+
- Upgraded TypeScript to 4.4.4 and made it a peer dependency to hopefully avoid plugin issues due to mismatching TypeScript versions.
12+
- The `$vararg` language extension can be used to access CLI arguments, now also in bundles.
13+
- Fixed a bug regarding `baseUrl` and relative imports.
14+
- Fixed `sourceMapTraceback: true` not working correctly for bundles.
15+
- Fixed an issue regarding hoisting in switch case clauses.
16+
- Added missing function context validation cases for object literals.
17+
- Fixed a problem where awaiting rejected promises in try/catch would give the wrong result.
18+
- Fixed an issue where chained `.then` calls on already-resolved or already-rejected promises would cause some callbacks to not fire while they should.
19+
- Fixed source file paths in source maps being absolute, they are now relative again.
20+
321
## 1.0.0
422

523
- **[Breaking]** `/* @tupleReturn */` has been removed and will no longer have any effect. You will get an error if you try ot use it or if you use declarations that use it.

0 commit comments

Comments
 (0)