Skip to content

1.0.0 (2021-12-13)

Compare
Choose a tag to compare
@kyle-wannacott kyle-wannacott released this 08 Apr 00:25
· 38 commits to master since this release

Downloads

Added

  • Windows: Clang-cl is now able to compile quick-lint-js for Windows.
  • E0176 is now reported if the desired arrow function has more than zero
    parameters.
  • E0178 is now reported if the arrow function appears in top-level code or
    inside a non-async function.

Fixed

  • Arch Linux: The quick-lint-js package now installs correctly if you have
    another Vim plugin package installed. The installation error was: "error: failed
    to commit transaction (conflicting files)"
  • (typeof x)=>{} and similar code now reports E0151 (invalid function
    parameter) instead of E0019 (invalid binding in let statement).
  • ([(x,)] => {}) now declares x as a parameter instead of ignoring x
    entirely. (It still produces E0180).
  • \u0 at the end of a file now reports E0016 (expected hexadecimal digits
    in Unicode escape sequence) instead of E0038 (unclosed identifier escape
    sequence)
  • "\u{00a0:" now reports only one error (E0038 (unclosed identifier escape
    sequence)) instead of two (E0038 and E0040 (unclosed string literal)).
  • After reporting E0178, the arrow function is parsed as if it was async,
    allowing the body to use await as an operator without error.

Changed

  • E0013 is no longer reported for identifiers such as bird\u{360000}.
    E0207 is reported instead.

Optimized

  • The Windows .exe is 51% smaller (2.30 MiB -> 1.14 MiB) by making a hash table
    used for translations compile-time-only. See the patch
    here.