ember-source 4.1.0-alpha.7 → 4.2.0-alpha.2
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.
- package/CHANGELOG.md +89 -68
- package/blueprints/route/files/__root__/__path__/__name__.js +8 -1
- package/blueprints/route/index.js +2 -0
- package/blueprints/route/native-files/__root__/__path__/__name__.js +8 -1
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +3 -3
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +1 -1
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +53 -237
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/glimmer/index.js +5 -8
- package/dist/packages/@ember/-internals/metal/index.js +17 -31
- package/dist/packages/@ember/-internals/routing/lib/services/router.js +1 -1
- package/dist/packages/@ember/-internals/routing/lib/system/route.js +4 -5
- package/dist/packages/@ember/-internals/runtime/lib/mixins/array.js +2 -173
- package/dist/packages/@ember/-internals/runtime/lib/system/array_proxy.js +8 -15
- package/dist/packages/@ember/canary-features/index.js +1 -1
- package/dist/packages/@ember/destroyable/index.js +15 -4
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +129 -262
- package/lib/index.js +3 -29
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -10,6 +10,7 @@ const injectBabelHelpers = require('./transforms/inject-babel-helpers').injectBa
|
|
|
10
10
|
const debugTree = require('broccoli-debug').buildDebugCallback('ember-source:addon');
|
|
11
11
|
const vmBabelPlugins = require('@glimmer/vm-babel-plugins');
|
|
12
12
|
const Overrides = require('./overrides');
|
|
13
|
+
const SilentError = require('silent-error');
|
|
13
14
|
|
|
14
15
|
const PRE_BUILT_TARGETS = [
|
|
15
16
|
'last 1 Chrome versions',
|
|
@@ -43,13 +44,6 @@ module.exports = {
|
|
|
43
44
|
init() {
|
|
44
45
|
this._super.init && this._super.init.apply(this, arguments);
|
|
45
46
|
|
|
46
|
-
if ('ember' in this.project.bowerDependencies()) {
|
|
47
|
-
// TODO: move this to a throw soon.
|
|
48
|
-
this.ui.writeWarnLine(
|
|
49
|
-
'Ember.js is now provided by node_module `ember-source`, please remove it from bower'
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
47
|
// resets `this.root` to the correct location by default ember-cli
|
|
54
48
|
// considers `__dirname` here to be the root, but since our main entry
|
|
55
49
|
// point is within a subfolder we need to correct that
|
|
@@ -115,31 +109,12 @@ module.exports = {
|
|
|
115
109
|
`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`
|
|
116
110
|
);
|
|
117
111
|
|
|
118
|
-
const SilentError = require('silent-error');
|
|
119
112
|
throw new SilentError(message.join('\n\t'));
|
|
120
113
|
}
|
|
121
114
|
} else {
|
|
122
|
-
|
|
123
|
-
'The Ember Classic edition has been
|
|
115
|
+
throw new SilentError(
|
|
116
|
+
'The Ember Classic edition has been removed. Specifying "classic" in your package.json, or not specifying a value at all, is no longer supported. You must explicitly set the "ember.edition" property to "octane". You can also run `npx @ember/octanify` to do this. \n\nFor more information, see the deprecation guide: https://deprecations.emberjs.com/v3.x/#toc_editions-classic'
|
|
124
117
|
);
|
|
125
|
-
|
|
126
|
-
if (
|
|
127
|
-
optionalFeaturesMissing ||
|
|
128
|
-
optionalFeatures.isFeatureEnabled('application-template-wrapper')
|
|
129
|
-
) {
|
|
130
|
-
this.ui.writeWarnLine(
|
|
131
|
-
'Setting the `application-template-wrapper` 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`. 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-application-template-wrapper'
|
|
132
|
-
);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
if (
|
|
136
|
-
optionalFeaturesMissing ||
|
|
137
|
-
!optionalFeatures.isFeatureEnabled('template-only-glimmer-components')
|
|
138
|
-
) {
|
|
139
|
-
this.ui.writeWarnLine(
|
|
140
|
-
'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'
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
118
|
}
|
|
144
119
|
|
|
145
120
|
if (
|
|
@@ -148,7 +123,6 @@ module.exports = {
|
|
|
148
123
|
typeof optionalFeatures.isFeatureExplicitlySet === 'function' &&
|
|
149
124
|
optionalFeatures.isFeatureExplicitlySet('jquery-integration')
|
|
150
125
|
) {
|
|
151
|
-
const SilentError = require('silent-error');
|
|
152
126
|
throw new SilentError(
|
|
153
127
|
'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'
|
|
154
128
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-source",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0-alpha.2",
|
|
4
4
|
"description": "A JavaScript framework for creating ambitious web applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@typescript-eslint/eslint-plugin": "^4.3.0",
|
|
95
95
|
"@typescript-eslint/parser": "^4.3.0",
|
|
96
96
|
"auto-dist-tag": "^1.0.0",
|
|
97
|
-
"aws-sdk": "^2.
|
|
97
|
+
"aws-sdk": "^2.814.0",
|
|
98
98
|
"babel-template": "^6.26.0",
|
|
99
99
|
"backburner.js": "^2.7.0",
|
|
100
100
|
"broccoli-babel-transpiler": "^7.8.0",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"eslint-import-resolver-node": "^0.3.3",
|
|
120
120
|
"eslint-plugin-disable-features": "^0.1.3",
|
|
121
121
|
"eslint-plugin-ember-internal": "^2.0.0",
|
|
122
|
-
"eslint-plugin-import": "^2.
|
|
122
|
+
"eslint-plugin-import": "^2.25.3",
|
|
123
123
|
"eslint-plugin-node": "^11.1.0",
|
|
124
124
|
"eslint-plugin-prettier": "^3.4.1",
|
|
125
125
|
"eslint-plugin-qunit": "^6.2.0",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"ember-addon": {
|
|
157
157
|
"after": "ember-cli-legacy-blueprints"
|
|
158
158
|
},
|
|
159
|
-
"_originalVersion": "4.
|
|
159
|
+
"_originalVersion": "4.2.0-alpha.2",
|
|
160
160
|
"_versionPreviouslyCalculated": true,
|
|
161
161
|
"publishConfig": {
|
|
162
162
|
"tag": "alpha"
|