Skip to content

Commit

Permalink
Merge pull request #74 from ember-polyfills/add-warning-for-older-gli…
Browse files Browse the repository at this point in the history
…mmer-tracking
  • Loading branch information
rwjblue authored Sep 18, 2020
2 parents 4a692cc + 8c3b70a commit 494f0a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ module.exports = {
throw new SilentError('ember-cache-primitive-polyfill requires ember-cli-babel@7.20.0 or higher in order to function properly, please update your ember-cli-babel version');
}

let glimmerTrackingVersion = parentChecker.for('@glimmer/tracking');
if (glimmerTrackingVersion.lt('1.0.2')) {
this.ui.writeWarnLine(`Using ${this.name} with \`@glimmer/tracking\` versions prior to 1.0.2 may not work correctly, please update to at least \`@glimmer/tracking@1.0.2\``);
}

const projectChecker = new VersionChecker(this.project);
const emberVersion = projectChecker.for('ember-source');

Expand Down

0 comments on commit 494f0a6

Please sign in to comment.