Release 2.0.0 (August 20, 2015)
Breaking Changes
Unsaved deleted records are no longer removed from hasMany relationships and RecordArrays returned by the store
In Ember Data 1.13 once a record was marked as deleted it was removed from all of the RecordArrays and hasMany arrays it belongTo. This made it difficult to create UIs where a user could flag a record for deletion but still allow the user the ability to un-flag the record until the save request was made.
In Ember Data 2.0 a record will no longer be removed from hasMany relationships or RecordArrays until the delete has been acknowledged by the adapter. Although deleted records will be visible in hasMany relationships they will not be serialized when saving these relationships to the backend.
Changes
- #3665 [BUGFIX beta] Fix usage of registry for 2.1.0+.
- #3577 Use the correct modelClass and serializer to extract a polymorphic ty…
- #3669 [DOC beta] Changed references to App.Person & App.Post in RESTAdapter API docs
- #3636 Add ember-cli-dependency-checker.
- #3670 [DOC beta] Change to decorator-style CPs in RESTAdapter API doc samples
- #3651 [DOC release] Update changelog for 1.13.9
- #3653 [BUGFIX beta] Update the dependencies for Ember 2.0
- #3654 Revert the live filterBy changes in Ember Data beta.1
- #3656 Update the changelog for 2.0.0-beta.2
- #3661 [DOC beta] Changed @default adapter from RESTAdapter to JSONAPIAdapter
- #3666 [BUGFIX beta] Initializer/Instance Initializer Deprecations.
- #3672 [DOC beta] Changed remaining CPs to decorator-style in RESTAdapter apidocs sample
- #3680 [BUGFIX beta] Prefer the new injection methods.
- #3681 [BUGFIX beta] Update required methods for the Serializer class
- #3651 [DOC release] Update changelog for 1.13.9
- #3653 [BUGFIX beta] Update the dependencies for Ember 2.0
- #3654 Revert the live filterBy changes in Ember Data beta.1
- #3375 JSONAPISerializer only supports the new Serializer API
- #3251 Convert unload test to json api format for
store.push
.. #3223 - #3345 [CLEANUP] drop IE8 support
- #3487 Default to using the JSONAPIAdapter
- #3389 Re-enable beta and canary tests
- #3383 update ember-inflector to 1.6.2
- #3384 Assert if the RESTSerializers when using the new format calls another
- #3379 store.push should support arrays in the JSONAPI data property
- #3388 Have looked up ActiveModelSerializer opt into the new Serializer API
- #3489 Remove deprecated code from the Ember Data initializer
- #3396 make sure deprecate error doesnt get swallowed when using store.push(type, data)
- #3392 AMS modelNameFromPayloadKey and serializePolymorphicType cleanup
- #3394 [DOC] Deprecate store.pushMany in documentation
- #3408 Fix Typos in Documentation for DS.Adapter
- #3433 Fix deprecation warnings
- #3430 [CLEANUP beta] Remove old Serializer API
- #3432 [CLEANUP beta] Use Object.keys/Object.create instead of Ember.keys/Ember.create
- #3420 [CLEANUP] Remove ember-new-computed dependency
- #3410 Fix minor typo in deprecation warning
- #3488 Relationships are async by default in 2.0
- #3462 Fix documentation typos in Adapter
- #3441 [CLEANUP beta] Remove ManyArray deprecations
- #3440 [CLEANUP beta] Remove RESTSerializer deprecations
- #3439 [CLEANUP beta] Remove RESTAdapter deprecations
- #3438 [CLEANUP beta] Remove BuildURLMixin deprecations
- #3442 [CLEANUP beta] Remove Model deprecations
- #3443 [CLEANUP beta] Remove Snapshot deprecations
- #3436 Fix Ember Data build with fresh install
- #3457 [CLEANUP beta] Remove ActiveModelAdapter/Serializer
- #3458 [DOC] createRecord relationships close #3421
- #3490 Remove deprecated finder methods on the store.
- #3469 Update shouldReload* flags for 2.0
- #3470 Fix broken link
- #3473 [DOC] Fill @property of DS.Model.modelName
- #3481 update errors.js docs to mirror new json api error specs
- #3477 Add modelClass argument to JSONSerializer.extractId
- #3539 Only remove deleted records form record arrays when saved
- #3496 Update README.md
- #3497 Use
detail
instead of details
for JSON API error objects - #3532 [CLEANUP beta] Remove Store deprecations
- #3550 Fix JSONSerializer to pass through
payload.included
- #3534 Rename error attribute
- #3544 Add error message in _pushInternalMessage when unknown type
- #3531 Adds some documentation for JSONApiSerializer
- #3533 [CLEANUP beta] Remove console.log() call
- #3567 Use Ember.$ instead of jQuery for AJAX requests
- #3570 Update
Ember.deprecate
and Ember.warn
calls to include required information