ember-source 5.8.0-beta.1 → 5.8.0

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.8.0-beta.1",
2
+ "version": "5.8.0",
3
3
  "buildType": "tag",
4
- "SHA": "5c99a57b560bb8e7b8d79465aab6dd4719cddddc",
5
- "assetPath": "/tag/shas/5c99a57b560bb8e7b8d79465aab6dd4719cddddc.tgz"
4
+ "SHA": "329413853d3033641ee8c1b17729c6338b259438",
5
+ "assetPath": "/tag/shas/329413853d3033641ee8c1b17729c6338b259438.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.8.0-beta.1
9
+ * @version 5.8.0
10
10
  */
11
11
 
12
12
  /* eslint-disable no-var */
@@ -15507,8 +15507,24 @@ define("ember-template-compiler/lib/plugins/assert-against-attrs", ["exports", "
15507
15507
  },
15508
15508
  PathExpression(node) {
15509
15509
  if (isAttrs(node, stack[stack.length - 1])) {
15510
- let path = b.path(node.original.substring(6));
15511
- (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));
15510
+ (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)));
15511
+ } else if (isThisDotAttrs(node)) {
15512
+ // When removing this, ensure `{{this.attrs.foo}}` is left as-is, without triggering
15513
+ // any assertions/deprecations. It's perfectly legal to reference `{{this.attrs.foo}}`
15514
+ // in the template since it is a real property on the backing class – it will give you
15515
+ // a `MutableCell` wrapper object, but maybe that's what you want. And in any case,
15516
+ // there is no compelling to special case that property access.
15517
+ (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, {
15518
+ id: 'attrs-arg-access',
15519
+ url: 'https://deprecations.emberjs.com/v3.x/#toc_attrs-arg-access',
15520
+ until: '6.0.0',
15521
+ for: 'ember-source',
15522
+ since: {
15523
+ available: '3.26.0',
15524
+ enabled: '3.26.0'
15525
+ }
15526
+ }));
15527
+ return b.path("@" + node.original.slice(11), node.loc);
15512
15528
  }
15513
15529
  }
15514
15530
  }
@@ -15516,17 +15532,11 @@ define("ember-template-compiler/lib/plugins/assert-against-attrs", ["exports", "
15516
15532
  }
15517
15533
  function isAttrs(node, symbols) {
15518
15534
  let name = node.parts[0];
15519
- if (name && symbols.indexOf(name) !== -1) {
15520
- return false;
15521
- }
15522
- if (name === 'attrs') {
15523
- if (node.this === true) {
15524
- node.parts.shift();
15525
- node.original = node.original.slice(5);
15526
- }
15527
- return true;
15528
- }
15529
- return false;
15535
+ return node.head.type === 'VarHead' && name === 'attrs' && symbols.indexOf(name) === -1;
15536
+ }
15537
+ function isThisDotAttrs(node) {
15538
+ let name = node.parts[0];
15539
+ return node.head.type === 'ThisHead' && name === 'attrs';
15530
15540
  }
15531
15541
  });
15532
15542
  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) {
@@ -16577,7 +16587,7 @@ define("ember/version", ["exports"], function (_exports) {
16577
16587
  value: true
16578
16588
  });
16579
16589
  _exports.default = void 0;
16580
- var _default = _exports.default = "5.8.0-beta.1";
16590
+ var _default = _exports.default = "5.8.0";
16581
16591
  });
16582
16592
  define("simple-html-tokenizer", ["exports"], function (_exports) {
16583
16593
  "use strict";