Documentation / @warp-drive/build-config / deprecations / DEPRECATE_EMBER_INFLECTOR
ts
const DEPRECATE_EMBER_INFLECTOR: boolean = true;
Defined in: deprecations.ts:475
warp-drive.ember-inflectorDeprecates the use of ember-inflector for pluralization and singularization in favor of the @ember-data/request-utils
package.
Rule configuration methods (singular, plural, uncountable, irregular) and usage methods (singularize, pluralize) are are available as imports from @ember-data/request-utils/string
Notable differences with ember-inflector:
- there cannot be multiple inflector instances with separate rules
- pluralization does not support a count argument
- string caches now default to 10k entries instead of 1k, and this size is now configurable. Additionally, the cache is now a LRU cache instead of a first-N cache.
This deprecation can be resolved by removing usage of ember-inflector or by using both ember-inflector and @ember-data/request-utils in parallel and updating your EmberData/WarpDrive build config to mark the deprecation as resolved in ember-cli-build
js
setConfig(app, __dirname, { deprecations: { DEPRECATE_EMBER_INFLECTOR: false }});
Since
5.3
Until
6.0