Skip to content

Releases: BjornMelin/tripsage-ai

v1.17.1

17 Dec 01:54

Choose a tag to compare

1.17.1 (2025-12-17)

Bug Fixes

  • forms: address PR review feedback for useZodForm (a9a165b)

v1.17.0

17 Dec 00:36

Choose a tag to compare

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

  • api: simplify API client infrastructure and consolidate error types (d3d8924)
  • ui: consolidate progress clamping, tone colors, and improve accessibility (a9e7919)

v1.16.1

16 Dec 06:04

Choose a tag to compare

1.16.1 (2025-12-16)

Bug Fixes

  • review: address PR #560 review feedback (ade2ceb)
  • supabase: add api_metrics to typed infrastructure and remove type assertions (377df90)

v1.16.0

16 Dec 05:18

Choose a tag to compare

1.16.0 (2025-12-16)

Features

  • cache: add telemetry instrumentation and improve Redis client safety (ecd8bd0)

Bug Fixes

  • pr-549: address review comments - camelCase functions and JSDoc (7a295a5), closes #549
  • review: resolve PR 549 feedback (2fd3c20)

v1.15.0

16 Dec 00:09

Choose a tag to compare

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

13 Dec 00:25

Choose a tag to compare

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

  • activities: improve booking telemetry delivery (925495c)
  • calendar-event-list: resolve PR #548 review comments (9c5ba9f)
  • calendar: allow extra fields in nested start/end schemas (6376c33)
  • mfa: make backup code count best-effort (7bcd548)
  • review: address PR #548 feedback (0edcf22)

v1.13.0

12 Dec 08:28

Choose a tag to compare

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

  • deps: add unified as direct dependency for type resolution (8b6939c)
  • rag: align handlers, spec, and zod peers (63b31ed)
  • rag: allow anonymous rag search access (15cd994)
  • rag: resolve PR review threads (9dde8c1)
  • rag: return 200 for partial indexing (589e337)

v1.12.0

12 Dec 02:59

Choose a tag to compare

1.12.0 (2025-12-12)

Features

  • integrate Vercel BotID for bot protection on chat and agent endpoints (ed1e8a9)

Bug Fixes

  • align BotID error response with spec documentation (23c9e5f)
  • botid: address PR review feedback (be99bee)

v1.11.0

11 Dec 11:08

Choose a tag to compare

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)

Bug Fixes

  • trips-webhook: record fallback exceptions on span (d686403)
  • webhooks: harden dlq redaction and rate-limit fallback (74c4701)
  • webhooks: harden idempotency and qstash handling (a9e4839)

v1.10.0

10 Dec 21:43

Choose a tag to compare

1.10.0 (2025-12-10)

Features

  • qstash: add centralized client factory with test injection support (03dad5d)
  • redis: add test factory injection with singleton cache management (9e6686d)