ember-source 4.0.0-beta.4 → 4.0.0-beta.8

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 (32) hide show
  1. package/CHANGELOG.md +32 -1
  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/build-metadata.json +3 -3
  12. package/dist/ember-template-compiler.js +87 -421
  13. package/dist/ember-template-compiler.map +1 -1
  14. package/dist/ember-testing.js +1 -1
  15. package/dist/ember-testing.map +1 -1
  16. package/dist/ember.debug.js +32 -770
  17. package/dist/ember.debug.map +1 -1
  18. package/dist/header/license.js +1 -1
  19. package/dist/packages/@ember/-internals/container/index.js +1 -1
  20. package/dist/packages/@ember/-internals/glimmer/index.js +11 -3
  21. package/dist/packages/@ember/-internals/utils/index.js +0 -3
  22. package/dist/packages/@ember/-internals/views/lib/mixins/view_support.js +4 -4
  23. package/dist/packages/@ember/application/lib/application.js +7 -8
  24. package/dist/packages/@ember/engine/index.js +1 -2
  25. package/dist/packages/@ember/object/lib/computed/computed_macros.js +0 -373
  26. package/dist/packages/@ember/object/lib/computed/reduce_computed_macros.js +0 -351
  27. package/dist/packages/ember/index.js +7 -13
  28. package/dist/packages/ember/version.js +1 -1
  29. package/docs/data.json +114 -138
  30. package/lib/index.js +11 -48
  31. package/package.json +17 -17
  32. 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');
