ember-source 5.9.0-alpha.3 → 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.3",
2
+ "version": "5.9.0-alpha.5",
3
3
  "buildType": "tag",
4
- "SHA": "102cd776963592685c36050b1f32650b4445a65f",
5
- "assetPath": "/tag/shas/102cd776963592685c36050b1f32650b4445a65f.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.3
9
+ * @version 5.9.0-alpha.5
10
10
  */
11
11
 
12
12
  /* eslint-disable no-var */
@@ -270,6 +270,28 @@ define("@ember/-internals/environment/index", ["exports"], function (_exports) {
270
270
  @private
271
271
  */
272
272
  _DEBUG_RENDER_TREE: true /* DEBUG */,
273
+ /**
274
+ Whether to force all deprecations to be enabled. This is used internally by
275
+ Ember to enable deprecations in tests. It is not intended to be set in
276
+ projects.
277
+ @property _ALL_DEPRECATIONS_ENABLED
278
+ @for EmberENV
279
+ @type Boolean
280
+ @default false
281
+ @private
282
+ */
283
+ _ALL_DEPRECATIONS_ENABLED: false,
284
+ /**
285
+ Override the version of ember-source used to determine when deprecations "break".
286
+ This is used internally by Ember to test with deprecated features "removed".
287
+ This is never intended to be set by projects.
288
+ @property _OVERRIDE_DEPRECATION_VERSION
289
+ @for EmberENV
290
+ @type string | null
291
+ @default null
292
+ @private
293
+ */
294
+ _OVERRIDE_DEPRECATION_VERSION: null,
273
295
  /**
274
296
  Whether the app defaults to using async observers.
275
297
  This is not intended to be set directly, as the implementation may change in
@@ -317,6 +339,8 @@ define("@ember/-internals/environment/index", ["exports"], function (_exports) {
317
339
  ENV[flag] = EmberENV[flag] !== false;
318
340
  } else if (defaultValue === false) {
319
341
  ENV[flag] = EmberENV[flag] === true;
342
+ } else {
343
+ ENV[flag] = EmberENV[flag];
320
344
  }
321
345
  }
322
346
  let {
@@ -1010,6 +1034,7 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
1010
1034
  // }
1011
1035
  // return value;
1012
1036
  // }
1037
+ //
1013
1038
  // export const FLAG_NAME = featureValue(FEATURES.FLAG_NAME);
1014
1039
  });
1015
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) {
@@ -15507,8 +15532,24 @@ define("ember-template-compiler/lib/plugins/assert-against-attrs", ["exports", "
15507
15532
  },
15508
15533
  PathExpression(node) {
15509
15534
  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));
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);
15512
15553
  }
15513
15554
  }
15514
15555
  }
@@ -15516,17 +15557,11 @@ define("ember-template-compiler/lib/plugins/assert-against-attrs", ["exports", "
15516
15557
  }
15517
15558
  function isAttrs(node, symbols) {
15518
15559
  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;
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';
15530
15565
  }
15531
15566
  });
15532
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) {
@@ -16577,7 +16612,7 @@ define("ember/version", ["exports"], function (_exports) {
16577
16612
  value: true
16578
16613
  });
16579
16614
  _exports.default = void 0;
16580
- var _default = _exports.default = "5.9.0-alpha.3";
16615
+ var _default = _exports.default = "5.9.0-alpha.5";
16581
16616
  });
16582
16617
  define("simple-html-tokenizer", ["exports"], function (_exports) {
16583
16618
  "use strict";