Comparing version 8.0.1 to 8.0.2
@@ -0,1 +1,9 @@ | ||
## 8.0.2 (2020-09-30) | ||
### Bug fixes | ||
Make the TypeScript types reflect the current allowed values for `ecmaVersion`. | ||
Fix another regexp/division tokenizer issue. | ||
## 8.0.1 (2020-08-12) | ||
@@ -2,0 +10,0 @@ |
@@ -5,7 +5,7 @@ export as namespace acorn | ||
declare namespace acorn { | ||
function parse(input: string, options?: Options): Node | ||
function parse(input: string, options: Options): Node | ||
function parseExpressionAt(input: string, pos?: number, options?: Options): Node | ||
function parseExpressionAt(input: string, pos: number, options: Options): Node | ||
function tokenizer(input: string, options?: Options): { | ||
function tokenizer(input: string, options: Options): { | ||
getToken(): Token | ||
@@ -16,3 +16,3 @@ [Symbol.iterator](): Iterator<Token> | ||
interface Options { | ||
ecmaVersion?: 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | ||
ecmaVersion: 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 'latest' | ||
sourceType?: 'script' | 'module' | ||
@@ -42,5 +42,5 @@ onInsertedSemicolon?: (lastTokEnd: number, lastTokEndLoc?: Position) => void | ||
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): { | ||
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 | ||
@@ -47,0 +47,0 @@ [Symbol.iterator](): Iterator<Token> |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"engines": {"node": ">=0.4.0"}, | ||
@@ -15,0 +15,0 @@ "maintainers": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1221102
13
9624