Skip to content

2.6.0 (2022-06-15)

Choose a tag to compare

@strager strager released this 04 Apr 03:45
· 2759 commits to master since this release

Downloads

Added

  • DOMError, MutationEvent, and some other browser global variables are now
    recognized.
  • New global group: web-worker (enabled by default)
  • The importScripts global function is now recognized by default.
  • Forgetting a semicolon between class fields now reports "missing semicolon
    after field" (E0223) instead of "missing semicolon after statement"
    (E0027).
  • Using some TypeScript features, such as class generics and interfaces, in
    JavaScript code is now reported with a friendly error message.
  • E0199 ("unclosed class") is now reported in more scenarios.
  • static code blocks in classes are now supported.

Fixed

  • E0707 now only complains about classes named await, not any class inside
    an async function.
  • E0054 is no longer incorrectly reported for class properties named
    implements, interface, package, private, protected, or public.
  • In statement contexts, async followed by a newline followed by function is
    no longer falsely interpreted as an async function. It is instead interpreted
    as the use of a variable called async followed by a non-async function, per
    the language standard.
  • ((x)) => {} no longer crashes the parser with an assertion failure.
  • Tests now pass if the user's locale is Italian (it_IT.utf8 on Linux).
  • The FreeBSD build now succeeds and tests pass.