diff --git a/.jules/warden.md b/.jules/warden.md index ff968a2..2e821b3 100644 --- a/.jules/warden.md +++ b/.jules/warden.md @@ -155,3 +155,9 @@ Observation / Pruned: Assessed repository state following previous optimizations. Since no new functional or architectural changes were introduced by the prior agent run, no new release cut or version bump is warranted. Maintained semantic integrity by preserving the existing v1.1.26 state. Zero dead code identified and pruned. Alignment / Deferred: Release deferred. Repository state verified and stable. + +2026-04-30 — Assessment & Lifecycle +Observation / Pruned: +Assessed JULES/BOLT's optimization gracefully handling Express body-parser 4xx client errors (charset.unsupported, encoding.unsupported, request.aborted) by intercepting them and returning explicit 415 or 400 JSON responses. This prevents unhandled errors from falling through to the global error handler and causing 500 Internal Server Error log spam. Precomputed standard JSON buffers were used to avoid repetitive allocation. Ran tests and robustness scripts to verify correct validation edge cases pass. Zero unused files or exports were identified for pruning. +Alignment / Deferred: +Appended release notes for error handling patch. Version bumped to 1.1.28. diff --git a/CHANGELOG.md b/CHANGELOG.md index 745407b..aa56047 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [1.1.28] - 2026-04-30 +### Changed +* **[Reliability & Security]:** Gracefully handle Express body-parser 4xx client errors (`charset.unsupported`, `encoding.unsupported`, `request.aborted`) by returning explicit 415 or 400 JSON responses instead of falling through to the generic 500 error handler. Precomputed standard JSON responses to optimize error paths. Zero dead code pruned. + ## [1.1.27] - 2026-04-29 ### Changed - Optimized `/v1/chat/completions` parsing and validation loops. diff --git a/package-lock.json b/package-lock.json index 3152a70..5802356 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "one-api", - "version": "1.1.27", + "version": "1.1.28", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "one-api", - "version": "1.1.27", + "version": "1.1.28", "license": "MIT", "dependencies": { "compression": "^1.8.1", diff --git a/package.json b/package.json index 12cdc32..3f125cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "one-api", - "version": "1.1.27", + "version": "1.1.28", "description": "One API to rule them all. Unified gateway for 20+ LLM providers. OpenAI-compatible, single binary, zero config.", "main": "src/index.js", "scripts": {