v2.18.0
版本发布时间: 2018-04-16 17:50:44
ebryn/ember-model最新发布版本:3.0.0(2018-10-17 22:05:51)
ember-model 2.18.0
is the first release in 18 months since 0.0.18
and the first major release. It is designed to be compatible with Ember 2.18 and serve as a bridge to updating ember-model to support Ember 3.0+.
Breaking changes:
Rename store and adapter: https://github.com/ebryn/ember-model/pull/474 @nolaneo
As ember-data
is included by default in new Ember apps, and the preferred data library to use in your Ember applications, we've modified ember-model
to allow it to co-exist with ember-data
. This will provide existing apps which use ember-model
a path to incrementally migrate from ember-model
to ember-data
. In order to support this, we've renamed the ember-model
store from store:main
to emstore:main
and the adapter from data-adapter:main
to em-data-adapter:main
.
If your app relies on the default model
route hook implementation to call this.store.find
, you'll now have to modify your routes to specifically implement the model
hook which loads the model directly from ember-model
.
Other changes
- Replace deprecated
contains
withincludes
: https://github.com/ebryn/ember-model/pull/456 - Update dependencies: https://github.com/ebryn/ember-model/pull/459
- Handle out of bounds access gracefully: https://github.com/ebryn/ember-model/pull/460 @sduquej
- Upgrade QUnit to 2.5: https://github.com/ebryn/ember-model/pull/463 @patocallaghan
- Update grunt-contrib-watch to fix grunt.util._.contains error: https://github.com/ebryn/ember-model/pull/464 @patocallaghan
- Replace
grunt develop
andgrunt test
with Testem: https://github.com/ebryn/ember-model/pull/471 @patocallaghan - Add label to ajax promises: https://github.com/ebryn/ember-model/pull/475 @kmiyashiro
- Upgrade to Ember 2.18.2: https://github.com/ebryn/ember-model/pull/473 & https://github.com/ebryn/ember-model/pull/480