This release focuses on 3 main areas: usability, usability, and usability. Main updates include:
- Moved to Rhino 1.7.14. This means many new features, including template strings and better Java interoperability. See full list on Mozilla's site.
- Printing problematic b-thread's name during serialization errors.
- Custom serialization for the common and non-serializable
java.util.Optional
and JavaScript'sSet()
. This also sets the foundation for customized serialization. - Improved wrapping of Java objects as they come to JavaScript: Java strings are now treated as native JS strings, so using the
===
operator works as expected. - Verification stops on ECMAScript errors, instead of hanging.
- Improved error reporting when trying to sync outside of a b-thread.
- Informative error message when requesting a list of events and one of the events is
null
. - Logging is turned off by default during verification. Call
BPjs.setLogDuringVerification(true)
to enable them again. Of course, log messages are hardly sequential during verification, so logging won't make sense in this context in most cases.