ember-source 4.4.0-alpha.3 → 4.4.0-alpha.6
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/CHANGELOG.md +5 -1
- package/blueprints/-addon-import.js +9 -0
- package/blueprints/-maybe-polyfill-typescript-blueprints.js +17 -0
- package/blueprints/acceptance-test/index.js +8 -0
- package/blueprints/acceptance-test/mocha-rfc-232-files/tests/acceptance/{__name__-test.js → __name__-test.ts} +1 -1
- package/blueprints/acceptance-test/qunit-rfc-232-files/tests/acceptance/{__name__-test.js → __name__-test.ts} +1 -1
- package/blueprints/component/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/component/index.js +6 -1
- package/blueprints/component-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/component-addon/index.js +9 -0
- package/blueprints/component-class/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/component-class/index.js +5 -0
- package/blueprints/component-class-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/component-class-addon/index.js +9 -0
- package/blueprints/component-test/index.js +8 -0
- package/blueprints/component-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +2 -2
- package/blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +3 -3
- package/blueprints/controller/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/controller/index.js +10 -0
- package/blueprints/controller-test/index.js +10 -0
- package/blueprints/controller-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
- package/blueprints/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
- package/blueprints/helper/files/__root__/__collection__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/helper/index.js +9 -0
- package/blueprints/helper-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/helper-test/index.js +9 -0
- package/blueprints/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/{__name__-test.js → __name__-test.ts} +1 -1
- package/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/{__name__-test.js → __name__-test.ts} +1 -1
- package/blueprints/initializer/files/__root__/initializers/__name__.ts +6 -0
- package/blueprints/initializer/index.js +9 -0
- package/blueprints/initializer-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/initializer-test/index.js +8 -0
- package/blueprints/initializer-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__name__-test.js → __name__-test.ts} +3 -1
- package/blueprints/initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.ts +37 -0
- package/blueprints/instance-initializer/files/__root__/instance-initializers/__name__.ts +6 -0
- package/blueprints/instance-initializer/index.js +9 -0
- package/blueprints/instance-initializer-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/instance-initializer-test/index.js +8 -0
- package/blueprints/instance-initializer-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__name__-test.js → __name__-test.ts} +5 -1
- package/blueprints/instance-initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__name__-test.js → __name__-test.ts} +6 -1
- package/blueprints/route/files/__root__/__path__/{__name__.js → __name__.ts} +2 -4
- package/blueprints/route/index.js +9 -0
- package/blueprints/route-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/route-addon/index.js +9 -0
- package/blueprints/route-test/index.js +9 -0
- package/blueprints/route-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
- package/blueprints/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
- package/blueprints/service/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
- package/blueprints/service/index.js +10 -0
- package/blueprints/service-test/index.js +8 -0
- package/blueprints/service-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
- package/blueprints/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
- package/blueprints/util/files/__root__/utils/{__name__.js → __name__.ts} +0 -0
- package/blueprints/util/index.js +10 -0
- package/blueprints/util-test/index.js +8 -0
- package/blueprints/util-test/mocha-rfc-232-files/__root__/__testType__/{__name__-test.js → __name__-test.ts} +0 -0
- package/blueprints/util-test/qunit-rfc-232-files/__root__/__testType__/{__name__-test.js → __name__-test.ts} +0 -0
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +15 -13
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +8 -4
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +478 -1149
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/container/index.js +1 -25
- package/dist/packages/@ember/-internals/extension-support/lib/container_debug_adapter.js +10 -19
- package/dist/packages/@ember/-internals/extension-support/lib/data_adapter.js +113 -112
- package/dist/packages/@ember/-internals/glimmer/index.js +117 -749
- package/dist/packages/@ember/-internals/metal/index.js +17 -22
- package/dist/packages/@ember/-internals/routing/lib/services/router.js +140 -145
- package/dist/packages/@ember/-internals/routing/lib/system/router.js +3 -1
- package/dist/packages/@ember/-internals/runtime/lib/ext/rsvp.js +8 -4
- package/dist/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +1 -1
- package/dist/packages/@ember/-internals/runtime/lib/mixins/array.js +1 -1
- package/dist/packages/@ember/-internals/runtime/lib/mixins/promise_proxy.js +16 -16
- package/dist/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +8 -8
- package/dist/packages/@ember/-internals/views/lib/system/utils.js +4 -2
- package/dist/packages/@ember/-internals/views/lib/views/core_view.js +5 -22
- package/dist/packages/@ember/canary-features/index.js +1 -5
- package/dist/packages/@ember/debug/index.js +1 -1
- package/dist/packages/@ember/debug/lib/deprecate.js +6 -2
- package/dist/packages/@ember/renderer/index.js +21 -0
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +447 -260
- package/package.json +15 -12
- package/blueprints/initializer/files/__root__/initializers/__name__.js +0 -5
- package/blueprints/initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +0 -34
- package/blueprints/instance-initializer/files/__root__/instance-initializers/__name__.js +0 -5
|
@@ -2,11 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const stringUtil = require('ember-cli-string-utils');
|
|
5
|
+
|
|
5
6
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
7
|
+
const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
|
|
6
8
|
|
|
7
9
|
module.exports = useTestFrameworkDetector({
|
|
8
10
|
description: 'Generates a route unit test.',
|
|
9
11
|
|
|
12
|
+
shouldTransformTypeScript: true,
|
|
13
|
+
|
|
14
|
+
init() {
|
|
15
|
+
this._super && this._super.init.apply(this, arguments);
|
|
16
|
+
maybePolyfillTypeScriptBlueprints(this);
|
|
17
|
+
},
|
|
18
|
+
|
|
10
19
|
availableOptions: [
|
|
11
20
|
{
|
|
12
21
|
name: 'reset-namespace',
|
|
File without changes
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
|
|
4
|
+
|
|
3
5
|
module.exports = {
|
|
4
6
|
description: 'Generates a service.',
|
|
7
|
+
|
|
8
|
+
shouldTransformTypeScript: true,
|
|
9
|
+
|
|
10
|
+
init() {
|
|
11
|
+
this._super && this._super.init.apply(this, arguments);
|
|
12
|
+
maybePolyfillTypeScriptBlueprints(this);
|
|
13
|
+
},
|
|
14
|
+
|
|
5
15
|
normalizeEntityName: function (entityName) {
|
|
6
16
|
return entityName.replace(/\.js$/, ''); //Prevent generation of ".js.js" files
|
|
7
17
|
},
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
|
|
3
4
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
4
5
|
|
|
5
6
|
module.exports = useTestFrameworkDetector({
|
|
6
7
|
description: 'Generates a service unit test.',
|
|
7
8
|
|
|
9
|
+
shouldTransformTypeScript: true,
|
|
10
|
+
|
|
11
|
+
init() {
|
|
12
|
+
this._super && this._super.init.apply(this, arguments);
|
|
13
|
+
maybePolyfillTypeScriptBlueprints(this);
|
|
14
|
+
},
|
|
15
|
+
|
|
8
16
|
fileMapTokens() {
|
|
9
17
|
return {
|
|
10
18
|
__root__() {
|
|
File without changes
|
package/blueprints/util/index.js
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
|
|
4
|
+
|
|
3
5
|
module.exports = {
|
|
4
6
|
description: 'Generates a simple utility module/function.',
|
|
7
|
+
|
|
8
|
+
shouldTransformTypeScript: true,
|
|
9
|
+
|
|
10
|
+
init() {
|
|
11
|
+
this._super && this._super.init.apply(this, arguments);
|
|
12
|
+
maybePolyfillTypeScriptBlueprints(this);
|
|
13
|
+
},
|
|
14
|
+
|
|
5
15
|
normalizeEntityName: function (entityName) {
|
|
6
16
|
return entityName.replace(/\.js$/, ''); //Prevent generation of ".js.js" files
|
|
7
17
|
},
|
|
@@ -3,11 +3,19 @@
|
|
|
3
3
|
const stringUtils = require('ember-cli-string-utils');
|
|
4
4
|
const path = require('path');
|
|
5
5
|
|
|
6
|
+
const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
|
|
6
7
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
7
8
|
|
|
8
9
|
module.exports = useTestFrameworkDetector({
|
|
9
10
|
description: 'Generates a util unit test.',
|
|
10
11
|
|
|
12
|
+
shouldTransformTypeScript: true,
|
|
13
|
+
|
|
14
|
+
init() {
|
|
15
|
+
this._super && this._super.init.apply(this, arguments);
|
|
16
|
+
maybePolyfillTypeScriptBlueprints(this);
|
|
17
|
+
},
|
|
18
|
+
|
|
11
19
|
fileMapTokens() {
|
|
12
20
|
return {
|
|
13
21
|
__root__() {
|
|
File without changes
|
|
File without changes
|
package/build-metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.4.0-alpha.
|
|
2
|
+
"version": "4.4.0-alpha.6",
|
|
3
3
|
"buildType": "tag",
|
|
4
|
-
"SHA": "
|
|
5
|
-
"assetPath": "/tag/shas/
|
|
4
|
+
"SHA": "4a7895060ff09223bce8aa0ac0afd3815649c2fb",
|
|
5
|
+
"assetPath": "/tag/shas/4a7895060ff09223bce8aa0ac0afd3815649c2fb.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 4.4.0-alpha.
|
|
9
|
+
* @version 4.4.0-alpha.6
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/* eslint-disable no-var */
|
|
@@ -1292,7 +1292,7 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
|
|
|
1292
1292
|
Object.defineProperty(_exports, "__esModule", {
|
|
1293
1293
|
value: true
|
|
1294
1294
|
});
|
|
1295
|
-
_exports.FEATURES = _exports.EMBER_UNIQUE_ID_HELPER = _exports.
|
|
1295
|
+
_exports.FEATURES = _exports.EMBER_UNIQUE_ID_HELPER = _exports.EMBER_LIBRARIES_ISREGISTERED = _exports.EMBER_IMPROVED_INSTRUMENTATION = _exports.DEFAULT_FEATURES = void 0;
|
|
1296
1296
|
_exports.isEnabled = isEnabled;
|
|
1297
1297
|
|
|
1298
1298
|
/**
|
|
@@ -1308,9 +1308,7 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
|
|
|
1308
1308
|
var DEFAULT_FEATURES = {
|
|
1309
1309
|
EMBER_LIBRARIES_ISREGISTERED: null,
|
|
1310
1310
|
EMBER_IMPROVED_INSTRUMENTATION: null,
|
|
1311
|
-
|
|
1312
|
-
EMBER_CACHED: true,
|
|
1313
|
-
EMBER_UNIQUE_ID_HELPER: null
|
|
1311
|
+
EMBER_UNIQUE_ID_HELPER: true
|
|
1314
1312
|
};
|
|
1315
1313
|
/**
|
|
1316
1314
|
The hash of enabled Canary features. Add to this, any canary features
|
|
@@ -1366,10 +1364,6 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
|
|
|
1366
1364
|
_exports.EMBER_LIBRARIES_ISREGISTERED = EMBER_LIBRARIES_ISREGISTERED;
|
|
1367
1365
|
var EMBER_IMPROVED_INSTRUMENTATION = featureValue(FEATURES.EMBER_IMPROVED_INSTRUMENTATION);
|
|
1368
1366
|
_exports.EMBER_IMPROVED_INSTRUMENTATION = EMBER_IMPROVED_INSTRUMENTATION;
|
|
1369
|
-
var EMBER_ROUTING_ROUTER_SERVICE_REFRESH = featureValue(FEATURES.EMBER_ROUTING_ROUTER_SERVICE_REFRESH);
|
|
1370
|
-
_exports.EMBER_ROUTING_ROUTER_SERVICE_REFRESH = EMBER_ROUTING_ROUTER_SERVICE_REFRESH;
|
|
1371
|
-
var EMBER_CACHED = featureValue(FEATURES.EMBER_CACHED);
|
|
1372
|
-
_exports.EMBER_CACHED = EMBER_CACHED;
|
|
1373
1367
|
var EMBER_UNIQUE_ID_HELPER = featureValue(FEATURES.EMBER_UNIQUE_ID_HELPER);
|
|
1374
1368
|
_exports.EMBER_UNIQUE_ID_HELPER = EMBER_UNIQUE_ID_HELPER;
|
|
1375
1369
|
});
|
|
@@ -1726,7 +1720,7 @@ define("@ember/debug/index", ["exports", "@ember/-internals/browser-environment"
|
|
|
1726
1720
|
&& !(0, _testing.isTesting)()) {
|
|
1727
1721
|
if (typeof window !== 'undefined' && (_browserEnvironment.isFirefox || _browserEnvironment.isChrome) && window.addEventListener) {
|
|
1728
1722
|
window.addEventListener('load', () => {
|
|
1729
|
-
if (document.documentElement && document.documentElement.dataset && !document.documentElement.dataset
|
|
1723
|
+
if (document.documentElement && document.documentElement.dataset && !document.documentElement.dataset['emberExtension']) {
|
|
1730
1724
|
var downloadURL;
|
|
1731
1725
|
|
|
1732
1726
|
if (_browserEnvironment.isChrome) {
|
|
@@ -1848,11 +1842,15 @@ define("@ember/debug/lib/deprecate", ["exports", "@ember/-internals/environment"
|
|
|
1848
1842
|
var formatMessage = function formatMessage(_message, options) {
|
|
1849
1843
|
var message = _message;
|
|
1850
1844
|
|
|
1851
|
-
if (options
|
|
1845
|
+
if (options === null || options === void 0 ? void 0 : options.id) {
|
|
1852
1846
|
message = message + (" [deprecation id: " + options.id + "]");
|
|
1853
1847
|
}
|
|
1854
1848
|
|
|
1855
|
-
if (options
|
|
1849
|
+
if (options === null || options === void 0 ? void 0 : options.until) {
|
|
1850
|
+
message = message + (" This will be removed in Ember " + options.until + ".");
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
if (options === null || options === void 0 ? void 0 : options.url) {
|
|
1856
1854
|
message += " See " + options.url + " for more details.";
|
|
1857
1855
|
}
|
|
1858
1856
|
|
|
@@ -8487,6 +8485,10 @@ define("@glimmer/syntax", ["exports", "@glimmer/util", "simple-html-tokenizer",
|
|
|
8487
8485
|
}
|
|
8488
8486
|
|
|
8489
8487
|
function buildElement(tag, options) {
|
|
8488
|
+
if (options === void 0) {
|
|
8489
|
+
options = {};
|
|
8490
|
+
}
|
|
8491
|
+
|
|
8490
8492
|
var {
|
|
8491
8493
|
attrs,
|
|
8492
8494
|
blockParams,
|
|
@@ -18730,7 +18732,7 @@ define("ember/version", ["exports"], function (_exports) {
|
|
|
18730
18732
|
value: true
|
|
18731
18733
|
});
|
|
18732
18734
|
_exports.default = void 0;
|
|
18733
|
-
var _default = "4.4.0-alpha.
|
|
18735
|
+
var _default = "4.4.0-alpha.6";
|
|
18734
18736
|
_exports.default = _default;
|
|
18735
18737
|
});
|
|
18736
18738
|
define("simple-html-tokenizer", ["exports"], function (_exports) {
|