Updated project dependencies. Converted to v2 addon format.
Important
In [email protected]
, the helpers have been renamed to (1) avoid name conflicts with @ember/render-modifiers
and (2) suggest that the helpers are approximations to the modifiers.
After updating ember-render-helpers
to v1.0.0
or higher, please check your usage of {{did-insert}}
, {{did-update}}
, and {{will-destroy}}
helpers, then rename them to {{did-insert-helper}}
, {{did-update-helper}}
, and {{will-destroy-helper}}
, accordingly.
Migration guide
You can run ember-codemod-ember-render-helpers-to-v1
to rename the helpers in template files (*.hbs
).
# At the root, for an app
npx ember-codemod-ember-render-helpers-to-v1 --type app
# At the root, for a v1 addon
npx ember-codemod-ember-render-helpers-to-v1 --type v1-addon
If you had imported a helper in a class (*.{js,ts,gjs,gts}
), you will need to manually update the import statement.
- import didInsert from 'ember-render-helpers/helpers/did-insert';
+ import { didInsertHelper } from 'ember-render-helpers';
- import didUpdate from 'ember-render-helpers/helpers/did-update';
+ import { didUpdateHelper } from 'ember-render-helpers';
- import willDestroy from 'ember-render-helpers/helpers/will-destroy';
+ import { willDestroyHelper } from 'ember-render-helpers';
You may also want to check templates (hbs
from ember-cli-htmlbars
) in test files.