Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
This commit fixes an issue that arose after I removed jQuery from the addon. It also adds a test to prevent regressions.
To ensure everything works as it used to, I also ran the new test against v0.6.0 (pre jQuery removal) and it passes.
Current solution
This PR adds
deepmerge
as a dependency to take the place ofjQuery.extend(true, ...);
. As it is released as an ES6 module, it was necessary to use a transform to import it into ember-highcharts.Downside to my approach
Using the es6 transform requires ember-cli >= 2.16. Ember-cli 2.16 was introduced 10 months ago, so while there might be some users who cannot take advantage of this change, presumably the gross majority won't find this a problem.
Other possible solutions
Use
ember-auto-import
This is a great addon, but if the consuming app has a CSP that disallows
eval
, it won't work.Inline
deepmerge
Seemed hacky, but has no ember-cli support issues.