From 96a920863946cc6a0878ebe9d836a66e372a8984 Mon Sep 17 00:00:00 2001 From: Wesley Workman Date: Tue, 30 May 2017 08:33:20 -0400 Subject: [PATCH] [BUGFIX BETA] Added `system/store/container-instance-cache` to the -private export file --- addon/-private/index.js | 4 +++- tests/unit/private-test.js | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 tests/unit/private-test.js diff --git a/addon/-private/index.js b/addon/-private/index.js index ba709785c38..c6ecf77b842 100644 --- a/addon/-private/index.js +++ b/addon/-private/index.js @@ -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, diff --git a/tests/unit/private-test.js b/tests/unit/private-test.js new file mode 100644 index 00000000000..bd42b3a33b2 --- /dev/null +++ b/tests/unit/private-test.js @@ -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); +});