Skip to content

Releases: ForbesLindesay/acorn-globals

7.0.1

02 Sep 01:45
8de559f
Compare
Choose a tag to compare

Bug Fixes

  • The body of switch statement is a block scope (#67)

    In this example:

    switch (3) {
      case 3:
        let a;
    }
    a;  // this 'a' is a global

    The a at the bottom is global, even though a variable called a was declared inside the switch statement.

7.0.0

31 Aug 11:17
ff46a53
Compare
Choose a tag to compare

Breaking Changes

  • Upgrade to acorn v8 (#60)

  • Set default ecmaVersion to "latest" (#64)

New Features

  • You can now override the default options passed to the acorn parser: (#64)

    cons defaults = {
      allowReturnOutsideFunction: true,
      allowImportExportEverywhere: true,
      allowHashBang: true,
      ecmaVersion: "latest"
    }

Bug Fixes

  • Support catch handler without binding the error to a variable (#58)

  • Ignore this in class property definitions (#52)

6.0.0

15 Mar 00:24
4e8b85c
Compare
Choose a tag to compare

Updates acorn and acorn-walk to v7

4.3.4

04 Nov 15:57
Compare
Choose a tag to compare
  • fix add pattern destructuring support to the catch handler

4.3.3

04 Nov 15:56
Compare
Choose a tag to compare
  • fix class as expression
  • fix handle variable names that exist in Object.prototype

4.3.2

10 May 13:53
Compare
Choose a tag to compare
  • Fix: Classes are now correctly block-scoped rather than function/module scoped

4.3.1

12 Apr 12:06
Compare
Choose a tag to compare
  • Fix destructuring rest args now declares the local variable name
  • Fix exporting anonymous functions & classes no longer errors