2.1.1
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 throwsconflictError
anddeleteError
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.1swift-atomics
1.3.0swift-certificates
1.10.0swift-collections
1.2.0swift-crypto
3.12.3swift-docc-plugin
1.4.5swift-http-structured-headers
1.3.0swift-nio
2.84.0swift-nio-extras
1.28.0swift-nio-http2
1.37.0swift-nio-ssl
2.32.0swift-nio-transport-services
1.25.0swift-service-lifecycle
2.8.0swift-system
1.5.0
- Added new dependencies:
swift-asn1
,swift-async-algorithms
.
- Updated various dependencies to latest minor or patch versions, including:
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.