github evanw/esbuild v0.12.25

latest releases: v0.24.0, v0.23.1, v0.23.0...
3 years ago
  • 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 the new operator:

    // 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 c caused a crash. This code now causes a syntax error instead. Private identifiers are allowed when followed by in, but only if the operator precedence level is such that the in operator 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.

Don't miss a new esbuild release

NewReleases is sending notifications on new releases.