Skip to content

Commit

Permalink
[CHORE] move Errors into @ember-data/model (#6675)
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired authored Nov 5, 2019
1 parent 9ff1d7a commit 72b45b5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion packages/-ember-data/addon/-private/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// public
export { Errors, Snapshot } from '@ember-data/store/-private';
export { default as Store } from '@ember-data/store';
export { default as DS } from './core';
export { default as isEnabled } from './features';
export { Errors } from '@ember-data/model/-private';
export { Snapshot } from '@ember-data/store/-private';

// `ember-data-model-fragments` relies on `RootState` and `InternalModel`
// `ember-data-model-fragments' and `ember-data-change-tracker` rely on `normalizeModelName`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mapBy, not } from '@ember/object/computed';
import DeprecatedEvent from '../deprecated-evented';
import { DeprecatedEvented } from '@ember-data/store/-private';
import ArrayProxy from '@ember/array/proxy';
import { get, computed } from '@ember/object';
import { makeArray, A } from '@ember/array';
Expand Down Expand Up @@ -82,7 +82,7 @@ import { DEBUG } from '@glimmer/env';
@extends Ember.ArrayProxy
@uses Ember.Evented
*/
export default ArrayProxy.extend(DeprecatedEvent, {
export default ArrayProxy.extend(DeprecatedEvented, {
/**
Register with target handler
Expand Down
1 change: 1 addition & 0 deletions packages/model/addon/-private/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export { default as attr } from './attr';
export { default as belongsTo } from './belongs-to';
export { default as hasMany } from './has-many';
export { default as Model } from './model';
export { default as Errors } from './errors';
2 changes: 1 addition & 1 deletion packages/model/addon/-private/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
coerceId,
DeprecatedEvented,
errorsArrayToHash,
Errors,
InternalModel,
PromiseObject,
recordDataFor,
Expand All @@ -20,6 +19,7 @@ import {
relationshipsDescriptor,
RootState,
} from '@ember-data/store/-private';
import Errors from './errors';

const { changeProperties } = Ember;

Expand Down
2 changes: 0 additions & 2 deletions packages/store/addon/-private/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
@module @ember-data/store
*/

// // public
export { default as Errors } from './system/model/errors';
export { default as Store } from './system/ds-model-store';

export { recordIdentifierFor } from './system/store/internal-model-factory';
Expand Down

0 comments on commit 72b45b5

Please sign in to comment.