Skip to content

Comet 0.3.0

Choose a tag to compare

@kylebegeman kylebegeman released this 28 Jun 05:56

Added

  • 0.3.0 release train plan in Markdown and static HTML, with patch milestones from 0.2.x through the final minor release.
  • Fresh external client smoke script for validating package adoption outside this repository.
  • TraceContext and TracePropagationMiddleware for W3C traceparent propagation.
  • Propagated trace IDs on RequestMetadata and completed RequestTrace values.
  • Playground raw-response proof that shows the outbound trace header in mock mode.
  • HTTPCachePolicy, HTTPCacheKey, CachedHTTPResponse, HTTPCacheStore, and MemoryHTTPCacheStore.
  • HTTPCacheControl and HTTPCacheMetadata for typed Cache-Control, Expires, ETag, and Last-Modified parsing.
  • CacheMiddleware for opt-in safe-method response caching.
  • HTTP cache revalidation with conditional If-None-Match and If-Modified-Since requests, 304 Not Modified merge behavior, and replacement storage for refreshed 200 responses.
  • Cache-only, network-only, return-cache-else-load, reload-ignoring-cache, and revalidate request policies.
  • Cache hit, miss, bypass, stale, revalidate, update, store, and skipped-store events on completed RequestTrace values.
  • FileHTTPCacheStore and FileHTTPCacheStoreConfiguration for namespace-isolated persistent cache entries with size limits, oldest-entry pruning, and corrupted-entry cleanup.
  • Stale-if-error cache fallback through HTTPCachePolicy(allowsStaleIfError:).
  • Playground cache lab scenario covering first load, fresh cache hit, stale revalidation, offline stale fallback, and clear cache.
  • ContractExpectation, ContractTransport, ContractReport, and MockServer for strict request contract testing and JSON report export.
  • Cassette-to-contract conversion for turning recorded fixtures into strict transport expectations.
  • CometOpenAPIGenerator and comet-openapi-generate for dependency-free JSON OpenAPI request generation.
  • ReachabilitySnapshot, ReachabilityHintProvider, and StaticReachabilityHintProvider for app-owned reachability hints.
  • CometRequestState for lightweight TCA request loading, value, and failure state.
  • Playground contract server scenario covering strict expectation matching and clean contract reports.

Changed

  • Playground test target now links HTTPTypes directly to match the app target and reduce Xcode dependency-scan ambiguity.