ember-source 3.28.7 → 3.28.8

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 3.28.7
8
+ * @version 3.28.8
9
9
  */
@@ -38,12 +38,7 @@ if (DEBUG) {
38
38
  }
39
39
  }
40
40
 
41
- class DeprecatedStoreInjection {
42
- constructor(store) {
43
- this.store = store;
44
- }
45
-
46
- }
41
+ const deprecatedStoreInjections = DEBUG && window.WeakSet ? new window.WeakSet() : undefined;
47
42
  /**
48
43
  A container used to instantiate and cache objects.
49
44
 
@@ -404,8 +399,8 @@ function injectionsFor(container, fullName) {
404
399
  let injections = registry.getInjections(fullName);
405
400
  let result = buildInjections(container, typeInjections, injections);
406
401
 
407
- if (DEBUG && type === 'route' && result.injections.store) {
408
- result.injections.store = new DeprecatedStoreInjection(result.injections.store);
402
+ if (DEBUG && deprecatedStoreInjections && type === 'route' && result.injections.store) {
403
+ deprecatedStoreInjections.add(result.injections.store);
409
404
  }
410
405
 
411
406
  return result;
@@ -1128,4 +1123,4 @@ The public API, specified on the application namespace should be considered the
1128
1123
  @private
1129
1124
  */
1130
1125
 
1131
- export { Registry, privatize, Container, getFactoryFor, setFactoryFor, INIT_FACTORY, DeprecatedStoreInjection };
1126
+ export { Registry, privatize, Container, getFactoryFor, setFactoryFor, INIT_FACTORY, deprecatedStoreInjections };
@@ -1,4 +1,4 @@
1
- import { DeprecatedStoreInjection, privatize as P } from '@ember/-internals/container';
1
+ import { deprecatedStoreInjections, privatize as P } from '@ember/-internals/container';
2
2
  import { addObserver, computed, defineProperty, descriptorForProperty, flushAsyncObservers, get, getProperties, isEmpty, set, setProperties } from '@ember/-internals/metal';
3
3
  import { getOwner } from '@ember/-internals/owner';
4
4
  import { A as emberA, ActionHandler, Evented, Object as EmberObject, typeOf } from '@ember/-internals/runtime';
