Skip to content

Commit

Permalink
chore(release): 3.0.0 [skip ci]
Browse files Browse the repository at this point in the history
# [3.0.0](v2.2.5...v3.0.0) (2022-04-19)

### Bug Fixes

* **Lexer:** use new lexer interface ([03ed15e](03ed15e))

### Features

* Lexer has a readonly state ([13ec065](13ec065))

### BREAKING CHANGES

* the advance function of the lexer does not change the internal state of the object, but does instead return a new Lexer object. The getters `token()`, `peek()` and `previous()` have been replaced with readonly properties `current`, `next`, `previous`.
* the API of the Parser class has changed. It can't parse multiple expressions anymore, but needs to be instantiated for each expression. The expression is passed to the constructor. The current lexer can be accessed via the property `lexer`.
  • Loading branch information
semantic-release-bot committed Apr 19, 2022
1 parent 37213bb commit 4c544b4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# [3.0.0](https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/compare/v2.2.5...v3.0.0) (2022-04-19)


### Bug Fixes

* **Lexer:** use new lexer interface ([03ed15e](https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/commit/03ed15ebdd4d735560c379a885c29341c1ed73ee))


### Features

* Lexer has a readonly state ([13ec065](https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/commit/13ec065d3d2c0004aa183e8d35e7b94049794675))


### BREAKING CHANGES

* the advance function of the lexer does not change the internal state of the object, but does instead return a new Lexer object. The getters `token()`, `peek()` and `previous()` have been replaced with readonly properties `current`, `next`, `previous`.
* the API of the Parser class has changed. It can't parse multiple expressions anymore, but needs to be instantiated for each expression. The expression is passed to the constructor. The current lexer can be accessed via the property `lexer`.

## [2.2.5](https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/compare/v2.2.4...v2.2.5) (2022-03-13)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsdoc-type-pratt-parser",
"version": "2.2.5",
"version": "3.0.0",
"description": "",
"main": "dist/index.js",
"types": "dist/src/index.d.ts",
Expand Down

0 comments on commit 4c544b4

Please sign in to comment.