@cosmicdrift/kumiko-renderer-puppeteer-client 0.404.0 → 0.404.1

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 +12 -12
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -45,23 +45,23 @@ extraContext: ({ db, registry }) => ({
45
45
 
46
46
  App-wide, set via K8s Secret + ConfigMap:
47
47
 
48
- | Var | Default | Description |
49
- |---|---|---|
50
- | `PUPPETEER_SERVICE_URL` | `http://puppeteer-service:3000` | Internal cluster URL of the service |
51
- | `PUPPETEER_AUTH_TOKEN` | **required** | Shared secret (>=16 chars, matching the service) |
52
- | `PUPPETEER_CLIENT_TIMEOUT_MS` | `60000` | Per-request timeout (client side) |
53
- | `PUPPETEER_CLIENT_MAX_RETRIES` | `3` | Number of retries for 5xx/network errors |
48
+ | Var | Default | Description |
49
+ | ------------------------------ | ------------------------------- | ------------------------------------------------ |
50
+ | `PUPPETEER_SERVICE_URL` | `http://puppeteer-service:3000` | Internal cluster URL of the service |
51
+ | `PUPPETEER_AUTH_TOKEN` | **required** | Shared secret (>=16 chars, matching the service) |
52
+ | `PUPPETEER_CLIENT_TIMEOUT_MS` | `60000` | Per-request timeout (client side) |
53
+ | `PUPPETEER_CLIENT_MAX_RETRIES` | `3` | Number of retries for 5xx/network errors |
54
54
 
55
55
  **Per tenant?** Currently **no**. All tenants use the same service. Per-tenant overrides via a config bundle will be added when there is a real need, for example a dedicated Puppeteer pool for enterprise tenants.
56
56
 
57
57
  ## Retry strategy
58
58
 
59
- | Response | Action |
60
- |---|---|
61
- | `2xx` | Success, return bytes |
62
- | `4xx` (validation, auth, 413) | **NO retry**. Return `RendererError("invalid_payload")` immediately |
63
- | `5xx` (render error, service crash) | Retry with exponential backoff (200ms × 2^attempt) + ±50% jitter |
64
- | Network-error (ECONNREFUSED, timeout) | Retry as for 5xx |
59
+ | Response | Action |
60
+ | ------------------------------------- | ------------------------------------------------------------------- |
61
+ | `2xx` | Success, return bytes |
62
+ | `4xx` (validation, auth, 413) | **NO retry**. Return `RendererError("invalid_payload")` immediately |
63
+ | `5xx` (render error, service crash) | Retry with exponential backoff (200ms × 2^attempt) + ±50% jitter |
64
+ | Network-error (ECONNREFUSED, timeout) | Retry as for 5xx |
65
65
 
66
66
  After `PUPPETEER_CLIENT_MAX_RETRIES` is exhausted: `RendererError("other")` with the original error message.
67
67
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-renderer-puppeteer-client",
3
- "version": "0.404.0",
3
+ "version": "0.404.1",
4
4
  "description": "Renderer-Foundation plugin: HTTP client for puppeteer-service (PDF + image snapshot via remote browser).",
5
5
  "license": "MIT",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -19,13 +19,13 @@
19
19
  }
20
20
  },
21
21
  "dependencies": {
22
- "@cosmicdrift/kumiko-bundled-features": "0.404.0",
23
- "@cosmicdrift/kumiko-framework": "0.404.0",
24
- "@cosmicdrift/kumiko-renderer-mail-html": "0.404.0",
25
- "@cosmicdrift/kumiko-types": "0.404.0"
22
+ "@cosmicdrift/kumiko-bundled-features": "0.404.1",
23
+ "@cosmicdrift/kumiko-framework": "0.404.1",
24
+ "@cosmicdrift/kumiko-renderer-mail-html": "0.404.1",
25
+ "@cosmicdrift/kumiko-types": "0.404.1"
26
26
  },
27
27
  "devDependencies": {
28
- "@cosmicdrift/kumiko-testing": "0.404.0"
28
+ "@cosmicdrift/kumiko-testing": "0.404.1"
29
29
  },
30
30
  "repository": {
31
31
  "type": "git",