changelogs.md


kopz9999/angular2-jsonapi

Repository  -  API  -  Source

5.0.0

November 4, 2018

BREAKING CHANGES

  • Replace HttpModule with HttpClientModule

4.1.0

March 1, 2018

Bug fixes

  • Fix creating nested models passed through included property

4.0.3

January 16, 2018

Features

  • Update peer dependencies to support Angular v5

4.0.2

November 6, 2017

Bug fixes

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

4.0.1

November 6, 2017

Bug fixes

  • Fix updating has many relationships after saving a model

4.0.0

November 3, 2017

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

December 17, 2016

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

November 1, 2016

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

October 13, 2016

Bug Fixes

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

3.2.0

October 12, 2016

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

September 22, 2016

Bug Fixes

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

3.1.0

September 22, 2016

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

September 18, 2016

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

September 16, 2016

Bug Fixes

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

2.0.0

September 2, 2016

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

August 30, 2016

Bug Fixes

1.2.0

August 26, 2016

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

August 25, 2016

Features

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

1.0.0

August 5, 2016

Features

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