Skip to content

UpdateGuide

Mihael Safaric edited this page Sep 27, 2024 · 1 revision

Update guide

Update to 4.0.0

Breaking changes

  • Datastore service is now a generic class that accepts a required Pagination type - class DatastoreService<P extends Pagination>
  • Consequently, HalModel and HalDocument generic classes now accept an additional Pagination type parameter - class HalModel<P extends Pagination, Datastore extends DatastoreService<P> = DatastoreService<P>> and HalDocument<T extends HalModel<P>, P extends Pagination>
  • Most of the other constructs (like decorators) are now generics and require the same Pagination type as the Datastore service
  • The usage can be checked out in the Getting started guide, more specifically in the Recommendation section.