@webpieces/http-client-browser 0.4.963 → 0.4.965

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.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -28,11 +28,11 @@ A browser cannot hold service credentials, so a contract with an `oidcSameProjec
28
28
  `createRpcClient`. The server twin is [@webpieces/http-client-node](../http-client-node).
29
29
 
30
30
  Calls have a **30-second default timeout**, including reading the response body. Configure
31
- `CallRegistry` from `@webpieces/core-util` for ALL, API or API-method overrides and explicit retry
32
- strategies — the same `CallRegistry.execute` the node and Cloud Tasks clients run. Any strategy
31
+ `ClientRegistry` from `@webpieces/core-util` for ALL, API or API-method overrides and explicit retry
32
+ strategies — the same `ClientRegistry.execute` the node and Cloud Tasks clients run. Any strategy
33
33
  replaces the entire timeout ladder; there is no default retry because POSTs may not be idempotent.
34
- Opt a contract in with `CallRegistry.setStrategy(new RetryStrategy(...).run, CatalogApi)`: it retries
35
- only a `CallOutcome.TRANSIENT_FAILURE` (from `ClientRegistry.classify`) on a `READ` /
34
+ Opt a contract in with `ClientRegistry.setStrategy(new RetryStrategy(...).run, CallScope.api(CatalogApi))`: it retries
35
+ only a `CallOutcome.TRANSIENT_FAILURE` (from `ApiRegistry.classify`) on a `READ` /
36
36
  `WRITE_IDEMPOTENT` endpoint, logs each retried attempt as `[API-client-attempt-TRANSIENT]`, and gives
37
37
  up with a 502 `ApiRetriesExhaustedError`. See [client timeouts and testing](../../../docs/client-timeouts.md).
38
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webpieces/http-client-browser",
3
- "version": "0.4.963",
3
+ "version": "0.4.965",
4
4
  "description": "Browser HTTP client for webpieces: DI-free (React or Angular), app-managed context store, no AsyncLocalStorage",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -22,7 +22,7 @@
22
22
  "access": "public"
23
23
  },
24
24
  "dependencies": {
25
- "@webpieces/core-util": "0.4.963",
26
- "@webpieces/http-client-core": "0.4.963"
25
+ "@webpieces/core-util": "0.4.965",
26
+ "@webpieces/http-client-core": "0.4.965"
27
27
  }
28
28
  }