chore: release v0.9.0
This commit is contained in:
parent
ec3527909c
commit
b2e5aefaa7
31
CHANGELOG.md
31
CHANGELOG.md
@ -2,6 +2,35 @@
|
||||
|
||||
All notable changes to this project will be documented in this file, in reverse chronological order by release.
|
||||
|
||||
## v0.9.0 2022-26-03
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
- Dropped PHP 5 support to increase velocity/productivity
|
||||
|
||||
### Added
|
||||
|
||||
- Nodes and tokens now also contain their StartCol and EndCol
|
||||
- 2 new interfaces for traversers (backwards compatible):
|
||||
- `traversers.CheckEntrance` interface: provides an `EnterNode(ast.Vertex) bool` that, when implemented, is called before entering a node, allowing short circuiting and more control over the traversal
|
||||
- `traversers.NotifyLeave` interface: provides an `LeaveNode(ast.Vertex)` that, when implemented, is called when a node has fully been traversed, again allowing for more control
|
||||
|
||||
### Fixes
|
||||
|
||||
- Fixed a bug where the parser would use token.DefaultBlockSize instead of position.DefaultBlockSize when instantiating the parser
|
||||
|
||||
### Internals
|
||||
|
||||
- Rely on code generations for several repeating/boilerplate tasks
|
||||
- Refactors and deduplication after PHP 5 removal
|
||||
- Add golangci-lint configuration and an editorconfig file
|
||||
|
||||
## v0.8.3 2022-09-09
|
||||
|
||||
### Changed
|
||||
|
||||
- reduce memory usage by allocating smaller position blocks
|
||||
|
||||
## `v0.8.2` 2022-26-06
|
||||
|
||||
### Added
|
||||
@ -57,4 +86,4 @@ All notable changes to this project will be documented in this file, in reverse
|
||||
|
||||
---
|
||||
|
||||
Versions prior to 0.8.0 were not included in this changelog.
|
||||
Versions prior to 0.8.0 were not included in this changelog.
|
||||
|
@ -1,4 +1,4 @@
|
||||
> This is a fork of the [z7zmey](https://github.com/z7zmey) [parser](https://github.com/z7zmey/php-parser) that adds PHP 8 support.
|
||||
> This is a fork of the [VKCOM php-parse](https://github.com/VKCOM/php-parser), which in itself is a fork of [z7zmey](https://github.com/z7zmey) [parser](https://github.com/z7zmey/php-parser) that adds PHP 8 support.
|
||||
|
||||
PHP Parser written in Go
|
||||
========================
|
||||
@ -65,7 +65,7 @@ func main() {
|
||||
if err != nil {
|
||||
log.Fatal("Error:" + err.Error())
|
||||
}
|
||||
|
||||
|
||||
if len(parserErrors) > 0 {
|
||||
for _, e := range parserErrors {
|
||||
log.Println(e.String())
|
||||
|
Loading…
Reference in New Issue
Block a user