appuniversum / ember-appuniversum

Ember addon wrapping the appuniversum components.
https://appuniversum.github.io/ember-appuniversum
MIT License
14 stars 10 forks source link

Deprecation from ember-modifier #223

Closed claire-lovisa closed 2 years ago

claire-lovisa commented 2 years ago

In OP I've started to see some deprecations warnings like shown below that seem to get triggered by the AuDropdown component : DEPRECATION: ember-modifier (for onClickInside ...

After a little check in the app on ember-modifier, it seems ember-appuniversums still uses v2.1.2. Maybe a bump would fix the warning ?

├─┬ @appuniversum/ember-appuniversum@1.0.3
│ ├─┬ ember-inputmask5@3.2.0
│ │ └── ember-modifier@3.2.1 deduped
│ ├── ember-modifier@2.1.2
│ └─┬ ember-prop-modifier@1.0.1
│   └── ember-modifier@2.1.2

Thanks ! :)

Windvis commented 2 years ago

I think it's more complicated than simply bumping the version. It seems the latest release of ember-modifier triggers custom deprecations which need actual changes: https://github.com/ember-modifier/ember-modifier/releases/tag/v3.2.0

All our modifier subdependencies need to be updated and our own on-click-inside modifier also needs that change. I'll try to look into it ASAP.

Windvis commented 2 years ago

These are the addons that need to be updated:

Windvis commented 2 years ago

The most common warning should be fixed by #234 which is part of the 1.0.6 release.

Windvis commented 2 years ago

We should probably drop both ember-prop-modifier and ember-inputmask and replace them with custom modifiers for our use-case.