ember-source 4.0.0-beta.7 → 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.
- package/CHANGELOG.md +11 -0
- package/blueprints/acceptance-test/qunit-files/tests/acceptance/__name__-test.js +1 -1
- package/blueprints/acceptance-test/qunit-rfc-232-files/tests/acceptance/__name__-test.js +1 -1
- package/blueprints/component-test/qunit-files/__root__/__testType__/__path__/__test__.js +3 -3
- package/blueprints/helper-test/index.js +4 -22
- package/blueprints/helper-test/mocha-0.12-files/__root__/__testType__/__collection__/__name__-test.js +1 -13
- package/blueprints/helper-test/mocha-files/__root__/__testType__/__collection__/__name__-test.js +0 -13
- package/blueprints/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js +2 -12
- package/blueprints/helper-test/qunit-files/__root__/__testType__/__collection__/__name__-test.js +2 -13
- package/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js +2 -14
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +2 -5
- 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 +28 -40
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/container/index.js +1 -1
- package/dist/packages/@ember/-internals/glimmer/index.js +7 -7
- package/dist/packages/@ember/-internals/utils/index.js +0 -3
- package/dist/packages/@ember/-internals/views/lib/mixins/view_support.js +4 -4
- package/dist/packages/@ember/application/lib/application.js +7 -8
- package/dist/packages/@ember/engine/index.js +1 -2
- package/dist/packages/ember/index.js +7 -13
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +44 -68
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
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
|
+
|
|
3
10
|
### v4.0.0-beta.7 (November 1, 2021)
|
|
4
11
|
|
|
5
12
|
- [#19677](https://github.com/emberjs/ember.js/pull/19677) [CLEANUP] Remove jQuery from build
|
|
@@ -73,6 +80,10 @@
|
|
|
73
80
|
- [#19695](https://github.com/emberjs/ember.js/pull/19695) [CLEANUP] Remove {{partial}}
|
|
74
81
|
- [#19691](https://github.com/emberjs/ember.js/pull/19691) Add build assertion against `{{outlet named}}`
|
|
75
82
|
|
|
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
|
+
|
|
76
87
|
## v3.28.3 (October 22, 2021)
|
|
77
88
|
|
|
78
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)
|
|
@@ -7,6 +7,6 @@ test('visiting /<%= dasherizedModuleName %>', function(assert) {
|
|
|
7
7
|
visit('/<%= dasherizedModuleName %>');
|
|
8
8
|
|
|
9
9
|
andThen(function() {
|
|
10
|
-
assert.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
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__(
|
|
32
|
-
return
|
|
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
|
|
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
|
-
|
|
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
|
-
<% } %>
|
package/blueprints/helper-test/mocha-files/__root__/__testType__/__collection__/__name__-test.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
})
|
|
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
|
+
});
|
package/blueprints/helper-test/qunit-files/__root__/__testType__/__collection__/__name__-test.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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.
|
|
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
|
-
|
|
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
|
-
})
|
|
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
|
+
});
|
package/build-metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.0.0-beta.
|
|
2
|
+
"version": "4.0.0-beta.8",
|
|
3
3
|
"buildType": "tag",
|
|
4
|
-
"SHA": "
|
|
5
|
-
"assetPath": "/tag/shas/
|
|
4
|
+
"SHA": "78f8fbf3bebc724e39dd0d6806f28c8021764866",
|
|
5
|
+
"assetPath": "/tag/shas/78f8fbf3bebc724e39dd0d6806f28c8021764866.tgz"
|
|
6
6
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
|
|
7
7
|
* @license Licensed under MIT license
|
|
8
8
|
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
|
|
9
|
-
* @version 4.0.0-beta.
|
|
9
|
+
* @version 4.0.0-beta.8
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/* eslint-disable no-var */
|
|
@@ -506,9 +506,6 @@ define("@ember/-internals/utils/index", ["exports", "@glimmer/util", "@ember/deb
|
|
|
506
506
|
*/
|
|
507
507
|
|
|
508
508
|
/**
|
|
509
|
-
Previously we used `Ember.$.uuid`, however `$.uuid` has been removed from
|
|
510
|
-
jQuery master. We'll just bootstrap our own uuid now.
|
|
511
|
-
|
|
512
509
|
@private
|
|
513
510
|
@return {Number} the uuid
|
|
514
511
|
*/
|
|
@@ -18725,7 +18722,7 @@ define("ember/version", ["exports"], function (_exports) {
|
|
|
18725
18722
|
value: true
|
|
18726
18723
|
});
|
|
18727
18724
|
_exports.default = void 0;
|
|
18728
|
-
var _default = "4.0.0-beta.
|
|
18725
|
+
var _default = "4.0.0-beta.8";
|
|
18729
18726
|
_exports.default = _default;
|
|
18730
18727
|
});
|
|
18731
18728
|
define("simple-html-tokenizer", ["exports"], function (_exports) {
|