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.
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +26 -15
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +1 -1
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +15 -3
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/deprecations/index.js +9 -0
- package/dist/packages/@ember/-internals/glimmer/index.js +3 -0
- package/dist/packages/@ember/canary-features/index.js +1 -0
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +2 -2
- package/package.json +2 -2
- package/types/stable/@ember/-internals/deprecations/index.d.ts +6 -0
package/build-metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.9.0-alpha.
|
|
2
|
+
"version": "5.9.0-alpha.5",
|
|
3
3
|
"buildType": "tag",
|
|
4
|
-
"SHA": "
|
|
5
|
-
"assetPath": "/tag/shas/
|
|
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.
|
|
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
|
-
|
|
15535
|
-
|
|
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
|
-
|
|
15544
|
-
|
|
15545
|
-
|
|
15546
|
-
|
|
15547
|
-
|
|
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.
|
|
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";
|