-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.0: Support Ember/Ember-Data 1.13 and up only #95
3.0: Support Ember/Ember-Data 1.13 and up only #95
Conversation
It fails due to emberjs/data#3736, which is fixed in Ember-Data v2.1.0.
This looks good. Perhaps add https://github.com/rwjblue/ember-cli-version-checker for ember-data? |
I'm all for dropping support for old versions, if it makes development easier. That said, we should probably have better tests. Also, is there a way to communicate via code which version of Ember Data we support? Something like npm |
👍 code looks good |
@nolanlawson beginning in Ember Data 2.4, Ember Data will be a full-fledged Ember add-on like Ember Pouch. You can use peerDependencies in that fashion. Until then, I think you would have to communicate this at runtime by asserting against |
@fivetanley @nolanlawson Is https://github.com/rwjblue/ember-cli-version-checker not the way to go? Edit: Like this mharris717/ember-cli-pagination@6781cde |
This is not exactly right — it would accept 2.4 as a bower dep — but it's as close as I can get using ember-cli-version-checker's documented API.
48d7f69
to
38b21a5
Compare
Okay, I added a version check. I used ember-cli-version-checker. It would have been cleaner to use a check against |
@rsutphin The ember-data version check look good. Should we also add a version check for ember? |
I don't think we need a version check for ember. Ember-pouch mainly interacts with ember-data. It doesn't use any complex or subtle ember features — whatever version of ember works with the version of ember-data you have should be fine. @broerse, thanks for checking in your app. Are there any further concerns before I merge this? |
@rsutphin It works OK for me but my app is still in 1.13.x. I see there are some issues with other modules and ember & ember-data 2.2.0. We could first double check 2.2.0. I vote for merging now. |
I just tried out this branch locally on ember js 2.2 and ember data 2.2.1 and everything worked fine. |
@mattmarcum Thanks for testing this! |
@mattmarcum, thanks for testing. I tested with HospitalRun. None of their tests that were passing before fail with this change. (I didn't run the full app, though.) I'm going to merge now. Thanks for everyone's feedback. |
3.0: Support Ember/Ember-Data 1.13 and up only
Published as 3.0.0. |
Builds on @fivetanley's PR #87 to drop support for Ember & Ember-Data before version 1.13. Includes changes to the ember-try & travis config to test on 1.13 and all 2.x versions so far.
Since this is a backwards-incompatible change, it bumps the package version to 3.0.
Given our limited test suite, I've normally been testing changes in my app that uses the adapter. However, that app is still on Ember 1.12, so I can't test these changes. I'd appreciate it if anyone who's interested could give it a try in their apps and let me know if there are problems.