ember-source 6.0.0-beta.1 → 6.0.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.
@@ -1,13 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  const chalk = require('chalk');
4
- const path = require('path');
5
4
  const SilentError = require('silent-error');
6
5
  const stringUtil = require('ember-cli-string-utils');
7
- const pathUtil = require('ember-cli-path-utils');
8
6
  const getPathOption = require('ember-cli-get-component-path-option');
9
7
  const normalizeEntityName = require('ember-cli-normalize-entity-name');
10
- const { EOL } = require('os');
11
8
  const { has } = require('@ember/edition-utils');
12
9
  const { generateComponentSignature } = require('../-utils');
13
10
 
@@ -48,9 +45,9 @@ module.exports = {
48
45
  },
49
46
  {
50
47
  name: 'component-structure',
51
- type: OCTANE ? ['flat', 'nested', 'classic'] : ['classic'],
52
- default: OCTANE ? 'flat' : 'classic',
53
- aliases: OCTANE ? [{ fs: 'flat' }, { ns: 'nested' }, { cs: 'classic' }] : [{ cs: 'classic' }],
48
+ type: ['flat', 'nested'],
49
+ default: 'flat',
50
+ aliases: [{ fs: 'flat' }, { ns: 'nested' }],
54
51
  },
55
52
  ],
56
53
 
@@ -75,15 +72,9 @@ module.exports = {
75
72
  option.default = '@ember/component';
76
73
  }
77
74
  } else if (option.name === 'component-structure') {
78
- if (isOctane) {
79
- option.type = ['flat', 'nested', 'classic'];
80
- option.default = 'flat';
81
- option.aliases = [{ fs: 'flat' }, { ns: 'nested' }, { cs: 'classic' }];
82
- } else {
83
- option.type = ['classic'];
84
- option.default = 'classic';
85
- option.aliases = [{ cs: 'classic' }];
86
- }
75
+ option.type = ['flat', 'nested'];
76
+ option.default = 'flat';
77
+ option.aliases = [{ fs: 'flat' }, { ns: 'nested' }];
87
78
  }
88
79
  });
89
80
 
@@ -107,12 +98,6 @@ module.exports = {
107
98
  'Usage of --component-class argument to `ember generate component` is only available on canary'
108
99
  );
109
100
  }
110
-
111
- if (options.componentStructure !== 'classic') {
112
- throw new SilentError(
113
- 'Usage of --component-structure argument to `ember generate component` is only available on canary'
114
- );
115
- }
116
101
  }
117
102
 
118
103
  return this._super.install.apply(this, arguments);
