adopted-ember-addons / ember-validators

A collection of EmberJS validators
Other
24 stars 40 forks source link

Use of global Ember for Ember.String is deprecated #140

Closed neilthawani closed 1 year ago

neilthawani commented 1 year ago

We're getting a deprecation warning in our CCI build/test runner:

Using Ember.String is deprecated. Please import methods directly from @ember/string. [deprecation id: ember-string.from-ember-module] This will be removed in ember-source 5.0.0.

The docs for this migration are here: https://deprecations.emberjs.com/v4.x/#toc_ember-string-from-ember-module

The replacement fix is: import { classify } from '@ember/string';

app/initializers/export-application-global.js

and

tests/unit/initializers/export-application-global-test.js

and the accompanying code line/syntax change.

neilthawani commented 1 year ago

Wrong repo, sorry.