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

Update manager capabilities to 3.22 to fix deprecation in Ember 3.26 #33

Closed
2 changes: 1 addition & 1 deletion addon/modifiers/did-insert.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import { setModifierManager, capabilities } from '@ember/modifier';
*/
export default setModifierManager(
() => ({
capabilities: capabilities('3.13', { disableAutoTracking: true }),
capabilities: capabilities('3.22', { disableAutoTracking: true }),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to use gte to use the capabilities as available by Ember version

See #25 (review)


createModifier() {},

Expand Down
2 changes: 1 addition & 1 deletion addon/modifiers/did-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import { setModifierManager, capabilities } from '@ember/modifier';
*/
export default setModifierManager(
() => ({
capabilities: capabilities('3.13', { disableAutoTracking: true }),
capabilities: capabilities('3.22', { disableAutoTracking: true }),

createModifier() {
return { element: null };
Expand Down
2 changes: 1 addition & 1 deletion addon/modifiers/will-destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { setModifierManager, capabilities } from '@ember/modifier';
*/
export default setModifierManager(
() => ({
capabilities: capabilities('3.13', { disableAutoTracking: true }),
capabilities: capabilities('3.22', { disableAutoTracking: true }),

createModifier() {
return { element: null };
Expand Down