@@ -149,37 +134,7 @@ module.exports = {
149
134
  fileMapTokens(options) {
150
135
  let commandOptions = this.options;
151
136
 
152
- if (commandOptions.pod) {
153
- return {
154
- __path__() {
155
- return path.join(options.podPath, options.locals.path, options.dasherizedModuleName);
156
- },
157
- __templatepath__() {
158
- return path.join(options.podPath, options.locals.path, options.dasherizedModuleName);
159
- },
160
- __templatename__() {
161
- return 'template';
162
- },
163
- };
164
- } else if (
165
- !this.EMBER_GLIMMER_SET_COMPONENT_TEMPLATE ||
166
- commandOptions.componentStructure === 'classic'
167
- ) {
168
- return {
169
- __path__() {
170
- return 'components';
171
- },
172
- __templatepath__() {
173
- return 'templates/components';
174
- },
175
- __templatename__() {
176
- return options.dasherizedModuleName;
177
- },
178
- };
179
- } else if (
180
- this.EMBER_GLIMMER_SET_COMPONENT_TEMPLATE &&
181
- commandOptions.componentStructure === 'flat'
182
- ) {
137
+ if (this.EMBER_GLIMMER_SET_COMPONENT_TEMPLATE && commandOptions.componentStructure === 'flat') {
183
138
  return {
184
139
  __path__() {
185
140
  return 'components';
@@ -236,19 +191,6 @@ module.exports = {
236
191
  },
237
192
 
238
193
  locals(options) {
239
- // if we're in an addon, build import statement
240
- let templatePath = '';
241
- if (options.project.isEmberCLIAddon() || (options.inRepoAddon && !options.inDummy)) {
242
- if (options.pod) {
243
- templatePath = './template';
244
- } else {
245
- templatePath =
246
- pathUtil.getRelativeParentPath(options.entity.name) +
247
- 'templates/components/' +
248
- stringUtil.dasherize(options.entity.name);
249
- }
250
- }
251
-
252
194
  let componentClass = this.EMBER_GLIMMER_SET_COMPONENT_TEMPLATE
253
195
  ? options.componentClass
254
196
  : '@ember/component';
@@ -264,12 +206,7 @@ module.exports = {
264
206
  switch (componentClass) {
265
207
  case '@ember/component':
266
208
  importComponent = `import Component from '@ember/component';`;
267
- if (templatePath) {
268
- importTemplate = `import layout from '${templatePath}';${EOL}`;
269
- defaultExport = `Component.extend({${EOL} layout${EOL}});`;
270
- } else {
271
- defaultExport = `Component.extend({});`;
272
- }
209
+ defaultExport = `Component.extend({});`;
273
210
  break;
274
211
  case '@glimmer/component':
275
212
  importComponent = `import Component from '@glimmer/component';`;
@@ -1,12 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const path = require('path');
4
3
  const SilentError = require('silent-error');
5
4
  const stringUtil = require('ember-cli-string-utils');
6
- const pathUtil = require('ember-cli-path-utils');
7
5
  const getPathOption = require('ember-cli-get-component-path-option');
8
6
  const normalizeEntityName = require('ember-cli-normalize-entity-name');
9
- const { EOL } = require('os');
10
7
  const { has } = require('@ember/edition-utils');
11
8
  const { generateComponentSignature } = require('../-utils');
12
9
 
@@ -44,9 +41,9 @@ module.exports = {
44
41
  },
45
42
  {
46
43
  name: 'component-structure',
47
- type: OCTANE ? ['flat', 'nested', 'classic'] : ['classic'],
48
- default: OCTANE ? 'flat' : 'classic',
49
- aliases: OCTANE ? [{ fs: 'flat' }, { ns: 'nested' }, { cs: 'classic' }] : [{ cs: 'classic' }],
44
+ type: ['flat', 'nested'],
45
+ default: 'flat',
46
+ aliases: [{ fs: 'flat' }, { ns: 'nested' }],
50
47
  },
51
48
  ],
52
49
 
@@ -71,15 +68,9 @@ module.exports = {
71
68
  option.default = '@ember/component';
72
69
  }
73
70
  } else if (option.name === 'component-structure') {
74
- if (isOctane) {
75
- option.type = ['flat', 'nested', 'classic'];
76
- option.default = 'flat';
77
- option.aliases = [{ fs: 'flat' }, { ns: 'nested' }, { cs: 'classic' }];
78
- } else {
79
- option.type = ['classic'];
80
- option.default = 'classic';
81
- option.aliases = [{ cs: 'classic' }];
82
- }
71
+ option.type = ['flat', 'nested'];
72
+ option.default = 'flat';
73
+ option.aliases = [{ fs: 'flat' }, { ns: 'nested' }];
83
74
  }
84
75
  });
85
76
 
@@ -99,19 +90,7 @@ module.exports = {
99
90
  fileMapTokens(options) {
100
91
  let commandOptions = this.options;
101
92
 
102
- if (commandOptions.pod) {
103
- return {
104
- __path__() {
105
- return path.join(options.podPath, options.locals.path, options.dasherizedModuleName);
106
- },
107
- __name__() {
108
- return 'component';
109
- },
110
- };
111
- } else if (
112
- commandOptions.componentStructure === 'classic' ||
113
- commandOptions.componentStructure === 'flat'
114
- ) {
93
+ if (commandOptions.componentStructure === 'flat') {
115
94
  return {
116
95
  __path__() {
117
96
  return 'components';
@@ -139,35 +118,17 @@ module.exports = {
139
118
  let sanitizedModuleName = options.entity.name.replace(/\//g, '-');
140
119
  let classifiedModuleName = stringUtil.classify(sanitizedModuleName);
141
120
 
142
- let templatePath = '';
143
121
  let importComponent = '';
144
122
  let importTemplate = '';
145
123
  let defaultExport = '';
146
124
  let componentSignature = '';
147
125
 
148
- // if we're in an addon, build import statement
149
- if (options.project.isEmberCLIAddon() || (options.inRepoAddon && !options.inDummy)) {
150
- if (options.pod) {
151
- templatePath = './template';
152
- } else {
153
- templatePath =
154
- pathUtil.getRelativeParentPath(options.entity.name) +
155
- 'templates/components/' +
156
- stringUtil.dasherize(options.entity.name);
157
- }
158
- }
159
-
160
126
  let componentClass = options.componentClass;
161
127
 
162
128
  switch (componentClass) {
163
129
  case '@ember/component':
164
130
  importComponent = `import Component from '@ember/component';`;
165
- if (templatePath) {
166
- importTemplate = `import layout from '${templatePath}';${EOL}`;
167
- defaultExport = `Component.extend({${EOL} layout${EOL}});`;
168
- } else {
169
- defaultExport = `Component.extend({});`;
170
- }
131
+ defaultExport = `Component.extend({});`;
171
132
  break;
172
133
  case '@glimmer/component':
173
134
  importComponent = `import Component from '@glimmer/component';`;
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "6.0.0-beta.1",
2
+ "version": "6.0.1",
3
3
  "buildType": "tag",
4
- "SHA": "fab7a68bd6b491e803e46a6d1190948cf6e1986b",
5
- "assetPath": "/tag/shas/fab7a68bd6b491e803e46a6d1190948cf6e1986b.tgz"
4
+ "SHA": "0d7b7fcab84089dd8f8e86bc28cd769522e39b78",
5
+ "assetPath": "/tag/shas/0d7b7fcab84089dd8f8e86bc28cd769522e39b78.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.0.0-beta.1
8
+ * @version 6.0.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.0.0-beta.1';
15654
+ const version = '6.0.1';
15655
15655
 
15656
15656
  const emberVersion = /*#__PURE__*/Object.defineProperty({
15657
15657
  __proto__: null,
@@ -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.0.0-beta.1
8
+ * @version 6.0.1
9
9
  */
10
10
  /* eslint-disable no-var */
11
11
  /* globals global globalThis self */
@@ -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.0.0-beta.1
8
+ * @version 6.0.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.0.0-beta.1';
3382
+ const Version = '6.0.1';
3383
3383
 
3384
3384
  const emberVersion = /*#__PURE__*/Object.defineProperty({
3385
3385
  __proto__: null,
@@ -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.0.0-beta.1
8
+ * @version 6.0.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.0.0-beta.1';
2623
+ const Version = '6.0.1';
2624
2624
 
2625
2625
  const emberVersion = /*#__PURE__*/Object.defineProperty({
2626
2626
  __proto__: null,
@@ -1,4 +1,4 @@
1
1
  // this file gets replaced with the real value during the build
2
- const Version = '6.0.0-beta.1';
2
+ const Version = '6.0.1';
3
3
 
4
4
  export { Version as default };
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": "6.0.0-beta.1"
6
+ "version": "6.0.1"
7
7
  },
8
8
  "files": {
9
9
  "node_modules/rsvp/lib/rsvp/promise/all.js": {
package/lib/browsers.js CHANGED
@@ -1,75 +1,47 @@
1
1
  module.exports = [
2
- 'Chrome >= 103',
3
- 'Edge >= 110',
4
- 'Firefox >= 102',
5
- 'iOS >= 12',
6
- 'Safari >= 12',
7
- 'ChromeAndroid >= 112',
8
- 'FirefoxAndroid >= 110',
2
+ 'Chrome >= 109',
3
+ 'Edge >= 128',
4
+ 'Firefox >= 115',
5
+ 'iOS >= 15.6',
6
+ 'Safari >= 15.6',
7
+ 'ChromeAndroid >= 130',
8
+ 'FirefoxAndroid >= 130',
9
9
  ];
10
10
 
11
11
  /*
12
- As of the release of April 2023, the above query expands to:
12
+ The above is generated via browserslist to comply with [RFC #685](https://rfcs.emberjs.com/id/0685-new-browser-support-policy)
13
+ and [RFC #984](https://rfcs.emberjs.com/id/0984-update-browser-support-policy) by running the following command:
13
14
 
14
- and_chr 112
15
- and_ff 110
16
- chrome 112
17
- chrome 111
18
- chrome 110
19
- chrome 109
20
- chrome 108
21
- chrome 107
22
- chrome 106
23
- chrome 105
24
- chrome 104
25
- chrome 103
26
- edge 112
27
- edge 111
28
- edge 110
29
- firefox 112
30
- firefox 111
31
- firefox 110
32
- firefox 109
33
- firefox 108
34
- firefox 107
35
- firefox 106
36
- firefox 105
37
- firefox 104
38
- firefox 103
39
- firefox 102
40
- ios_saf 16.4
41
- ios_saf 16.3
42
- ios_saf 16.2
43
- ios_saf 16.0
44
- ios_saf 15.6
45
- ios_saf 15.5
46
- ios_saf 15.4
47
- ios_saf 15.2-15.3
48
- ios_saf 15.0-15.1
49
- ios_saf 14.5-14.8
50
- ios_saf 14.0-14.4
51
- ios_saf 13.4-13.7
52
- ios_saf 13.3
53
- ios_saf 13.2
54
- ios_saf 13.0-13.1
55
- ios_saf 12.2-12.5
56
- ios_saf 12.0-12.1
57
- safari 16.4
58
- safari 16.3
59
- safari 16.2
60
- safari 16.1
61
- safari 16.0
62
- safari 15.6
63
- safari 15.5
64
- safari 15.4
65
- safari 15.2-15.3
66
- safari 15.1
67
- safari 15
68
- safari 14.1
69
- safari 14
70
- safari 13.1
71
- safari 13
72
- safari 12.1
73
- safari 12
15
+ `npx browserslist '>0.25%, Firefox ESR, last 1 Chrome version, last 1 Firefox version, last 1 Edge version, last 1 FirefoxAndroid version, last 1 ChromeAndroid version, not dead'`
16
+
17
+ And then filtering out unsupported browsers.
74
18
 
19
+ and_chr 130
20
+ and_ff 130
21
+ chrome 130
22
+ chrome 129
23
+ chrome 128
24
+ chrome 127
25
+ chrome 126
26
+ chrome 125
27
+ chrome 124
28
+ chrome 109
29
+ edge 130
30
+ edge 129
31
+ edge 128
32
+ firefox 132
33
+ firefox 130
34
+ firefox 129
35
+ firefox 128
36
+ firefox 115
37
+ ios_saf 18.0
38
+ ios_saf 17.6-17.7
39
+ ios_saf 17.5
40
+ ios_saf 17.4
41
+ ios_saf 16.6-16.7
42
+ ios_saf 16.1
43
+ ios_saf 15.6-15.8
44
+ safari 17.6
45
+ safari 17.5
46
+ safari 16.6
75
47
  */
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "6.0.0-beta.1",
3
+ "version": "6.0.1",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
7
7
  ],
8
8
  "exports": {
9
9
  "./*": "./dist/packages/*",
10
+ "./types": {
11
+ "types": "./types/stable/index.d.ts"
12
+ },
10
13
  "./dist/ember-template-compiler.js": "./dist/ember-template-compiler.js",
11
14
  "./package.json": "./package.json"
12
15
  },
@@ -372,9 +375,6 @@
372
375
  "node": "16.20.0",
373
376
  "pnpm": "8.10.0"
374
377
  },
375
- "_originalVersion": "6.0.0-beta.1",
376
- "_versionPreviouslyCalculated": true,
377
- "publishConfig": {
378
- "tag": "beta"
379
- }
378
+ "_originalVersion": "6.0.1",
379
+ "_versionPreviouslyCalculated": true
380
380
  }