Claude Code · Source-level changelog

Version 0.2.89

Package @anthropic-ai/claude-code Diff v0.2.86 → v0.2.89
12
Features & Changes
3
Bug Fixes
0
In Development
0
Env Vars / Flags

Overview

9 items

This update significantly restructures the internal codebase, removing 1,130 declarations and adding 176 new ones, resulting in a more streamlined implementation with 84.3% structural similarity to v0.2.86.

AWS Credential Chain Management #

New
  • New createCredentialChain() function: Provides enhanced credential chain management for AWS SDK operations
  • expireAfter() method: Allows setting custom expiration times for credentials
  • Minimum expiration duration enforced at 5 minutes (300,000ms)
  • Example usage:
    const credChain = createCredentialChain(provider1, provider2)
      .expireAfter(600000); // Set 10-minute expiration

Property Provider Chain #

New
  • New propertyProviderChain() function: Implements a chain-of-responsibility pattern for property providers
  • Automatically tries next provider in chain if current provider fails with tryNextLink flag
  • Throws the last error if all providers fail

Stream API Support #

New
  • Enhanced stream transformation capabilities with better error handling
  • Added validation for TransformStream API availability
  • Improved Blob-to-stream conversion with React Native compatibility warnings

Error Handling #

New
  • Better error messages for unsupported APIs
  • Specific guidance for React Native users regarding fetch streaming limitations

AWS Configuration Components #

New

The following AWS SDK configuration modules were removed in favor of the new credential chain system:

  • Boolean selector utilities for environment/config parsing
  • Dual-stack endpoint configuration options
  • FIPS endpoint configuration options
  • Various AWS region and endpoint resolution utilities
  • Retry strategy implementations (StandardRetryStrategy, AdaptiveRetryStrategy)
  • Multiple AWS signing and authentication modules

HTTP Protocol Components #

New
  • HTTP request/response classes and utilities
  • Content length middleware
  • Host header middleware
  • Logger middleware
  • Recursion detection middleware

UUID Generation #

New
  • Removed UUID v1, v3, v4, v5 generation utilities
  • Removed UUID parsing and validation functions

Code Organization #

New
  • Consolidated credential provider functionality into new chain-based architecture
  • Simplified AWS SDK integration with fewer, more focused modules
  • Removed redundant tslib helper functions across multiple modules

Performance #

New
  • Reduced bundle size through removal of unused AWS SDK components
  • More efficient credential caching and validation

Migration Notes

3 items
  • If you were using removed AWS SDK configuration features directly, you'll need to adapt to the new credential chain pattern
  • UUID functionality that was removed can be replaced with external UUID libraries if needed
  • The new credential chain system provides a more unified approach to managing AWS credentials across different sources

Bug Fixes

3 items
  • Improved handling of credential expiration edge cases
  • Better error propagation in provider chains
  • Fixed potential memory leaks in credential caching