Skip to content
This repository was archived by the owner on Aug 18, 2018. It is now read-only.

Latest commit

 

History

History
29 lines (18 loc) · 1.22 KB

File metadata and controls

29 lines (18 loc) · 1.22 KB

0.7.x (planned)

  • Interfaces are in ng.jsonapi now
  • Resources can be extended for personalized classes

0.6.x

Localstorage cache

Features

  • Save on localstore all data. When you request a resource or collection, first check memory. If its empty, read from store. If is empty, get the data from back-end.
  • HttpStorage deprecated: jsons were saved as sent by the server, now we save json with logic (saving ids and resources separately).
  • Service with toServer() and fromServer() functions. They execute before and after http request. Ideal for type conversions.
  • JsonapiCore.duplicateResource(resouce, ...relationtypes) return a duplication of resource. You can duplicate resources and, optionally, their relationships. (v0.6.16)
  • resource save() method return a promise.

Fixes

  • Fix problem with Possibly unhandled rejection: undefined with new AngularJs.
  • Fix problem with double angularjs library require.

No more declaration file .d.ts

  • typings and index.d.ts removed. We only use import

0.5.x

All data is merged on one single resource. If you request a request a single related resource, and on this request not include any another resource, related resources come from memory cache (if exists)