ember-source 6.2.0-alpha.6 → 6.2.0-beta.1
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/blueprints/-addon-import.js +0 -9
- package/blueprints/acceptance-test/index.js +2 -2
- package/blueprints/component/index.js +7 -22
- package/blueprints/component-addon/index.js +0 -9
- package/blueprints/component-class/index.js +7 -22
- package/blueprints/component-class-addon/index.js +0 -9
- package/blueprints/component-test/index.js +2 -2
- package/blueprints/controller/index.js +2 -2
- package/blueprints/controller-test/index.js +2 -2
- package/blueprints/helper/index.js +2 -2
- package/blueprints/helper-test/index.js +2 -2
- package/blueprints/initializer/index.js +2 -2
- package/blueprints/initializer-test/index.js +2 -2
- package/blueprints/instance-initializer/index.js +2 -2
- package/blueprints/instance-initializer-test/index.js +2 -2
- package/blueprints/route/index.js +2 -2
- package/blueprints/route-addon/index.js +0 -9
- package/blueprints/route-test/index.js +2 -2
- package/blueprints/service/index.js +2 -2
- package/blueprints/service-test/index.js +2 -2
- package/blueprints/util/index.js +2 -2
- package/blueprints/util-test/index.js +2 -2
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +2 -2
- package/dist/ember-testing.js +1 -1
- package/dist/ember.debug.js +13 -2
- package/dist/ember.prod.js +13 -2
- package/dist/packages/@ember/-internals/deprecations/index.js +9 -0
- package/dist/packages/@ember/service/index.js +3 -0
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +9 -7
- package/package.json +5 -7
- package/types/stable/@ember/-internals/deprecations/index.d.ts +6 -0
- package/types/stable/@ember/service/index.d.ts +1 -0
- package/blueprints/-maybe-polyfill-typescript-blueprints.js +0 -19
- package/blueprints/initializer-addon/files/__root__/__path__/__name__.ts +0 -1
- package/blueprints/instance-initializer-addon/files/__root__/__path__/__name__.ts +0 -1
- package/blueprints-js/acceptance-test/qunit-files/tests/acceptance/__name__-test.js +0 -12
- package/blueprints-js/acceptance-test/qunit-rfc-232-files/tests/acceptance/__name__-test.js +0 -13
- package/blueprints-js/component/files/__root__/__path__/__name__.js +0 -3
- package/blueprints-js/component/files/__root__/__templatepath__/__templatename__.hbs +0 -1
- package/blueprints-js/component-addon/files/__root__/__path__/__name__.js +0 -1
- package/blueprints-js/component-class/files/__root__/__path__/__name__.js +0 -3
- package/blueprints-js/component-class-addon/files/__root__/__path__/__name__.js +0 -1
- package/blueprints-js/component-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -31
- package/blueprints-js/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +0 -36
- package/blueprints-js/controller/files/__root__/__path__/__name__.js +0 -3
- package/blueprints-js/controller-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -12
- package/blueprints-js/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +0 -12
- package/blueprints-js/helper/files/__root__/helpers/__name__.js +0 -5
- package/blueprints-js/helper-addon/files/__root__/__path__/__name__.js +0 -1
- package/blueprints-js/helper-test/qunit-files/__root__/__testType__/helpers/__name__-test.js +0 -15
- package/blueprints-js/helper-test/qunit-rfc-232-files/__root__/__testType__/helpers/__name__-test.js +0 -17
- package/blueprints-js/initializer/files/__root__/initializers/__name__.js +0 -5
- package/blueprints-js/initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js +0 -25
- package/blueprints-js/initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +0 -37
- package/blueprints-js/instance-initializer/files/__root__/instance-initializers/__name__.js +0 -5
- package/blueprints-js/instance-initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js +0 -26
- package/blueprints-js/instance-initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +0 -39
- package/blueprints-js/mixin/files/__root__/mixins/__name__.js +0 -3
- package/blueprints-js/mixin-test/qunit-files/__root__/__testType__/__name__-test.js +0 -12
- package/blueprints-js/mixin-test/qunit-rfc-232-files/__root__/__testType__/__name__-test.js +0 -12
- package/blueprints-js/route/files/__root__/__path__/__name__.js +0 -9
- package/blueprints-js/route/files/__root__/__templatepath__/__templatename__.hbs +0 -2
- package/blueprints-js/route-addon/files/__root__/__path__/__name__.js +0 -1
- package/blueprints-js/route-addon/files/__root__/__templatepath__/__templatename__.js +0 -1
- package/blueprints-js/route-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -11
- package/blueprints-js/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +0 -11
- package/blueprints-js/service/files/__root__/__path__/__name__.js +0 -3
- package/blueprints-js/service-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -12
- package/blueprints-js/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +0 -12
- package/blueprints-js/template/files/__root__/__path__/__name__.hbs +0 -0
- package/blueprints-js/util/files/__root__/utils/__name__.js +0 -3
- package/blueprints-js/util-test/qunit-files/__root__/__testType__/__name__-test.js +0 -10
- package/blueprints-js/util-test/qunit-rfc-232-files/__root__/__testType__/__name__-test.js +0 -10
- /package/{blueprints-js → blueprints}/initializer-addon/files/__root__/__path__/__name__.js +0 -0
- /package/{blueprints-js → blueprints}/instance-initializer-addon/files/__root__/__path__/__name__.js +0 -0
|
@@ -4,18 +4,9 @@ const stringUtil = require('ember-cli-string-utils');
|
|
|
4
4
|
const path = require('path');
|
|
5
5
|
const inflector = require('inflection');
|
|
6
6
|
|
|
7
|
-
const maybePolyfillTypeScriptBlueprints = require('./-maybe-polyfill-typescript-blueprints');
|
|
8
|
-
|
|
9
7
|
module.exports = {
|
|
10
8
|
description: 'Generates an import wrapper.',
|
|
11
9
|
|
|
12
|
-
shouldTransformTypeScript: true,
|
|
13
|
-
|
|
14
|
-
init() {
|
|
15
|
-
this._super && this._super.init.apply(this, arguments);
|
|
16
|
-
maybePolyfillTypeScriptBlueprints(this);
|
|
17
|
-
},
|
|
18
|
-
|
|
19
10
|
fileMapTokens: function () {
|
|
20
11
|
return {
|
|
21
12
|
__name__: function (options) {
|
|
@@ -5,7 +5,7 @@ const path = require('path');
|
|
|
5
5
|
const pathUtil = require('ember-cli-path-utils');
|
|
6
6
|
const stringUtils = require('ember-cli-string-utils');
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
9
9
|
const { modulePrefixForProject } = require('../-utils');
|
|
10
10
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
11
11
|
|
|
@@ -16,7 +16,7 @@ module.exports = useTestFrameworkDetector({
|
|
|
16
16
|
|
|
17
17
|
init() {
|
|
18
18
|
this._super && this._super.init.apply(this, arguments);
|
|
19
|
-
|
|
19
|
+
typescriptBlueprintPolyfill(this);
|
|
20
20
|
},
|
|
21
21
|
|
|
22
22
|
locals: function (options) {
|
|
@@ -8,7 +8,7 @@ const normalizeEntityName = require('ember-cli-normalize-entity-name');
|
|
|
8
8
|
const { has } = require('@ember/edition-utils');
|
|
9
9
|
const { generateComponentSignature } = require('../-utils');
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
12
12
|
|
|
13
13
|
const OCTANE = has('octane');
|
|
14
14
|
|
|
@@ -51,17 +51,10 @@ module.exports = {
|
|
|
51
51
|
},
|
|
52
52
|
],
|
|
53
53
|
|
|
54
|
-
/**
|
|
55
|
-
Flag to let us correctly handle the case where we are running against a
|
|
56
|
-
version of Ember CLI which does not support TS-based emit, and where we
|
|
57
|
-
therefore *must* not emit a `defaultExport` local which includes a type
|
|
58
|
-
parameter in the exported function call or class definition.
|
|
59
|
-
*/
|
|
60
|
-
_isUsingTS: false,
|
|
61
|
-
|
|
62
54
|
init() {
|
|
63
55
|
this._super && this._super.init.apply(this, arguments);
|
|
64
|
-
|
|
56
|
+
typescriptBlueprintPolyfill(this);
|
|
57
|
+
|
|
65
58
|
let isOctane = has('octane');
|
|
66
59
|
|
|
67
60
|
this.availableOptions.forEach((option) => {
|
|
@@ -210,21 +203,13 @@ module.exports = {
|
|
|
210
203
|
break;
|
|
211
204
|
case '@glimmer/component':
|
|
212
205
|
importComponent = `import Component from '@glimmer/component';`;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
defaultExport = `class ${classifiedModuleName} extends Component<${classifiedModuleName}Signature> {}`;
|
|
216
|
-
} else {
|
|
217
|
-
defaultExport = `class ${classifiedModuleName} extends Component {}`;
|
|
218
|
-
}
|
|
206
|
+
componentSignature = generateComponentSignature(classifiedModuleName);
|
|
207
|
+
defaultExport = `class ${classifiedModuleName} extends Component<${classifiedModuleName}Signature> {}`;
|
|
219
208
|
break;
|
|
220
209
|
case '@ember/component/template-only':
|
|
221
210
|
importComponent = `import templateOnly from '@ember/component/template-only';`;
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
defaultExport = `templateOnly<${classifiedModuleName}Signature>();`;
|
|
225
|
-
} else {
|
|
226
|
-
defaultExport = `templateOnly();`;
|
|
227
|
-
}
|
|
211
|
+
componentSignature = generateComponentSignature(classifiedModuleName);
|
|
212
|
+
defaultExport = `templateOnly<${classifiedModuleName}Signature>();`;
|
|
228
213
|
break;
|
|
229
214
|
}
|
|
230
215
|
|
|
@@ -5,18 +5,9 @@ const stringUtil = require('ember-cli-string-utils');
|
|
|
5
5
|
const getPathOption = require('ember-cli-get-component-path-option');
|
|
6
6
|
const normalizeEntityName = require('ember-cli-normalize-entity-name');
|
|
7
7
|
|
|
8
|
-
const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
|
|
9
|
-
|
|
10
8
|
module.exports = {
|
|
11
9
|
description: 'Generates a component.',
|
|
12
10
|
|
|
13
|
-
shouldTransformTypeScript: true,
|
|
14
|
-
|
|
15
|
-
init() {
|
|
16
|
-
this._super && this._super.init.apply(this, arguments);
|
|
17
|
-
maybePolyfillTypeScriptBlueprints(this);
|
|
18
|
-
},
|
|
19
|
-
|
|
20
11
|
fileMapTokens: function () {
|
|
21
12
|
return {
|
|
22
13
|
__path__: function (options) {
|
|
@@ -7,7 +7,7 @@ const normalizeEntityName = require('ember-cli-normalize-entity-name');
|
|
|
7
7
|
const { has } = require('@ember/edition-utils');
|
|
8
8
|
const { generateComponentSignature } = require('../-utils');
|
|
9
9
|
|
|
10
|
-
const
|
|
10
|
+
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
11
11
|
|
|
12
12
|
const OCTANE = has('octane');
|
|
13
13
|
|
|
@@ -47,17 +47,10 @@ module.exports = {
|
|
|
47
47
|
},
|
|
48
48
|
],
|
|
49
49
|
|
|
50
|
-
/**
|
|
51
|
-
Flag to let us correctly handle the case where we are running against a
|
|
52
|
-
version of Ember CLI which does not support TS-based emit, and where we
|
|
53
|
-
therefore *must* not emit a `defaultExport` local which includes a type
|
|
54
|
-
parameter in the exported function call or class definition.
|
|
55
|
-
*/
|
|
56
|
-
_isUsingTS: false,
|
|
57
|
-
|
|
58
50
|
init() {
|
|
59
51
|
this._super && this._super.init.apply(this, arguments);
|
|
60
|
-
|
|
52
|
+
typescriptBlueprintPolyfill(this);
|
|
53
|
+
|
|
61
54
|
let isOctane = has('octane');
|
|
62
55
|
|
|
63
56
|
this.availableOptions.forEach((option) => {
|
|
@@ -132,21 +125,13 @@ module.exports = {
|
|
|
132
125
|
break;
|
|
133
126
|
case '@glimmer/component':
|
|
134
127
|
importComponent = `import Component from '@glimmer/component';`;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
defaultExport = `class ${classifiedModuleName} extends Component<${classifiedModuleName}Signature> {}`;
|
|
138
|
-
} else {
|
|
139
|
-
defaultExport = `class ${classifiedModuleName} extends Component {}`;
|
|
140
|
-
}
|
|
128
|
+
componentSignature = generateComponentSignature(classifiedModuleName);
|
|
129
|
+
defaultExport = `class ${classifiedModuleName} extends Component<${classifiedModuleName}Signature> {}`;
|
|
141
130
|
break;
|
|
142
131
|
case '@ember/component/template-only':
|
|
143
132
|
importComponent = `import templateOnly from '@ember/component/template-only';`;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
defaultExport = `templateOnly<${classifiedModuleName}Signature>();`;
|
|
147
|
-
} else {
|
|
148
|
-
defaultExport = `templateOnly();`;
|
|
149
|
-
}
|
|
133
|
+
componentSignature = generateComponentSignature(classifiedModuleName);
|
|
134
|
+
defaultExport = `templateOnly<${classifiedModuleName}Signature>();`;
|
|
150
135
|
break;
|
|
151
136
|
}
|
|
152
137
|
|
|
@@ -5,18 +5,9 @@ const stringUtil = require('ember-cli-string-utils');
|
|
|
5
5
|
const getPathOption = require('ember-cli-get-component-path-option');
|
|
6
6
|
const normalizeEntityName = require('ember-cli-normalize-entity-name');
|
|
7
7
|
|
|
8
|
-
const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
|
|
9
|
-
|
|
10
8
|
module.exports = {
|
|
11
9
|
description: 'Generates a component class.',
|
|
12
10
|
|
|
13
|
-
shouldTransformTypeScript: true,
|
|
14
|
-
|
|
15
|
-
init() {
|
|
16
|
-
this._super && this._super.init.apply(this, arguments);
|
|
17
|
-
maybePolyfillTypeScriptBlueprints(this);
|
|
18
|
-
},
|
|
19
|
-
|
|
20
11
|
fileMapTokens: function () {
|
|
21
12
|
return {
|
|
22
13
|
__path__: function (options) {
|
|
@@ -6,7 +6,7 @@ const isPackageMissing = require('ember-cli-is-package-missing');
|
|
|
6
6
|
const getPathOption = require('ember-cli-get-component-path-option');
|
|
7
7
|
const semver = require('semver');
|
|
8
8
|
|
|
9
|
-
const
|
|
9
|
+
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
10
10
|
const { modulePrefixForProject } = require('../-utils');
|
|
11
11
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
12
12
|
|
|
@@ -22,7 +22,7 @@ module.exports = useTestFrameworkDetector({
|
|
|
22
22
|
|
|
23
23
|
init() {
|
|
24
24
|
this._super && this._super.init.apply(this, arguments);
|
|
25
|
-
|
|
25
|
+
typescriptBlueprintPolyfill(this);
|
|
26
26
|
},
|
|
27
27
|
|
|
28
28
|
availableOptions: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
description: 'Generates a controller.',
|
|
@@ -9,7 +9,7 @@ module.exports = {
|
|
|
9
9
|
|
|
10
10
|
init() {
|
|
11
11
|
this._super && this._super.init.apply(this, arguments);
|
|
12
|
-
|
|
12
|
+
typescriptBlueprintPolyfill(this);
|
|
13
13
|
},
|
|
14
14
|
|
|
15
15
|
normalizeEntityName: function (entityName) {
|
|
@@ -5,7 +5,7 @@ const stringUtil = require('ember-cli-string-utils');
|
|
|
5
5
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
6
6
|
const path = require('path');
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
9
9
|
const { modulePrefixForProject } = require('../-utils');
|
|
10
10
|
|
|
11
11
|
module.exports = useTestFrameworkDetector({
|
|
@@ -15,7 +15,7 @@ module.exports = useTestFrameworkDetector({
|
|
|
15
15
|
|
|
16
16
|
init() {
|
|
17
17
|
this._super && this._super.init.apply(this, arguments);
|
|
18
|
-
|
|
18
|
+
typescriptBlueprintPolyfill(this);
|
|
19
19
|
},
|
|
20
20
|
|
|
21
21
|
locals: function (options) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const normalizeEntityName = require('ember-cli-normalize-entity-name');
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
6
6
|
|
|
7
7
|
module.exports = {
|
|
8
8
|
description: 'Generates a helper function.',
|
|
@@ -11,7 +11,7 @@ module.exports = {
|
|
|
11
11
|
|
|
12
12
|
init() {
|
|
13
13
|
this._super && this._super.init.apply(this, arguments);
|
|
14
|
-
|
|
14
|
+
typescriptBlueprintPolyfill(this);
|
|
15
15
|
},
|
|
16
16
|
|
|
17
17
|
normalizeEntityName: function (entityName) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const isPackageMissing = require('ember-cli-is-package-missing');
|
|
4
4
|
const semver = require('semver');
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
7
7
|
const { modulePrefixForProject } = require('../-utils');
|
|
8
8
|
|
|
9
9
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
@@ -15,7 +15,7 @@ module.exports = useTestFrameworkDetector({
|
|
|
15
15
|
|
|
16
16
|
init() {
|
|
17
17
|
this._super && this._super.init.apply(this, arguments);
|
|
18
|
-
|
|
18
|
+
typescriptBlueprintPolyfill(this);
|
|
19
19
|
},
|
|
20
20
|
|
|
21
21
|
fileMapTokens: function () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
description: 'Generates an initializer.',
|
|
@@ -9,6 +9,6 @@ module.exports = {
|
|
|
9
9
|
|
|
10
10
|
init() {
|
|
11
11
|
this._super && this._super.init.apply(this, arguments);
|
|
12
|
-
|
|
12
|
+
typescriptBlueprintPolyfill(this);
|
|
13
13
|
},
|
|
14
14
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const fs = require('fs');
|
|
4
4
|
const path = require('path');
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
7
7
|
const { modulePrefixForProject } = require('../-utils');
|
|
8
8
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
9
9
|
|
|
@@ -14,7 +14,7 @@ module.exports = useTestFrameworkDetector({
|
|
|
14
14
|
|
|
15
15
|
init() {
|
|
16
16
|
this._super && this._super.init.apply(this, arguments);
|
|
17
|
-
|
|
17
|
+
typescriptBlueprintPolyfill(this);
|
|
18
18
|
},
|
|
19
19
|
|
|
20
20
|
fileMapTokens: function () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
shouldTransformTypeScript: true,
|
|
@@ -9,6 +9,6 @@ module.exports = {
|
|
|
9
9
|
|
|
10
10
|
init() {
|
|
11
11
|
this._super && this._super.init.apply(this, arguments);
|
|
12
|
-
|
|
12
|
+
typescriptBlueprintPolyfill(this);
|
|
13
13
|
},
|
|
14
14
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const fs = require('fs');
|
|
4
4
|
const path = require('path');
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
7
7
|
const { modulePrefixForProject } = require('../-utils');
|
|
8
8
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
9
9
|
|
|
@@ -14,7 +14,7 @@ module.exports = useTestFrameworkDetector({
|
|
|
14
14
|
|
|
15
15
|
init() {
|
|
16
16
|
this._super && this._super.init.apply(this, arguments);
|
|
17
|
-
|
|
17
|
+
typescriptBlueprintPolyfill(this);
|
|
18
18
|
},
|
|
19
19
|
|
|
20
20
|
fileMapTokens: function () {
|
|
@@ -7,7 +7,7 @@ const stringUtil = require('ember-cli-string-utils');
|
|
|
7
7
|
const EmberRouterGenerator = require('ember-router-generator');
|
|
8
8
|
const SilentError = require('silent-error');
|
|
9
9
|
|
|
10
|
-
const
|
|
10
|
+
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
11
11
|
|
|
12
12
|
module.exports = {
|
|
13
13
|
description: 'Generates a route and a template, and registers the route with the router.',
|
|
@@ -33,7 +33,7 @@ module.exports = {
|
|
|
33
33
|
|
|
34
34
|
init() {
|
|
35
35
|
this._super && this._super.init.apply(this, arguments);
|
|
36
|
-
|
|
36
|
+
typescriptBlueprintPolyfill(this);
|
|
37
37
|
},
|
|
38
38
|
|
|
39
39
|
fileMapTokens: function () {
|
|
@@ -4,18 +4,9 @@ const path = require('path');
|
|
|
4
4
|
const stringUtil = require('ember-cli-string-utils');
|
|
5
5
|
const inflector = require('inflection');
|
|
6
6
|
|
|
7
|
-
const maybePolyfillTypeScriptBlueprints = require('../-maybe-polyfill-typescript-blueprints');
|
|
8
|
-
|
|
9
7
|
module.exports = {
|
|
10
8
|
description: 'Generates import wrappers for a route and its template.',
|
|
11
9
|
|
|
12
|
-
shouldTransformTypeScript: true,
|
|
13
|
-
|
|
14
|
-
init() {
|
|
15
|
-
this._super && this._super.init.apply(this, arguments);
|
|
16
|
-
maybePolyfillTypeScriptBlueprints(this);
|
|
17
|
-
},
|
|
18
|
-
|
|
19
10
|
fileMapTokens: function () {
|
|
20
11
|
return {
|
|
21
12
|
__templatepath__: function (options) {
|
|
@@ -4,7 +4,7 @@ const path = require('path');
|
|
|
4
4
|
const stringUtil = require('ember-cli-string-utils');
|
|
5
5
|
|
|
6
6
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
7
|
-
const
|
|
7
|
+
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
8
8
|
const { modulePrefixForProject } = require('../-utils');
|
|
9
9
|
|
|
10
10
|
module.exports = useTestFrameworkDetector({
|
|
@@ -14,7 +14,7 @@ module.exports = useTestFrameworkDetector({
|
|
|
14
14
|
|
|
15
15
|
init() {
|
|
16
16
|
this._super && this._super.init.apply(this, arguments);
|
|
17
|
-
|
|
17
|
+
typescriptBlueprintPolyfill(this);
|
|
18
18
|
},
|
|
19
19
|
|
|
20
20
|
availableOptions: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
description: 'Generates a service.',
|
|
@@ -9,7 +9,7 @@ module.exports = {
|
|
|
9
9
|
|
|
10
10
|
init() {
|
|
11
11
|
this._super && this._super.init.apply(this, arguments);
|
|
12
|
-
|
|
12
|
+
typescriptBlueprintPolyfill(this);
|
|
13
13
|
},
|
|
14
14
|
|
|
15
15
|
normalizeEntityName: function (entityName) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
4
4
|
const { modulePrefixForProject } = require('../-utils');
|
|
5
5
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ module.exports = useTestFrameworkDetector({
|
|
|
11
11
|
|
|
12
12
|
init() {
|
|
13
13
|
this._super && this._super.init.apply(this, arguments);
|
|
14
|
-
|
|
14
|
+
typescriptBlueprintPolyfill(this);
|
|
15
15
|
},
|
|
16
16
|
|
|
17
17
|
fileMapTokens() {
|
package/blueprints/util/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
description: 'Generates a simple utility module/function.',
|
|
@@ -9,7 +9,7 @@ module.exports = {
|
|
|
9
9
|
|
|
10
10
|
init() {
|
|
11
11
|
this._super && this._super.init.apply(this, arguments);
|
|
12
|
-
|
|
12
|
+
typescriptBlueprintPolyfill(this);
|
|
13
13
|
},
|
|
14
14
|
|
|
15
15
|
normalizeEntityName: function (entityName) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const path = require('path');
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
|
|
6
6
|
const { modulePrefixForProject } = require('../-utils');
|
|
7
7
|
const useTestFrameworkDetector = require('../test-framework-detector');
|
|
8
8
|
|
|
@@ -13,7 +13,7 @@ module.exports = useTestFrameworkDetector({
|
|
|
13
13
|
|
|
14
14
|
init() {
|
|
15
15
|
this._super && this._super.init.apply(this, arguments);
|
|
16
|
-
|
|
16
|
+
typescriptBlueprintPolyfill(this);
|
|
17
17
|
},
|
|
18
18
|
|
|
19
19
|
fileMapTokens() {
|
package/build-metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "6.2.0-
|
|
2
|
+
"version": "6.2.0-beta.1",
|
|
3
3
|
"buildType": "tag",
|
|
4
|
-
"SHA": "
|
|
5
|
-
"assetPath": "/tag/shas/
|
|
4
|
+
"SHA": "71794a5f6d8518e6e15678fae33d08dc2164732c",
|
|
5
|
+
"assetPath": "/tag/shas/71794a5f6d8518e6e15678fae33d08dc2164732c.tgz"
|
|
6
6
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
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 6.2.0-
|
|
8
|
+
* @version 6.2.0-beta.1
|
|
9
9
|
*/
|
|
10
10
|
/* eslint-disable no-var */
|
|
11
11
|
/* globals global globalThis self */
|
|
@@ -15651,7 +15651,7 @@ var define, require;
|
|
|
15651
15651
|
}, Symbol.toStringTag, { value: 'Module' });
|
|
15652
15652
|
|
|
15653
15653
|
// this file gets replaced with the real value during the build
|
|
15654
|
-
const version = '6.2.0-
|
|
15654
|
+
const version = '6.2.0-beta.1';
|
|
15655
15655
|
|
|
15656
15656
|
const emberVersion = /*#__PURE__*/Object.defineProperty({
|
|
15657
15657
|
__proto__: null,
|
package/dist/ember-testing.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
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 6.2.0-
|
|
8
|
+
* @version 6.2.0-beta.1
|
|
9
9
|
*/
|
|
10
10
|
/* eslint-disable no-var */
|
|
11
11
|
/* globals global globalThis self */
|
package/dist/ember.debug.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
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 6.2.0-
|
|
8
|
+
* @version 6.2.0-beta.1
|
|
9
9
|
*/
|
|
10
10
|
/* eslint-disable no-var */
|
|
11
11
|
/* globals global globalThis self */
|
|
@@ -3379,7 +3379,7 @@ var define, require;
|
|
|
3379
3379
|
}, Symbol.toStringTag, { value: 'Module' });
|
|
3380
3380
|
|
|
3381
3381
|
// this file gets replaced with the real value during the build
|
|
3382
|
-
const Version = '6.2.0-
|
|
3382
|
+
const Version = '6.2.0-beta.1';
|
|
3383
3383
|
|
|
3384
3384
|
const emberVersion = /*#__PURE__*/Object.defineProperty({
|
|
3385
3385
|
__proto__: null,
|
|
@@ -3612,6 +3612,15 @@ var define, require;
|
|
|
3612
3612
|
available: '5.10.0',
|
|
3613
3613
|
enabled: '5.10.0'
|
|
3614
3614
|
}
|
|
3615
|
+
}),
|
|
3616
|
+
DEPRECATE_IMPORT_INJECT: deprecation({
|
|
3617
|
+
for: 'ember-source',
|
|
3618
|
+
id: 'importing-inject-from-ember-service',
|
|
3619
|
+
since: {
|
|
3620
|
+
available: '6.2.0'
|
|
3621
|
+
},
|
|
3622
|
+
until: '7.0.0',
|
|
3623
|
+
url: 'https://deprecations.emberjs.com/id/importing-inject-from-ember-service'
|
|
3615
3624
|
})
|
|
3616
3625
|
};
|
|
3617
3626
|
function deprecateUntil(message, deprecation) {
|
|
@@ -24125,9 +24134,11 @@ var define, require;
|
|
|
24125
24134
|
the property's name
|
|
24126
24135
|
@return {ComputedDecorator} injection decorator instance
|
|
24127
24136
|
@public
|
|
24137
|
+
@deprecated Please import `service` instead.
|
|
24128
24138
|
*/
|
|
24129
24139
|
|
|
24130
24140
|
function inject$1(...args) {
|
|
24141
|
+
deprecateUntil('Importing `inject` from `@ember/service` is deprecated. Please import `service` instead.', DEPRECATIONS.DEPRECATE_IMPORT_INJECT);
|
|
24131
24142
|
return inject$2('service', ...args);
|
|
24132
24143
|
}
|
|
24133
24144
|
|
package/dist/ember.prod.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
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 6.2.0-
|
|
8
|
+
* @version 6.2.0-beta.1
|
|
9
9
|
*/
|
|
10
10
|
/* eslint-disable no-var */
|
|
11
11
|
/* globals global globalThis self */
|
|
@@ -2620,7 +2620,7 @@ var define, require;
|
|
|
2620
2620
|
}, Symbol.toStringTag, { value: 'Module' });
|
|
2621
2621
|
|
|
2622
2622
|
// this file gets replaced with the real value during the build
|
|
2623
|
-
const Version = '6.2.0-
|
|
2623
|
+
const Version = '6.2.0-beta.1';
|
|
2624
2624
|
|
|
2625
2625
|
const emberVersion = /*#__PURE__*/Object.defineProperty({
|
|
2626
2626
|
__proto__: null,
|
|
@@ -2853,6 +2853,15 @@ var define, require;
|
|
|
2853
2853
|
available: '5.10.0',
|
|
2854
2854
|
enabled: '5.10.0'
|
|
2855
2855
|
}
|
|
2856
|
+
}),
|
|
2857
|
+
DEPRECATE_IMPORT_INJECT: deprecation({
|
|
2858
|
+
for: 'ember-source',
|
|
2859
|
+
id: 'importing-inject-from-ember-service',
|
|
2860
|
+
since: {
|
|
2861
|
+
available: '6.2.0'
|
|
2862
|
+
},
|
|
2863
|
+
until: '7.0.0',
|
|
2864
|
+
url: 'https://deprecations.emberjs.com/id/importing-inject-from-ember-service'
|
|
2856
2865
|
})
|
|
2857
2866
|
};
|
|
2858
2867
|
function deprecateUntil(message, deprecation) {
|
|
@@ -22443,9 +22452,11 @@ var define, require;
|
|
|
22443
22452
|
the property's name
|
|
22444
22453
|
@return {ComputedDecorator} injection decorator instance
|
|
22445
22454
|
@public
|
|
22455
|
+
@deprecated Please import `service` instead.
|
|
22446
22456
|
*/
|
|
22447
22457
|
|
|
22448
22458
|
function inject$1(...args) {
|
|
22459
|
+
deprecateUntil('Importing `inject` from `@ember/service` is deprecated. Please import `service` instead.', DEPRECATIONS.DEPRECATE_IMPORT_INJECT);
|
|
22449
22460
|
return inject$2('service', ...args);
|
|
22450
22461
|
}
|
|
22451
22462
|
|
|
@@ -132,6 +132,15 @@ const DEPRECATIONS = {
|
|
|
132
132
|
available: '5.10.0',
|
|
133
133
|
enabled: '5.10.0'
|
|
134
134
|
}
|
|
135
|
+
}),
|
|
136
|
+
DEPRECATE_IMPORT_INJECT: deprecation({
|
|
137
|
+
for: 'ember-source',
|
|
138
|
+
id: 'importing-inject-from-ember-service',
|
|
139
|
+
since: {
|
|
140
|
+
available: '6.2.0'
|
|
141
|
+
},
|
|
142
|
+
until: '7.0.0',
|
|
143
|
+
url: 'https://deprecations.emberjs.com/id/importing-inject-from-ember-service'
|
|
135
144
|
})
|
|
136
145
|
};
|
|
137
146
|
function deprecateUntil(message, deprecation) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FrameworkObject } from '../object/-internals.js';
|
|
2
|
+
import { deprecateUntil, DEPRECATIONS } from '../-internals/deprecations/index.js';
|
|
2
3
|
import '../-internals/meta/lib/meta.js';
|
|
3
4
|
import '../../shared-chunks/mandatory-setter-BiXq-dpN.js';
|
|
4
5
|
import '@embroider/macros';
|
|
@@ -23,9 +24,11 @@ import '../../shared-chunks/env-mInZ1DuF.js';
|
|
|
23
24
|
the property's name
|
|
24
25
|
@return {ComputedDecorator} injection decorator instance
|
|
25
26
|
@public
|
|
27
|
+
@deprecated Please import `service` instead.
|
|
26
28
|
*/
|
|
27
29
|
|
|
28
30
|
function inject(...args) {
|
|
31
|
+
deprecateUntil('Importing `inject` from `@ember/service` is deprecated. Please import `service` instead.', DEPRECATIONS.DEPRECATE_IMPORT_INJECT);
|
|
29
32
|
return inject$1('service', ...args);
|
|
30
33
|
}
|
|
31
34
|
|