Give your data the treatment it deserves with a framework-agnostic, datastore-agnostic JavaScript ORM built for ease of use and peace of mind. Works in Node.js and in the Browser. Main Site: http://js-data.io, API Reference Docs: http://api.js-data.io/js-data
Mapper#applyDefaults
option which defaults to true
Mapper#beforeCreate
and Mapper#beforeCreateMany
now apply default values
to records for missing values according to the Mapper's schema and the applyDefaults
option.ctx
property to the opts
argument passed to validation keywordsSchema#applyDefaults(target)
methodForgot to bump version in package.json for previous release
Collection#unsaved
, LinkedCollection#unsaved
, DataStore#unsaved
Collection#prune
, LinkedCollection#prune
, DataStore#prune
Record#isNew
and Record#changeHistory
DataStore#usePendingFind
, which defaults to true
DataStore#usePendingFindAll
, which defaults to true
Mapper#validate
for you by default.Container#as
and DataStore#as
DataStore
are now non-enumerable by defaultRecord#changes
, toJSON
is called on if available.dist/js-data.d.ts
is now in ES6 module formattypings
field to package.json
typings.json
Collection
now has a configurable queryClass
property, which defaults to Query