esbuild 0.12.25
-
Fix a TypeScript parsing edge case with the postfix
!operator (#1560)This release fixes a bug with esbuild's TypeScript parser where the postfix
!operator incorrectly terminated a member expression after thenewoperator:// Original input new Foo!.Bar(); // Old output new Foo().Bar(); // New output new Foo.Bar();The problem was that
!was considered a postfix operator instead of part of a member expression. It is now considered to be part of a member expression instead, which fixes this edge case. -
Fix a parsing crash with nested private brand checks
This release fixes a bug in the parser where code of the form
#a in #b in ccaused a crash. This code now causes a syntax error instead. Private identifiers are allowed when followed byin, but only if the operator precedence level is such that theinoperator is allowed. The parser was missing the operator precedence check. -
Publish x86-64 binary executables for illumos (#1562)
This release adds support for the illumos operating system, which is related to Solaris and SunOS. Support for this platform was contributed by @hadfl.