ember-source 4.4.0-alpha.4 → 4.4.0-alpha.7

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.
Files changed (85) hide show
  1. package/CHANGELOG.md +3 -5
  2. package/blueprints/-addon-import.js +9 -0
  3. package/blueprints/-maybe-polyfill-typescript-blueprints.js +17 -0
  4. package/blueprints/acceptance-test/index.js +8 -0
  5. package/blueprints/acceptance-test/mocha-rfc-232-files/tests/acceptance/{__name__-test.js → __name__-test.ts} +0 -0
  6. package/blueprints/acceptance-test/qunit-rfc-232-files/tests/acceptance/{__name__-test.js → __name__-test.ts} +0 -0
  7. package/blueprints/component/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  8. package/blueprints/component/index.js +6 -1
  9. package/blueprints/component-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  10. package/blueprints/component-addon/index.js +9 -0
  11. package/blueprints/component-class/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  12. package/blueprints/component-class/index.js +5 -0
  13. package/blueprints/component-class-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  14. package/blueprints/component-class-addon/index.js +9 -0
  15. package/blueprints/component-test/index.js +8 -0
  16. package/blueprints/component-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +0 -0
  17. package/blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
  18. package/blueprints/controller/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  19. package/blueprints/controller/index.js +10 -0
  20. package/blueprints/controller-test/index.js +10 -0
  21. package/blueprints/controller-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +0 -0
  22. package/blueprints/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +0 -0
  23. package/blueprints/helper/files/__root__/__collection__/{__name__.js → __name__.ts} +0 -0
  24. package/blueprints/helper/index.js +9 -0
  25. package/blueprints/helper-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  26. package/blueprints/helper-test/index.js +9 -0
  27. package/blueprints/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/{__name__-test.js → __name__-test.ts} +0 -0
  28. package/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/{__name__-test.js → __name__-test.ts} +0 -0
  29. package/blueprints/initializer/files/__root__/initializers/__name__.ts +6 -0
  30. package/blueprints/initializer/index.js +9 -0
  31. package/blueprints/initializer-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  32. package/blueprints/initializer-test/index.js +8 -0
  33. package/blueprints/initializer-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__name__-test.js → __name__-test.ts} +3 -1
  34. package/blueprints/initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.ts +37 -0
  35. package/blueprints/instance-initializer/files/__root__/instance-initializers/__name__.ts +6 -0
  36. package/blueprints/instance-initializer/index.js +9 -0
  37. package/blueprints/instance-initializer-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  38. package/blueprints/instance-initializer-test/index.js +8 -0
  39. package/blueprints/instance-initializer-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__name__-test.js → __name__-test.ts} +5 -1
  40. package/blueprints/instance-initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__name__-test.js → __name__-test.ts} +6 -1
  41. package/blueprints/route/files/__root__/__path__/{__name__.js → __name__.ts} +2 -4
  42. package/blueprints/route/index.js +9 -0
  43. package/blueprints/route-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  44. package/blueprints/route-addon/index.js +9 -0
  45. package/blueprints/route-test/index.js +9 -0
  46. package/blueprints/route-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +0 -0
  47. package/blueprints/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +0 -0
  48. package/blueprints/service/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  49. package/blueprints/service/index.js +10 -0
  50. package/blueprints/service-test/index.js +8 -0
  51. package/blueprints/service-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +0 -0
  52. package/blueprints/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +0 -0
  53. package/blueprints/util/files/__root__/utils/{__name__.js → __name__.ts} +0 -0
  54. package/blueprints/util/index.js +10 -0
  55. package/blueprints/util-test/index.js +8 -0
  56. package/blueprints/util-test/mocha-rfc-232-files/__root__/__testType__/{__name__-test.js → __name__-test.ts} +0 -0
  57. package/blueprints/util-test/qunit-rfc-232-files/__root__/__testType__/{__name__-test.js → __name__-test.ts} +0 -0
  58. package/build-metadata.json +3 -3
  59. package/dist/ember-template-compiler.js +10 -12
  60. package/dist/ember-template-compiler.map +1 -1
  61. package/dist/ember-testing.js +7 -3
  62. package/dist/ember-testing.map +1 -1
  63. package/dist/ember.debug.js +484 -785
  64. package/dist/ember.debug.map +1 -1
  65. package/dist/header/license.js +1 -1
  66. package/dist/packages/@ember/-internals/container/index.js +1 -10
  67. package/dist/packages/@ember/-internals/glimmer/index.js +107 -218
  68. package/dist/packages/@ember/-internals/meta/lib/meta.js +1 -1
  69. package/dist/packages/@ember/-internals/metal/index.js +22 -21
  70. package/dist/packages/@ember/-internals/routing/lib/services/router.js +140 -145
  71. package/dist/packages/@ember/-internals/routing/lib/system/route-info.js +4 -0
  72. package/dist/packages/@ember/-internals/routing/lib/system/router.js +2 -0
  73. package/dist/packages/@ember/-internals/routing/lib/system/transition.js +4 -0
  74. package/dist/packages/@ember/-internals/runtime/lib/system/core_object.js +118 -302
  75. package/dist/packages/@ember/-internals/runtime/lib/system/object.js +8 -23
  76. package/dist/packages/@ember/-internals/views/lib/views/core_view.js +47 -29
  77. package/dist/packages/@ember/canary-features/index.js +1 -5
  78. package/dist/packages/@ember/debug/lib/deprecate.js +6 -2
  79. package/dist/packages/ember/version.js +1 -1
  80. package/docs/data.json +448 -810
  81. package/package.json +20 -17
  82. package/blueprints/initializer/files/__root__/initializers/__name__.js +0 -5
  83. package/blueprints/initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +0 -34
  84. package/blueprints/instance-initializer/files/__root__/instance-initializers/__name__.js +0 -5
  85. package/dist/packages/@ember/renderer/index.js +0 -21
@@ -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__() {
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "4.4.0-alpha.4",
2
+ "version": "4.4.0-alpha.7",
3
3
  "buildType": "tag",
4
- "SHA": "b1dee49c720b6e353fba9d910232e0e432ba6177",
5
- "assetPath": "/tag/shas/b1dee49c720b6e353fba9d910232e0e432ba6177.tgz"
4
+ "SHA": "0106a67b4647963a2ef9b43e6ef53fa4f3dc739f",
5
+ "assetPath": "/tag/shas/0106a67b4647963a2ef9b43e6ef53fa4f3dc739f.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.4
9
+ * @version 4.4.0-alpha.7
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.EMBER_ROUTING_ROUTER_SERVICE_REFRESH = _exports.EMBER_LIBRARIES_ISREGISTERED = _exports.EMBER_IMPROVED_INSTRUMENTATION = _exports.EMBER_CACHED = _exports.DEFAULT_FEATURES = void 0;
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
- EMBER_ROUTING_ROUTER_SERVICE_REFRESH: true,
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
  });
@@ -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 && options.id) {
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 && options.url) {
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
 
@@ -18734,7 +18732,7 @@ define("ember/version", ["exports"], function (_exports) {
18734
18732
  value: true
18735
18733
  });
18736
18734
  _exports.default = void 0;
18737
- var _default = "4.4.0-alpha.4";
18735
+ var _default = "4.4.0-alpha.7";
18738
18736
  _exports.default = _default;
18739
18737
  });
18740
18738
  define("simple-html-tokenizer", ["exports"], function (_exports) {