@universis/changelog
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

@universis/changelog

Universis api server versioning service

@universis/changelog provides a low-level infrastructure for versioning data of any kind.

Usage

npm i @universis/changelog

Register @universis/changelog#VersioningService under services section of application configuration:

{
    "services": {
        ...,
        {
            "serviceType": "@universis/changelog#VersioningService"
        }
    }
}

Every data model may have versioning attribute which indicates whether a new version of data will be stored after any CRUD operation or not.

{
    "name": "Student",
    ...,
    "versioning": true
}

e.g. Student model has versioning enabled. This operation will include automatically StudentRevision model which is intended to be used for storing student record revisions and PersonSnapshot which is a snapshot of Person model -Person has an one-to-one association with Student-.

Package Sidebar

Install

npm i @universis/changelog

Weekly Downloads

18

Version

1.1.4

License

LGPL-3.0-or-later

Unpacked Size

163 kB

Total Files

31

Last publish

Collaborators

  • universis