Skip to content

v0.2.1

Compare
Choose a tag to compare
@ulfox ulfox released this 08 Sep 20:36
· 20 commits to main since this release

Commit: c700f61

New

  • Storage.DeleteAll method for removing all docs
  • Deprecated bool from Storage.ImportDocs(string,bool)
    for now we keep this for compatibility
  • Included multiple tests for the multi-doc methods
  • Moved tests under tests directory
  • Removed returning an error from Global wrappers

Fixes

  • Ensure that AddDoc() and Switch will not return null pointer
    when the library is empty

Commit: 89e98da

In this commit we consolidated the getFn and wrapErr
functions into a new function called WrapErr

In addition to the above change WrapErr handles
the error creation automatically.

Before we were creating the error from in the caller
and then passed it into the wrapErr function together
with the result of getFn

Now we are only passing the error/string + additional
arguments if required and call create the error withing
WrapErr

Commit: 23fc4f7

Add emptyMap function