Put on your coding caps…
On Monday we rolled out several exciting new changes to the API Server. These changes include new features requested by sheet and script authors, speed upgrades, and general upgrades to the underlying NodeJS engine enabling new code features for script authors to use.
Sheet Worker Support for the API
The largest ‘new’ feature is the addition of Sheet Worker support for the API server. Several script authors requested that we add this feature to save time on their end so that they can re-use the same sheet worker code that already exists for character sheets on the API. That means that, for example, if your character sheet automatically calculates the Dex Modifier of your character based on the Dexterity, when the API sets the Dexterity the modifier will get calculated as well. Previously the API author would need to write API-specific code to make that happen which lead to many API scripts not interacting well with complicated character sheets.
We also worked with specific API script authors to make sure that this new piece of functionality works well in large games and those using very complicated sheets. (For some specific documentation, check out this forum post.)
We made several adjustments to the underlying API code so that findObjs() calls (among others) are as fast as possible. This should provide an overall speedup for all existing API scripts without any extra effort necessary on the part of the script authors. At this point the API is as fast as the average web client in performing most actions such as updating sheets, creating tokens, and more.
Upgrade to NodeJS v7.x
Thanks to everyone who beta-tested these new features on the Dev server over the past couple months!