如您所知,Ember-cli 0.2.7是Ember 1.12的最后一个版本(Ember-data 1.0.0-beta.18)。下一个版本基于Ember 1.13(Ember-data 1.13)。
如果我还没准备好使用Ember 1.13,等待一些插件,但准备好使用Ember-Data 1.13。
我应该保持默认的Ember-cli 0.2.7依赖列表(即使使用Ember-Data" 1.0.0-beta.18")?如果没有,可以更新哪些依赖项?或者我可以使用Ember-cli 1.13改变Ember版本?
以下是Ember-cli 0.2.7和1.13的标准package.json
和bower.json
文件提取。
//ember-cli 0.2.7, standard package.json
"devDependencies": {
"broccoli-asset-rev": "^2.0.2",
"ember-cli": "0.2.7",
"ember-cli-app-version": "0.3.3",
"ember-cli-babel": "^5.0.0",
"ember-cli-content-security-policy": "0.4.0",
"ember-cli-dependency-checker": "^1.0.0",
"ember-cli-htmlbars": "0.7.6",
"ember-cli-ic-ajax": "0.1.1",
"ember-cli-inject-live-reload": "^1.3.0",
"ember-cli-qunit": "0.3.13",
"ember-cli-uglify": "^1.0.1",
"ember-data": "1.0.0-beta.18",
"ember-disable-proxy-controllers": "^1.0.0",
"ember-export-application-global": "^1.0.2"
}
//ember-cli 0.2.7, standard bower.json
"dependencies": {
"ember": "1.12.0",
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "ember-cli-test-loader#0.1.3",
"ember-data": "1.0.0-beta.18",
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.4",
"ember-qunit": "0.3.3",
"ember-qunit-notifications": "0.0.7",
"ember-resolver": "~0.1.15",
"jquery": "^1.11.1",
"loader.js": "ember-cli/loader.js#3.2.0",
"qunit": "~1.17.1"
}
// ember-cli 1.13, standard package.json
"devDependencies": {
"broccoli-asset-rev": "^2.0.2",
"ember-cli": "1.13.0",
"ember-cli-app-version": "0.4.0",
"ember-cli-babel": "^5.0.0",
"ember-cli-content-security-policy": "0.4.0",
"ember-cli-dependency-checker": "^1.0.0",
"ember-cli-htmlbars": "0.7.9",
"ember-cli-htmlbars-inline-precompile": "^0.1.1",
"ember-cli-ic-ajax": "0.2.1",
"ember-cli-inject-live-reload": "^1.3.0",
"ember-cli-qunit": "0.3.15",
"ember-cli-release": "0.2.3",
"ember-cli-uglify": "^1.0.1",
"ember-data": "1.13.5",
"ember-disable-proxy-controllers": "^1.0.0",
"ember-export-application-global": "^1.0.2"
}
// ember-cli 1.13, standard bower.json
"dependencies": {
"ember": "1.13.3",
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "ember-cli-test-loader#0.1.3",
"ember-data": "1.13.5",
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.5",
"ember-qunit": "0.4.1",
"ember-qunit-notifications": "0.0.7",
"ember-resolver": "~0.1.18",
"jquery": "^1.11.1",
"loader.js": "ember-cli/loader.js#3.2.0",
"qunit": "~1.17.1"
}
答案 0 :(得分:1)
我在Ember数据1.13.5版https://github.com/emberjs/data/blob/v1.13.5/packages/ember-data/lib/main.js
中找到了这个文件它提出了两件事:
1)您至少需要Ember 1.8.0才能使用Ember Data 1.13(.5)。
2)Ember 1.12.0和Ember数据存在bug问题,但Ember 1.12.1应该没问题。
如果你还没有为Ember 1.13做好准备,我会给你0.27,Ember 1.12.1和Ember数据1.13.5。