I would recommend always being explicit, especiall...
# suitescript
e
I would recommend always being explicit, especially with 2.0 and 2.1 as they're different enough to have been 2.0 and 3.0
s
runtime behavior is supposed to be identical, and it is in most cases (so far I have not run into any script behavior differences between 2.0 and 2.1 though I know some others have)
e
Correct me if I'm wrong, but it seems like if you distribute 2.1 code with the
2.x
tag, it's going to fail in any account where the setting says
2.x = 2.0
s
all you need to do is change your target (in
tsconfig.json
) and recompile. Takes only a second and is an essentially no-risk activity.
hence for those of us using TS, the 2.0->2.1 was a non-event from a source code perspective. I've been using 2.1 constructs for quite a long while now, even in 2.0 targeted code. Compiling for 2.1 just means the output JS is mostly the same as the source TS