v0.17.0-beta.18
Pre-release
Pre-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
- #365 Bump tmpl from 1.0.4 to 1.0.5 (@dependabot[bot])
- #375 Bump browserslist from 4.16.3 to 4.19.1 (@dependabot[bot])
- #374 Remove stagnant docs dir (@dgeb)
Committers: 1
- Dan Gebhardt (@dgeb)