Skip to content

2.1.1

Compare
Choose a tag to compare
@makoni makoni released this 06 Jul 16:55
· 5 commits to master since this release
382c797

Highlights

  • Improved conflict and error handling for document operations in CouchDBClient.
  • Expanded and updated localization support for conflict errors.
  • Enhanced test coverage for error scenarios and event loop group usage.
  • Updated dependencies for better compatibility and performance.
  • CI workflow improvements for Ubuntu and macOS.

Details

Core Enhancements

  • Conflict and Not Found Error Handling:

    • CouchDBClient now throws conflictError and deleteError with detailed messages when update or delete operations encounter conflicts or not found responses.
    • Added support for localized error descriptions for conflict scenarios in multiple languages.
    • Improved percent encoding for authentication credentials.
  • New and Expanded Tests:

    • Added tests for database existence, create/delete conflicts, document not found, and event loop group usage.
    • Added tests to verify conflict and not found errors are properly thrown and handled.
    • Added test for .find method with custom date decoding strategy.

Localization

  • Localizable.xcstrings:
    • Added translations for conflict error messages in 30+ languages.
    • Minor adjustments and corrections to existing translations for better clarity.

Dependency Updates

  • Package.resolved:
    • Updated various dependencies to latest minor or patch versions, including:
      • async-http-client 1.26.1
      • swift-atomics 1.3.0
      • swift-certificates 1.10.0
      • swift-collections 1.2.0
      • swift-crypto 3.12.3
      • swift-docc-plugin 1.4.5
      • swift-http-structured-headers 1.3.0
      • swift-nio 2.84.0
      • swift-nio-extras 1.28.0
      • swift-nio-http2 1.37.0
      • swift-nio-ssl 2.32.0
      • swift-nio-transport-services 1.25.0
      • swift-service-lifecycle 2.8.0
      • swift-system 1.5.0
    • Added new dependencies: swift-asn1, swift-async-algorithms.

CI/CD Workflows

  • macOS Build Workflow:

    • Minor YAML formatting improvements.
  • Ubuntu Build Workflow:

    • Added support for Swift 6.1.
    • Updated actions/checkout to v4 for better compatibility.
    • Improved variable formatting.
  • Ubuntu Test Workflow:

    • Improved YAML formatting and consistency.
    • Ensured tests run against multiple CouchDB versions.

Other

  • Bugfixes:
    • Fixed date format parsing for cookies in authentication.
    • Fixed minor translation issues in error messages.