Hi everyone, We have a mix of 2.x and 2.1, which c...
# suitescript
s
Hi everyone, We have a mix of 2.x and 2.1, which causes issues when we update the library script to 2.1 with es6 syntax but rarely we miss updating the main scripts. To resolve this permanently, we are looking for a smooth transition. Our approach: option 1. Updating annotations from 2.x to 2.1 for all scripts—would extensive testing be necessary? option 2. Enabling the setting General Preferences > Execute SuiteScript 2.x Server Scripts as "2.1"—again, would extensive testing be required? We are looking for the most reliable option that requires minimal time and effort. Any insights would be greatly appreciated.
a
Both options should work without requiring extensive testing because everything from 2.0 (2.X at some point) is supported by 2.1, I don't foresight any issues with either option.
thankyou 2
s
the checkbox setting is useful because it's an easy way to 'test' everything running as 2.1 that was otherwise 2.x. Try it on a sandbox first 🙂
🙌 2
thankyou 1
s
issue is testing is vast, wondering how to conclude as 'its working' to move to production.