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.
Files changed (89) hide show
  1. package/CHANGELOG.md +5 -1
  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} +1 -1
  6. package/blueprints/acceptance-test/qunit-rfc-232-files/tests/acceptance/{__name__-test.js → __name__-test.ts} +1 -1
  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} +2 -2
  17. package/blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +3 -3
  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} +1 -1
  22. package/blueprints/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
  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} +1 -1
  28. package/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/{__name__-test.js → __name__-test.ts} +1 -1
  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} +1 -1
  47. package/blueprints/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
  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} +1 -1
  52. package/blueprints/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
  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 +15 -13
  60. package/dist/ember-template-compiler.map +1 -1
  61. package/dist/ember-testing.js +8 -4
  62. package/dist/ember-testing.map +1 -1
  63. package/dist/ember.debug.js +478 -1149
  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 -25
  67. package/dist/packages/@ember/-internals/extension-support/lib/container_debug_adapter.js +10 -19
  68. package/dist/packages/@ember/-internals/extension-support/lib/data_adapter.js +113 -112
  69. package/dist/packages/@ember/-internals/glimmer/index.js +117 -749
  70. package/dist/packages/@ember/-internals/metal/index.js +17 -22
  71. package/dist/packages/@ember/-internals/routing/lib/services/router.js +140 -145
  72. package/dist/packages/@ember/-internals/routing/lib/system/router.js +3 -1
  73. package/dist/packages/@ember/-internals/runtime/lib/ext/rsvp.js +8 -4
  74. package/dist/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +1 -1
  75. package/dist/packages/@ember/-internals/runtime/lib/mixins/array.js +1 -1
  76. package/dist/packages/@ember/-internals/runtime/lib/mixins/promise_proxy.js +16 -16
  77. package/dist/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +8 -8
  78. package/dist/packages/@ember/-internals/views/lib/system/utils.js +4 -2
  79. package/dist/packages/@ember/-internals/views/lib/views/core_view.js +5 -22
  80. package/dist/packages/@ember/canary-features/index.js +1 -5
  81. package/dist/packages/@ember/debug/index.js +1 -1
  82. package/dist/packages/@ember/debug/lib/deprecate.js +6 -2
  83. package/dist/packages/@ember/renderer/index.js +21 -0
  84. package/dist/packages/ember/version.js +1 -1
  85. package/docs/data.json +447 -260
  86. package/package.json +15 -12
  87. package/blueprints/initializer/files/__root__/initializers/__name__.js +0 -5
  88. package/blueprints/initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +0 -34
  89. 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',
@@ -1,6 +1,6 @@
1
1
  import { expect } from 'chai';
2
2
  import { describe, it } from 'mocha';
3
- import { setupTest } from 'ember-mocha';
3
+ import { setupTest } from '<%= dasherizedPackageName %>/tests/helpers';
4
4
 
5
5
  describe('<%= friendlyTestDescription %>', function () {
6
6
  setupTest();
@@ -1,5 +1,5 @@
1
1
  import { module, test } from 'qunit';
2
- import { setupTest } from 'ember-qunit';
2
+ import { setupTest } from '<%= dasherizedPackageName %>/tests/helpers';
3
3
 
4
4
  module('<%= friendlyTestDescription %>', function (hooks) {
5
5
  setupTest(hooks);
@@ -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__() {
@@ -1,6 +1,6 @@
1
1
  import { expect } from 'chai';
2
2
  import { describe, it } from 'mocha';
3
- import { setupTest } from 'ember-mocha';
3
+ import { setupTest } from '<%= dasherizedPackageName %>/tests/helpers';
4
4
 
5
5
  describe('<%= friendlyTestDescription %>', function () {
6
6
  setupTest();
@@ -1,5 +1,5 @@
1
1
  import { module, test } from 'qunit';
2
- import { setupTest } from 'ember-qunit';
2
+ import { setupTest } from '<%= dasherizedPackageName %>/tests/helpers';
3
3
 
4
4
  module('<%= friendlyTestDescription %>', function (hooks) {
5
5
  setupTest(hooks);
@@ -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.3",
2
+ "version": "4.4.0-alpha.6",
3
3
  "buildType": "tag",
4
- "SHA": "adf9adf73624ff25975fe3566f64ca0d468f46d9",
5
- "assetPath": "/tag/shas/adf9adf73624ff25975fe3566f64ca0d468f46d9.tgz"
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.3
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.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
  });
@@ -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.emberExtension) {
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 && 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
 
@@ -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.3";
18735
+ var _default = "4.4.0-alpha.6";
18734
18736
  _exports.default = _default;
18735
18737
  });
18736
18738
  define("simple-html-tokenizer", ["exports"], function (_exports) {