ember-source 5.9.0-alpha.4 → 5.9.0-alpha.5

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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "5.9.0-alpha.4",
2
+ "version": "5.9.0-alpha.5",
3
3
  "buildType": "tag",
4
- "SHA": "ffd730bf165823c8fe9fe562ea3cde5d6a4ca76d",
5
- "assetPath": "/tag/shas/ffd730bf165823c8fe9fe562ea3cde5d6a4ca76d.tgz"
4
+ "SHA": "dba818ed3a848e6eb1e3af8ed36cd44f26d75050",
5
+ "assetPath": "/tag/shas/dba818ed3a848e6eb1e3af8ed36cd44f26d75050.tgz"
6
6
  }
@@ -6,7 +6,7 @@
6
6
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
7
7
  * @license Licensed under MIT license
8
8
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
9
- * @version 5.9.0-alpha.4
9
+ * @version 5.9.0-alpha.5
10
10
  */
11
11
 
12
12
  /* eslint-disable no-var */
@@ -1034,6 +1034,7 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
1034
1034
  // }
1035
1035
  // return value;
1036
1036
  // }
1037
+ //
1037
1038
  // export const FLAG_NAME = featureValue(FEATURES.FLAG_NAME);
1038
1039
  });
1039
1040
  define("@ember/debug/container-debug-adapter", ["exports", "@ember/-internals/string", "@ember/object", "@ember/utils", "@ember/-internals/owner", "@ember/application/namespace"], function (_exports, _string, _object, _utils, _owner, _namespace) {
@@ -15531,8 +15532,24 @@ define("ember-template-compiler/lib/plugins/assert-against-attrs", ["exports", "
15531
15532
  },
15532
15533
  PathExpression(node) {
15533
15534
  if (isAttrs(node, stack[stack.length - 1])) {
15534
- let path = b.path(node.original.substring(6));
15535
- (true && !(node.this !== false) && (0, _debug.assert)("Using {{attrs}} to reference named arguments is not supported. {{attrs." + path.original + "}} should be updated to {{@" + path.original + "}}. " + (0, _calculateLocationDisplay.default)(moduleName, node.loc), node.this !== false));
15535
+ (true && !(false) && (0, _debug.assert)("Using {{attrs}} to reference named arguments is not supported. {{" + node.original + "}} should be updated to {{@" + node.original.slice(6) + "}}. " + (0, _calculateLocationDisplay.default)(moduleName, node.loc)));
15536
+ } else if (isThisDotAttrs(node)) {
15537
+ // When removing this, ensure `{{this.attrs.foo}}` is left as-is, without triggering
15538
+ // any assertions/deprecations. It's perfectly legal to reference `{{this.attrs.foo}}`
15539
+ // in the template since it is a real property on the backing class – it will give you
15540
+ // a `MutableCell` wrapper object, but maybe that's what you want. And in any case,
15541
+ // there is no compelling to special case that property access.
15542
+ (true && !(false) && (0, _debug.deprecate)("Using {{this.attrs}} to reference named arguments has been deprecated. {{" + node.original + "}} should be updated to {{@" + node.original.slice(11) + "}}. " + (0, _calculateLocationDisplay.default)(moduleName, node.loc), false, {
15543
+ id: 'attrs-arg-access',
15544
+ url: 'https://deprecations.emberjs.com/v3.x/#toc_attrs-arg-access',
15545
+ until: '6.0.0',
15546
+ for: 'ember-source',
15547
+ since: {
15548
+ available: '3.26.0',
15549
+ enabled: '3.26.0'
15550
+ }
15551
+ }));
15552
+ return b.path("@" + node.original.slice(11), node.loc);
15536
15553
  }
15537
15554
  }
15538
15555
  }
@@ -15540,17 +15557,11 @@ define("ember-template-compiler/lib/plugins/assert-against-attrs", ["exports", "
15540
15557
  }
15541
15558
  function isAttrs(node, symbols) {
15542
15559
  let name = node.parts[0];
15543
- if (name && symbols.indexOf(name) !== -1) {
15544
- return false;
15545
- }
15546
- if (name === 'attrs') {
15547
- if (node.this === true) {
15548
- node.parts.shift();
15549
- node.original = node.original.slice(5);
15550
- }
15551
- return true;
15552
- }
15553
- return false;
15560
+ return node.head.type === 'VarHead' && name === 'attrs' && symbols.indexOf(name) === -1;
15561
+ }
15562
+ function isThisDotAttrs(node) {
15563
+ let name = node.parts[0];
15564
+ return node.head.type === 'ThisHead' && name === 'attrs';
15554
15565
  }
15555
15566
  });
15556
15567
  define("ember-template-compiler/lib/plugins/assert-against-named-outlets", ["exports", "@ember/debug", "ember-template-compiler/lib/system/calculate-location-display"], function (_exports, _debug, _calculateLocationDisplay) {
@@ -16601,7 +16612,7 @@ define("ember/version", ["exports"], function (_exports) {
16601
16612
  value: true
16602
16613
  });
16603
16614
  _exports.default = void 0;
16604
- var _default = _exports.default = "5.9.0-alpha.4";
16615
+ var _default = _exports.default = "5.9.0-alpha.5";
16605
16616
  });
16606
16617
  define("simple-html-tokenizer", ["exports"], function (_exports) {
16607
16618
  "use strict";