ember-source 3.28.5 → 4.0.0-beta.10

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 (115) hide show
  1. package/CHANGELOG.md +113 -10
  2. package/blueprints/acceptance-test/qunit-files/tests/acceptance/__name__-test.js +1 -1
  3. package/blueprints/acceptance-test/qunit-rfc-232-files/tests/acceptance/__name__-test.js +1 -1
  4. package/blueprints/component-test/qunit-files/__root__/__testType__/__path__/__test__.js +3 -3
  5. package/blueprints/helper-test/index.js +4 -22
  6. package/blueprints/helper-test/mocha-0.12-files/__root__/__testType__/__collection__/__name__-test.js +1 -13
  7. package/blueprints/helper-test/mocha-files/__root__/__testType__/__collection__/__name__-test.js +0 -13
  8. package/blueprints/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js +2 -12
  9. package/blueprints/helper-test/qunit-files/__root__/__testType__/__collection__/__name__-test.js +2 -13
  10. package/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js +2 -14
  11. package/blueprints/initializer/files/__root__/initializers/__name__.js +0 -1
  12. package/blueprints/instance-initializer/files/__root__/instance-initializers/__name__.js +0 -1
  13. package/build-metadata.json +3 -3
  14. package/dist/dependencies/@glimmer/manager.js +19 -98
  15. package/dist/dependencies/@glimmer/opcode-compiler.js +9 -146
  16. package/dist/dependencies/@glimmer/runtime.js +1 -55
  17. package/dist/dependencies/@glimmer/validator.js +19 -51
  18. package/dist/ember-template-compiler.js +3692 -5667
  19. package/dist/ember-template-compiler.map +1 -1
  20. package/dist/ember-testing.js +12 -560
  21. package/dist/ember-testing.map +1 -1
  22. package/dist/ember.debug.js +4357 -12470
  23. package/dist/ember.debug.map +1 -1
  24. package/dist/header/license.js +1 -1
  25. package/dist/packages/@ember/-internals/bootstrap/index.js +2 -55
  26. package/dist/packages/@ember/-internals/container/index.js +35 -206
  27. package/dist/packages/@ember/-internals/environment/index.js +3 -46
  28. package/dist/packages/@ember/-internals/extension-support/lib/container_debug_adapter.js +7 -0
  29. package/dist/packages/@ember/-internals/extension-support/lib/data_adapter.js +1 -2
  30. package/dist/packages/@ember/-internals/glimmer/index.js +4774 -7035
  31. package/dist/packages/@ember/-internals/meta/lib/meta.js +2 -50
  32. package/dist/packages/@ember/-internals/metal/index.js +785 -1109
  33. package/dist/packages/@ember/-internals/overrides/index.js +1 -3
  34. package/dist/packages/@ember/-internals/owner/index.js +1 -19
  35. package/dist/packages/@ember/-internals/routing/lib/location/auto_location.js +1 -51
  36. package/dist/packages/@ember/-internals/routing/lib/location/hash_location.js +1 -0
  37. package/dist/packages/@ember/-internals/routing/lib/location/history_location.js +3 -1
  38. package/dist/packages/@ember/-internals/routing/lib/location/none_location.js +0 -7
  39. package/dist/packages/@ember/-internals/routing/lib/services/router.js +34 -2
  40. package/dist/packages/@ember/-internals/routing/lib/services/routing.js +2 -3
  41. package/dist/packages/@ember/-internals/routing/lib/system/dsl.js +5 -6
  42. package/dist/packages/@ember/-internals/routing/lib/system/route.js +192 -652
  43. package/dist/packages/@ember/-internals/routing/lib/system/router.js +119 -248
  44. package/dist/packages/@ember/-internals/routing/lib/system/router_state.js +1 -2
  45. package/dist/packages/@ember/-internals/routing/lib/utils.js +1 -2
  46. package/dist/packages/@ember/-internals/runtime/index.js +1 -4
  47. package/dist/packages/@ember/-internals/runtime/lib/mixins/array.js +4 -175
  48. package/dist/packages/@ember/-internals/runtime/lib/mixins/observable.js +1 -18
  49. package/dist/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +3 -43
  50. package/dist/packages/@ember/-internals/runtime/lib/system/array_proxy.js +8 -15
  51. package/dist/packages/@ember/-internals/runtime/lib/system/core_object.js +10 -141
  52. package/dist/packages/@ember/-internals/utils/index.js +3 -59
  53. package/dist/packages/@ember/-internals/views/index.js +0 -2
  54. package/dist/packages/@ember/-internals/views/lib/mixins/action_support.js +1 -121
  55. package/dist/packages/@ember/-internals/views/lib/mixins/view_support.js +4 -40
  56. package/dist/packages/@ember/-internals/views/lib/system/event_dispatcher.js +115 -190
  57. package/dist/packages/@ember/-internals/views/lib/views/states/destroying.js +1 -2
  58. package/dist/packages/@ember/-internals/views/lib/views/states/has_element.js +1 -2
  59. package/dist/packages/@ember/-internals/views/lib/views/states/in_dom.js +1 -2
  60. package/dist/packages/@ember/-internals/views/lib/views/states/pre_render.js +1 -2
  61. package/dist/packages/@ember/application/instance.js +3 -25
  62. package/dist/packages/@ember/application/lib/application.js +14 -32
  63. package/dist/packages/@ember/canary-features/index.js +5 -6
  64. package/dist/packages/@ember/component/index.js +1 -1
  65. package/dist/packages/@ember/component/template-only.js +2 -0
  66. package/dist/packages/@ember/debug/lib/deprecate.js +7 -41
  67. package/dist/packages/@ember/deprecated-features/index.js +1 -14
  68. package/dist/packages/@ember/engine/index.js +3 -17
  69. package/dist/packages/@ember/engine/instance.js +0 -4
  70. package/dist/packages/@ember/helper/index.js +12 -4
  71. package/dist/packages/@ember/object/index.js +3 -101
  72. package/dist/packages/@ember/object/internals.js +0 -1
  73. package/dist/packages/@ember/object/lib/computed/computed_macros.js +12 -384
  74. package/dist/packages/@ember/object/lib/computed/reduce_computed_macros.js +9 -360
  75. package/dist/packages/@ember/polyfills/index.js +1 -6
  76. package/dist/packages/@ember/polyfills/lib/assign.js +12 -28
  77. package/dist/packages/@ember/routing/index.js +1 -1
  78. package/dist/packages/@ember/runloop/index.js +1 -83
  79. package/dist/packages/@ember/string/index.js +1 -206
  80. package/dist/packages/@ember/utils/index.js +0 -1
  81. package/dist/packages/ember/index.js +17 -180
  82. package/dist/packages/ember/version.js +1 -1
  83. package/dist/packages/ember-testing/index.js +0 -2
  84. package/dist/packages/ember-testing/lib/helpers.js +0 -12
  85. package/dist/packages/ember-testing/lib/setup_for_testing.js +0 -10
  86. package/docs/data.json +1637 -3659
  87. package/lib/index.js +14 -59
  88. package/lib/overrides.js +0 -61
  89. package/lib/transforms/inject-babel-helpers.js +1 -3
  90. package/package.json +27 -23
  91. package/dist/packages/@ember/-internals/console/index.js +0 -190
  92. package/dist/packages/@ember/-internals/runtime/lib/copy.js +0 -119
  93. package/dist/packages/@ember/-internals/runtime/lib/ext/function.js +0 -155
  94. package/dist/packages/@ember/-internals/runtime/lib/mixins/copyable.js +0 -31
  95. package/dist/packages/@ember/-internals/views/lib/mixins/text_support.js +0 -357
  96. package/dist/packages/@ember/-internals/views/lib/system/jquery.js +0 -26
  97. package/dist/packages/@ember/-internals/views/lib/system/jquery_event_deprecation.js +0 -60
  98. package/dist/packages/@ember/application/deprecations.js +0 -25
  99. package/dist/packages/@ember/application/globals-resolver.js +0 -434
  100. package/dist/packages/@ember/application/resolver.js +0 -1
  101. package/dist/packages/@ember/component/checkbox.js +0 -17
  102. package/dist/packages/@ember/component/text-area.js +0 -17
  103. package/dist/packages/@ember/component/text-field.js +0 -17
  104. package/dist/packages/@ember/polyfills/lib/merge.js +0 -50
  105. package/dist/packages/@ember/routing/link-component.js +0 -17
  106. package/dist/packages/ember-testing/lib/events.js +0 -102
  107. package/dist/packages/ember-testing/lib/helpers/-is-form-control.js +0 -19
  108. package/dist/packages/ember-testing/lib/helpers/click.js +0 -32
  109. package/dist/packages/ember-testing/lib/helpers/fill_in.js +0 -47
  110. package/dist/packages/ember-testing/lib/helpers/find.js +0 -40
  111. package/dist/packages/ember-testing/lib/helpers/find_with_assert.js +0 -37
  112. package/dist/packages/ember-testing/lib/helpers/key_event.js +0 -37
  113. package/dist/packages/ember-testing/lib/helpers/trigger_event.js +0 -61
  114. package/dist/packages/ember-testing/lib/support.js +0 -57
  115. package/dist/packages/jquery/index.js +0 -2
