Skip to content

v0.17.0-beta.18

Pre-release
Pre-release

Choose a tag to compare

@dgeb dgeb released this 06 Jan 23:29
· 94 commits to main since this release

This release includes a couple breaking changes to bring compatibility with ember v4.x:

  • Support has been dropped for ember < v3.24 (see #373)
  • EO no longer uses implicit injections, which were deprecated by ember prior to v4.

As discussed in #367, a new utility method has been added, applyStandardSourceInjections, which can be invoked to apply standard injections (schema, keyMap, normalizer, and validatorFor) to a source during construction. Alternatively, these injections can also be applied on a per-source basis.

This should be considered a breaking change because applyStandardSourceInjections must now be invoked for previously defined sources other than the store.

For instance:

// /app/data-sources/remote.js
import SourceClass from '@orbit/jsonapi';
import { applyStandardSourceInjections } from 'ember-orbit';

export default {
  create(injections = {}) {
    applyStandardSourceInjections(injections);
    injections.name = 'remote';
    return new SourceClass(injections);
  }
};

Please update your existing source factories as shown above!

The new blueprints are structured in this way, which should cover new source factories.

πŸ’₯ Breaking Change

  • #373 Update ember v3.25.0...v4.1.0 (@dgeb)
  • #367 [BREAKING] Replace deprecated implicit injections with explicit injections (@dgeb)

πŸš€ Enhancement

  • #377 Expose store on Cache (@dgeb)
  • #372 Use camelize from @orbit/serializers instead of @ember/string (@dgeb)

🏠 Internal

Committers: 1