Skip to content

v0.17.0-beta.19

Pre-release
Pre-release

Choose a tag to compare

@dgeb dgeb released this 23 Jan 18:31
· 84 commits to main since this release

This release finishes the work started in beta.18 to eliminate implicit injections from ember-orbit. #382 addresses the issue of implicit injections used by buckets. As noted in that PR, please update your bucket initializers to follow the following form:

import BucketFactory from '../data-buckets/main';

export function initialize(application) {
  const orbitConfig = application.resolveRegistration('ember-orbit:config');

  // Register this bucket as the main bucket service so that it can be injected
  // into sources via `applyStandardSourceInjections`.
  //
  // IMPORTANT: If your app has more than one bucket, only register one as the
  // main bucket service.
  application.register(`service:${orbitConfig.services.bucket}`, BucketFactory);
}

export default {
  name: 'main-bucket-initializer',
  after: 'ember-orbit-config',
  initialize,
};

Changelog

💥 Breaking Change

  • #382 Introduce main bucket service to allow for bucket injections (@dgeb)

🏠 Internal

  • #381 Update orbit packages ^0.17.0-beta.26 (@dgeb)

Committers: 1