Skip to content

Code Actions Refactor

Latest
Compare
Choose a tag to compare
@zetlen zetlen released this 09 Jun 19:59
· 255 commits to master since this release

The Node SDK has been refactored to add a more efficient style of client acquisition. The legacy style:

var client = require('mozu-node-sdk').client().commerce().catalog().admin().product();

is still supported, but it is less efficient in both memory and time. For code actions, this style will also dramatically increase the size of your built code action file. We recommend switching to the new style:

var client = require('mozu-node-sdk/clients/commerce/catalog/admin/product')();

Other details include a new plugin type, RequestTransform, and are available in the README.