Releases: BjornMelin/tripsage-ai
Releases · BjornMelin/tripsage-ai
v1.17.1
v1.17.0
1.17.0 (2025-12-17)
⚠ BREAKING CHANGES
- ui: None - all changes are internal refactoring
- api: Error type checking now uses code-based detection instead of instanceof.
Summary
- Consolidate NetworkError, TimeoutError, ValidationError into single ApiError class with error codes
- Remove unused batch(), healthCheck(), sendChat() methods and interceptor system from ApiClient
- Simplify useAuthenticatedApi hook by removing redundant error re-classification
Changes
error-types.ts
- Single ApiError class with ApiErrorCode discriminant (NETWORK_ERROR, TIMEOUT_ERROR, etc.)
- Added static factory methods: ApiError.network(), ApiError.timeout(), ApiError.validation()
- Code-based type guards: isNetworkError(), isTimeoutError(), isValidationErrorGuard()
- handleApiError() normalizes all errors to ApiError
api-client.ts (-139 lines)
- Removed batch() method (0 usage, zen.consensus decision)
- Removed interceptor system (only no-op interceptors)
- Removed healthCheck() and sendChat() trivial wrappers
use-authenticated-api.ts (-42 lines)
- Simplified error handling - ApiClient already returns typed ApiError
- Removed redundant error classification logic
Consumer updates
- query-error-boundary.tsx: Use code-based error checks
- trips/[id]/page.tsx: Use handleApiError() and code checks
Migration
// Before
if (error instanceof NetworkError) { ... }
// After
if (error instanceof ApiError && error.code === 'NETWORK_ERROR') { ... }
// Or use type guard:
if (isNetworkError(error)) { ... }Impact
- Net reduction: 151 lines removed
- All 3031 tests passing
- Type-check and lint clean
Bug Fixes
- api: add RESPONSE_VALIDATION_ERROR case to userMessage getter (570f77a)
- api: address PR review feedback on error types and client (0862374)
- api: improve network error detection and add AbortError documentation (64ea044)
- release: restore semantic-release tag ancestry (d15a64b)
- resolve all PR #567 review comments (37c7ef8)
- security: address PR review comments for auth redirect hardening (5585af4)
- security: harden auth callback redirects against open-redirect attacks (edcc369)
- ui: resolve PR review comments for progress clamping and tone colors (e9138ba), closes #570
Code Refactoring
v1.16.1
v1.16.0
v1.15.0
1.15.0 (2025-12-16)
⚠ BREAKING CHANGES
- google-api: distanceMatrix AI tool now uses Routes API computeRouteMatrix
internally (geocodes addresses first, then calls matrix endpoint)
Bug Fixes
- geocode-address: add status validation to helper function (8bcdfdb)
- google-api: address PR review comments for validation and API compliance (b3bd761)
- google-api: improve Routes API handling and error observability (6263973)
- google-api: resolve PR #552 review comments (86b9b3d)
- google: harden maps endpoints (7f6d682)
- places-details: add error handling for getPlaceDetails validation (8231fc8)
- places-details: use Zod v4 treeifyError API and improve error handling (1a5ba38)
- places-photo: update maxDimension limit from 2048 to 4800 (08014af)
Code Refactoring
- google-api: consolidate all Google API calls into centralized client (1f3538c)
v1.14.0
1.14.0 (2025-12-13)
Features
- add GitHub integration creation API endpoint, schema, and service logic. (d918ae2)
- calendar: fetch events client-side (7baa49c)
- chat: migrate to AI SDK v6 useChat hook with streaming (4da5952)
- enhance calendar event list UI and tests, centralize BotID mock, and improve Playwright E2E configuration. (6d67fd0)
Bug Fixes
v1.13.0
1.13.0 (2025-12-12)
Features
- ai-elements: adopt Streamdown and safe tool rendering (6d7bea2)
- enhance AI element components, update RAG spec and API route, and refine documentation and linter rules. (6d3020a)
- implement initial RAG system with indexer, retriever, and reranker components including API routes, database schema, and tests. (1f4def7)
Bug Fixes
v1.12.0
v1.11.0
1.11.0 (2025-12-11)
Features
- circuit-breaker: add circuit breaker for external service resilience (57a5fe0)
- env: add format validation for API keys and secrets (125a9c4)
- idempotency: add configurable fail mode for Redis unavailability (886508e)
- qstash: add centralized client with DLQ and retry configuration (d0ac199)
- qstash: enhance retry/DLQ infrastructure and error classification (2268884)
- webhooks: add handler abstraction with rate limiting and cache registry (6067bf3)