nodejs
nodejs copied to clipboard
Everything related to the Node.js ecosystem for the commercetools platform.
#### Summary IE10+ browsers support [btoa](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/btoa) function. Do we really need 50kb Buffer polyfill in the browser? With this pull request https://github.com/commercetools/nodejs/pull/1650 we can just get rid of the entire...
#### Summary Replace Buffer.byteLength(body).toString() with simple body.length. It allows to use only Buffer.from polyfill, instead of the entire Buffer's polyfill (around 50kb) #### Description Check the sdk-auth umd file -...
#### Summary defaultsDeep includes the lodash.defaultsdeep file what weight 51kb we can use just Object.assign here #### Todo - Tests - [ ] Unit - [ ] Integration - [...
Fixes: #1627 Resets the `customerId` and `cartId` params to null after the `build` method has generated a uri.
### Support reference number **N/A** ### Description Currently we are unable to use / apply store or locale query parameters using the fluent api request builder package. ```typescript const uri...
### Support reference number SUPPORT-11435 ### Description state importer example does not include authhost variable and the host variable references the auth api https://commercetools.github.io/nodejs/cli/state-importer.html#direct-usage
https://jira.commercetools.com/browse/SUPPORT-11338?focusedCommentId=1147759&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-1147759
### Support reference number SUPPORT-11143 ### Description PM API request builder sets offset to > 10,000 resulting in a failure https://github.com/commercetools/nodejs/blob/master/packages/api-request-builder/src/build-query-string.js#L76 ### Expected Behavior request should follow https://docs.commercetools.com/api/general-concepts#iterating-over-all-elements ### Current...