Is SS 2.1 available for SSP Applications?
# suitecommerce
c
Is SS 2.1 available for SSP Applications?
s
If the SSP is a SS 2.x application then yes. You can also create services and other backend files that are SS 2.x.
c
If I switch the JSDoc tag from
2.x
to
2.1
I get back
Failed to validate script file: Invalid SuiteScript Runtime Version
. The SSP version is listed at
2.x
. 🤔
s
Why are you trying to force it to use 2.1? What's wrong with 2.x?
c
Nothing is “wrong” with 2.x, I just want the es2015 language features.
s
That's included in 2.x AFAIK
I'm not an SS expert but my understanding is that 2.x denotes "use the latest stable version of SuiteScript 2" and many scripts don't 'officially' support 2.1
c
Hmm… I tried to use Object.assign( … ) and received a method not found error, so I tried 2.1. Maybe something else is wrong with my idea.
s
🤔
OK I stand corrected by the documentation
The 2.0 and 2.1 values indicate that the script uses SuiteScript 2.0 or SuiteScript 2.1, respectively. The 2.x value usually represents the latest version of SuiteScript that is generally available (but does not represent any versions that are released as beta features.) However, in the current release, the 2.x value represents SuiteScript 2.0, not SuiteScript 2.1, even though SuiteScript 2.1 is the latest generally available version of SuiteScript.
Therefore, to answer your question: SuiteScript 2.0 uses ES5.1 so no Object.assign for you
c
Well, that’s good to know for sure. There are many ways to skin this cat. 🙂
Thanks @Steve Goldberg