« All deprecation guides
Deprecation Guide for Deprecate import expandProperties from @ember/object/computed
until: 7.0.0
id: deprecate-import-expand-properties-from-object-computed
expandProperties
is deprecated. It expanded bracket / brace notation in classic CP dependent key strings.
Migration
This is largely unneeded and there is no direct replacement.
Before:
import { expandProperties } from '@ember/object/computed';
expandProperties('user.{first,last}Name', (prop) => {/* ... */});
After: List properties explicitly: user.firstName
, user.lastName
.