SuiteScript Versioning
SuiteScript 2.0 and all future releases of SuiteScript will maintain the following versioning system.
|
Version Type |
Numbering Pattern |
Description |
|---|---|---|
|
Major |
Version 2.0, 3.0, 4.0 |
Major versions of SuiteScript include significant functionality changes and improvements. Major versions aren't backward compatible with previous versions. |
|
Minor |
Version 2.0, 2.1, 2.2 |
Minor versions of SuiteScript include enhancements to existing features. Minor versions are backward compatible with all versions released since the last major version. For example, SuiteScript 2.1 is backward compatible with SuiteScript 2.0, but it is not backward compatible with SuiteScript 1.0. |
|
Patch |
Does not apply |
Patch versions of SuiteScript are included with regular NetSuite bug fix releases. Patch versions are backward compatible with all versions released since the last major version. |
Using SuiteScript Version 2.x in Scripts
You can specify a SuiteScript version of 2.x in your scripts. The 2.x value usually represents the latest version of SuiteScript that is generally available and doesn't represent any versions that are released as beta features. However, this doesn't apply to SuiteScript 2.1. Currently, the 2.x value indicates that a script uses SuiteScript 2.0, not SuiteScript 2.1. You can still use SuiteScript 2.1 and all of its features in your server scripts, but your 2.x scripts won't automatically run as SuiteScript 2.1 scripts until a future release. For more information about specifying a version for your script, see SuiteScript 2.x JSDoc Validation and SuiteScript Versions.
You can use an account-level preference, Execute SuiteScript 2.x Server Scripts As, to specify that the 2.x value should represent SuiteScript 2.1 instead of SuiteScript 2.0. Setting this preference to 2.1 applies to all scripts in your account that use the 2.x value. For more information about this preference and how to use it, see Enabling SuiteScript 2.1 at the Account Level.