|
| 1 | +# Changelog |
| 2 | + |
| 3 | +All notable changes to this project will be documented in this file. |
| 4 | + |
| 5 | +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), |
| 6 | +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 | + |
| 8 | +## [1.2.0] - 2025-01-09 |
| 9 | + |
| 10 | +### Added |
| 11 | +- `McpError` fluent builder class with 15+ factory methods |
| 12 | + - `notFound()`, `accessDenied()`, `validation()`, `rateLimited()`, etc. |
| 13 | + - `withSuggestion()`, `withContext()`, `withDetail()` for adding metadata |
| 14 | + - `toArray()`, `toToolResult()`, `toJsonRpcError()` conversion methods |
| 15 | + - `retryAfter()` for rate limiting hints |
| 16 | +- `ErrorBag` class for collecting multiple errors |
| 17 | + - `add()`, `addValidation()`, `merge()` for building error collections |
| 18 | + - `forField()`, `byCategory()` for filtering errors |
| 19 | + - `toToolResult()` for MCP responses |
| 20 | + - Implements `Countable` and `IteratorAggregate` |
| 21 | +- `ErrorCode::getJsonRpcCode()` for JSON-RPC 2.0 error code mapping |
| 22 | + |
| 23 | +### Changed |
| 24 | +- Updated composer.json description to reflect new features |
| 25 | + |
| 26 | +## [1.1.0] - 2025-01-08 |
| 27 | + |
| 28 | +### Added |
| 29 | +- Additional domain-specific error codes |
| 30 | +- `isRecoverable()` helper method |
| 31 | +- `getHttpStatus()` for HTTP status code mapping |
| 32 | + |
| 33 | +## [1.0.0] - 2025-01-07 |
| 34 | + |
| 35 | +### Added |
| 36 | +- Initial release with `ErrorCode` constants |
| 37 | +- Error categorization (access, resource, validation, operation, domain) |
| 38 | +- Helper methods: `getCategory()`, `isValid()`, `getAllCodes()` |
0 commit comments