From 5445810f6dac81f0a5f8a1b36a2f5c312173c629 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Fri, 14 Jun 2024 09:07:11 +0200 Subject: [PATCH] Mark version 8.12.0 --- AUTHORS | 2 ++ acorn/CHANGELOG.md | 24 ++++++++++++++++++++++++ acorn/package.json | 2 +- acorn/src/index.js | 2 +- 4 files changed, 28 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index a2c2bdfd0..af80a7332 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,5 +1,6 @@ List of Acorn contributors. Updated before every release. +adams85 Adam Walsh Adrian Heine Adrian Rakovsky @@ -69,6 +70,7 @@ Koichi ITO krator kyranet laosb +Lucas Mirelmann luckyzeng Marek Marijn Haverbeke diff --git a/acorn/CHANGELOG.md b/acorn/CHANGELOG.md index eb848a58b..b9ef4266a 100644 --- a/acorn/CHANGELOG.md +++ b/acorn/CHANGELOG.md @@ -1,3 +1,27 @@ +## 8.12.0 (2024-06-14) + +### New features + +Support ES2025 duplicate capture group names in regular expressions. + +### Bug fixes + +Include `VariableDeclarator` in the `AnyNode` type so that walker objects can refer to it without getting a type error. + +Properly raise a parse error for invalid `for`/`of` statements using `async` as binding name. + +Properly recognize \"use strict\" when preceded by a string with an escaped newline. + +Mark the `Parser` constructor as protected, not private, so plugins can extend it without type errors. + +Fix a bug where some invalid `delete` expressions were let through when the operand was parenthesized and `preserveParens` was enabled. + +Properly normalize line endings in raw strings of invalid template tokens. + +Properly track line numbers for escaped newlines in strings. + +Fix a bug that broke line number accounting after a template literal with invalid escape sequences. + ## 8.11.3 (2023-12-29) ### Bug fixes diff --git a/acorn/package.json b/acorn/package.json index 840a76f40..be2eba048 100644 --- a/acorn/package.json +++ b/acorn/package.json @@ -16,7 +16,7 @@ ], "./package.json": "./package.json" }, - "version": "8.11.3", + "version": "8.12.0", "engines": { "node": ">=0.4.0" }, diff --git a/acorn/src/index.js b/acorn/src/index.js index 14d7b5fe0..3c6e1312c 100644 --- a/acorn/src/index.js +++ b/acorn/src/index.js @@ -31,7 +31,7 @@ import {isIdentifierChar, isIdentifierStart} from "./identifier.js" import {Token} from "./tokenize.js" import {isNewLine, lineBreak, lineBreakG, nonASCIIwhitespace} from "./whitespace.js" -export const version = "8.11.3" +export const version = "8.12.0" export { Parser, defaultOptions,