Skip to content

v1.1.0 - SecureStorage Observation & Enhanced Foundation Extensions

Latest

Choose a tag to compare

@stalkermv stalkermv released this 13 Oct 20:07
· 5 commits to main since this release

SwiftHelpers v1.1.0 - SecureStorage Observation & Enhanced Foundation Extensions

馃殌 Major Features

SecureStorage with Reactive Updates

  • NEW: SecureStorage property wrapper now supports automatic observation of value changes
  • NEW: AsyncThrowingStream-based observation system for real-time UI updates
  • NEW: DiskNonSecureStorage for development and preview environments
  • IMPROVED: Enhanced error handling with proper fallbacks and detailed error reporting

Enhanced Foundation Extensions

  • IMPROVED: Optional.unwrapped() now includes file and line information in error messages
  • IMPROVED: OptionalUnwrapError provides more detailed error descriptions and recovery suggestions
  • NEW: HexColorContainer now conforms to Codable protocol
  • DEPRECATED: Optional.wrappedValue in favor of the more robust unwrapped() method

馃敡 Technical Improvements

Platform Compatibility

  • Enhanced conditional compilation with #if canImport guards
  • Better support for different platform targets (iOS, macOS, tvOS, watchOS)
  • Improved Foundation networking compatibility

馃摎 Documentation

  • COMPLETELY UPDATED: README.md now accurately reflects current modular architecture
  • NEW: Comprehensive usage examples for all modules
  • NEW: Clear installation instructions for modular dependencies
  • NEW: Detailed API documentation with practical examples

馃攧 Migration Notes

  • Optional.wrappedValue is now deprecated - use unwrapped() instead
  • Storage observation is now automatic - no manual subscription management required
  • Enhanced error handling may require updates to error handling code

馃摝 Module Overview

  • SwiftHelpers: Main module (FoundationExtensions + CombineExtensions)
  • SwiftStorage: Secure storage with reactive updates
  • FoundationExtensions: Core Swift/Foundation extensions
  • CombineExtensions: Combine framework utilities
  • Development: Development and debugging tools

馃悰 Bug Fixes

  • Fixed unsafe force unwrapping in document directory access
  • Resolved observation stream lifecycle issues
  • Improved error propagation in storage operations

Full Changelog: 1.0.8...v1.1.0

Breaking Changes:

  • Optional.wrappedValue is deprecated (use unwrapped() instead)
  • Storage observation API has been modernized (automatic observation, no manual subscription)

Compatibility:

  • iOS 14.0+, macOS 12.0+, tvOS 14.0+, watchOS 9.0+
  • Swift 5.9+