Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX BETA] Added system/store/container-instance-cache to the -private export #5002

Merged
merged 1 commit into from
Jun 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion addon/-private/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ export { default as coerceId } from './system/coerce-id';
export { default as parseResponseHeaders } from './utils/parse-response-headers';

// should be private ?
export { default as RootState } from './system/model/states';
export { default as global } from './global';
export { default as isEnabled } from './features';
// `ember-data-model-fragments` relies on `RootState`, `InternalModel` and `ContainerInstanceCache`
export { default as RootState } from './system/model/states';
export { default as InternalModel } from './system/model/internal-model';
export { default as ContainerInstanceCache } from './system/store/container-instance-cache';

export {
PromiseArray,
Expand Down
16 changes: 16 additions & 0 deletions tests/unit/private-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { module, test } from 'qunit';
import { ContainerInstanceCache, InternalModel, RootState } from 'ember-data/-private';

module('-private');

test('`ContainerInstanceCache` is accessible via private import', function(assert) {
assert.ok(!!ContainerInstanceCache);
});

test('`InternalModel` is accessible via private import', function(assert) {
assert.ok(!!InternalModel);
});

test('`RootState` is accessible via private import', function(assert) {
assert.ok(!!RootState);
});