ember-source 4.8.5 → 4.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +2 -2
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +1 -1
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +6 -8
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/engine/instance.js +4 -5
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +11 -11
- package/package.json +2 -2
package/dist/header/license.js
CHANGED
|
@@ -11,7 +11,6 @@ import { ENGINE_PARENT, getEngineParent, setEngineParent } from './lib/engine-pa
|
|
|
11
11
|
import { ContainerProxyMixin, RegistryProxyMixin } from '@ember/-internals/runtime';
|
|
12
12
|
import { isFactory } from '@ember/-internals/owner';
|
|
13
13
|
import Engine from '@ember/engine';
|
|
14
|
-
const CEngine = Engine;
|
|
15
14
|
|
|
16
15
|
class EngineInstance extends EmberObject.extend(RegistryProxyMixin, ContainerProxyMixin) {
|
|
17
16
|
constructor() {
|
|
@@ -128,14 +127,14 @@ class EngineInstance extends EmberObject.extend(RegistryProxyMixin, ContainerPro
|
|
|
128
127
|
|
|
129
128
|
|
|
130
129
|
buildChildEngineInstance(name, options = {}) {
|
|
131
|
-
let
|
|
130
|
+
let ChildEngine = this.lookup(`engine:${name}`);
|
|
132
131
|
|
|
133
|
-
if (!
|
|
132
|
+
if (!ChildEngine) {
|
|
134
133
|
throw new EmberError(`You attempted to mount the engine '${name}', but it is not registered with its parent.`);
|
|
135
134
|
}
|
|
136
135
|
|
|
137
|
-
assert('expected an Engine',
|
|
138
|
-
let engineInstance =
|
|
136
|
+
assert('expected an Engine', ChildEngine instanceof Engine);
|
|
137
|
+
let engineInstance = ChildEngine.buildInstance(options);
|
|
139
138
|
setEngineParent(engineInstance, this);
|
|
140
139
|
return engineInstance;
|
|
141
140
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "4.8.
|
|
1
|
+
export default "4.8.6";
|
package/docs/data.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "The Ember API",
|
|
4
4
|
"description": "The Ember API: a framework for building ambitious web applications",
|
|
5
5
|
"url": "https://emberjs.com/",
|
|
6
|
-
"version": "4.8.
|
|
6
|
+
"version": "4.8.6"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
|
@@ -2166,7 +2166,7 @@
|
|
|
2166
2166
|
"namespaces": {},
|
|
2167
2167
|
"tag": "module",
|
|
2168
2168
|
"file": "packages/@ember/engine/instance.ts",
|
|
2169
|
-
"line":
|
|
2169
|
+
"line": 35
|
|
2170
2170
|
},
|
|
2171
2171
|
"@ember/enumerable": {
|
|
2172
2172
|
"name": "@ember/enumerable",
|
|
@@ -3465,7 +3465,7 @@
|
|
|
3465
3465
|
"module": "@ember/engine",
|
|
3466
3466
|
"namespace": "",
|
|
3467
3467
|
"file": "packages/@ember/engine/instance.ts",
|
|
3468
|
-
"line":
|
|
3468
|
+
"line": 35,
|
|
3469
3469
|
"description": "The `EngineInstance` encapsulates all of the stateful aspects of a\nrunning `Engine`.",
|
|
3470
3470
|
"access": "public",
|
|
3471
3471
|
"tagname": "",
|
|
@@ -11961,7 +11961,7 @@
|
|
|
11961
11961
|
},
|
|
11962
11962
|
{
|
|
11963
11963
|
"file": "packages/@ember/engine/instance.ts",
|
|
11964
|
-
"line":
|
|
11964
|
+
"line": 48,
|
|
11965
11965
|
"access": "private",
|
|
11966
11966
|
"tagname": "",
|
|
11967
11967
|
"itemtype": "method",
|
|
@@ -11983,7 +11983,7 @@
|
|
|
11983
11983
|
},
|
|
11984
11984
|
{
|
|
11985
11985
|
"file": "packages/@ember/engine/instance.ts",
|
|
11986
|
-
"line":
|
|
11986
|
+
"line": 56,
|
|
11987
11987
|
"description": "The base `Engine` for which this is an instance.",
|
|
11988
11988
|
"itemtype": "property",
|
|
11989
11989
|
"name": "engine",
|
|
@@ -11995,7 +11995,7 @@
|
|
|
11995
11995
|
},
|
|
11996
11996
|
{
|
|
11997
11997
|
"file": "packages/@ember/engine/instance.ts",
|
|
11998
|
-
"line":
|
|
11998
|
+
"line": 95,
|
|
11999
11999
|
"description": "Initialize the `EngineInstance` and return a promise that resolves\nwith the instance itself when the boot process is complete.\n\nThe primary task here is to run any registered instance initializers.\n\nSee the documentation on `BootOptions` for the options it takes.",
|
|
12000
12000
|
"access": "public",
|
|
12001
12001
|
"tagname": "",
|
|
@@ -12017,7 +12017,7 @@
|
|
|
12017
12017
|
},
|
|
12018
12018
|
{
|
|
12019
12019
|
"file": "packages/@ember/engine/instance.ts",
|
|
12020
|
-
"line":
|
|
12020
|
+
"line": 120,
|
|
12021
12021
|
"description": "Unfortunately, a lot of existing code assumes booting an instance is\nsynchronous – specifically, a lot of tests assume the last call to\n`app.advanceReadiness()` or `app.reset()` will result in a new instance\nbeing fully-booted when the current runloop completes.\n\nWe would like new code (like the `visit` API) to stop making this\nassumption, so we created the asynchronous version above that returns a\npromise. But until we have migrated all the code, we would have to expose\nthis method for use *internally* in places where we need to boot an instance\nsynchronously.",
|
|
12022
12022
|
"access": "private",
|
|
12023
12023
|
"tagname": "",
|
|
@@ -12026,7 +12026,7 @@
|
|
|
12026
12026
|
},
|
|
12027
12027
|
{
|
|
12028
12028
|
"file": "packages/@ember/engine/instance.ts",
|
|
12029
|
-
"line":
|
|
12029
|
+
"line": 161,
|
|
12030
12030
|
"description": "Unregister a factory.\n\nOverrides `RegistryProxy#unregister` in order to clear any cached instances\nof the unregistered factory.",
|
|
12031
12031
|
"access": "public",
|
|
12032
12032
|
"tagname": "",
|
|
@@ -12044,7 +12044,7 @@
|
|
|
12044
12044
|
},
|
|
12045
12045
|
{
|
|
12046
12046
|
"file": "packages/@ember/engine/instance.ts",
|
|
12047
|
-
"line":
|
|
12047
|
+
"line": 178,
|
|
12048
12048
|
"description": "Build a new `EngineInstance` that's a child of this instance.\n\nEngines must be registered by name with their parent engine\n(or application).",
|
|
12049
12049
|
"access": "private",
|
|
12050
12050
|
"tagname": "",
|
|
@@ -12071,7 +12071,7 @@
|
|
|
12071
12071
|
},
|
|
12072
12072
|
{
|
|
12073
12073
|
"file": "packages/@ember/engine/instance.ts",
|
|
12074
|
-
"line":
|
|
12074
|
+
"line": 208,
|
|
12075
12075
|
"description": "Clone dependencies shared between an engine instance and its parent.",
|
|
12076
12076
|
"access": "private",
|
|
12077
12077
|
"tagname": "",
|
|
@@ -19188,7 +19188,7 @@
|
|
|
19188
19188
|
},
|
|
19189
19189
|
{
|
|
19190
19190
|
"message": "Missing item type\nUnfortunately, a lot of existing code assumes booting an instance is\nsynchronous – specifically, a lot of tests assume the last call to\n`app.advanceReadiness()` or `app.reset()` will result in a new instance\nbeing fully-booted when the current runloop completes.\n\nWe would like new code (like the `visit` API) to stop making this\nassumption, so we created the asynchronous version above that returns a\npromise. But until we have migrated all the code, we would have to expose\nthis method for use *internally* in places where we need to boot an instance\nsynchronously.",
|
|
19191
|
-
"line": " packages/@ember/engine/instance.ts:
|
|
19191
|
+
"line": " packages/@ember/engine/instance.ts:120"
|
|
19192
19192
|
},
|
|
19193
19193
|
{
|
|
19194
19194
|
"message": "Missing item type",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-source",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.6",
|
|
4
4
|
"description": "A JavaScript framework for creating ambitious web applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
]
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
|
-
"_originalVersion": "4.8.
|
|
181
|
+
"_originalVersion": "4.8.6",
|
|
182
182
|
"_versionPreviouslyCalculated": true,
|
|
183
183
|
"publishConfig": {
|
|
184
184
|
"tag": "old"
|