Skip to content

Latest commit

 

History

History
227 lines (142 loc) · 9.84 KB

CHANGELOG.md

File metadata and controls

227 lines (142 loc) · 9.84 KB

[7.1.2]

  • Fix parsing has many relationships when there is no models provided

[7.1.1]

  • Allow removal of HasMany relations by setting empty array (#224)

[7.1.0]

  • Allow mixed model types in a single HasMany relationships (#216)

Bug fixes

  • Fix using relationship config key (#210)
  • Fix connecting related model resources parsed from response (#213)

[7.0.0]

BREAKING CHANGES

  • Upgraded the library to Angular 7

[6.1.3]

  • Fixed rollbackAttributes to public
  • Fixed tests

[6.1.2]

  • Added support for custom request options

[6.1.2-beta]

  • Added support for custom request options

[6.0.1]

  • Angular 6 support
  • Smaller bug fixes

BREAKING CHANGES

  • Required RxJS v6

[6.0.2-beta]

  • Fix types issues

[6.0.0-beta]

BREAKING CHANGES

  • Upgraded rxjs to version 6

[5.1.1-beta], [5.1.1] (2018-06-06)

Bug fixes

  • Fix serializedName in included relationships (#174)
  • Fix parsing belongsTo and hasMany relationships

[5.0.0] (2018-11-04)

BREAKING CHANGES

  • Replace HttpModule with HttpClientModule

[4.1.0] (2018-03-01)

Bug fixes

  • Fix creating nested models passed through included property

[4.0.3] (2018-01-16)

Features

  • Update peer dependencies to support Angular v5

[4.0.2] (2017-11-06)

Bug fixes

  • Fix date timezone
  • Fix falsy attributes mapping
  • Tweak methods visibility

[4.0.1] (2017-11-06)

Bug fixes

  • Fix updating has many relationships after saving a model

[4.0.0] (2017-11-03)

BREAKING CHANGES

  • Update to Angular 4

Features

  • 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)

Bug fixes

  • Fix serializing query parameters (cc58b73)
  • Remove attributes from relationship objects (5f1a3fc)
  • Fix saving model metadata (cbf26d7)

3.4.0 (2016-12-17)

Bug Fixes

  • Make library AOT ready and remove conflicting reflect-metadata import (#13) (#35) (8186f8b)

Features

  • 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)

Bug Fixes

  • Override accept/content-type headers instead of adding (#39) (5c1f984)
  • Remove "hard" dependencies to @angular packages and introduce peerDependencies (#46) (6efe0f8)

Features

  • Support error objects from JSON API specification (d41ecb9)

3.2.1 (2016-10-13)

Bug Fixes

  • Move some types under devDependencies (#35) (b20df04)
  • Add typings index in package.json (#36) (e5446e6)

3.2.0 (2016-10-12)

Bug Fixes

  • Add existence check on belongs to parsing (3f538a0)
  • Removed dependency on typings (#22) (cec0a6a)
  • Fix optional relationship on BelongsTo and HasMany (764631c)

Features

  • Add delete record method (#28) (2f6c380)
  • Make parameters and return values of JsonApiDatastore generic (4120437)

3.1.1 (2016-09-22)

Bug Fixes

  • Fix one-to-one relationship (21ebac8)
  • Add check on data length parsing the HasMany relationship (#14) (0b9ac31)

3.1.0 (2016-09-22)

Bug Fixes

  • Do not delete relationship from object when saving a model (8751d3f)

Features

  • 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)

Features

  • 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)

BREAKING CHANGES

  • 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 the save() 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)

Bug Fixes

  • Enable nested relationships sync (#7) (8b7b662)

2.0.0 (2016-09-02)

Bug Fixes

  • Allow Http service to be injected in JsonApiDatastore (#4) (1e567c5)

Features

BREAKING CHANGES

  • 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 new JsonApiModule in the main module

1.2.1 (2016-08-30)

Bug Fixes

1.2.0 (2016-08-26)

Bug Fixes

  • Use a string for include field instead of the class name (e7f7b7f)

Features

  • Add BelongsTo relationship (edfc2af)

BREAKING CHANGES

  • 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)

Features

  • Can set global custom headers and headers for each call (#2) (bef14f3)

1.0.0 (2016-08-05)

Features

  • Add config and models decorators
  • Add query method
  • Add findRecord
  • Add createRecord
  • Add basic relationship parsing