Search code examples
javascriptsalesforcerhinodemandware

What version of Rhino JavaScript does Salesforce Commerce Cloud use?


As I understand it Salesforce CommerceCloud uses Rhino JavaScript, but sadly I cannot find what version it is, which is important for understanding compatibility. Is there any documentation that describes this, and/or is there a way to output the JavaScript engine version?


Solution

  • It depends on the compatibility mode.

    Check https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/demandwarejavascript.html#what-rhino-version-does-salesforce-b2c-commerce-use

    Compatibility mode Rhino Version VERSION_ES6
    22.7 1.7.14 set
    21.2 1.7.13 set
    earlier ones 1.7R5 not set

    GitHub SFCC community docs FAQ (requires login) also provides this information.