Skip to content

[v0.4.0] API renewal to manage any data types

Compare
Choose a tag to compare
@sosuisen sosuisen released this 30 Jun 18:21
· 301 commits to main since this release

Major features

  • CRUD
    • Added automated generation of _id.
    • Added -FatDoc methods to manage any data types. Note that they are not fully implemented currently. The only .json can be available safely.
    • Added insert() and update() methods.
  • GitDocumentDB Class
    • Added saveAuthor() and loadAuthor() to filter revisions by author.
    • Added loadAppInfo() and saveAppInfo() to manage app specific settings.
    • Added getCommit().
  • Collection Class
    • Added CollectionOptions.namePrefix to add prefix to generated _id.
    • Added inheritance of CollectionOptions from parent collection.
    • Added onSyncEvent() and offSyncEvent() to mange sync events in each collection.

Major bug fixes

  • Sync Class
    • Fixed memory leak by replacing NodeGit with isomorphic-git.

Breaking changes

  • Renewed whole APIs
    • Removed createDB() and remove().
    • Replaced allDocs() with find().
    • Removed backNumber parameter from get().
    • Renamed getBackNumber() to getOldRevision().
    • Renamed getByRevision() to getDocByOid().
    • Renamed getDocHistory() to getHistory().
    • Many other changes..
  • Released tutorials and API documents on https://gitddb.com/