@@ -33,7 +32,6 @@ function add(paths, name, path) {
33
32
  add(paths, 'prod', 'vendor/ember/ember.js');
34
33
  add(paths, 'debug', 'vendor/ember/ember.js');
35
34
  add(paths, 'testing', 'vendor/ember/ember-testing.js');
36
- add(paths, 'jquery', 'vendor/ember/jquery/jquery.js');
37
35
 
38
36
  add(
39
37
  absolutePaths,
@@ -65,7 +63,6 @@ module.exports = {
65
63
  name: 'ember-source',
66
64
  paths,
67
65
  absolutePaths,
68
- _jqueryIntegrationEnabled: true,
69
66
  _overrideTree: undefined,
70
67
 
71
68
  included() {
@@ -95,25 +92,6 @@ module.exports = {
95
92
  );
96
93
  }
97
94
 
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
95
  if (
118
96
  optionalFeaturesMissing ||
119
97
  optionalFeatures.isFeatureEnabled('application-template-wrapper')
@@ -164,12 +142,15 @@ module.exports = {
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
+ const SilentError = require('silent-error');
152
+ throw new SilentError(
153
+ '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
154
  );
174
155
  }
175
156
  },
@@ -237,10 +218,7 @@ module.exports = {
237
218
  false
238
219
  );
239
220
 
240
- let exclude = [
241
- isProduction ? 'ember-testing/**' : null,
242
- !this._jqueryIntegrationEnabled ? 'jquery' : null,
243
- ].filter((value) => value !== null);
221
+ let exclude = isProduction ? ['ember-testing/**'] : [];
244
222
 
245
223
  let emberFiles = new MergeTrees([new Funnel(packages, { exclude }), dependencies, headerFiles]);
246
224
 
@@ -270,21 +248,6 @@ module.exports = {
270
248
  },
271
249
 
272
250
  treeForVendor(tree) {
273
- let jqueryPath;
274
-
275
- try {
276
- jqueryPath = path.dirname(
277
- resolve.sync('jquery/package.json', { basedir: this.project.root })
278
- );
279
- } catch (error) {
280
- jqueryPath = path.dirname(require.resolve('jquery/package.json'));
281
- }
282
-
283
- let jquery = new Funnel(jqueryPath + '/dist', {
284
- destDir: 'ember/jquery',
285
- files: ['jquery.js'],
286
- });
287
-
288
251
  let templateCompiler = new Funnel(tree, {
289
252
  destDir: 'ember',
290
253
  include: ['ember-template-compiler.js', 'ember-template-compiler.map'],
@@ -319,6 +282,6 @@ module.exports = {
319
282
  });
320
283
  }
321
284
 
322
- return debugTree(new MergeTrees([ember, templateCompiler, jquery]), 'vendor:final');
285
+ return debugTree(new MergeTrees([ember, templateCompiler]), 'vendor:final');
323
286
  },
324
287
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "4.0.0-beta.4",
3
+ "version": "4.0.0-beta.8",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -50,8 +50,8 @@
50
50
  "@babel/helper-module-imports": "^7.8.3",
51
51
  "@babel/plugin-transform-block-scoping": "^7.8.3",
52
52
  "@ember/edition-utils": "^1.2.0",
53
- "@glimmer/vm-babel-plugins": "0.80.0",
54
- "babel-plugin-debug-macros": "^0.3.3",
53
+ "@glimmer/vm-babel-plugins": "0.80.3",
54
+ "babel-plugin-debug-macros": "^0.3.4",
55
55
  "babel-plugin-filter-imports": "^4.0.0",
56
56
  "broccoli-concat": "^4.2.4",
57
57
  "broccoli-debug": "^0.6.4",
@@ -59,6 +59,7 @@
59
59
  "broccoli-funnel": "^2.0.2",
60
60
  "broccoli-merge-trees": "^4.2.0",
61
61
  "chalk": "^4.0.0",
62
+ "ember-auto-import": "^2.2.0",
62
63
  "ember-cli-babel": "^7.23.0",
63
64
  "ember-cli-get-component-path-option": "^1.0.0",
64
65
  "ember-cli-is-package-missing": "^1.0.0",
@@ -68,26 +69,25 @@
68
69
  "ember-cli-version-checker": "^5.1.1",
69
70
  "ember-router-generator": "^2.0.0",
70
71
  "inflection": "^1.12.0",
71
- "jquery": "^3.5.1",
72
72
  "resolve": "^1.17.0",
73
73
  "semver": "^7.3.4",
74
74
  "silent-error": "^1.1.1"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@babel/preset-env": "^7.9.5",
78
- "@glimmer/compiler": "0.80.0",
79
- "@glimmer/destroyable": "0.80.0",
78
+ "@glimmer/compiler": "0.80.3",
79
+ "@glimmer/destroyable": "0.80.3",
80
80
  "@glimmer/env": "^0.1.7",
81
- "@glimmer/global-context": "0.80.0",
82
- "@glimmer/interfaces": "0.80.0",
83
- "@glimmer/manager": "0.80.0",
84
- "@glimmer/node": "0.80.0",
85
- "@glimmer/opcode-compiler": "0.80.0",
86
- "@glimmer/owner": "0.80.0",
87
- "@glimmer/program": "0.80.0",
88
- "@glimmer/reference": "0.80.0",
89
- "@glimmer/runtime": "0.80.0",
90
- "@glimmer/validator": "0.80.0",
81
+ "@glimmer/global-context": "0.80.3",
82
+ "@glimmer/interfaces": "0.80.3",
83
+ "@glimmer/manager": "0.80.3",
84
+ "@glimmer/node": "0.80.3",
85
+ "@glimmer/opcode-compiler": "0.80.3",
86
+ "@glimmer/owner": "0.80.3",
87
+ "@glimmer/program": "0.80.3",
88
+ "@glimmer/reference": "0.80.3",
89
+ "@glimmer/runtime": "0.80.3",
90
+ "@glimmer/validator": "0.80.3",
91
91
  "@simple-dom/document": "^1.4.0",
92
92
  "@types/qunit": "^2.11.1",
93
93
  "@types/rsvp": "^4.0.3",
@@ -156,7 +156,7 @@
156
156
  "ember-addon": {
157
157
  "after": "ember-cli-legacy-blueprints"
158
158
  },
159
- "_originalVersion": "4.0.0-beta.4",
159
+ "_originalVersion": "4.0.0-beta.8",
160
160
  "_versionPreviouslyCalculated": true,
161
161
  "publishConfig": {
162
162
  "tag": "beta"
@@ -1,2 +0,0 @@
1
- import { jQuery } from '@ember/-internals/views';
2
- export default jQuery;