acorn
Advanced tools
Comparing version 6.2.1 to 6.3.0
@@ -0,1 +1,7 @@ | ||
## 6.3.0 (2019-08-12) | ||
### New features | ||
`sourceType: "module"` can now be used even when `ecmaVersion` is less than 6, to parse module-style code that otherwise conforms to an older standard. | ||
## 6.2.1 (2019-07-21) | ||
@@ -2,0 +8,0 @@ |
@@ -39,10 +39,10 @@ export as namespace acorn | ||
constructor(options: Options, input: string, startPos?: number) | ||
parse(): Node | ||
static parse(input: string, options?: Options): Node | ||
static parseExpressionAt(input: string, pos: number, options?: Options): Node | ||
static tokenizer(input: string, options?: Options): { | ||
parse(this: Parser): Node | ||
static parse(this: typeof Parser, input: string, options?: Options): Node | ||
static parseExpressionAt(this: typeof Parser, input: string, pos: number, options?: Options): Node | ||
static tokenizer(this: typeof Parser, input: string, options?: Options): { | ||
getToken(): Token | ||
[Symbol.iterator](): Iterator<Token> | ||
} | ||
static extend(...plugins: ((BaseParser: typeof Parser) => typeof Parser)[]): typeof Parser | ||
static extend(this: typeof Parser, ...plugins: ((BaseParser: typeof Parser) => typeof Parser)[]): typeof Parser | ||
} | ||
@@ -49,0 +49,0 @@ |
@@ -7,3 +7,3 @@ { | ||
"module": "dist/acorn.mjs", | ||
"version": "6.2.1", | ||
"version": "6.3.0", | ||
"engines": {"node": ">=0.4.0"}, | ||
@@ -10,0 +10,0 @@ "maintainers": [ |
@@ -67,2 +67,5 @@ # Acorn | ||
**NOTE**: If set to `"module"`, then static `import` / `export` syntax | ||
will be valid, even if `ecmaVersion` is less than 6. | ||
- **onInsertedSemicolon**: If given a callback, that callback will be | ||
@@ -69,0 +72,0 @@ called whenever a missing semicolon is inserted by the parser. The |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1102462
270
9049