Skip to content

Releases: dynamiccast/sails-json-api-blueprints

0.12.0

02 Sep 07:48
Compare
Choose a tag to compare

Sails.js integration

  • res.negotiate do not try to interpret the error anymore.

0.11.6

29 Aug 15:01
Compare
Choose a tag to compare

Sails.js integration

  • Call .toJson prior to serialization

0.11.5

11 Aug 13:29
Compare
Choose a tag to compare

Sails.js integration

  • Fix race condition if model had more than one many to many associations to save
  • Fiz serializer was expecting input data to have relationships even if they did not
  • Fix bug null attributes were detected as relationships
  • Fix update requests did not go through global policies

0.11.1

09 Aug 12:30
Compare
Choose a tag to compare

JSON API

  • Included record's relationships are ignore in returned payload

Sails.js integration

  • Optimize the way relationship are updated by removing potential race condition

0.11.0

08 Aug 12:54
Compare
Choose a tag to compare

This release includes experimental support for relationship

JSON API

  • Automatically serialize records as included relationships when retrieved with populate

Sails.js integration

  • Update given relationships on update (PATCH)

0.10.2

03 Aug 14:54
Compare
Choose a tag to compare

Sails.js integration

Fix payload was not deserialized before calling default blueprint for updates (PATCH)

0.10.0

26 Jul 15:04
Compare
Choose a tag to compare

Sails.js integration

Fix create() not working if primaryKey was different from id

0.9.0

24 Jul 17:25
Compare
Choose a tag to compare

Sails.js integration

Fix #23 overridden update actions were never called
Leave default autoCreatedAt and autoUpdatedAt value while #25 is still open

Module

Upgrade to loadash 4

0.8.0

14 Jul 17:09
Compare
Choose a tag to compare

Sails.js integration

Fix PATCH method not working if sails.config.blueprints.prefix was set

0.7.0

11 Jul 12:55
Compare
Choose a tag to compare

Sails.js integration

  • Waterline validation errors returns valid JSON API error objects
  • Validate input data and PATCH and POST before treating them
  • Allow to configure resources attributes' keys case for both sails model and JSON API serialized form

Repository

  • Add tests for JsonApiService