-
Mongoose 4 is now required.
-
The MongooseAdapter is now at a different export path:
require("json-api").dbAdapters.MongooseAdapter
. Update your references to the adapter accordingly. -
Resource type descriptions now use a
dbAdapter
property instead ofadapter
. -
The Front Controller has been replaced with an ExpressStrategy, which is exported at
require("json-api").httpStrategies.Express)
. The API is the same as for the old Front Controller, with the addition of some new options. -
The new payload's resource object format complies with JSON API 1.0, meaning it uses the
relationships
container, rather putting relationships underlinks
, and uses adata
member instead oflinkage
within relationships. -
In auto-generated documentation’s JSON, many names were dasherized or tweaked:
-
field.kind.isArray => field.kind.is-array;
-
field.kind.targetModel => target-model;
-
field.kind.targetType => field.kind.target-type
-
field.friendlyName => field.friendly-name
-
field.validation.readOnly => field.validation.read-only;
-
field.validation.allowedHtml => field.validation.allowed-html
-
field.kind.name => field.kind.base-type;
- "Link fields" get field.kind.base-type =
"Relationship"
rather than"Link"
- field.validation.oneOf => field.validation.enum;
- "Link fields" get field.kind.base-type =
-