« All deprecation guides
Deprecation Guide for Using Ember.String instead of @ember/string
until: 5.0.0
id: ember-string.from-ember-module
Using Ember.String
instead of importing from @ember/string
is deprecated.
Before:
import Ember from 'ember';
Ember.String.dasherize('myString'); // 'my-string'
After:
import { dasherize } from '@ember/string';
dasherize('myString'); // 'my-string'
Also please note that the @ember/string
package is being moved to an addon,
@ember/string
. See this deprecation guide.
If you were using htmlSafe
or isHTMLSafe
off of Ember.String
, please
import them from @ember/template
instead. See
this deprecation guide for more information.