ember-cli / ember-compatibility-helpers

Helpers that allow you to write backwards compat Ember addons
MIT License
24 stars 20 forks source link

[FEAT] IS_RECORD_DATA gte/lte(pkg, version) #28

Closed runspired closed 5 years ago

runspired commented 5 years ago

Adds a new flags and a new capability for the gte() / lte() helper function:

Flag

lte/gte(package, version)

The lte and gte helpers that apps and addons could previously import for checking against specific versions of ember now accept two arguments. The single argument case (e.g. gte('3.0.0')) will continue to check against ember-source, but the two argument case allows for the first argument to be the desired package to be checked. This allows for things such as the following to work.

if (gte("ember-data", "3.5.0")) {}
rwjblue commented 5 years ago

ember-compatibility-helpers 1.2.0-beta.1 published 🎉