Path to ES6, ES7?

corbettbrasing1
Mega Guru

Is there current roadmap to upgrade the platform to ES6, or 7?   I know Helsinki upgraded it to ES5.

56 REPLIES 56

I just started testing using ES6+ in Tokyo.  So far so good.  Really appreciate being able to write modern JS on the platform.

I ran into a problem.  I use the SNOW extension for VSCode.  It will not allow me to sync files that have ES6+ syntax.  It's due to the ESLint configuration that runs before a file is synced.  I can see the code here from the plugin:

u = new(0, r.CLIEngine)({
    envs: ["browser", "mocha"],
    useEslintrc: !1
});

The ESLint configuration for the CLIEngine the plugin is using is only configured for ES5, so we need to either be able to specify an ESLint config file, or have that configuration changed to something like:

u = new(0, r.CLIEngine)({
    envs: ["es2020", "browser", "mocha"],
    useEslintrc: !1
});

I've made that update locally to my own version of the plugin and it fixes the problem.  You could also think about open sourcing the plugin as it doesn't look like it receives any updates.  It's not fun looking through minified code to find a problem.

Paul Jensen1
ServiceNow Employee
ServiceNow Employee

ES12 support is available in the Tokyo release. More info here: https://developer.servicenow.com/blog.do?p=/post/tokyo-ecmascript-2021/

 

The upcoming Utah release will have additional improvements to compatibility.