Skip to content
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

Compatibility with ember-cli 3.4 #7

Merged
merged 1 commit into from
Aug 8, 2019

Conversation

xcambar
Copy link
Contributor

@xcambar xcambar commented Oct 27, 2018

This PR removes the usage of AddonDiscovery in favour of the PackageInfo, introduced in Ember-cli 3.4

@xcambar xcambar force-pushed the ember-3.4_compat branch 2 times, most recently from 40cc698 to c53e56f Compare October 27, 2018 12:51
@alexlafroscia
Copy link
Owner

Hey, thanks for the fix!

It seems like the tests should be passing on master but the PR is failing. Can you investigate?

@alexlafroscia
Copy link
Owner

Since it seems like it could be flakey tests, I don't necessarily want to block this PR from being merged until that's solved... but I would like some assurance that the behavior actually does work both pre- and post-3.4.

Do you have any ideas on how we can do that? AFAIK ember-try does not allow swapping the ember-cli version but my information might be out-of-date.

@alexlafroscia
Copy link
Owner

Hoping that #10 fixes the issues with the flakey test

@TRMW
Copy link

TRMW commented Aug 6, 2019

Has anyone had a chance to investigate this further? It'd be great to be able to use this addon with newer versions of Ember!

@alexlafroscia
Copy link
Owner

alexlafroscia commented Aug 8, 2019 via email

@alexlafroscia
Copy link
Owner

Okay, so I was able to determine why the tests were flakey and fixed that up. Rebasing this PR to get the tests passing again...

@alexlafroscia alexlafroscia merged commit 02bca5c into alexlafroscia:master Aug 8, 2019
@alexlafroscia
Copy link
Owner

This PR doesn't have tests for the new behavior, but I'm going to update the add-on itself to use the latest version of the CLI and, hopefully, can validate that all still works with the changes that way. Thanks for your patience here!

@TRMW
Copy link

TRMW commented Aug 8, 2019

Thank you for getting this merged! Looking forward to the new version!

@alexlafroscia
Copy link
Owner

This was just released to npm as part of version 1.0.0 🎉

Note: I removed the Ember component wrapper behavior in favor of just using them as "real" WebComponents, as more modern versions of Ember support WCs well. I also removed the custom action stuff in favor of the new {{on}} element modifier, since that reduced a lot of what this add-on needs to do!

I also made the add-on support @stencil/core@1.0.X so, if you're using an older version of Stencil, I recommend upgrading to the latest. The change to my test components was really small but the "correct" means to import them changed a bit in the official 1.X release.

@TRMW
Copy link

TRMW commented Sep 6, 2019

Sorry for the delayed response, but thanks so much for this update! We're using it in our Ember app and things seem to Just Work. Thank you!

@alexlafroscia
Copy link
Owner

Not a problem! I love to hear that it's helping you out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants