Skip to content

v2.0.0

Compare
Choose a tag to compare
@dfreeman dfreeman released this 02 Oct 17:16
· 11 commits to master since this release
0d9c906

This release removes the automatic injection of the debug method on many container-owned objects. To migrate forward, you can either set debug: debugLogger() on those objects explicitly or reinstate the implicit injection in your own instance initializer:

export function initialize(instance) {
  instance.register('debug-logger:main', debugLogger(), { instantiate: false });

  // Do this for each type you want the injection on
  instance.inject('route', 'debug', 'debug-logger:main');
}

export default {
  name: 'debug-logger',
  initialize,
};