Updated: April 12, 2022
We are introducing a new JavaScript Runtime Version 2 to all developers! JavaScript Runtime Version 2 is built on Google V8, the engine that powers Node.js. This offers compatibility with more modern JavaScript through the ES 2020 (11th Edition) specification, and provides a faster, more secure foundation for your capsule's execution.
We encourage all newly created capsules to be on JavaScript Runtime Version 2. Additionally, while JavaScript Runtime Version 1 is still available, we encourage you to start migrating your capsule code, which you can do with the help of Bixby Developer Studio's (Bixby Studio) Quick Fix feature. For information on how to update these capsules, see Migrating to JavaScript Runtime Version 2.
To use the new JavaScript Runtime Version 2, you must update to the latest version of Bixby Studio (8.15.1 or later) and you need to set the js-runtime-version
key in your capsule.bxb
file:
capsule {
runtime-version (7) {
js-runtime-version (2)
}
}
Deprecation 6785 ($vivContext.userId
) has an updated EOL to R22C.