@@ -2016,7 +2016,7 @@ Route.reopen(ActionHandler, Evented, {
2016
2016
  },
2017
2017
 
2018
2018
  set(key, value) {
2019
- if (DEBUG && value instanceof DeprecatedStoreInjection) {
2019
+ if (DEBUG && (deprecatedStoreInjections === null || deprecatedStoreInjections === void 0 ? void 0 : deprecatedStoreInjections.has(value))) {
2020
2020
  Object.defineProperty(this, key, {
2021
2021
  configurable: true,
2022
2022
  enumerable: false,
@@ -2031,7 +2031,7 @@ Route.reopen(ActionHandler, Evented, {
2031
2031
  enabled: '3.28.7'
2032
2032
  }
2033
2033
  });
2034
- return value.store;
2034
+ return value;
2035
2035
  }
2036
2036
 
2037
2037
  });
@@ -1 +1 @@
1
- export default "3.28.7";
1
+ export default "3.28.8";
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": "3.28.7"
6
+ "version": "3.28.8"
7
7
  },
8
8
  "files": {
9
9
  "node_modules/rsvp/lib/rsvp/promise/all.js": {
@@ -2458,7 +2458,7 @@
2458
2458
  "module": "ember",
2459
2459
  "namespace": "Ember",
2460
2460
  "file": "packages/@ember/-internals/container/lib/container.ts",
2461
- "line": 66,
2461
+ "line": 62,
2462
2462
  "description": "A container used to instantiate and cache objects.\n\nEvery `Container` must be associated with a `Registry`, which is referenced\nto determine the factory and options that should be used to instantiate\nobjects.\n\nThe public API for `Container` is still in flux and should not be considered\nstable.",
2463
2463
  "access": "private",
2464
2464
  "tagname": ""
@@ -4839,7 +4839,7 @@
4839
4839
  },
4840
4840
  {
4841
4841
  "file": "packages/@ember/-internals/container/lib/container.ts",
4842
- "line": 106,
4842
+ "line": 102,
4843
4843
  "access": "private",
4844
4844
  "tagname": "",
4845
4845
  "itemtype": "property",
@@ -4852,7 +4852,7 @@
4852
4852
  },
4853
4853
  {
4854
4854
  "file": "packages/@ember/-internals/container/lib/container.ts",
4855
- "line": 113,
4855
+ "line": 109,
4856
4856
  "access": "private",
4857
4857
  "tagname": "",
4858
4858
  "itemtype": "property",
@@ -4864,7 +4864,7 @@
4864
4864
  },
4865
4865
  {
4866
4866
  "file": "packages/@ember/-internals/container/lib/container.ts",
4867
- "line": 119,
4867
+ "line": 115,
4868
4868
  "access": "private",
4869
4869
  "tagname": "",
4870
4870
  "itemtype": "property",
@@ -4876,7 +4876,7 @@
4876
4876
  },
4877
4877
  {
4878
4878
  "file": "packages/@ember/-internals/container/lib/container.ts",
4879
- "line": 125,
4879
+ "line": 121,
4880
4880
  "description": "Given a fullName return a corresponding instance.\n The default behavior is for lookup to return a singleton instance.\nThe singleton is scoped to the container, allowing multiple containers\nto all have their own locally scoped singletons.\n ```javascript\nlet registry = new Registry();\nlet container = registry.container();\n registry.register('api:twitter', Twitter);\n let twitter = container.lookup('api:twitter');\n twitter instanceof Twitter; // => true\n // by default the container will return singletons\nlet twitter2 = container.lookup('api:twitter');\ntwitter2 instanceof Twitter; // => true\n twitter === twitter2; //=> true\n```\n If singletons are not wanted, an optional flag can be provided at lookup.\n ```javascript\nlet registry = new Registry();\nlet container = registry.container();\n registry.register('api:twitter', Twitter);\n let twitter = container.lookup('api:twitter', { singleton: false });\nlet twitter2 = container.lookup('api:twitter', { singleton: false });\n twitter === twitter2; //=> false\n```",
4881
4881
  "access": "private",
4882
4882
  "tagname": "",
@@ -4913,7 +4913,7 @@
4913
4913
  },
4914
4914
  {
4915
4915
  "file": "packages/@ember/-internals/container/lib/container.ts",
4916
- "line": 165,
4916
+ "line": 161,
4917
4917
  "description": "A depth first traversal, destroying the container, its descendant containers and all\ntheir managed objects.",
4918
4918
  "access": "private",
4919
4919
  "tagname": "",
@@ -4925,7 +4925,7 @@
4925
4925
  },
4926
4926
  {
4927
4927
  "file": "packages/@ember/-internals/container/lib/container.ts",
4928
- "line": 182,
4928
+ "line": 178,
4929
4929
  "description": "Clear either the entire cache or just the cache for a particular key.",
4930
4930
  "access": "private",
4931
4931
  "tagname": "",
@@ -4944,7 +4944,7 @@
4944
4944
  },
4945
4945
  {
4946
4946
  "file": "packages/@ember/-internals/container/lib/container.ts",
4947
- "line": 199,
4947
+ "line": 195,
4948
4948
  "description": "Returns an object that can be used to provide an owner to a\nmanually created instance.",
4949
4949
  "access": "private",
4950
4950
  "tagname": "",
@@ -4960,7 +4960,7 @@
4960
4960
  },
4961
4961
  {
4962
4962
  "file": "packages/@ember/-internals/container/lib/container.ts",
4963
- "line": 212,
4963
+ "line": 208,
4964
4964
  "description": "Given a fullName, return the corresponding factory. The consumer of the factory\nis responsible for the destruction of any factory instances, as there is no\nway for the container to ensure instances are destroyed when it itself is\ndestroyed.",
4965
4965
  "access": "public",
4966
4966
  "tagname": "",
@@ -20119,7 +20119,7 @@
20119
20119
  "warnings": [
20120
20120
  {
20121
20121
  "message": "replacing incorrect tag: returns with return",
20122
- "line": " packages/@ember/-internals/container/lib/container.ts:199"
20122
+ "line": " packages/@ember/-internals/container/lib/container.ts:195"
20123
20123
  },
20124
20124
  {
20125
20125
  "message": "unknown tag: decorator",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "3.28.7",
3
+ "version": "3.28.8",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -155,7 +155,7 @@
155
155
  "ember-addon": {
156
156
  "after": "ember-cli-legacy-blueprints"
157
157
  },
158
- "_originalVersion": "3.28.7",
158
+ "_originalVersion": "3.28.8",
159
159
  "_versionPreviouslyCalculated": true,
160
160
  "publishConfig": {
161
161
  "tag": "old"