The lexer has had several fixes in this release, including how it parses numbers, scientific notation should be improved.
The lexer has had several fixes in this release, including how it parses numbers, scientific notation should be improved.
On top of that the lexer no longer panics on errors including Syntax Errors (thanks @adumbidiot), instead you get some output on where the error happened.
On top of that the lexer no longer panics on errors including Syntax Errors (thanks @adumbidiot), instead you get some output on where the error happened.
## Moving to a workspace architecture
## Moving to a workspace architecture
Boa offers both a CLI and a library, initially these were all in the same binary. The downside is
Boa offers both a CLI and a library, initially these were all in the same binary. The downside is
those who want to embed boa as-is end up with all of the command-line dependencies.
those who want to embed boa as-is end up with all of the command-line dependencies.
So the time has come to separate out the two, this is normal procedure, this should be analogous to ripgrep
So the time has come to separate out the two, this is normal procedure, this should be analogous to ripgrep
and the regex crate.
and the regex crate.
Cargo has great support for workspaces, so this shouldn't be an issue.
Cargo has great support for workspaces, so this shouldn't be an issue.
## Benchmarks
## Benchmarks
We now have [benchmarks which run against master](https://boa-dev.github.io/boa/dev/bench)!
We now have [benchmarks which run against master](https://boa-dev.github.io/boa/dev/bench)!
Thanks to Github Actions these will run automatically a commit is merged.
Thanks to Github Actions these will run automatically a commit is merged.
Feature enhancements:
Feature enhancements:
@ -283,7 +372,7 @@ Bug fixes:
# 0.4.0 (2019-09-25)
# 0.4.0 (2019-09-25)
v0.4.0 brings quite a big release. The biggest feature to land is the support of regular expressions.
v0.4.0 brings quite a big release. The biggest feature to land is the support of regular expressions.
Functions now have the arguments object supported and we have a [`debugging`](docs/debugging.md) section in the docs.
Functions now have the arguments object supported and we have a [`debugging`](docs/debugging.md) section in the docs.
Feature enhancements:
Feature enhancements:
@ -327,7 +416,7 @@ Bug fixes:
# 0.2.1 (2019-06-30)
# 0.2.1 (2019-06-30)
Some String prototype methods are implemented.
Some String prototype methods are implemented.
Thanks to @lennartbuit we have
Thanks to @lennartbuit we have
trim/trimStart/trimEnd added to the string prototype
trim/trimStart/trimEnd added to the string prototype