Skip to content

v0.23.0 🌻

Choose a tag to compare

@meili-bot meili-bot released this 22 Nov 14:29
· 1626 commits to main since this release
25ba640

This package version is compatible with MeiliSearch v0.24.0 🎉

⚠️ Breaking changes

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

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

When an update fails, previously the error fields in the update body were also namederrorCode, errorLink, ...
Now error fields are moved inside the error and the naming is changing the same way it did in MeiliSearchApiError.

{
    "status": "failed",
    "updateId": 1,
    // ...
    "error": {
	 "message": "Document `:documentId` not found.",
    	"code": "document_not_found",
    	"type": "invalid_request",
    	"link": "https://docs.meilisearch.com/errors#document_not_found"
    },
  }

Thanks again to @bidoubiwa! 🎉