-
Notifications
You must be signed in to change notification settings - Fork 140
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
Support ember-simple-auth v2.1 #270
Conversation
Travis is driving me up a wall! I can't seem to get it to stop using npm version v3.5.4... |
Change "npm install -g npm@6" to "npm install npm@6" in travis file. It's due to that fact that ember-cli-release requires a really old version of npm. Might be worth moving to "ember-cli-release-tag" which is a more maintained version. |
@tben Thank you!! I am going to clean up my commit log (rewrite history) before we try and get this merged. |
Changelog:
|
Do we want to drop Ember 2.16? It is no longer supported. If yes, I think we should remove it before we merge this. Other than that, thoughts? |
@fenichelar sounds good to me, thanks for working on this! 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for working on this. I also need it for one of my projects. But would love to upgrade to [email protected]
directly. Added some review comments that would allow me to do that.
Not sure if supporting multiple versions of ember-simple-auth
is really necessary at all. But if we do it, we should run the tests against all supported version.
I'm still worried about the tests.
{
"dependencies": {
"ember-simple-auth": "^1.6.0 || ^2.1.0 || ^3.0.0"
}
} But the tests are only run against the version of Supporting multiple versions of a dependency increases testing complexity a lot. Therefor I tend to avoid it. But if you want to go that path, the tests should also cover all possible combinations. Or at least cover one common combination per scenario. Maybe using
|
@jelhan I think writing tests for every version is not practical. My goal here is to just offer one last version with support for all 3 versions of node and ember-simple-auth. Then make a new major version here with more limited support. I am still debating the majors, options:
I'm leaning towards the first but we would again be lacking tests. But tests can be added if needed, dropping support is permanent. What do you think of that plan? |
add test coverage for different ember-simple-auth versions
It's not that much work. Ember-try provides nearly everything that we need out of the box. Had some time. Please find the pull request adding missing test coverage here: #1
As we now have a version that support all three version of ember-simple-auth and has test coverage I don't see a need for a major release. We already invested all the time needed. I'm still not convinced that spending all that time on this one was a good decision but we should now also earn the benefits. 😄 Only one concern left from my side: This pull requests drops support for node 6. This is a breaking change and would require a major version. The only reason it does so is adding #2 adds node 6 support back and adjusts the test coverage accordingly. |
@jelhan Travis does not appear to be using Node v10 for the test case |
avoid breaking change by dropping node 6 support
Could you elaborate? Tests are passing and it correctly reports to install and use node 10: https://travis-ci.org/jpadilla/ember-simple-auth-token/jobs/658757270#L485-L491 |
@jelhan You are correct. It installs Node v8, prints the version, and then installs Node v10. A little confusing but it does appear to be working. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ready to be merged in @jpadilla. It should not be a breaking change beside for removing tools that help with releasing. But maybe that's okay for now? Or should we try to add ember-cli-release
back in?
@jelhan Assuming all of the tests pass, what do you think about everything now? BTW, I had no idea how powerful ember-try was. Thanks for teaching me something new!! I think after this we should consider releasing v5 which would drop support for Node v6 and Node v8. I'd like to continue to support all versions of ember and ember-simple-auth as long as practical. Thoughts? |
@jpadilla thoughts? |
To be honest I'm not sure if we need such a complete matrix to cover all possible combinations. But as this library is not changing that often it should not eat up to much CI resources. So I don't think that will be an actual problem. Would be great if this one could be merged and released. |
@jelhan I went a little overboard because I was planning on dropping support for Node v6 and Node v8 immediately after this is merged. What do you think about that? Looking for feedback. |
Makes sense to me. Should also consider dropping support for |
If you add your review, I can merge this. I was thinking about leaving support for all three version of ember-simple-auth. For me at least, upgrading Node is easy, rarely an issue. Upgrading ember and other ember libraries can be a big project with lots of breaking changes. I'm using Node v10 but still using ember 2.x and ember-simple-auth v2 in a lot of places because of this. I imagine I'm not the only one in this position. Also, so far, supporting all version of ember-simple-auth has been trivial as there have been no breaking changes that affect this library. |
@jpadilla release-it v9.8.3 supports Node v6. This could be an alternative to ember-cli-release. But the tentative plan is to drop Node v6 and Node v8 in the next release so we may want to just add in ember-cli-release-tag or the latest release-it at that time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me but I don't have write access to this repo. Need @jpadilla for merging and releasing.
@jelhan Ahh, sorry. Yes, we need @jpadilla to review. Changelog:
|
@fenichelar awesome work, thanks! switching over to ember-cli-release-tag doesn't seem like a bad idea. |
@fenichelar What's your npm username? I can add you as a maintainer there too |
It was mostly @jelhan! My NPM username is |
Thank you too @jelhan 🎉 |
@jpadilla I don't have |
@jpadilla Thanks. Working now. |
No description provided.