From d54b3a5926631f159078ef7c47a1a3072827964a Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Sun, 29 Oct 2017 10:40:31 +0100 Subject: [PATCH] Mark version 5.2.0 --- CHANGELOG.md | 18 ++++++++++++++++++ package.json | 2 +- src/index.js | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73894d1e8..db2202502 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,21 @@ +## 5.2.0 (2017-10-30) + +### Bug fixes + +Fix token context tracking for `class` and `function` in property-name position. + +Make sure `%*` isn't parsed as a valid operator. + +The `full` and `fullAncestor` walkers no longer visit nodes multiple times. + +Allow shorthand properties `get` and `set` to be followed by default values. + +Disallow `super` when not in callee or object position. + +### New features + +Support [`directive` property](https://github.com/estree/estree/compare/b3de58c9997504d6fba04b72f76e6dd1619ee4eb...1da8e603237144f44710360f8feb7a9977e905e0) on directive expression statements. + ## 5.1.2 (2017-09-04) ### Bug fixes diff --git a/package.json b/package.json index 035bc3cfe..d5cd81759 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "homepage": "https://github.com/ternjs/acorn", "main": "dist/acorn.js", "module": "dist/acorn.es.js", - "version": "5.1.2", + "version": "5.2.0", "engines": { "node": ">=0.4.0" }, diff --git a/src/index.js b/src/index.js index c0c00659c..8d335a85a 100644 --- a/src/index.js +++ b/src/index.js @@ -37,7 +37,7 @@ export {isIdentifierChar, isIdentifierStart} from "./identifier" export {Token} from "./tokenize" export {isNewLine, lineBreak, lineBreakG, nonASCIIwhitespace} from "./whitespace" -export const version = "5.1.2" +export const version = "5.2.0" // The main exported interface (under `self.acorn` when in the // browser) is a `parse` function that takes a code string and