版博士V2.0程序
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

CHANGELOG.md 19 KiB

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