ember-source 4.4.0-alpha.5 → 4.4.0-beta.1
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 +10 -4
- 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} +0 -0
- package/blueprints/acceptance-test/qunit-rfc-232-files/tests/acceptance/{__name__-test.js → __name__-test.ts} +0 -0
- 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} +0 -0
- package/blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
- 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} +0 -0
- package/blueprints/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +0 -0
- 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} +0 -0
- package/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/{__name__-test.js → __name__-test.ts} +0 -0
- 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} +0 -0
- package/blueprints/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +0 -0
- 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} +0 -0
- package/blueprints/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +0 -0
- 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 +5 -11
- 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 +475 -783
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/container/index.js +1 -10
- package/dist/packages/@ember/-internals/glimmer/index.js +102 -217
- package/dist/packages/@ember/-internals/meta/lib/meta.js +1 -1
- package/dist/packages/@ember/-internals/metal/index.js +22 -21
- package/dist/packages/@ember/-internals/routing/lib/services/router.js +140 -145
- package/dist/packages/@ember/-internals/routing/lib/system/route-info.js +4 -0
- package/dist/packages/@ember/-internals/routing/lib/system/router.js +2 -0
- package/dist/packages/@ember/-internals/routing/lib/system/transition.js +4 -0
- package/dist/packages/@ember/-internals/runtime/lib/system/core_object.js +118 -302
- package/dist/packages/@ember/-internals/runtime/lib/system/object.js +8 -23
- package/dist/packages/@ember/-internals/views/lib/views/core_view.js +47 -29
- package/dist/packages/@ember/canary-features/index.js +2 -6
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +447 -809
- package/package.json +20 -17
- 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
- package/dist/packages/@ember/renderer/index.js +0 -21
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-
|
|
2
|
+
"version": "4.4.0-beta.1",
|
|
3
3
|
"buildType": "tag",
|
|
4
|
-
"SHA": "
|
|
5
|
-
"assetPath": "/tag/shas/
|
|
4
|
+
"SHA": "c51c6ca5749d5a2e114d0fce53d7026e24d4ecc2",
|
|
5
|
+
"assetPath": "/tag/shas/c51c6ca5749d5a2e114d0fce53d7026e24d4ecc2.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-
|
|
9
|
+
* @version 4.4.0-beta.1
|
|
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
|
/**
|
|
@@ -1306,10 +1306,8 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
|
|
|
1306
1306
|
@public
|
|
1307
1307
|
*/
|
|
1308
1308
|
var DEFAULT_FEATURES = {
|
|
1309
|
-
EMBER_LIBRARIES_ISREGISTERED:
|
|
1310
|
-
EMBER_IMPROVED_INSTRUMENTATION:
|
|
1311
|
-
EMBER_ROUTING_ROUTER_SERVICE_REFRESH: true,
|
|
1312
|
-
EMBER_CACHED: true,
|
|
1309
|
+
EMBER_LIBRARIES_ISREGISTERED: false,
|
|
1310
|
+
EMBER_IMPROVED_INSTRUMENTATION: false,
|
|
1313
1311
|
EMBER_UNIQUE_ID_HELPER: true
|
|
1314
1312
|
};
|
|
1315
1313
|
/**
|
|
@@ -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
|
});
|
|
@@ -18738,7 +18732,7 @@ define("ember/version", ["exports"], function (_exports) {
|
|
|
18738
18732
|
value: true
|
|
18739
18733
|
});
|
|
18740
18734
|
_exports.default = void 0;
|
|
18741
|
-
var _default = "4.4.0-
|
|
18735
|
+
var _default = "4.4.0-beta.1";
|
|
18742
18736
|
_exports.default = _default;
|
|
18743
18737
|
});
|
|
18744
18738
|
define("simple-html-tokenizer", ["exports"], function (_exports) {
|