Skip to content

0.12.0 🕊

Compare
Choose a tag to compare
@meili-bot meili-bot released this 22 Nov 14:00
· 505 commits to main since this release
e9d038a

This package version is compatible with MeiliSearch v0.24.0 🎉

⚠️ Breaking changes

  • Changes related to the next MeiliSearch release (v0.24.0) (#224)

Errors API changes

MeiliSearchApiError interface receives an update in the fields naming. Error fields are replaced by the following:

  • errorCode -> code
  • errorLink -> link
  • errorType -> type
  struct MSErrorResponse: Decodable, Encodable, Equatable {
    public let message: String
    public let code: String
    public let type: String
    public let link: String?
  }

When an update fails, previously the error fields in the update body were also namederrorCode, errorLink, ...
Now error fields are moved inside the error with the same MSErrorResponse type.

  /// Result type for the Update.
  public struct Result: Codable, Equatable {
    /// ...
    /// Error information in case of failed update.
    public let error: MeiliSearch.MSErrorResponse?
  }

Thanks everyone!