ember-bootstrap / ember-bootstrap

Ember-cli addon for using Bootstrap as native Ember components.
https://www.ember-bootstrap.com
Other
491 stars 195 forks source link

Remove usage of action template helper and modifier #2131

Open jelhan opened 4 months ago

jelhan commented 4 months ago

The (action) template helper and {{action}} modifier has been deprecated. See RFC 1006 for details.

We are still relying on both at many places. In the addon itself, in the test app, and in the documentation app. We should refactor away from it especially in the addon code shipped to consumers as soon as possible.

These are the files where the action helper is still used:

The JSDoc comments also still use the action helper the following places:

After that, the configuration should be updated to re-enable the warning:

simonihmig commented 4 months ago

In the addon itself

I have only found these in example code in JSDocs comments. Definitely not what we want, but not nearly as bad as in our own code... or did I miss some places?

jelhan commented 4 months ago

In the addon itself

I have only found these in example code in JSDocs comments. Definitely not what we want, but not nearly as bad as in our own code... or did I miss some places?

You are right. I only looked which files includes {{action. But not on the actual context within the file. It seems to affect API docs only.