@commercetools/connect-payments-sdk 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @commercetools/connect-payments-sdk
2
2
 
3
+ ## 0.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6201192: enable retries on commercetools SDK for 503 errors
8
+
3
9
  ## 0.11.0
4
10
 
5
11
  ### Minor Changes
@@ -33,6 +33,8 @@ const createClient = (opts) => {
33
33
  };
34
34
  const httpMiddlewareOptions = {
35
35
  host: opts.apiUrl,
36
+ //Enables SDK retries when CoCo returns a 503 error. It retries up to 10 times with an 200ms backoff.
37
+ enableRetry: true,
36
38
  };
37
39
  const correlationIdMiddlewareOptions = {
38
40
  generate: () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools/connect-payments-sdk",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Payment SDK for commercetools payment connectors",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,12 +15,12 @@
15
15
  ],
16
16
  "license": "ISC",
17
17
  "dependencies": {
18
- "@commercetools-backend/loggers": "22.35.0",
19
- "@commercetools/platform-sdk": "7.18.0",
18
+ "@commercetools-backend/loggers": "22.35.1",
19
+ "@commercetools/platform-sdk": "7.21.0",
20
20
  "@commercetools/sdk-client-v2": "2.5.0",
21
21
  "jsonwebtoken": "9.0.2",
22
22
  "jwks-rsa": "3.1.0",
23
23
  "lodash": "4.17.21",
24
- "logform": "2.6.1"
24
+ "logform": "2.7.0"
25
25
  }
26
26
  }