租房小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

940 lines
22 KiB

2 months ago
6 months ago
  1. ## 8.14.1 (2025-03-05)
  2. ### Bug fixes
  3. Fix an issue where `await` expressions in class field initializers were inappropriately allowed.
  4. Properly allow await inside an async arrow function inside a class field initializer.
  5. Mention the source file name in syntax error messages when given.
  6. Properly add an empty `attributes` property to every form of `ExportNamedDeclaration`.
  7. ## 8.14.0 (2024-10-27)
  8. ### New features
  9. Support ES2025 import attributes.
  10. Support ES2025 RegExp modifiers.
  11. ### Bug fixes
  12. Support some missing Unicode properties.
  13. ## 8.13.0 (2024-10-16)
  14. ### New features
  15. Upgrade to Unicode 16.0.
  16. ## 8.12.1 (2024-07-03)
  17. ### Bug fixes
  18. Fix a regression that caused Acorn to no longer run on Node versions <8.10.
  19. ## 8.12.0 (2024-06-14)
  20. ### New features
  21. Support ES2025 duplicate capture group names in regular expressions.
  22. ### Bug fixes
  23. Include `VariableDeclarator` in the `AnyNode` type so that walker objects can refer to it without getting a type error.
  24. Properly raise a parse error for invalid `for`/`of` statements using `async` as binding name.
  25. Properly recognize \"use strict\" when preceded by a string with an escaped newline.
  26. Mark the `Parser` constructor as protected, not private, so plugins can extend it without type errors.
  27. Fix a bug where some invalid `delete` expressions were let through when the operand was parenthesized and `preserveParens` was enabled.
  28. Properly normalize line endings in raw strings of invalid template tokens.
  29. Properly track line numbers for escaped newlines in strings.
  30. Fix a bug that broke line number accounting after a template literal with invalid escape sequences.
  31. ## 8.11.3 (2023-12-29)
  32. ### Bug fixes
  33. Add `Function` and `Class` to the `AggregateType` type, so that they can be used in walkers without raising a type error.
  34. Make sure `onToken` get an `import` keyword token when parsing `import.meta`.
  35. Fix a bug where `.loc.start` could be undefined for `new.target` `meta` nodes.
  36. ## 8.11.2 (2023-10-27)
  37. ### Bug fixes
  38. Fix a bug that caused regular expressions after colon tokens to not be properly tokenized in some circumstances.
  39. ## 8.11.1 (2023-10-26)
  40. ### Bug fixes
  41. Fix a regression where `onToken` would receive 'name' tokens for 'new' keyword tokens.
  42. ## 8.11.0 (2023-10-26)
  43. ### Bug fixes
  44. Fix an issue where tokenizing (without parsing) an object literal with a property named `class` or `function` could, in some circumstance, put the tokenizer into an invalid state.
  45. Fix an issue where a slash after a call to a propery named the same as some keywords would be tokenized as a regular expression.
  46. ### New features
  47. Upgrade to Unicode 15.1.
  48. Use a set of new, much more precise, TypeScript types.
  49. ## 8.10.0 (2023-07-05)
  50. ### New features
  51. Add a `checkPrivateFields` option that disables strict checking of private property use.
  52. ## 8.9.0 (2023-06-16)
  53. ### Bug fixes
  54. Forbid dynamic import after `new`, even when part of a member expression.
  55. ### New features
  56. Add Unicode properties for ES2023.
  57. Add support for the `v` flag to regular expressions.
  58. ## 8.8.2 (2023-01-23)
  59. ### Bug fixes
  60. Fix a bug that caused `allowHashBang` to be set to false when not provided, even with `ecmaVersion >= 14`.
  61. Fix an exception when passing no option object to `parse` or `new Parser`.
  62. Fix incorrect parse error on `if (0) let\n[astral identifier char]`.
  63. ## 8.8.1 (2022-10-24)
  64. ### Bug fixes
  65. Make type for `Comment` compatible with estree types.
  66. ## 8.8.0 (2022-07-21)
  67. ### Bug fixes
  68. Allow parentheses around spread args in destructuring object assignment.
  69. Fix an issue where the tree contained `directive` properties in when parsing with a language version that doesn't support them.
  70. ### New features
  71. Support hashbang comments by default in ECMAScript 2023 and later.
  72. ## 8.7.1 (2021-04-26)
  73. ### Bug fixes
  74. Stop handling `"use strict"` directives in ECMAScript versions before 5.
  75. Fix an issue where duplicate quoted export names in `export *` syntax were incorrectly checked.
  76. Add missing type for `tokTypes`.
  77. ## 8.7.0 (2021-12-27)
  78. ### New features
  79. Support quoted export names.
  80. Upgrade to Unicode 14.
  81. Add support for Unicode 13 properties in regular expressions.
  82. ### Bug fixes
  83. Use a loop to find line breaks, because the existing regexp search would overrun the end of the searched range and waste a lot of time in minified code.
  84. ## 8.6.0 (2021-11-18)
  85. ### Bug fixes
  86. Fix a bug where an object literal with multiple `__proto__` properties would incorrectly be accepted if a later property value held an assigment.
  87. ### New features
  88. Support class private fields with the `in` operator.
  89. ## 8.5.0 (2021-09-06)
  90. ### Bug fixes
  91. Improve context-dependent tokenization in a number of corner cases.
  92. Fix location tracking after a 0x2028 or 0x2029 character in a string literal (which before did not increase the line number).
  93. Fix an issue where arrow function bodies in for loop context would inappropriately consume `in` operators.
  94. Fix wrong end locations stored on SequenceExpression nodes.
  95. Implement restriction that `for`/`of` loop LHS can't start with `let`.
  96. ### New features
  97. Add support for ES2022 class static blocks.
  98. Allow multiple input files to be passed to the CLI tool.
  99. ## 8.4.1 (2021-06-24)
  100. ### Bug fixes
  101. Fix a bug where `allowAwaitOutsideFunction` would allow `await` in class field initializers, and setting `ecmaVersion` to 13 or higher would allow top-level await in non-module sources.
  102. ## 8.4.0 (2021-06-11)
  103. ### New features
  104. A new option, `allowSuperOutsideMethod`, can be used to suppress the error when `super` is used in the wrong context.
  105. ## 8.3.0 (2021-05-31)
  106. ### New features
  107. Default `allowAwaitOutsideFunction` to true for ECMAScript 2022 an higher.
  108. Add support for the `d` ([indices](https://github.com/tc39/proposal-regexp-match-indices)) regexp flag.
  109. ## 8.2.4 (2021-05-04)
  110. ### Bug fixes
  111. Fix spec conformity in corner case 'for await (async of ...)'.
  112. ## 8.2.3 (2021-05-04)
  113. ### Bug fixes
  114. Fix an issue where the library couldn't parse 'for (async of ...)'.
  115. Fix a bug in UTF-16 decoding that would read characters incorrectly in some circumstances.
  116. ## 8.2.2 (2021-04-29)
  117. ### Bug fixes
  118. Fix a bug where a class field initialized to an async arrow function wouldn't allow await inside it. Same issue existed for generator arrow functions with yield.
  119. ## 8.2.1 (2021-04-24)
  120. ### Bug fixes
  121. Fix a regression introduced in 8.2.0 where static or async class methods with keyword names fail to parse.
  122. ## 8.2.0 (2021-04-24)
  123. ### New features
  124. Add support for ES2022 class fields and private methods.
  125. ## 8.1.1 (2021-04-12)
  126. ### Various
  127. Stop shipping source maps in the NPM package.
  128. ## 8.1.0 (2021-03-09)
  129. ### Bug fixes
  130. Fix a spurious error in nested destructuring arrays.
  131. ### New features
  132. Expose `allowAwaitOutsideFunction` in CLI interface.
  133. Make `allowImportExportAnywhere` also apply to `import.meta`.
  134. ## 8.0.5 (2021-01-25)
  135. ### Bug fixes
  136. Adjust package.json to work with Node 12.16.0 and 13.0-13.6.
  137. ## 8.0.4 (2020-10-05)
  138. ### Bug fixes
  139. Make `await x ** y` an error, following the spec.
  140. Fix potentially exponential regular expression.
  141. ## 8.0.3 (2020-10-02)
  142. ### Bug fixes
  143. Fix a wasteful loop during `Parser` creation when setting `ecmaVersion` to `"latest"`.
  144. ## 8.0.2 (2020-09-30)
  145. ### Bug fixes
  146. Make the TypeScript types reflect the current allowed values for `ecmaVersion`.
  147. Fix another regexp/division tokenizer issue.
  148. ## 8.0.1 (2020-08-12)
  149. ### Bug fixes
  150. Provide the correct value in the `version` export.
  151. ## 8.0.0 (2020-08-12)
  152. ### Bug fixes
  153. Disallow expressions like `(a = b) = c`.
  154. Make non-octal escape sequences a syntax error in strict mode.
  155. ### New features
  156. The package can now be loaded directly as an ECMAScript module in node 13+.
  157. Update to the set of Unicode properties from ES2021.
  158. ### Breaking changes
  159. The `ecmaVersion` option is now required. For the moment, omitting it will still work with a warning, but that will change in a future release.
  160. Some changes to method signatures that may be used by plugins.
  161. ## 7.4.0 (2020-08-03)
  162. ### New features
  163. Add support for logical assignment operators.
  164. Add support for numeric separators.
  165. ## 7.3.1 (2020-06-11)
  166. ### Bug fixes
  167. Make the string in the `version` export match the actual library version.
  168. ## 7.3.0 (2020-06-11)
  169. ### Bug fixes
  170. Fix a bug that caused parsing of object patterns with a property named `set` that had a default value to fail.
  171. ### New features
  172. Add support for optional chaining (`?.`).
  173. ## 7.2.0 (2020-05-09)
  174. ### Bug fixes
  175. Fix precedence issue in parsing of async arrow functions.
  176. ### New features
  177. Add support for nullish coalescing.
  178. Add support for `import.meta`.
  179. Support `export * as ...` syntax.
  180. Upgrade to Unicode 13.
  181. ## 6.4.1 (2020-03-09)
  182. ### Bug fixes
  183. More carefully check for valid UTF16 surrogate pairs in regexp validator.
  184. ## 7.1.1 (2020-03-01)
  185. ### Bug fixes
  186. Treat `\8` and `\9` as invalid escapes in template strings.
  187. Allow unicode escapes in property names that are keywords.
  188. Don't error on an exponential operator expression as argument to `await`.
  189. More carefully check for valid UTF16 surrogate pairs in regexp validator.
  190. ## 7.1.0 (2019-09-24)
  191. ### Bug fixes
  192. Disallow trailing object literal commas when ecmaVersion is less than 5.
  193. ### New features
  194. Add a static `acorn` property to the `Parser` class that contains the entire module interface, to allow plugins to access the instance of the library that they are acting on.
  195. ## 7.0.0 (2019-08-13)
  196. ### Breaking changes
  197. Changes the node format for dynamic imports to use the `ImportExpression` node type, as defined in [ESTree](https://github.com/estree/estree/blob/master/es2020.md#importexpression).
  198. Makes 10 (ES2019) the default value for the `ecmaVersion` option.
  199. ## 6.3.0 (2019-08-12)
  200. ### New features
  201. `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.
  202. ## 6.2.1 (2019-07-21)
  203. ### Bug fixes
  204. Fix bug causing Acorn to treat some characters as identifier characters that shouldn't be treated as such.
  205. Fix issue where setting the `allowReserved` option to `"never"` allowed reserved words in some circumstances.
  206. ## 6.2.0 (2019-07-04)
  207. ### Bug fixes
  208. Improve valid assignment checking in `for`/`in` and `for`/`of` loops.
  209. Disallow binding `let` in patterns.
  210. ### New features
  211. Support bigint syntax with `ecmaVersion` >= 11.
  212. Support dynamic `import` syntax with `ecmaVersion` >= 11.
  213. Upgrade to Unicode version 12.
  214. ## 6.1.1 (2019-02-27)
  215. ### Bug fixes
  216. Fix bug that caused parsing default exports of with names to fail.
  217. ## 6.1.0 (2019-02-08)
  218. ### Bug fixes
  219. Fix scope checking when redefining a `var` as a lexical binding.
  220. ### New features
  221. Split up `parseSubscripts` to use an internal `parseSubscript` method to make it easier to extend with plugins.
  222. ## 6.0.7 (2019-02-04)
  223. ### Bug fixes
  224. Check that exported bindings are defined.
  225. Don't treat `\u180e` as a whitespace character.
  226. Check for duplicate parameter names in methods.
  227. Don't allow shorthand properties when they are generators or async methods.
  228. Forbid binding `await` in async arrow function's parameter list.
  229. ## 6.0.6 (2019-01-30)
  230. ### Bug fixes
  231. The content of class declarations and expressions is now always parsed in strict mode.
  232. Don't allow `let` or `const` to bind the variable name `let`.
  233. Treat class declarations as lexical.
  234. Don't allow a generator function declaration as the sole body of an `if` or `else`.
  235. Ignore `"use strict"` when after an empty statement.
  236. Allow string line continuations with special line terminator characters.
  237. Treat `for` bodies as part of the `for` scope when checking for conflicting bindings.
  238. Fix bug with parsing `yield` in a `for` loop initializer.
  239. Implement special cases around scope checking for functions.
  240. ## 6.0.5 (2019-01-02)
  241. ### Bug fixes
  242. Fix TypeScript type for `Parser.extend` and add `allowAwaitOutsideFunction` to options type.
  243. Don't treat `let` as a keyword when the next token is `{` on the next line.
  244. Fix bug that broke checking for parentheses around an object pattern in a destructuring assignment when `preserveParens` was on.
  245. ## 6.0.4 (2018-11-05)
  246. ### Bug fixes
  247. Further improvements to tokenizing regular expressions in corner cases.
  248. ## 6.0.3 (2018-11-04)
  249. ### Bug fixes
  250. Fix bug in tokenizing an expression-less return followed by a function followed by a regular expression.
  251. Remove stray symlink in the package tarball.
  252. ## 6.0.2 (2018-09-26)
  253. ### Bug fixes
  254. Fix bug where default expressions could fail to parse inside an object destructuring assignment expression.
  255. ## 6.0.1 (2018-09-14)
  256. ### Bug fixes
  257. Fix wrong value in `version` export.
  258. ## 6.0.0 (2018-09-14)
  259. ### Bug fixes
  260. Better handle variable-redefinition checks for catch bindings and functions directly under if statements.
  261. Forbid `new.target` in top-level arrow functions.
  262. Fix issue with parsing a regexp after `yield` in some contexts.
  263. ### New features
  264. The package now comes with TypeScript definitions.
  265. ### Breaking changes
  266. The default value of the `ecmaVersion` option is now 9 (2018).
  267. Plugins work differently, and will have to be rewritten to work with this version.
  268. The loose parser and walker have been moved into separate packages (`acorn-loose` and `acorn-walk`).
  269. ## 5.7.3 (2018-09-10)
  270. ### Bug fixes
  271. Fix failure to tokenize regexps after expressions like `x.of`.
  272. Better error message for unterminated template literals.
  273. ## 5.7.2 (2018-08-24)
  274. ### Bug fixes
  275. Properly handle `allowAwaitOutsideFunction` in for statements.
  276. Treat function declarations at the top level of modules like let bindings.
  277. Don't allow async function declarations as the only statement under a label.
  278. ## 5.7.0 (2018-06-15)
  279. ### New features
  280. Upgraded to Unicode 11.
  281. ## 5.6.0 (2018-05-31)
  282. ### New features
  283. Allow U+2028 and U+2029 in string when ECMAVersion >= 10.
  284. Allow binding-less catch statements when ECMAVersion >= 10.
  285. Add `allowAwaitOutsideFunction` option for parsing top-level `await`.
  286. ## 5.5.3 (2018-03-08)
  287. ### Bug fixes
  288. A _second_ republish of the code in 5.5.1, this time with yarn, to hopefully get valid timestamps.
  289. ## 5.5.2 (2018-03-08)
  290. ### Bug fixes
  291. A republish of the code in 5.5.1 in an attempt to solve an issue with the file timestamps in the npm package being 0.
  292. ## 5.5.1 (2018-03-06)
  293. ### Bug fixes
  294. Fix misleading error message for octal escapes in template strings.
  295. ## 5.5.0 (2018-02-27)
  296. ### New features
  297. The identifier character categorization is now based on Unicode version 10.
  298. Acorn will now validate the content of regular expressions, including new ES9 features.
  299. ## 5.4.0 (2018-02-01)
  300. ### Bug fixes
  301. Disallow duplicate or escaped flags on regular expressions.
  302. Disallow octal escapes in strings in strict mode.
  303. ### New features
  304. Add support for async iteration.
  305. Add support for object spread and rest.
  306. ## 5.3.0 (2017-12-28)
  307. ### Bug fixes
  308. Fix parsing of floating point literals with leading zeroes in loose mode.
  309. Allow duplicate property names in object patterns.
  310. Don't allow static class methods named `prototype`.
  311. Disallow async functions directly under `if` or `else`.
  312. Parse right-hand-side of `for`/`of` as an assignment expression.
  313. Stricter parsing of `for`/`in`.
  314. Don't allow unicode escapes in contextual keywords.
  315. ### New features
  316. Parsing class members was factored into smaller methods to allow plugins to hook into it.
  317. ## 5.2.1 (2017-10-30)
  318. ### Bug fixes
  319. Fix a token context corruption bug.
  320. ## 5.2.0 (2017-10-30)
  321. ### Bug fixes
  322. Fix token context tracking for `class` and `function` in property-name position.
  323. Make sure `%*` isn't parsed as a valid operator.
  324. Allow shorthand properties `get` and `set` to be followed by default values.
  325. Disallow `super` when not in callee or object position.
  326. ### New features
  327. Support [`directive` property](https://github.com/estree/estree/compare/b3de58c9997504d6fba04b72f76e6dd1619ee4eb...1da8e603237144f44710360f8feb7a9977e905e0) on directive expression statements.
  328. ## 5.1.2 (2017-09-04)
  329. ### Bug fixes
  330. Disable parsing of legacy HTML-style comments in modules.
  331. Fix parsing of async methods whose names are keywords.
  332. ## 5.1.1 (2017-07-06)
  333. ### Bug fixes
  334. Fix problem with disambiguating regexp and division after a class.
  335. ## 5.1.0 (2017-07-05)
  336. ### Bug fixes
  337. Fix tokenizing of regexps in an object-desctructuring `for`/`of` loop and after `yield`.
  338. Parse zero-prefixed numbers with non-octal digits as decimal.
  339. Allow object/array patterns in rest parameters.
  340. Don't error when `yield` is used as a property name.
  341. Allow `async` as a shorthand object property.
  342. ### New features
  343. Implement the [template literal revision proposal](https://github.com/tc39/proposal-template-literal-revision) for ES9.
  344. ## 5.0.3 (2017-04-01)
  345. ### Bug fixes
  346. Fix spurious duplicate variable definition errors for named functions.
  347. ## 5.0.2 (2017-03-30)
  348. ### Bug fixes
  349. A binary operator after a parenthesized arrow expression is no longer incorrectly treated as an error.
  350. ## 5.0.0 (2017-03-28)
  351. ### Bug fixes
  352. Raise an error for duplicated lexical bindings.
  353. Fix spurious error when an assignement expression occurred after a spread expression.
  354. Accept regular expressions after `of` (in `for`/`of`), `yield` (in a generator), and braced arrow functions.
  355. Allow labels in front or `var` declarations, even in strict mode.
  356. ### Breaking changes
  357. Parse declarations following `export default` as declaration nodes, not expressions. This means that class and function declarations nodes can now have `null` as their `id`.
  358. ## 4.0.11 (2017-02-07)
  359. ### Bug fixes
  360. Allow all forms of member expressions to be parenthesized as lvalue.
  361. ## 4.0.10 (2017-02-07)
  362. ### Bug fixes
  363. Don't expect semicolons after default-exported functions or classes, even when they are expressions.
  364. Check for use of `'use strict'` directives in non-simple parameter functions, even when already in strict mode.
  365. ## 4.0.9 (2017-02-06)
  366. ### Bug fixes
  367. Fix incorrect error raised for parenthesized simple assignment targets, so that `(x) = 1` parses again.
  368. ## 4.0.8 (2017-02-03)
  369. ### Bug fixes
  370. Solve spurious parenthesized pattern errors by temporarily erring on the side of accepting programs that our delayed errors don't handle correctly yet.
  371. ## 4.0.7 (2017-02-02)
  372. ### Bug fixes
  373. Accept invalidly rejected code like `(x).y = 2` again.
  374. Don't raise an error when a function _inside_ strict code has a non-simple parameter list.
  375. ## 4.0.6 (2017-02-02)
  376. ### Bug fixes
  377. Fix exponential behavior (manifesting itself as a complete hang for even relatively small source files) introduced by the new 'use strict' check.
  378. ## 4.0.5 (2017-02-02)
  379. ### Bug fixes
  380. Disallow parenthesized pattern expressions.
  381. Allow keywords as export names.
  382. Don't allow the `async` keyword to be parenthesized.
  383. Properly raise an error when a keyword contains a character escape.
  384. Allow `"use strict"` to appear after other string literal expressions.
  385. Disallow labeled declarations.
  386. ## 4.0.4 (2016-12-19)
  387. ### Bug fixes
  388. Fix crash when `export` was followed by a keyword that can't be
  389. exported.
  390. ## 4.0.3 (2016-08-16)
  391. ### Bug fixes
  392. Allow regular function declarations inside single-statement `if` branches in loose mode. Forbid them entirely in strict mode.
  393. Properly parse properties named `async` in ES2017 mode.
  394. Fix bug where reserved words were broken in ES2017 mode.
  395. ## 4.0.2 (2016-08-11)
  396. ### Bug fixes
  397. Don't ignore period or 'e' characters after octal numbers.
  398. Fix broken parsing for call expressions in default parameter values of arrow functions.
  399. ## 4.0.1 (2016-08-08)
  400. ### Bug fixes
  401. Fix false positives in duplicated export name errors.
  402. ## 4.0.0 (2016-08-07)
  403. ### Breaking changes
  404. The default `ecmaVersion` option value is now 7.
  405. A number of internal method signatures changed, so plugins might need to be updated.
  406. ### Bug fixes
  407. The parser now raises errors on duplicated export names.
  408. `arguments` and `eval` can now be used in shorthand properties.
  409. Duplicate parameter names in non-simple argument lists now always produce an error.
  410. ### New features
  411. The `ecmaVersion` option now also accepts year-style version numbers
  412. (2015, etc).
  413. Support for `async`/`await` syntax when `ecmaVersion` is >= 8.
  414. Support for trailing commas in call expressions when `ecmaVersion` is >= 8.
  415. ## 3.3.0 (2016-07-25)
  416. ### Bug fixes
  417. Fix bug in tokenizing of regexp operator after a function declaration.
  418. Fix parser crash when parsing an array pattern with a hole.
  419. ### New features
  420. Implement check against complex argument lists in functions that enable strict mode in ES7.
  421. ## 3.2.0 (2016-06-07)
  422. ### Bug fixes
  423. Improve handling of lack of unicode regexp support in host
  424. environment.
  425. Properly reject shorthand properties whose name is a keyword.
  426. ### New features
  427. Visitors created with `visit.make` now have their base as _prototype_, rather than copying properties into a fresh object.
  428. ## 3.1.0 (2016-04-18)
  429. ### Bug fixes
  430. Properly tokenize the division operator directly after a function expression.
  431. Allow trailing comma in destructuring arrays.
  432. ## 3.0.4 (2016-02-25)
  433. ### Fixes
  434. Allow update expressions as left-hand-side of the ES7 exponential operator.
  435. ## 3.0.2 (2016-02-10)
  436. ### Fixes
  437. Fix bug that accidentally made `undefined` a reserved word when parsing ES7.
  438. ## 3.0.0 (2016-02-10)
  439. ### Breaking changes
  440. The default value of the `ecmaVersion` option is now 6 (used to be 5).
  441. Support for comprehension syntax (which was dropped from the draft spec) has been removed.
  442. ### Fixes
  443. `let` and `yield` are now “contextual keywords”, meaning you can mostly use them as identifiers in ES5 non-strict code.
  444. A parenthesized class or function expression after `export default` is now parsed correctly.
  445. ### New features
  446. When `ecmaVersion` is set to 7, Acorn will parse the exponentiation operator (`**`).
  447. The identifier character ranges are now based on Unicode 8.0.0.
  448. Plugins can now override the `raiseRecoverable` method to override the way non-critical errors are handled.
  449. ## 2.7.0 (2016-01-04)
  450. ### Fixes
  451. Stop allowing rest parameters in setters.
  452. Disallow `y` rexexp flag in ES5.
  453. Disallow `\00` and `\000` escapes in strict mode.
  454. Raise an error when an import name is a reserved word.
  455. ## 2.6.2 (2015-11-10)
  456. ### Fixes
  457. Don't crash when no options object is passed.
  458. ## 2.6.0 (2015-11-09)
  459. ### Fixes
  460. Add `await` as a reserved word in module sources.
  461. Disallow `yield` in a parameter default value for a generator.
  462. Forbid using a comma after a rest pattern in an array destructuring.
  463. ### New features
  464. Support parsing stdin in command-line tool.
  465. ## 2.5.0 (2015-10-27)
  466. ### Fixes
  467. Fix tokenizer support in the command-line tool.
  468. Stop allowing `new.target` outside of functions.
  469. Remove legacy `guard` and `guardedHandler` properties from try nodes.
  470. Stop allowing multiple `__proto__` properties on an object literal in strict mode.
  471. Don't allow rest parameters to be non-identifier patterns.
  472. Check for duplicate paramter names in arrow functions.