package/lib/index.js CHANGED
@@ -3,7 +3,6 @@
3
3
  const MergeTrees = require('broccoli-merge-trees');
4
4
  const Funnel = require('broccoli-funnel');
5
5
  const path = require('path');
6
- const resolve = require('resolve');
7
6
  const concatBundle = require('./concat-bundle');
8
7
  const buildDebugMacroPlugin = require('./build-debug-macro-plugin');
9
8
  const buildStripClassCallcheckPlugin = require('./build-strip-class-callcheck-plugin');
@@ -11,6 +10,7 @@ const injectBabelHelpers = require('./transforms/inject-babel-helpers').injectBa
11
10
  const debugTree = require('broccoli-debug').buildDebugCallback('ember-source:addon');
12
11
  const vmBabelPlugins = require('@glimmer/vm-babel-plugins');
13
12
  const Overrides = require('./overrides');
13
+ const SilentError = require('silent-error');
14
14
 
15
15
  const PRE_BUILT_TARGETS = [
16
16
  'last 1 Chrome versions',
@@ -33,7 +33,6 @@ function add(paths, name, path) {
33
33
  add(paths, 'prod', 'vendor/ember/ember.js');
34
34
  add(paths, 'debug', 'vendor/ember/ember.js');
35
35
  add(paths, 'testing', 'vendor/ember/ember-testing.js');
36
- add(paths, 'jquery', 'vendor/ember/jquery/jquery.js');
37
36
 
38
37
  add(
39
38
  absolutePaths,
@@ -65,7 +64,6 @@ module.exports = {
65
64
  name: 'ember-source',
66
65
  paths,
67
66
  absolutePaths,
68
- _jqueryIntegrationEnabled: true,
69
67
  _overrideTree: undefined,
70
68
 
71
69
  included() {
@@ -95,25 +93,6 @@ module.exports = {
95
93
  );
96
94
  }
97
95
 
98
- if (
99
- optionalFeaturesMissing ||
100
- typeof optionalFeatures.isFeatureExplicitlySet !== 'function'
101
- ) {
102
- message.push(
103
- '* Unable to detect if jquery-integration is explicitly set to a value, please update `@ember/optional-features` to the latest version'
104
- );
105
- }
106
-
107
- if (
108
- optionalFeaturesMissing ||
109
- (typeof optionalFeatures.isFeatureExplicitlySet === 'function' &&
110
- !optionalFeatures.isFeatureExplicitlySet('jquery-integration'))
111
- ) {
112
- message.push(
113
- `* The jquery-integration optional feature should be explicitly set to a value under Octane, run \`ember feature:disable jquery-integration\` to disable it, or \`ember feature:enable jquery-integration\` to explicitly enable it`
114
- );
115
- }
116
-
117
96
  if (
118
97
  optionalFeaturesMissing ||
119
98
  optionalFeatures.isFeatureEnabled('application-template-wrapper')
@@ -137,12 +116,11 @@ module.exports = {
137
116
  `You have configured your application to indicate that it is using the 'octane' edition (via \`setEdition('octane')\`), but the appropriate Octane features were not enabled:\n`
138
117
  );
139
118
 
140
- const SilentError = require('silent-error');
141
119
  throw new SilentError(message.join('\n\t'));
142
120
  }
143
121
  } else {
144
122
  this.ui.writeWarnLine(
145
- 'The Ember Classic edition has been deprecated. Speciying "classic" in your package.json, or not specifying a value at all, will no longer be supported. You must explicitly set the "ember.edition" property to "octane". This warning will become an error in Ember 4.0.0.\n\nFor more information, see the deprecation guide: https://deprecations.emberjs.com/v3.x/#toc_editions-classic'
123
+ 'The Ember Classic edition has been deprecated. Specifying "classic" in your package.json, or not specifying a value at all, will no longer be supported. You must explicitly set the "ember.edition" property to "octane". This warning will become an error in Ember 4.0.0.\n\nFor more information, see the deprecation guide: https://deprecations.emberjs.com/v3.x/#toc_editions-classic'
146
124
  );
147
125
 
148
126
  if (
@@ -158,18 +136,20 @@ module.exports = {
158
136
  optionalFeaturesMissing ||
159
137
  !optionalFeatures.isFeatureEnabled('template-only-glimmer-components')
160
138
  ) {
161
- this.ui.writeWarnLine(
162
- 'Setting the `template-only-glimmer-components` optional feature flag to `false`, or not providing a setting at all, has been deprecated. You must add the `@ember/optional-features` addon and set this feature to `true`. You can also run `npx @ember/octanify` to do this. This warning will become an error in Ember 4.0.0.\n\nFor more information, see the deprecation guide: https://deprecations.emberjs.com/v3.x/#toc_optional-feature-template-only-glimmer-components'
139
+ throw new SilentError(
140
+ 'Setting the `template-only-glimmer-components` optional feature flag to `false`, or not providing a setting at all, was deprecated in Ember 3.x and removed in Ember 4.0.0. You must add the `@ember/optional-features` addon and set this feature to `true`.\n\nFor more information, see the deprecation guide: https://deprecations.emberjs.com/v3.x/#toc_optional-feature-template-only-glimmer-components'
163
141
  );
164
142
  }
165
143
  }
166
144
 
167
- this._jqueryIntegrationEnabled =
168
- optionalFeaturesMissing || optionalFeatures.isFeatureEnabled('jquery-integration');
169
-
170
- if (this._jqueryIntegrationEnabled) {
171
- this.ui.writeWarnLine(
172
- 'Setting the `jquery-integration` optional feature flag to `true`, or not providing a setting at all, has been deprecated. You must add the `@ember/optional-features` addon and set this feature to `false`. This warning will become an error in Ember 4.0.0.\n\nFor more information, see the deprecation guide: https://deprecations.emberjs.com/v3.x/#toc_optional-feature-jquery-integration'
145
+ if (
146
+ !optionalFeaturesMissing &&
147
+ optionalFeatures.isFeatureEnabled('jquery-integration') &&
148
+ typeof optionalFeatures.isFeatureExplicitlySet === 'function' &&
149
+ optionalFeatures.isFeatureExplicitlySet('jquery-integration')
150
+ ) {
151
+ throw new SilentError(
152
+ 'Setting the `jquery-integration` optional feature flag to `true` was deprecated in Ember 3.x and removed in Ember 4.0.0. You must add the `@ember/optional-features` addon and set this feature to `false`.\n\nFor more information, see the deprecation guide: https://deprecations.emberjs.com/v3.x/#toc_optional-feature-jquery-integration'
173
153
  );
174
154
  }
175
155
  },
@@ -201,7 +181,6 @@ module.exports = {
201
181
  require.resolve('@babel/plugin-transform-block-scoping'),
202
182
  { throwIfClosureRequired: true },
203
183
  ],
204
- [require.resolve('@babel/plugin-transform-object-assign')],
205
184
  ],
206
185
  }),
207
186
  };
@@ -238,10 +217,7 @@ module.exports = {
238
217
  false
239
218
  );
240
219
 
241
- let exclude = [
242
- isProduction ? 'ember-testing/**' : null,
243
- !this._jqueryIntegrationEnabled ? 'jquery' : null,
244
- ].filter((value) => value !== null);
220
+ let exclude = isProduction ? ['ember-testing/**'] : [];
245
221
 
246
222
  let emberFiles = new MergeTrees([new Funnel(packages, { exclude }), dependencies, headerFiles]);
247
223
 
@@ -271,21 +247,6 @@ module.exports = {
271
247
  },
272
248
 
273
249
  treeForVendor(tree) {
274
- let jqueryPath;
275
-
276
- try {
277
- jqueryPath = path.dirname(
278
- resolve.sync('jquery/package.json', { basedir: this.project.root })
279
- );
280
- } catch (error) {
281
- jqueryPath = path.dirname(require.resolve('jquery/package.json'));
282
- }
283
-
284
- let jquery = new Funnel(jqueryPath + '/dist', {
285
- destDir: 'ember/jquery',
286
- files: ['jquery.js'],
287
- });
288
-
289
250
  let templateCompiler = new Funnel(tree, {
290
251
  destDir: 'ember',
291
252
  include: ['ember-template-compiler.js', 'ember-template-compiler.map'],
@@ -295,12 +256,6 @@ module.exports = {
295
256
  let targets = (this.project && this.project.targets && this.project.targets.browsers) || [];
296
257
  let targetNode = (this.project && this.project.targets && this.project.targets.node) || false;
297
258
 
298
- if (targets.includes('ie 11')) {
299
- this.ui.writeWarnLine(
300
- 'Internet Explorer 11 is listed in your compilation targets, but it will no longer be supported in the next major version of Ember. Please update your targets to remove IE 11 and include new targets that are within the updated support policy. For details on the new browser support policy, see:\n\n - The official documentation: http://emberjs.com/browser-support\n - the deprecation guide: https://deprecations.emberjs.com/v3.x#toc_3-0-browser-support-policy\n'
301
- );
302
- }
303
-
304
259
  const isProduction = process.env.EMBER_ENV === 'production';
305
260
 
306
261
  if (
@@ -326,6 +281,6 @@ module.exports = {
326
281
  });
327
282
  }
328
283
 
329
- return debugTree(new MergeTrees([ember, templateCompiler, jquery]), 'vendor:final');
284
+ return debugTree(new MergeTrees([ember, templateCompiler]), 'vendor:final');
330
285
  },
331
286
  };
package/lib/overrides.js CHANGED
@@ -4,7 +4,6 @@ const validSemverRange = require('semver/ranges/valid');
4
4
 
5
5
  const DEFAULT_OPTIONS = Object.freeze({
6
6
  showAllEmberGlobalDeprecations: false,
7
- showAllDotAccessDeprecations: false,
8
7
  });
9
8
 
10
9
  function* walkAddonTree(project, pathToAddon = []) {
@@ -32,8 +31,6 @@ module.exports = class Overrides {
32
31
  } else {
33
32
  return new Overrides(Overrides.addonsInfoFor(project), {
34
33
  showAllEmberGlobalDeprecations: env.EMBER_GLOBAL_DEPRECATIONS === 'all',
35
- showAllDotAccessDeprecations:
36
- env.EMBER_RUNLOOP_AND_COMPUTED_DOT_ACCESS_DEPRECATIONS === 'all',
37
34
  });
38
35
  }
39
36
  }
@@ -216,10 +213,6 @@ module.exports = class Overrides {
216
213
  return !this.hasActionableSuggestions || this.options.showAllEmberGlobalDeprecations;
217
214
  }
218
215
 
219
- get showAllDotAccessDeprecations() {
220
- return !this.hasActionableSuggestions || this.options.showAllDotAccessDeprecations;
221
- }
222
-
223
216
  get details() {
224
217
  let details =
225
218
  '\n### Details ###\n\n' +
@@ -332,10 +325,6 @@ module.exports = class Overrides {
332
325
 
333
326
  toModule() {
334
327
  return `
335
- export let onEmberGlobalAccess;
336
- export let onComputedDotAccess;
337
- export let onRunloopDotAccess;
338
-
339
328
  ${this.toJS()};
340
329
  `;
341
330
  }
@@ -356,56 +345,6 @@ module.exports = class Overrides {
356
345
  }
357
346
 
358
347
  ${this.onDotAcces}
359
-
360
- onEmberGlobalAccess = ${this.onEmberGlobalAccess};
361
- onComputedDotAccess = onDotAccess;
362
- onRunloopDotAccess = onDotAccess;
363
-
364
- if (!${this.showAllEmberGlobalDeprecations}) {
365
- onEmberGlobalAccess = once(onEmberGlobalAccess);
366
- }
367
-
368
- if (!${this.showAllDotAccessDeprecations}) {
369
- onComputedDotAccess = once(onComputedDotAccess);
370
- onRunloopDotAccess = once(onRunloopDotAccess);
371
- }
372
- `;
373
- }
374
-
375
- get onEmberGlobalAccess() {
376
- return `
377
- function onEmberGlobalAccess() {
378
- return ${JSON.stringify(this.globalMessage)};
379
- }
380
- `;
381
- }
382
-
383
- get onDotAcces() {
384
- return `
385
- function onDotAccess(dotKey, importKey, module) {
386
- let message =
387
- 'Using \`' + dotKey + '\` has been deprecated. Instead, import the value directly from ' + module + ':\\n\\n' +
388
- ' import { ' + importKey + ' } from \\'' + module + '\\';\\n\\n' +
389
- 'These usages may be caused by an outdated ember-cli-babel dependency. ' +
390
- 'Usages of the Ember Global may be caused by an outdated ember-cli-babel dependency. ' +
391
- 'The following steps may help:\\n\\n' +
392
- ${JSON.stringify(Overrides.printList(this.suggestions))};
393
-
394
- if (!${this.showAllDotAccessDeprecations}) {
395
- message +=
396
- '\\n### Important ###\\n\\n' +
397
- 'In order to avoid repeatedly showing the same deprecation messages, ' +
398
- 'no further deprecation messages will be shown for theses deprecated usages ' +
399
- 'until ember-cli-babel is upgraded to v7.26.6 or above.\\n\\n' +
400
- 'To see all instances of this deprecation message, ' +
401
- 'set the \`EMBER_RUNLOOP_AND_COMPUTED_DOT_ACCESS_DEPRECATIONS\` environment variable to "all", ' +
402
- 'e.g. \`EMBER_RUNLOOP_AND_COMPUTED_DOT_ACCESS_DEPRECATIONS=all ember test\`.\\n';
403
- }
404
-
405
- message += ${JSON.stringify(this.details)};
406
-
407
- return message;
408
- }
409
348
  `;
410
349
  }
411
350
  };
@@ -21,9 +21,7 @@ function injectBabelHelpersPlugin(isEmberSource) {
21
21
  return {
22
22
  pre(file) {
23
23
  file.set('helperGenerator', function (name) {
24
- if (name === 'extends') {
25
- return addNamed(file.path, 'assign', '@ember/polyfills');
26
- } else if (isEmberSource && name === 'asyncToGenerator') {
24
+ if (isEmberSource && name === 'asyncToGenerator') {
27
25
  // Returning a falsy value will cause the helper to be inlined,
28
26
  // which is fine for local tests
29
27
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "3.28.5",
3
+ "version": "4.0.0-beta.10",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -49,9 +49,8 @@
49
49
  "dependencies": {
50
50
  "@babel/helper-module-imports": "^7.8.3",
51
51
  "@babel/plugin-transform-block-scoping": "^7.8.3",
52
- "@babel/plugin-transform-object-assign": "^7.8.3",
53
52
  "@ember/edition-utils": "^1.2.0",
54
- "@glimmer/vm-babel-plugins": "0.80.3",
53
+ "@glimmer/vm-babel-plugins": "0.83.1",
55
54
  "babel-plugin-debug-macros": "^0.3.4",
56
55
  "babel-plugin-filter-imports": "^4.0.0",
57
56
  "broccoli-concat": "^4.2.4",
@@ -60,6 +59,7 @@
60
59
  "broccoli-funnel": "^2.0.2",
61
60
  "broccoli-merge-trees": "^4.2.0",
62
61
  "chalk": "^4.0.0",
62
+ "ember-auto-import": "^2.2.0",
63
63
  "ember-cli-babel": "^7.23.0",
64
64
  "ember-cli-get-component-path-option": "^1.0.0",
65
65
  "ember-cli-is-package-missing": "^1.0.0",
@@ -69,26 +69,25 @@
69
69
  "ember-cli-version-checker": "^5.1.1",
70
70
  "ember-router-generator": "^2.0.0",
71
71
  "inflection": "^1.12.0",
72
- "jquery": "^3.5.1",
73
72
  "resolve": "^1.17.0",
74
73
  "semver": "^7.3.4",
75
74
  "silent-error": "^1.1.1"
76
75
  },
77
76
  "devDependencies": {
78
77
  "@babel/preset-env": "^7.9.5",
79
- "@glimmer/compiler": "0.80.3",
80
- "@glimmer/destroyable": "0.80.3",
78
+ "@glimmer/compiler": "0.83.1",
79
+ "@glimmer/destroyable": "0.83.1",
81
80
  "@glimmer/env": "^0.1.7",
82
- "@glimmer/global-context": "0.80.3",
83
- "@glimmer/interfaces": "0.80.3",
84
- "@glimmer/manager": "0.80.3",
85
- "@glimmer/node": "0.80.3",
86
- "@glimmer/opcode-compiler": "0.80.3",
87
- "@glimmer/owner": "0.80.3",
88
- "@glimmer/program": "0.80.3",
89
- "@glimmer/reference": "0.80.3",
90
- "@glimmer/runtime": "0.80.3",
91
- "@glimmer/validator": "0.80.3",
81
+ "@glimmer/global-context": "0.83.1",
82
+ "@glimmer/interfaces": "0.83.1",
83
+ "@glimmer/manager": "0.83.1",
84
+ "@glimmer/node": "0.83.1",
85
+ "@glimmer/opcode-compiler": "0.83.1",
86
+ "@glimmer/owner": "0.83.1",
87
+ "@glimmer/program": "0.83.1",
88
+ "@glimmer/reference": "0.83.1",
89
+ "@glimmer/runtime": "0.83.1",
90
+ "@glimmer/validator": "0.83.1",
92
91
  "@simple-dom/document": "^1.4.0",
93
92
  "@types/qunit": "^2.11.1",
94
93
  "@types/rsvp": "^4.0.3",
@@ -124,13 +123,14 @@
124
123
  "eslint-plugin-node": "^11.1.0",
125
124
  "eslint-plugin-prettier": "^3.3.1",
126
125
  "eslint-plugin-qunit": "^4.0.0",
127
- "execa": "^2.0.4",
126
+ "execa": "^5.1.1",
127
+ "expect-type": "^0.11.0",
128
128
  "express": "^4.17.1",
129
129
  "finalhandler": "^1.1.2",
130
130
  "fs-extra": "^9.1.0",
131
131
  "git-repo-info": "^2.1.1",
132
132
  "github": "^0.2.3",
133
- "glob": "^7.1.4",
133
+ "glob": "^7.1.7",
134
134
  "html-differ": "^1.4.0",
135
135
  "lodash.uniq": "^4.5.0",
136
136
  "mkdirp": "^1.0.4",
@@ -147,14 +147,18 @@
147
147
  "simple-dom": "^1.4.0",
148
148
  "testem": "^3.1.0",
149
149
  "testem-failure-only-reporter": "^0.0.1",
150
- "tslint": "^5.20.1"
150
+ "tslint": "^5.20.1",
151
+ "typescript": "^4.2.4"
151
152
  },
152
153
  "engines": {
153
- "node": "10.* || >= 12.*"
154
+ "node": ">= 12.*"
154
155
  },
155
156
  "ember-addon": {
156
157
  "after": "ember-cli-legacy-blueprints"
157
158
  },
158
- "_originalVersion": "3.28.5",
159
- "_versionPreviouslyCalculated": true
160
- }
159
+ "_originalVersion": "4.0.0-beta.10",
160
+ "_versionPreviouslyCalculated": true,
161
+ "publishConfig": {
162
+ "tag": "beta"
163
+ }
164
+ }
@@ -1,190 +0,0 @@
1
- import { deprecate } from '@ember/debug';
2
- import { LOGGER } from '@ember/deprecated-features'; // Deliver message that the function is deprecated
3
-
4
- const DEPRECATION_MESSAGE = 'Use of Ember.Logger is deprecated. Please use `console` for logging.';
5
- const DEPRECATION_ID = 'ember-console.deprecate-logger';
6
- const DEPRECATION_URL = 'https://deprecations.emberjs.com/v3.x#toc_use-console-rather-than-ember-logger';
7
- /**
8
- @module ember
9
- */
10
-
11
- /**
12
- Inside Ember-Metal, simply uses the methods from `imports.console`.
13
- Override this to provide more robust logging functionality.
14
-
15
- @class Logger
16
- @deprecated Use 'console' instead
17
-
18
- @namespace Ember
19
- @public
20
- */
21
-
22
- let DEPRECATED_LOGGER;
23
-
24
- if (LOGGER) {
25
- DEPRECATED_LOGGER = {
26
- /**
27
- Logs the arguments to the console.
28
- You can pass as many arguments as you want and they will be joined together with a space.
29
- ```javascript
30
- var foo = 1;
31
- Ember.Logger.log('log value of foo:', foo);
32
- // "log value of foo: 1" will be printed to the console
33
- ```
34
- @method log
35
- @for Ember.Logger
36
- @param {*} arguments
37
- @public
38
- */
39
- log() {
40
- deprecate(DEPRECATION_MESSAGE, false, {
41
- id: DEPRECATION_ID,
42
- until: '4.0.0',
43
- url: DEPRECATION_URL,
44
- for: 'ember-source',
45
- since: {
46
- enabled: '3.2.0'
47
- }
48
- });
49
- return console.log(...arguments); // eslint-disable-line no-console
50
- },
51
-
52
- /**
53
- Prints the arguments to the console with a warning icon.
54
- You can pass as many arguments as you want and they will be joined together with a space.
55
- ```javascript
56
- Ember.Logger.warn('Something happened!');
57
- // "Something happened!" will be printed to the console with a warning icon.
58
- ```
59
- @method warn
60
- @for Ember.Logger
61
- @param {*} arguments
62
- @public
63
- */
64
- warn() {
65
- deprecate(DEPRECATION_MESSAGE, false, {
66
- id: DEPRECATION_ID,
67
- until: '4.0.0',
68
- url: DEPRECATION_URL,
69
- for: 'ember-source',
70
- since: {
71
- enabled: '3.2.0'
72
- }
73
- });
74
- return console.warn(...arguments); // eslint-disable-line no-console
75
- },
76
-
77
- /**
78
- Prints the arguments to the console with an error icon, red text and a stack trace.
79
- You can pass as many arguments as you want and they will be joined together with a space.
80
- ```javascript
81
- Ember.Logger.error('Danger! Danger!');
82
- // "Danger! Danger!" will be printed to the console in red text.
83
- ```
84
- @method error
85
- @for Ember.Logger
86
- @param {*} arguments
87
- @public
88
- */
89
- error() {
90
- deprecate(DEPRECATION_MESSAGE, false, {
91
- id: DEPRECATION_ID,
92
- until: '4.0.0',
93
- url: DEPRECATION_URL,
94
- for: 'ember-source',
95
- since: {
96
- enabled: '3.2.0'
97
- }
98
- });
99
- return console.error(...arguments); // eslint-disable-line no-console
100
- },
101
-
102
- /**
103
- Logs the arguments to the console.
104
- You can pass as many arguments as you want and they will be joined together with a space.
105
- ```javascript
106
- var foo = 1;
107
- Ember.Logger.info('log value of foo:', foo);
108
- // "log value of foo: 1" will be printed to the console
109
- ```
110
- @method info
111
- @for Ember.Logger
112
- @param {*} arguments
113
- @public
114
- */
115
- info() {
116
- deprecate(DEPRECATION_MESSAGE, false, {
117
- id: DEPRECATION_ID,
118
- until: '4.0.0',
119
- url: DEPRECATION_URL,
120
- for: 'ember-source',
121
- since: {
122
- enabled: '3.2.0'
123
- }
124
- });
125
- return console.info(...arguments); // eslint-disable-line no-console
126
- },
127
-
128
- /**
129
- Logs the arguments to the console in blue text.
130
- You can pass as many arguments as you want and they will be joined together with a space.
131
- ```javascript
132
- var foo = 1;
133
- Ember.Logger.debug('log value of foo:', foo);
134
- // "log value of foo: 1" will be printed to the console
135
- ```
136
- @method debug
137
- @for Ember.Logger
138
- @param {*} arguments
139
- @public
140
- */
141
- debug() {
142
- deprecate(DEPRECATION_MESSAGE, false, {
143
- id: DEPRECATION_ID,
144
- until: '4.0.0',
145
- url: DEPRECATION_URL,
146
- for: 'ember-source',
147
- since: {
148
- enabled: '3.2.0'
149
- }
150
- });
151
- /* eslint-disable no-console */
152
-
153
- if (console.debug) {
154
- return console.debug(...arguments);
155
- }
156
-
157
- return console.info(...arguments);
158
- /* eslint-enable no-console */
159
- },
160
-
161
- /**
162
- If the value passed into `Ember.Logger.assert` is not truthy it will throw an error with a stack trace.
163
- ```javascript
164
- Ember.Logger.assert(true); // undefined
165
- Ember.Logger.assert(true === false); // Throws an Assertion failed error.
166
- Ember.Logger.assert(true === false, 'Something invalid'); // Throws an Assertion failed error with message.
167
- ```
168
- @method assert
169
- @for Ember.Logger
170
- @param {Boolean} bool Value to test
171
- @param {String} message Assertion message on failed
172
- @public
173
- */
174
- assert() {
175
- deprecate(DEPRECATION_MESSAGE, false, {
176
- id: DEPRECATION_ID,
177
- until: '4.0.0',
178
- url: DEPRECATION_URL,
179
- for: 'ember-source',
180
- since: {
181
- enabled: '3.2.0'
182
- }
183
- });
184
- return console.assert(...arguments); // eslint-disable-line no-console
185
- }
186
-
187
- };
188
- }
189
-
190
- export default DEPRECATED_LOGGER;
@@ -1,119 +0,0 @@
1
- import { assert, deprecate } from '@ember/debug';
2
- import EmberObject from './system/object';
3
- import Copyable from './mixins/copyable';
4
- /**
5
- @module @ember/object
6
- */
7
-
8
- function _copy(obj, deep, seen, copies) {
9
- // primitive data types are immutable, just return them.
10
- if (typeof obj !== 'object' || obj === null) {
11
- return obj;
12
- }
13
-
14
- let ret, loc; // avoid cyclical loops
15
-
16
- if (deep && (loc = seen.indexOf(obj)) >= 0) {
17
- return copies[loc];
18
- }
19
-
20
- if (deep) {
21
- seen.push(obj);
22
- } // IMPORTANT: this specific test will detect a native array only. Any other
23
- // object will need to implement Copyable.
24
-
25
-
26
- if (Array.isArray(obj)) {
27
- ret = obj.slice();
28
-
29
- if (deep) {
30
- copies.push(ret);
31
- loc = ret.length;
32
-
33
- while (--loc >= 0) {
34
- ret[loc] = _copy(ret[loc], deep, seen, copies);
35
- }
36
- }
37
- } else if (Copyable.detect(obj)) {
38
- ret = obj.copy(deep, seen, copies);
39
-
40
- if (deep) {
41
- copies.push(ret);
42
- }
43
- } else if (obj instanceof Date) {
44
- ret = new Date(obj.getTime());
45
-
46
- if (deep) {
47
- copies.push(ret);
48
- }
49
- } else {
50
- assert('Cannot clone an EmberObject that does not implement Copyable', !(obj instanceof EmberObject) || Copyable.detect(obj));
51
- ret = {};
52
-
53
- if (deep) {
54
- copies.push(ret);
55
- }
56
-
57
- let key;
58
-
59
- for (key in obj) {
60
- // support Null prototype
61
- if (!Object.prototype.hasOwnProperty.call(obj, key)) {
62
- continue;
63
- } // Prevents browsers that don't respect non-enumerability from
64
- // copying internal Ember properties
65
-
66
-
67
- if (key.substring(0, 2) === '__') {
68
- continue;
69
- }
70
-
71
- ret[key] = deep ? _copy(obj[key], deep, seen, copies) : obj[key];
72
- }
73
- }
74
-
75
- return ret;
76
- }
77
- /**
78
- Creates a shallow copy of the passed object. A deep copy of the object is
79
- returned if the optional `deep` argument is `true`.
80
-
81
- If the passed object implements the `Copyable` interface, then this
82
- function will delegate to the object's `copy()` method and return the
83
- result. See `Copyable` for further details.
84
-
85
- For primitive values (which are immutable in JavaScript), the passed object
86
- is simply returned.
87
-
88
- @method copy
89
- @deprecated Use 'ember-copy' addon instead
90
- @static
91
- @for @ember/object/internals
92
- @param {Object} obj The object to clone
93
- @param {Boolean} [deep=false] If true, a deep copy of the object is made.
94
- @return {Object} The copied object
95
- @public
96
- */
97
-
98
-
99
- export default function copy(obj, deep) {
100
- deprecate('Use ember-copy addon instead of copy method and Copyable mixin.', false, {
101
- id: 'ember-runtime.deprecate-copy-copyable',
102
- until: '4.0.0',
103
- url: 'https://deprecations.emberjs.com/v3.x/#toc_ember-runtime-deprecate-copy-copyable',
104
- for: 'ember-source',
105
- since: {
106
- enabled: '3.3.0'
107
- }
108
- }); // fast paths
109
-
110
- if ('object' !== typeof obj || obj === null) {
111
- return obj; // can't copy primitives
112
- }
113
-
114
- if (!Array.isArray(obj) && Copyable.detect(obj)) {
115
- return obj.copy(deep);
116
- }
117
-
118
- return _copy(obj, deep, deep ? [] : null, deep ? [] : null);
119
- }