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

[BUGFIX beta] Implement cacheKeyForTree hook. #5110

Merged
merged 2 commits into from
Aug 13, 2017

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Aug 1, 2017

This hook was added in ember-cli/rfcs#90, and essentially guarantees that a given tree returned by an addon is considered stable (or not).

In the case of Ember Data, we do not have different tree output based on our parent (project or addon).

Specifically, this implementation allows both an app and a lazy engine to depend on ember-data without duplicating the ember-data assets in both the assets/vendor.js and engine-dist/<engine-name>/assets/engine-vendor.js.

Fixes ember-engines/ember-engines#438.

This hook was added in [ember-cli/rfcs#90](https://github.com/ember-cli/rfcs/blob/master/complete/0090-addon-tree-caching.md),
and essentially guarantees that a given tree returned by an addon is
considered stable (or not).

In the case of Ember Data, we do not have different tree output
based on our parent (project or addon).

Specifically, this implementation allows both an app _and_ a lazy engine to
depend on `ember-data` without duplicating the `ember-data` assets in both
the `assets/vendor.js` and `engine-dist/<engine-name>/assets/engine-vendor.js`.
@rwjblue
Copy link
Member Author

rwjblue commented Aug 10, 2017

Rebased.

The bizarre failures on CI are related to the super old Yarn version
in use on the Trusty arch (0.17.5), and seem to randomly fail based
on which CI image a build runs on (super frustratingly :P ).

This updates our Travis config to ensure the latest yarn is installed
(and also updates the mechansim we use to get phantom so that it works
across both Trusty and Precise images).
@rwjblue rwjblue merged commit 7d1b251 into emberjs:master Aug 13, 2017
@rwjblue rwjblue deleted the add-cache-key-for-tree branch August 13, 2017 17:03
@thec0keman
Copy link

@rwjblue will this be released in 2.15? would it be possible to get this released as a part of 2.14? Thanks!

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.

None yet

2 participants