NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #551 most downloaded on Packagist
Peast is PHP library that generates AST for JavaScript code
Latest stable
v1.18.1
Last release 2 months ago
15 Sep 2026
Release timing varies
gaps range from 3 weeks to 8 months
Nearly every release is documented
notes for 50 of 53 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
53 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Fixed bug where rendering a "using" or "using await" declaration inside a switch case not always wrap it into brackets
Added ES2026 parser with no additional features
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fixed deprecation warning about null array index on PHP 8.5 when parsing trailing comments
Fixed bug where single BlockStatement where wrongly expanded removing brackets
Fixed bug when parsing SpreadElement followed by NewExpression between parenthesis
Fixed warning on PHP 8.5 when handling large numbers
Fixed bug where const declarations were allowed without an initializer
const declarations were allowed without an initializerFixed bug where const declarations were allowed without an initializer
const declarations were allowed without an initializerFixed bug where continue and break were allowed outside iteration and break statements
continue and break were allowed outside iteration and break statementsImplemented ES2025 parser with import attributes
Removed implicitly nullable parameter declarations for PHP 8.4 compatibility
Fixed bug where a regex that started with /= raised a syntax error
/= raised a syntax errorFixed bug where, in some situations, scanner allowed invalid characters after a slash
Implemented ES2024 parser, no new syntax features have been introduced
Fixed rendering of let and const inside switch cases that always require brackets
let and const inside switch cases that always require bracketsFixed rendering of let and const inside if, for and while that always require brackets
let and const inside if, for and while that always require bracketsFixed bug where async keyword was lost when rendering an object async method
Fixed bug on hashbang comment detection
* Implemented comments rendering
* Implemented comments rendering
Fixed a case of conditional expression parsed as a wrong optional chain
Fixed parsing of multiline template literals in return statements
Implemented parsing of arbitrary module namespace identifier names
Fixed identifiers bug introduced in the last release
Implemented parsing of top level await
#field in obj syntaxrawName that contains their raw name, including unconverted unicode escape sequences, while the name property still contains the converted value as before. Renderer now prints rawName for identifiers to prevent automatic conversion of escaped keywords.Fixed parsing of adjacent JSX expressions
Fixed parsing of 'get' and 'set' as property names and class fields
Fixed bug when parsing surrogate pairs in php 7.4+
Added support for surrogate pairs in strings and templates
Fixed bug when parsing spread operator inside objects returned by arrow functions
Implemented ES2022 parser with class fields and private class methods
Added options array to Traverser constructor and shortcut method on nodes
Implemented ES2021 parser with logical assignment operators and numeric separators
Implemented parsing of coalescing operator
Implemented parsing of import.meta syntax
import.meta syntaxImplemented parsing of export * as ns from "source" syntax
export * as ns from "source" syntaxFixed parsing of semicolon after do-while statement
Handled invalid UTF-8 characters in the source code by throwing an exception or replacing them with a substitution character by setting the new strict
Fixed another bug when rendering nested "if" statements with Compact formatter
Fixed rendering of nested "if" statements with Compact formatter
Fixed rendering of arrow functions that generates invalid code
Fixed parsing of regular expressions by disabling scan errors inside them
Nothing published for this version
Implemented parsing of JSX syntax
Implemented missing features of es2018: object rest and spread, async generators and async iteration
Fixed a lot of bugs and now Peast is compatible with all the ECMAScript official tests for the implemented features. You can test Peast against ECMASc
Enabled JSON serialization of nodes and tokens using json_encode()
Since EcmaScript dropped support for ES(Number) in favour of ES(Year) versions:
ES6 namespace have been replaced by ES2015Peast::ES2015 method have been added to Peast main class, Peast::ES6 method still exists to preserve BC and calls Peast::ES2015 internallyES7 namespace have been replaced by ES2016Peast::ES2016 method have been added to Peast main class, Peast::ES7 method still exists to preserve BC and calls Peast::ES2016 internallyPeast::latest method have been added to Peast main class to allow parsing with the latest EcmaScript version implementedRefactored parser to make it more extensible
delete followed by single identifiers in strict modeif (...) function () {} syntax if not in strict modeNothing published for this version
Implemented ES2020 parser with dynamic import and BigInt
Nothing published for this version
First release with ES6 and ES7 parsers
First release with ES6 and ES7 parsers
One column per quarter.