@splashcodex/api-key-manager 5.3.0 → 5.4.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.
Files changed (2) hide show
  1. package/README.md +8 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,16 +4,21 @@
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@splashcodex/ApiKeyManager)](https://www.npmjs.com/package/@splashcodex/ApiKeyManager)
6
6
 
7
- ## New in v5.0 (Ecosystem Edition)
7
+ ## New in v5.3.0 (Resilience Upgrade)
8
+ - **Bulkhead Queueing (`cockatiel`)** — Safely handle traffic spikes. Requests that exceed your `concurrency` limit are queued (up to `concurrencyQueueSize`) rather than immediately rejected!
9
+ - **Strict Configuration Validation (`zod`)** — Deep runtime validation on all initialization options.
10
+ - **Improved Gateway SSE Parser** — Uses `eventsource-parser` for 100% reliable Server-Sent Events proxying.
11
+
12
+ ## Features in v5.0 (Ecosystem Edition)
8
13
 
9
14
  - **Provider Presets** — One-line setup for `GeminiManager`, `OpenAIManager`, and `MultiManager`.
10
- - **Automatic Env Parsing** — Reads `GOOGLE_GEMINI_API_KEY`, `OPENAI_API_KEY`, etc. (supports JSON arrays and comma-separated strings).
15
+ - **Automatic Env Parsing** — Reads `GOOGLE_GEMINI_API_KEY`, `OPENAI_API_KEY`, etc. (supports JSON arrays and comma-separated strings) from any OS directory smoothly.
11
16
  - **Built-in Persistence** — `FileStorage` (survives restarts) and `MemoryStorage` included.
12
17
  - **Singleton Pattern** — Thread-safe singletons with `getInstance()` and `Result<T>` pattern.
13
18
  - **Multi-Provider Vault** — Manage multiple providers (`gemini`, `openai`, `anthropic`) from a single entry point.
14
19
  - **Centralized API Gateway** — Built-in Fastify proxy server to centralize AI requests for multiple apps securely.
15
20
 
16
- ## Features
21
+ ## Core Features
17
22
 
18
23
  - **Circuit Breaker** — Keys transition through `CLOSED → OPEN → HALF_OPEN → DEAD`
19
24
  - **Error Classification** — Automatic detection of 429 (Quota), 403 (Auth), 5xx (Transient), Timeout, Safety blocks
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splashcodex/api-key-manager",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "description": "Universal API Key Management Gateway with centralized env loader, provider presets, persistence, and multi-provider vault",
5
5
  "bin": {
6
6
  "api-key-manager": "./bin/cli.js"