ember-data
Advanced tools
Changelog
Release 1.0.0-beta.16 (March 23, 2015)
In 1.0.0-beta.15 serializers were updated to be passed snapshots instead of records to prevent side-effects like fetching data when inspecting relationships. This has now been extended to also include adapters methods.
The following adapter methods are now passed snapshots instead of records:
find(store, type, id, snapshot)
findMany(store, type, ids, snapshots)
findHasMany(store, snapshot, url, relationship)
findBelongsTo(store, snapshot, url, relationship)
createRecord(store, type, snapshot)
updateRecord(store, type, snapshot)
deleteRecord(store, type, snapshot)
The signature of buildURL(type, id, snapshot)
has also been updated to receive
snapshots instead of records.
This change removes the need for adapters to create snapshots manually using the
private API record._createSnapshot()
to be able to pass snapshots to
serializers.
Snapshots are backwards-compatible with records (with deprecation warnings) and it should be pretty straight forward to update current code to the public Snapshot API:
post.id => postSnapshot.id
post.title => postSnapshot.attr('title')
post.author => postSnapshot.belongsTo('author')
post.comments => postSnapshot.hasMany('comments')
post.constructor => postSnapshot.type;
post.constructor.typeKey => postSnapshot.typeKey
If you need to access the underlying record of a snapshot you can do so by
accessing snapshot.record
.
The full API reference of DS.Snapshot
can be found here.
Ember.required
(it is deprecated).store
in serializerstore
property on DS.Modelstore
property on DS.Model subclassesChangelog
Release 1.0.0-beta.15 (February 14, 2015)
Changelog
Ember Data 1.0.0-beta.14.1 (December 31, 2014)
<%= versionStamp %>
with actual version stamp. Thanks
@tricknotes!Changelog
Ember Data 1.0.0-beta.14 (December 25, 2014)
Changelog
Ember Data 1.0.0-beta.12 (November 25, 2014)
A bug in Ember 1.7's Ember.create
method (which is a polyfill for
Object.create
) combined with a bug in es5-shim's Object.create
prevent us
from giving Ember Data users a good alternative to use. Internally, Ember Data
uses Object.create
for efficient caches. Ember 1.8 ships a working
Object.create
polyfill on Ember.create
so if you are using Internet
Explorer 8 and Ember Data in production, you should upgrade to Ember 1.8 as
soon as you can.
If you are using browsers that provide Object.create
, you do not need to do
any additional work here. This includes mobile browsers, evergreen browsers
(Chrome, Opera, Firefox), Safari, and IE9+.
Changelog
Ember Data 1.0.0-beta.11 (October 13, 2014)
Changelog
Ember Data 1.0.0-beta.10 (September 9, 2014)
NOTE: A bug was introduced in this version where the saving of a model with async hasMany property will send an empty list to the server in the payload, so is discouraged to use this version if you have such relationships on your application. For more details https://github.com/emberjs/data/issues/2339
addBowerPackageToProject()
hook to add ed as bower dep instead of including a pre-built versionfind
documentation