ember-source 5.1.0-alpha.2 → 5.2.0-alpha.1

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.
@@ -5,5 +5,5 @@
5
5
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
6
6
  * @license Licensed under MIT license
7
7
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
8
- * @version 5.1.0-alpha.2
8
+ * @version 5.2.0-alpha.1
9
9
  */
@@ -10,7 +10,6 @@ import { ENGINE_PARENT, getEngineParent, setEngineParent } from './lib/engine-pa
10
10
  import { ContainerProxyMixin, RegistryProxyMixin } from '@ember/-internals/runtime';
11
11
  import { isFactory } from '@ember/-internals/owner';
12
12
  import Engine from '@ember/engine';
13
- const CEngine = Engine;
14
13
  class EngineInstance extends EmberObject.extend(RegistryProxyMixin, ContainerProxyMixin) {
15
14
  constructor() {
16
15
  super(...arguments);
@@ -113,12 +112,12 @@ class EngineInstance extends EmberObject.extend(RegistryProxyMixin, ContainerPro
113
112
  @return {EngineInstance,Error}
114
113
  */
115
114
  buildChildEngineInstance(name, options = {}) {
116
- let Engine = this.lookup(`engine:${name}`);
117
- if (!Engine) {
115
+ let ChildEngine = this.lookup(`engine:${name}`);
116
+ if (!ChildEngine) {
118
117
  throw new Error(`You attempted to mount the engine '${name}', but it is not registered with its parent.`);
119
118
  }
120
- assert('expected an Engine', Engine instanceof CEngine);
121
- let engineInstance = Engine.buildInstance(options);
119
+ assert('expected an Engine', ChildEngine instanceof Engine);
120
+ let engineInstance = ChildEngine.buildInstance(options);
122
121
  setEngineParent(engineInstance, this);
123
122
  return engineInstance;
124
123
  }
@@ -1 +1 @@
1
- export default "5.1.0-alpha.2";
1
+ export default "5.2.0-alpha.1";
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": "5.1.0-alpha.2"
6
+ "version": "5.2.0-alpha.1"
7
7
  },
8
8
  "files": {
9
9
  "node_modules/rsvp/lib/rsvp/promise/all.js": {
@@ -2190,7 +2190,7 @@
2190
2190
  "namespaces": {},
2191
2191
  "tag": "module",
2192
2192
  "file": "packages/@ember/engine/instance.ts",
2193
- "line": 38
2193
+ "line": 36
2194
2194
  },
2195
2195
  "@ember/enumerable": {
2196
2196
  "name": "@ember/enumerable",
@@ -3738,7 +3738,7 @@
3738
3738
  "module": "@ember/engine",
3739
3739
  "namespace": "",
3740
3740
  "file": "packages/@ember/engine/instance.ts",
3741
- "line": 38,
3741
+ "line": 36,
3742
3742
  "description": "The `EngineInstance` encapsulates all of the stateful aspects of a\nrunning `Engine`.",
3743
3743
  "access": "public",
3744
3744
  "tagname": "",
@@ -12671,7 +12671,7 @@
12671
12671
  },
12672
12672
  {
12673
12673
  "file": "packages/@ember/engine/instance.ts",
12674
- "line": 58,
12674
+ "line": 56,
12675
12675
  "access": "private",
12676
12676
  "tagname": "",
12677
12677
  "itemtype": "method",
@@ -12693,7 +12693,7 @@
12693
12693
  },
12694
12694
  {
12695
12695
  "file": "packages/@ember/engine/instance.ts",
12696
- "line": 70,
12696
+ "line": 68,
12697
12697
  "description": "The base `Engine` for which this is an instance.",
12698
12698
  "itemtype": "property",
12699
12699
  "name": "engine",
@@ -12705,7 +12705,7 @@
12705
12705
  },
12706
12706
  {
12707
12707
  "file": "packages/@ember/engine/instance.ts",
12708
- "line": 109,
12708
+ "line": 107,
12709
12709
  "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.",
12710
12710
  "access": "public",
12711
12711
  "tagname": "",
@@ -12727,7 +12727,7 @@
12727
12727
  },
12728
12728
  {
12729
12729
  "file": "packages/@ember/engine/instance.ts",
12730
- "line": 134,
12730
+ "line": 132,
12731
12731
  "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.",
12732
12732
  "access": "private",
12733
12733
  "tagname": "",
@@ -12736,7 +12736,7 @@
12736
12736
  },
12737
12737
  {
12738
12738
  "file": "packages/@ember/engine/instance.ts",
12739
- "line": 175,
12739
+ "line": 173,
12740
12740
  "description": "Unregister a factory.\n\nOverrides `RegistryProxy#unregister` in order to clear any cached instances\nof the unregistered factory.",
12741
12741
  "access": "public",
12742
12742
  "tagname": "",
@@ -12754,7 +12754,7 @@
12754
12754
  },
12755
12755
  {
12756
12756
  "file": "packages/@ember/engine/instance.ts",
12757
- "line": 192,
12757
+ "line": 190,
12758
12758
  "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).",
12759
12759
  "access": "private",
12760
12760
  "tagname": "",
@@ -12781,7 +12781,7 @@
12781
12781
  },
12782
12782
  {
12783
12783
  "file": "packages/@ember/engine/instance.ts",
12784
- "line": 222,
12784
+ "line": 220,
12785
12785
  "description": "Clone dependencies shared between an engine instance and its parent.",
12786
12786
  "access": "private",
12787
12787
  "tagname": "",
@@ -19577,7 +19577,7 @@
19577
19577
  },
19578
19578
  {
19579
19579
  "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.",
19580
- "line": " packages/@ember/engine/instance.ts:134"
19580
+ "line": " packages/@ember/engine/instance.ts:132"
19581
19581
  },
19582
19582
  {
19583
19583
  "message": "Missing item type\nUsing the `{{hash}}` helper, you can pass objects directly from the template\nas an argument to your components.\n\n```\nimport { hash } from '@ember/helper';\n\n<template>\n {{#each-in (hash givenName='Jen' familyName='Weber') as |key value|}}\n <p>{{key}}: {{value}}</p>\n {{/each-in}}\n</template>\n```\n\n**NOTE:** this example uses the experimental `<template>` feature, which is\nthe only place you need to import `hash` to use it (it is a built-in when\nwriting standalone `.hbs` files).",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "5.1.0-alpha.2",
3
+ "version": "5.2.0-alpha.1",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -62,7 +62,7 @@
62
62
  "@glimmer/component": "^1.1.2",
63
63
  "@glimmer/destroyable": "0.84.2",
64
64
  "@glimmer/env": "^0.1.7",
65
- "@glimmer/global-context": "0.84.2",
65
+ "@glimmer/global-context": "0.84.3",
66
66
  "@glimmer/interfaces": "0.84.2",
67
67
  "@glimmer/manager": "0.84.2",
68
68
  "@glimmer/node": "0.84.2",
@@ -82,7 +82,7 @@
82
82
  "broccoli-funnel": "^3.0.8",
83
83
  "broccoli-merge-trees": "^4.2.0",
84
84
  "chalk": "^4.0.0",
85
- "ember-auto-import": "^2.5.0",
85
+ "ember-auto-import": "^2.6.3",
86
86
  "ember-cli-babel": "^7.26.11",
87
87
  "ember-cli-get-component-path-option": "^1.0.0",
88
88
  "ember-cli-is-package-missing": "^1.0.0",
@@ -128,7 +128,7 @@
128
128
  "ember-cli-browserstack": "^2.0.1",
129
129
  "ember-cli-dependency-checker": "^3.3.1",
130
130
  "ember-cli-yuidoc": "^0.9.1",
131
- "eslint": "^8.29.0",
131
+ "eslint": "^8.39.0",
132
132
  "eslint-config-prettier": "^8.5.0",
133
133
  "eslint-import-resolver-node": "^0.3.7",
134
134
  "eslint-plugin-disable-features": "^0.1.3",
@@ -141,7 +141,7 @@
141
141
  "expect-type": "^0.15.0",
142
142
  "express": "^4.18.2",
143
143
  "finalhandler": "^1.1.2",
144
- "fs-extra": "^11.1.0",
144
+ "fs-extra": "^11.1.1",
145
145
  "git-repo-info": "^2.1.1",
146
146
  "github": "^0.2.3",
147
147
  "glob": "^8.0.3",
@@ -184,7 +184,7 @@
184
184
  "node": "16.20.0",
185
185
  "yarn": "1.22.19"
186
186
  },
187
- "_originalVersion": "5.1.0-alpha.2",
187
+ "_originalVersion": "5.2.0-alpha.1",
188
188
  "_versionPreviouslyCalculated": true,
189
189
  "publishConfig": {
190
190
  "tag": "alpha"