mck89/peast
Peast is PHP library that generates AST for JavaScript code
v1.18.0
42M downloads/mo
#536 most downloaded on Packagist
mck89/peast
What this package is like to depend on
Last release 4 days ago
19 Aug 2026
Ships fairly regularly
a new release about every 3 months
Most releases are documented
notes for 41 of 52 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
52 releases · first in 2016
6 releases in the last 12 months
see the full history below
Release timeline
52 releases · Sep 2016 to Aug 2026Releases
latest 52-
v1.18.019 Aug 2026Release notes
Open source →- Added ES2026 parser with no additional features
- Added ES2027 parser and implemented explicit resource management
Release notes
Open source →- Added ES2026 parser with no additional features
- Added ES2027 parser and implemented explicit resource management
-
v1.17.721 Jul 2026Release notes
Open source →- Fixed deprecation warning about null array index on PHP 8.5 when parsing trailing comments
Release notes
Open source →- Fixed deprecation warning about null array index on PHP 8.5 when parsing trailing comments
-
v1.17.624 Apr 2026Release notes
Open source →- Fixed bug where single BlockStatement where wrongly expanded removing brackets
Release notes
Open source →- Fixed bug where single BlockStatement where wrongly expanded removing brackets
-
v1.17.515 Mar 2026Release notes
Open source →- Fixed bug when parsing SpreadElement followed by NewExpression between parenthesis
Release notes
Open source →- Fixed bug when parsing SpreadElement followed by NewExpression between parenthesis
-
v1.17.410 Oct 2025 -
v1.17.310 Oct 2025 -
v1.17.201 Jul 2025 -
v1.17.127 Jun 2025Release notes
Open source →- Fixed bug where
continueandbreakwere allowed outside iteration andbreakstatements
Release notes
Open source →- Fixed bug where
continueandbreakwere allowed outside iteration andbreakstatements
- Fixed bug where
-
v1.17.007 Mar 2025 -
v1.16.323 Jul 2024Release notes
Open source →- Removed implicitly nullable parameter declarations for PHP 8.4 compatibility
Release notes
Open source →- Removed implicitly nullable parameter declarations for PHP 8.4 compatibility
-
v1.16.205 Mar 2024 -
v1.16.114 Feb 2024Release notes
Open source →- Fixed bug where, in some situations, scanner allowed invalid characters after a slash
-
v1.16.011 Jan 2024Release notes
Open source →- Implemented ES2024 parser, no new syntax features have been introduced
- Fixed bug when parsing sequence expressions using older ES versions
-
v1.15.412 Aug 2023Release notes
Open source →- Fixed rendering of
letandconstinsideswitchcases that always require brackets
- Fixed rendering of
-
v1.15.303 Aug 2023Release notes
Open source →- Fixed rendering of
letandconstinsideif,forandwhilethat always require brackets
- Fixed rendering of
-
v1.15.215 Jul 2023Release notes
Open source →- Fixed bug where async keyword was lost when rendering an object async method
-
v1.15.121 Jan 2023 -
v1.15.013 Sep 2022 -
v1.14.001 May 2022 -
v1.13.1111 Jan 2022 -
v1.13.1024 Dec 2021Release notes
Open source →- Added support for php 8.1
- Fixed parsing of multiline template literals in return statements
-
v1.13.912 Nov 2021 -
v1.13.811 Sep 2021 -
v1.13.711 Sep 2021Release notes
Open source →- Implemented parsing of top level await
- Implemented parsing of
#field in objsyntax - Implemented parsing of class static block
- Aligned invalid octal numbers checks to the specification
- BC break: identifier tokens' value now report their raw name, this means that unicode escape sequences are reported as they are written in the code, without converting them to their corresponding characters. Identifier nodes have a new property called
rawNamethat contains their raw name, including unconverted unicode escape sequences, while thenameproperty still contains the converted value as before. Renderer now printsrawNamefor identifiers to prevent automatic conversion of escaped keywords.
-
v1.13.623 Aug 2021Release notes
Open source →- Fixed parsing of adjacent JSX expressions
- Implemented parsing of JSX fragments inside elements
-
v1.13.528 Jul 2021Release notes
Open source →- Fixed parsing of
getandsetas property names and class fields - Fixed parsing of dot after number with exponential notation
- Fixed parsing of
-
v1.13.424 Jul 2021 -
v1.13.324 Jul 2021 -
v1.13.214 Jul 2021Release notes
Open source →- Fixed bug when parsing spread operator inside objects returned by arrow functions
-
v1.13.022 May 2021 -
v1.12.008 Jan 2021Release notes
Open source →- Added options array to Traverser constructor and shortcut method on nodes
- Added Query class
-
v1.11.009 Oct 2020Release notes
Open source →- Implemented ES2021 parser with logical assignment operators and numeric separators
-
v1.10.421 Jun 2020Release notes
Open source →- Implemented parsing of coalescing operator
- Implemented parsing of optional chaining
- Fixed bug when parsing a semicolon on a new line after break and continue statements
-
v1.10.303 Apr 2020Release notes
Open source →- Implemented parsing of
import.metasyntax - Implemented parsing of BigIntLiteral as objects keys
- Implemented parsing of
-
v1.10.215 Mar 2020Release notes
Open source →- Implemented parsing of
export * as ns from "source"syntax - Fixed Renderer so that it won't trust computed flag in MemberExpression if property is not an Identifier
- Implemented parsing of
-
v1.10.122 Dec 2019 -
v1.9.418 Oct 2019Release notes
Open source →- Handled invalid UTF-8 characters in the source code by throwing an exception or replacing them with a substitution character by setting the new strictEncoding option to false
- Fixed bug when rendering object properties with equal key and value
-
v1.9.313 Sep 2019Release notes
Open source →- Fixed another bug when rendering nested "if" statements with Compact formatter
-
v1.9.224 May 2019 -
v1.9.116 Jan 2019 -
v1.8.106 Nov 2018Release notes
Open source →- Fixed parsing of regular expressions by disabling scan errors inside them
- Added LSM utility class to handle correctly punctuators and strings stop characters
-
v1.921 Dec 2018Nothing published for this version
-
v1.804 Jun 2018Nothing published for this version
-
v1.725 Feb 2018Nothing published for this version
-
v1.608 Jan 2018Nothing published for this version
-
v1.523 Sep 2017Nothing published for this version
-
v1.407 Mar 2017Nothing published for this version
-
v1.314 Feb 2017Nothing published for this version
-
v1.226 Dec 2016Nothing published for this version
-
v1.1022 Nov 2019Nothing published for this version
-
v1.129 Oct 2016Nothing published for this version
-
v1.011 Sep 2016Nothing published for this version