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/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Ember Changelog
2
2
 
3
+ ### v4.0.0-beta.8 (November 5, 2021)
4
+
5
+ - [#19823](https://github.com/emberjs/ember.js/pull/19823) / [#19828](https://github.com/emberjs/ember.js/pull/19828) [BUGFIX] Fix deprecation `until` and link for Component.reopenClass and Component.reopen
6
+ - [#19825](https://github.com/emberjs/ember.js/pull/19825) [BUGFIX] Replace `assert.equal` in blueprints with `assert.strictEqual` to pass eslint-plugin-qunit v7 on generation
7
+ - [#19808](https://github.com/emberjs/ember.js/pull/19808) [CLEANUP] Remove the `--test-type` option from the helper blueprint
8
+ - [#19820](https://github.com/emberjs/ember.js/pull/19820) Fix memory leak when looking up non-instantiable objects from the owner
9
+
10
+ ### v4.0.0-beta.7 (November 1, 2021)
11
+
12
+ - [#19677](https://github.com/emberjs/ember.js/pull/19677) [CLEANUP] Remove jQuery from build
13
+
14
+ ### v4.0.0-beta.6 (October 26, 2021)
15
+
16
+ - [#19799](https://github.com/emberjs/ember.js/pull/19799) / [glimmerjs/glimmer-vm#1354](https://github.com/glimmerjs/glimmer-vm/pull/1354) Fixes for errors while precompiling inline templates (introduced in 3.28.2)
17
+
18
+ ### v4.0.0-beta.5 (October 11, 2021)
19
+
20
+ - [#19761](https://github.com/emberjs/ember.js/pull/19761) [BREAKING] Require ember-auto-import >= 2 or higher to enable ember-source to become a v2 addon in the 4.x cycle
21
+
3
22
  ### v4.0.0-beta.4 (September 13, 2021)
4
23
 
5
24
  - [#19733](https://github.com/emberjs/ember.js/pull/19733) [BUGFIX] Ensure that using `routerService.urlFor(...)` and `routerService.recognize(...)` does not error if the router is not fully initialized
@@ -61,7 +80,19 @@
61
80
  - [#19695](https://github.com/emberjs/ember.js/pull/19695) [CLEANUP] Remove {{partial}}
62
81
  - [#19691](https://github.com/emberjs/ember.js/pull/19691) Add build assertion against `{{outlet named}}`
63
82
 
64
- ### v3.28.1 (August 30, 2021)
83
+ ## v3.28.5 (November 3, 2021)
84
+
85
+ - [#19820](https://github.com/emberjs/ember.js/pull/19820) Fix memory leak when looking up non-instantiable objects from the owner
86
+
87
+ ## v3.28.3 (October 22, 2021)
88
+
89
+ - [#19799](https://github.com/emberjs/ember.js/pull/19799) / [glimmerjs/glimmer-vm#1354](https://github.com/glimmerjs/glimmer-vm/pull/1354) Fixes for errors while precompiling inline templates (introduced in 3.28.2)
90
+
91
+ ## v3.28.2 (October 21, 2021)
92
+
93
+ - [glimmerjs/glimmer-vm#1351](https://github.com/glimmerjs/glimmer-vm/pull/1351) Support lexical scope in loose mode
94
+
95
+ ## v3.28.1 (August 30, 2021)
65
96
 
66
97
  - [#19733](https://github.com/emberjs/ember.js/pull/19733) [BUGFIX] Ensure that using `routerService.urlFor(...)` and `routerService.recognize(...)` does not error if the router is not fully initialized
67
98
 
@@ -7,6 +7,6 @@ test('visiting /<%= dasherizedModuleName %>', function(assert) {
7
7
  visit('/<%= dasherizedModuleName %>');
8
8
 
9
9
  andThen(function() {
10
- assert.equal(currentURL(), '/<%= dasherizedModuleName %>');
10
+ assert.strictEqual(currentURL(), '/<%= dasherizedModuleName %>');
11
11
  });
12
12
  });
@@ -8,6 +8,6 @@ module('<%= friendlyTestName %>', function(hooks) {
8
8
  test('visiting /<%= dasherizedModuleName %>', async function(assert) {
9
9
  await visit('/<%= dasherizedModuleName %>');
10
10
 
11
- assert.equal(currentURL(), '/<%= dasherizedModuleName %>');
11
+ assert.strictEqual(currentURL(), '/<%= dasherizedModuleName %>');
12
12
  });
13
13
  });
@@ -13,7 +13,7 @@ test('it renders', function(assert) {
13
13
 
14
14
  this.render(hbs`<%= selfCloseComponent(componentName) %>`);
15
15
 
16
- assert.equal(this.$().text().trim(), '');
16
+ assert.strictEqual(this.$().text().trim(), '');
17
17
 
18
18
  // Template block usage:
19
19
  this.render(hbs`
@@ -22,10 +22,10 @@ test('it renders', function(assert) {
22
22
  <%= closeComponent(componentName) %>
23
23
  `);
24
24
 
25
- assert.equal(this.$().text().trim(), 'template block text');<% } else if(testType === 'unit') { %>
25
+ assert.strictEqual(this.$().text().trim(), 'template block text');<% } else if(testType === 'unit') { %>
26
26
  // Creates the component instance
27
27
  /*let component =*/ this.subject();
28
28
  // Renders the component to the page
29
29
  this.render();
30
- assert.equal(this.$().text().trim(), '');<% } %>
30
+ assert.strictEqual(this.$().text().trim(), '');<% } %>
31
31
  });
@@ -7,29 +7,15 @@ const semver = require('semver');
7
7
  const useTestFrameworkDetector = require('../test-framework-detector');
8
8
 
9
9
  module.exports = useTestFrameworkDetector({
10
- description: 'Generates a helper integration test or a unit test.',
11
-
12
- availableOptions: [
13
- {
14
- name: 'test-type',
15
- type: ['integration', 'unit'],
16
- default: 'integration',
17
- aliases: [
18
- { i: 'integration' },
19
- { u: 'unit' },
20
- { integration: 'integration' },
21
- { unit: 'unit' },
22
- ],
23
- },
24
- ],
10
+ description: 'Generates a helper integration test.',
25
11
 
26
12
  fileMapTokens: function () {
27
13
  return {
28
14
  __root__() {
29
15
  return 'tests';
30
16
  },
31
- __testType__(options) {
32
- return options.locals.testType || 'integration';
17
+ __testType__() {
18
+ return 'integration';
33
19
  },
34
20
  __collection__() {
35
21
  return 'helpers';
@@ -38,9 +24,7 @@ module.exports = useTestFrameworkDetector({
38
24
  },
39
25
 
40
26
  locals: function (options) {
41
- let testType = options.testType || 'integration';
42
- let testName = testType === 'integration' ? 'Integration' : 'Unit';
43
- let friendlyTestName = [testName, 'Helper', options.entity.name].join(' | ');
27
+ let friendlyTestName = ['Integration', 'Helper', options.entity.name].join(' | ');
44
28
  let dasherizedModulePrefix = stringUtils.dasherize(options.project.config().modulePrefix);
45
29
 
46
30
  let hbsImportStatement = this._useNamedHbsImport()
@@ -48,7 +32,6 @@ module.exports = useTestFrameworkDetector({
48
32
  : "import hbs from 'htmlbars-inline-precompile';";
49
33
 
50
34
  return {
51
- testType,
52
35
  friendlyTestName,
53
36
  dasherizedModulePrefix,
54
37
  hbsImportStatement,
@@ -68,7 +51,6 @@ module.exports = useTestFrameworkDetector({
68
51
  afterInstall: function (options) {
69
52
  if (
70
53
  !options.dryRun &&
71
- options.testType === 'integration' &&
72
54
  !this._useNamedHbsImport() &&
73
55
  isPackageMissing(this, 'ember-cli-htmlbars-inline-precompile')
74
56
  ) {
@@ -1,5 +1,5 @@
1
1
  import { expect } from 'chai';
2
- <% if (testType == 'integration') { %>import { describe, it } from 'mocha';
2
+ import { describe, it } from 'mocha';
3
3
  import { setupComponentTest } from 'ember-mocha';
4
4
  import hbs from 'htmlbars-inline-precompile';
5
5
 
@@ -24,15 +24,3 @@ describe('<%= friendlyTestName %>', function() {
24
24
  expect(this.$().text().trim()).to.equal('1234');
25
25
  });
26
26
  });
27
- <% } else if (testType == 'unit') { %>import { describe, it } from 'mocha';
28
- import { <%= camelizedModuleName %> } from '<%= dasherizedPackageName %>/helpers/<%= dasherizedModuleName %>';
29
-
30
- describe('<%= friendlyTestName %>', function() {
31
-
32
- // TODO: Replace this with your real tests.
33
- it('works', function() {
34
- let result = <%= camelizedModuleName %>(42);
35
- expect(result).to.be.ok;
36
- });
37
- });
38
- <% } %>
@@ -1,5 +1,4 @@
1
1
  import { expect } from 'chai';
2
- <% if (testType == 'integration') { %>
3
2
  import { describeComponent, it } from 'ember-mocha';
4
3
  import hbs from 'htmlbars-inline-precompile';
5
4
 
@@ -25,15 +24,3 @@ describeComponent('<%= dasherizedModuleName %>', 'helper:<%= dasherizedModuleNam
25
24
  });
26
25
  }
27
26
  );
28
- <% } else if (testType == 'unit') { %>import { describe, it } from 'mocha';
29
- import { <%= camelizedModuleName %> } from '<%= dasherizedPackageName %>/helpers/<%= dasherizedModuleName %>';
30
-
31
- describe('<%= friendlyTestName %>', function() {
32
-
33
- // TODO: Replace this with your real tests.
34
- it('works', function() {
35
- let result = <%= camelizedModuleName %>(42);
36
- expect(result).to.be.ok;
37
- });
38
- });
39
- <% } %>
@@ -1,5 +1,5 @@
1
1
  import { expect } from 'chai';
2
- <% if (testType == 'integration') { %>import { describe, it } from 'mocha';
2
+ import { describe, it } from 'mocha';
3
3
  import { setupRenderingTest } from 'ember-mocha';
4
4
  import { render } from '@ember/test-helpers';
5
5
  <%= hbsImportStatement %>
@@ -15,14 +15,4 @@ describe('<%= friendlyTestName %>', function() {
15
15
 
16
16
  expect(this.element.textContent.trim()).to.equal('1234');
17
17
  });
18
- });<% } else if (testType == 'unit') { %>import { describe, it } from 'mocha';
19
- import { <%= camelizedModuleName %> } from '<%= dasherizedPackageName %>/helpers/<%= dasherizedModuleName %>';
20
-
21
- describe('<%= friendlyTestName %>', function() {
22
-
23
- // TODO: Replace this with your real tests.
24
- it('works', function() {
25
- let result = <%= camelizedModuleName %>(42);
26
- expect(result).to.be.ok;
27
- });
28
- });<% } %>
18
+ });
@@ -1,4 +1,4 @@
1
- <% if (testType == 'integration') { %>import { moduleForComponent, test } from 'ember-qunit';
1
+ import { moduleForComponent, test } from 'ember-qunit';
2
2
  import hbs from 'htmlbars-inline-precompile';
3
3
 
4
4
  moduleForComponent('<%= dasherizedModuleName %>', 'helper:<%= dasherizedModuleName %>', {
@@ -11,16 +11,5 @@ test('it renders', function(assert) {
11
11
 
12
12
  this.render(hbs`{{<%= dasherizedModuleName %> this.inputValue}}`);
13
13
 
14
- assert.equal(this.$().text().trim(), '1234');
15
- });<% } else if (testType == 'unit') { %>
16
- import { <%= camelizedModuleName %> } from '<%= dasherizedModulePrefix %>/helpers/<%= dasherizedModuleName %>';
17
- import { module, test } from 'qunit';
18
-
19
- module('<%= friendlyTestName %>');
20
-
21
- // TODO: Replace this with your real tests.
22
- test('it works', function(assert) {
23
- let result = <%= camelizedModuleName %>([42]);
24
- assert.ok(result);
14
+ assert.strictEqual(this.$().text().trim(), '1234');
25
15
  });
26
- <% } %>
@@ -1,4 +1,4 @@
1
- <% if (testType === 'integration') { %>import { module, test } from 'qunit';
1
+ import { module, test } from 'qunit';
2
2
  import { setupRenderingTest } from 'ember-qunit';
3
3
  import { render } from '@ember/test-helpers';
4
4
  <%= hbsImportStatement %>
@@ -14,16 +14,4 @@ module('<%= friendlyTestName %>', function(hooks) {
14
14
 
15
15
  assert.dom(this.element).hasText('1234');
16
16
  });
17
- });<% } else if (testType === 'unit') { %>import { <%= camelizedModuleName %> } from '<%= dasherizedModulePrefix %>/helpers/<%= dasherizedModuleName %>';
18
- import { module, test } from 'qunit';
19
- import { setupTest } from 'ember-qunit';
20
-
21
- module('<%= friendlyTestName %>', function(hooks) {
22
- setupTest(hooks);
23
-
24
- // TODO: Replace this with your real tests.
25
- test('it works', function(assert) {
26
- let result = <%= camelizedModuleName %>([42]);
27
- assert.ok(result);
28
- });
29
- });<% } %>
17
+ });
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "4.0.0-beta.4",
2
+ "version": "4.0.0-beta.8",
3
3
  "buildType": "tag",
4
- "SHA": "52c81a56d322edb7061bfde4012885f36ed0ff64",
5
- "assetPath": "/tag/shas/52c81a56d322edb7061bfde4012885f36ed0ff64.tgz"
4
+ "SHA": "78f8fbf3bebc724e39dd0d6806f28c8021764866",
5
+ "assetPath": "/tag/shas/78f8fbf3bebc724e39dd0d6806f28c8021764866.tgz"
6
6
  }