ember-source 4.0.0-beta.6 → 4.0.0-beta.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.
@@ -5,5 +5,5 @@
5
5
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
6
6
  * @license Licensed under MIT license
7
7
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
8
- * @version 4.0.0-beta.6
8
+ * @version 4.0.0-beta.7
9
9
  */
@@ -1 +1 @@
1
- export default "4.0.0-beta.6";
1
+ export default "4.0.0-beta.7";
package/docs/data.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "The Ember API",
4
4
  "description": "The Ember API: a framework for building ambitious web applications",
5
5
  "url": "https://emberjs.com/",
6
- "version": "4.0.0-beta.6"
6
+ "version": "4.0.0-beta.7"
7
7
  },
8
8
  "files": {
9
9
  "node_modules/rsvp/lib/rsvp/promise/all.js": {
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.6",
3
+ "version": "4.0.0-beta.7",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -69,7 +69,6 @@
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"
@@ -157,7 +156,7 @@
157
156
  "ember-addon": {
158
157
  "after": "ember-cli-legacy-blueprints"
159
158
  },
160
- "_originalVersion": "4.0.0-beta.6",
159
+ "_originalVersion": "4.0.0-beta.7",
161
160
  "_versionPreviouslyCalculated": true,
162
161
  "publishConfig": {
163
162
  "tag": "beta"
@@ -1,2 +0,0 @@
1
- import { jQuery } from '@ember/-internals/views';
2
- export default jQuery;