- Fix parsing has many relationships when there is no models provided
- Allow removal of HasMany relations by setting empty array (#224)
- Allow mixed model types in a single HasMany relationships (#216)
- Fix using relationship config key (#210)
- Fix connecting related model resources parsed from response (#213)
- Upgraded the library to Angular 7
- Fixed rollbackAttributes to public
- Fixed tests
- Added support for custom request options
- Added support for custom request options
- Angular 6 support
- Smaller bug fixes
- Required RxJS v6
- Fix types issues
- Upgraded rxjs to version 6
- Fix serializedName in included relationships (#174)
- Fix parsing belongsTo and hasMany relationships
- Replace HttpModule with HttpClientModule
- Fix creating nested models passed through included property
- Update peer dependencies to support Angular v5
- Fix date timezone
- Fix falsy attributes mapping
- Tweak methods visibility
- Fix updating has many relationships after saving a model
- Update to Angular 4
- Update Attribute decorator with custom property converter (88d8d30)
- Make JsonApiModelMeta more customizable (b678bb7)
- Add support for overriding internal methods (f15be33)
- Add support for custom endpoint URLs (9b43f12)
- Fix serializing query parameters (cc58b73)
- Remove attributes from relationship objects (5f1a3fc)
- Fix saving model metadata (cbf26d7)
3.4.0 (2016-12-17)
- Ability to work with dates as Date objects (76c652b)
- Throw a better error when a relationship is not mapped (d135e58)
3.3.0 (2016-11-01)
- Override accept/content-type headers instead of adding (#39) (5c1f984)
- Remove "hard" dependencies to @angular packages and introduce peerDependencies (#46) (6efe0f8)
- Support error objects from JSON API specification (d41ecb9)
3.2.1 (2016-10-13)
- Move some types under devDependencies (#35) (b20df04)
- Add typings index in package.json (#36) (e5446e6)
3.2.0 (2016-10-12)
- Add existence check on belongs to parsing (3f538a0)
- Removed dependency on typings (#22) (cec0a6a)
- Fix optional relationship on BelongsTo and HasMany (764631c)
- Add delete record method (#28) (2f6c380)
- Make parameters and return values of JsonApiDatastore generic (4120437)
3.1.1 (2016-09-22)
- Fix one-to-one relationship (21ebac8)
- Add check on data length parsing the HasMany relationship (#14) (0b9ac31)
3.1.0 (2016-09-22)
- Do not delete relationship from object when saving a model (8751d3f)
- Allow overriding of JsonApiDatastore's error handler in derived classes (98a300b)
- Parse infinite levels of relationships by reference (bd02e3a)
- Push object to hasMany relationship array when updating object relationship (99d082a)
3.0.0 (2016-09-18)
- Implement persistence and save() method (46aa23f)
- Add peekRecord and peekAll, caching records in the store (43de815)
- Implement PATCH method (#9) (4b47443)
- Add Attribute decorator and tracking of attributes changes + save only dirty attributes (fe20b8b)
- Add hasDirtyAttributes property to model (a38fa1c)
- Add rollbackAttributes() method to model (fc377fb)
- Upgrade to Angular 2.0.0 final version (3c30cdd)
- It's mandatory decorate each models' property with the
Attribute()
decorator - The
createRecord()
method does not call the API anymore, it just creates the object. In order to save the object on the server, you need to call thesave()
method on the model. - Since this library uses to the
Http
service of the Angular 2.0.0 final, you should use this Angular version in your project.
2.1.0 (2016-09-16)
- Enable nested relationships sync (#7) (8b7b662)
2.0.0 (2016-09-02)
- Since this library uses to the
Http
service of the Angular RC6, you should use this Angular version in your project. - Instead of adding
PROVIDERS
to bootstrap dependencies, import the newJsonApiModule
in the main module
1.2.1 (2016-08-30)
1.2.0 (2016-08-26)
- Use a string for include field instead of the class name (e7f7b7f)
- Add BelongsTo relationship (edfc2af)
- You cannot use the class name anymore when including the relationship. You should use the field name as a string.
1.1.0 (2016-08-25)
- Add config and models decorators
- Add query method
- Add findRecord
- Add createRecord
- Add basic relationship parsing