ember-source 4.4.0-alpha.4 → 4.4.0-alpha.7

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 (85) hide show
  1. package/CHANGELOG.md +3 -5
  2. package/blueprints/-addon-import.js +9 -0
  3. package/blueprints/-maybe-polyfill-typescript-blueprints.js +17 -0
  4. package/blueprints/acceptance-test/index.js +8 -0
  5. package/blueprints/acceptance-test/mocha-rfc-232-files/tests/acceptance/{__name__-test.js → __name__-test.ts} +0 -0
  6. package/blueprints/acceptance-test/qunit-rfc-232-files/tests/acceptance/{__name__-test.js → __name__-test.ts} +0 -0
  7. package/blueprints/component/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  8. package/blueprints/component/index.js +6 -1
  9. package/blueprints/component-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  10. package/blueprints/component-addon/index.js +9 -0
  11. package/blueprints/component-class/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  12. package/blueprints/component-class/index.js +5 -0
  13. package/blueprints/component-class-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  14. package/blueprints/component-class-addon/index.js +9 -0
  15. package/blueprints/component-test/index.js +8 -0
  16. package/blueprints/component-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +0 -0
  17. package/blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
  18. package/blueprints/controller/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  19. package/blueprints/controller/index.js +10 -0
  20. package/blueprints/controller-test/index.js +10 -0
  21. package/blueprints/controller-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +0 -0
  22. package/blueprints/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +0 -0
  23. package/blueprints/helper/files/__root__/__collection__/{__name__.js → __name__.ts} +0 -0
  24. package/blueprints/helper/index.js +9 -0
  25. package/blueprints/helper-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  26. package/blueprints/helper-test/index.js +9 -0
  27. package/blueprints/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/{__name__-test.js → __name__-test.ts} +0 -0
  28. package/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/{__name__-test.js → __name__-test.ts} +0 -0
  29. package/blueprints/initializer/files/__root__/initializers/__name__.ts +6 -0
  30. package/blueprints/initializer/index.js +9 -0
  31. package/blueprints/initializer-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  32. package/blueprints/initializer-test/index.js +8 -0
  33. package/blueprints/initializer-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__name__-test.js → __name__-test.ts} +3 -1
  34. package/blueprints/initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.ts +37 -0
  35. package/blueprints/instance-initializer/files/__root__/instance-initializers/__name__.ts +6 -0
  36. package/blueprints/instance-initializer/index.js +9 -0
  37. package/blueprints/instance-initializer-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  38. package/blueprints/instance-initializer-test/index.js +8 -0
  39. package/blueprints/instance-initializer-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__name__-test.js → __name__-test.ts} +5 -1
  40. package/blueprints/instance-initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__name__-test.js → __name__-test.ts} +6 -1
  41. package/blueprints/route/files/__root__/__path__/{__name__.js → __name__.ts} +2 -4
  42. package/blueprints/route/index.js +9 -0
  43. package/blueprints/route-addon/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  44. package/blueprints/route-addon/index.js +9 -0
  45. package/blueprints/route-test/index.js +9 -0
  46. package/blueprints/route-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +0 -0
  47. package/blueprints/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +0 -0
  48. package/blueprints/service/files/__root__/__path__/{__name__.js → __name__.ts} +0 -0
  49. package/blueprints/service/index.js +10 -0
  50. package/blueprints/service-test/index.js +8 -0
  51. package/blueprints/service-test/mocha-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +0 -0
  52. package/blueprints/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +0 -0
  53. package/blueprints/util/files/__root__/utils/{__name__.js → __name__.ts} +0 -0
  54. package/blueprints/util/index.js +10 -0
  55. package/blueprints/util-test/index.js +8 -0
  56. package/blueprints/util-test/mocha-rfc-232-files/__root__/__testType__/{__name__-test.js → __name__-test.ts} +0 -0
  57. package/blueprints/util-test/qunit-rfc-232-files/__root__/__testType__/{__name__-test.js → __name__-test.ts} +0 -0
  58. package/build-metadata.json +3 -3
  59. package/dist/ember-template-compiler.js +10 -12
  60. package/dist/ember-template-compiler.map +1 -1
  61. package/dist/ember-testing.js +7 -3
  62. package/dist/ember-testing.map +1 -1
  63. package/dist/ember.debug.js +484 -785
  64. package/dist/ember.debug.map +1 -1
  65. package/dist/header/license.js +1 -1
  66. package/dist/packages/@ember/-internals/container/index.js +1 -10
  67. package/dist/packages/@ember/-internals/glimmer/index.js +107 -218
  68. package/dist/packages/@ember/-internals/meta/lib/meta.js +1 -1
  69. package/dist/packages/@ember/-internals/metal/index.js +22 -21
  70. package/dist/packages/@ember/-internals/routing/lib/services/router.js +140 -145
  71. package/dist/packages/@ember/-internals/routing/lib/system/route-info.js +4 -0
  72. package/dist/packages/@ember/-internals/routing/lib/system/router.js +2 -0
  73. package/dist/packages/@ember/-internals/routing/lib/system/transition.js +4 -0
  74. package/dist/packages/@ember/-internals/runtime/lib/system/core_object.js +118 -302
  75. package/dist/packages/@ember/-internals/runtime/lib/system/object.js +8 -23
  76. package/dist/packages/@ember/-internals/views/lib/views/core_view.js +47 -29
  77. package/dist/packages/@ember/canary-features/index.js +1 -5
  78. package/dist/packages/@ember/debug/lib/deprecate.js +6 -2
  79. package/dist/packages/ember/version.js +1 -1
  80. package/docs/data.json +448 -810
  81. package/package.json +20 -17
  82. package/blueprints/initializer/files/__root__/initializers/__name__.js +0 -5
  83. package/blueprints/initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +0 -34
  84. package/blueprints/instance-initializer/files/__root__/instance-initializers/__name__.js +0 -5
  85. package/dist/packages/@ember/renderer/index.js +0 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "4.4.0-alpha.4",
3
+ "version": "4.4.0-alpha.7",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -42,7 +42,9 @@
42
42
  "lint:tsc": "tsc --noEmit",
43
43
  "lint:fix": "npm-run-all lint:*:fix",
44
44
  "test": "node bin/run-tests.js",
45
- "test:blueprints": "mocha node-tests/blueprints/**/*-test.js",
45
+ "test:blueprints:js": "mocha node-tests/blueprints/**/*-test.js",
46
+ "test:blueprints:ts": "EMBER_TYPESCRIPT_BLUEPRINTS=true yarn test:blueprints:js",
47
+ "test:blueprints": "yarn test:blueprints:js && yarn test:blueprints:ts",
46
48
  "test:node": "qunit tests/node/**/*-test.js",
47
49
  "test:browserstack": "node bin/run-browserstack-tests.js"
48
50
  },
@@ -60,12 +62,13 @@
60
62
  "broccoli-merge-trees": "^4.2.0",
61
63
  "chalk": "^4.0.0",
62
64
  "ember-auto-import": "^2.4.0",
63
- "ember-cli-babel": "^7.23.0",
65
+ "ember-cli-babel": "^7.26.11",
64
66
  "ember-cli-get-component-path-option": "^1.0.0",
65
67
  "ember-cli-is-package-missing": "^1.0.0",
66
68
  "ember-cli-normalize-entity-name": "^1.0.0",
67
69
  "ember-cli-path-utils": "^1.0.0",
68
70
  "ember-cli-string-utils": "^1.1.0",
71
+ "ember-cli-typescript-blueprint-polyfill": "^0.1.0",
69
72
  "ember-cli-version-checker": "^5.1.2",
70
73
  "ember-router-generator": "^2.0.0",
71
74
  "inflection": "^1.13.2",
@@ -91,10 +94,10 @@
91
94
  "@simple-dom/document": "^1.4.0",
92
95
  "@types/qunit": "^2.11.3",
93
96
  "@types/rsvp": "^4.0.4",
94
- "@typescript-eslint/eslint-plugin": "^5.10.0",
95
- "@typescript-eslint/parser": "^5.13.0",
97
+ "@typescript-eslint/eslint-plugin": "^5.15.0",
98
+ "@typescript-eslint/parser": "^5.15.0",
96
99
  "auto-dist-tag": "^2.1.1",
97
- "aws-sdk": "^2.1083.0",
100
+ "aws-sdk": "^2.1095.0",
98
101
  "babel-template": "^6.26.0",
99
102
  "backburner.js": "^2.7.0",
100
103
  "broccoli-babel-transpiler": "^7.8.0",
@@ -108,14 +111,14 @@
108
111
  "common-tags": "^1.8.2",
109
112
  "core-js": "^2.6.5",
110
113
  "dag-map": "^2.0.2",
111
- "ember-cli": "^4.1.1",
114
+ "ember-cli": "^4.2.0",
112
115
  "ember-cli-blueprint-test-helpers": "^0.19.2",
113
116
  "ember-cli-browserstack": "^2.0.1",
114
117
  "ember-cli-dependency-checker": "^3.2.0",
115
118
  "ember-cli-yuidoc": "^0.9.1",
116
119
  "ember-publisher": "0.0.7",
117
- "eslint": "^8.7.0",
118
- "eslint-config-prettier": "^8.3.0",
120
+ "eslint": "^8.11.0",
121
+ "eslint-config-prettier": "^8.5.0",
119
122
  "eslint-import-resolver-node": "^0.3.6",
120
123
  "eslint-plugin-disable-features": "^0.1.3",
121
124
  "eslint-plugin-ember-internal": "^2.0.0",
@@ -125,7 +128,7 @@
125
128
  "eslint-plugin-qunit": "^7.2.0",
126
129
  "execa": "^5.1.1",
127
130
  "expect-type": "^0.13.0",
128
- "express": "^4.17.1",
131
+ "express": "^4.17.3",
129
132
  "finalhandler": "^1.1.2",
130
133
  "fs-extra": "^10.0.1",
131
134
  "git-repo-info": "^2.1.1",
@@ -134,21 +137,21 @@
134
137
  "html-differ": "^1.4.0",
135
138
  "lodash.uniq": "^4.5.0",
136
139
  "mkdirp": "^1.0.4",
137
- "mocha": "^9.2.0",
140
+ "mocha": "^9.2.2",
138
141
  "npm-run-all": "^4.1.5",
139
- "prettier": "^2.1.2",
140
- "puppeteer": "^3.0.4",
141
- "qunit": "^2.14.0",
142
+ "prettier": "^2.6.0",
143
+ "puppeteer": "^13.5.1",
144
+ "qunit": "^2.18.0",
142
145
  "rollup-plugin-commonjs": "^9.3.4",
143
146
  "rollup-plugin-node-resolve": "^4.2.4",
144
147
  "route-recognizer": "^0.3.4",
145
148
  "router_js": "^8.0.2",
146
149
  "rsvp": "^4.8.5",
147
- "serve-static": "^1.14.1",
150
+ "serve-static": "^1.14.2",
148
151
  "simple-dom": "^1.4.0",
149
152
  "testem": "^3.6.0",
150
153
  "testem-failure-only-reporter": "^1.0.0",
151
- "typescript": "^4.5.4"
154
+ "typescript": "~4.6.0"
152
155
  },
153
156
  "engines": {
154
157
  "node": ">= 12.*"
@@ -156,7 +159,7 @@
156
159
  "ember-addon": {
157
160
  "after": "ember-cli-legacy-blueprints"
158
161
  },
159
- "_originalVersion": "4.4.0-alpha.4",
162
+ "_originalVersion": "4.4.0-alpha.7",
160
163
  "_versionPreviouslyCalculated": true,
161
164
  "publishConfig": {
162
165
  "tag": "alpha"
@@ -1,5 +0,0 @@
1
- export function initialize(/* application */) {}
2
-
3
- export default {
4
- initialize,
5
- };
@@ -1,34 +0,0 @@
1
- import Application from '@ember/application';
2
-
3
- import config from '<%= modulePrefix %>/config/environment';
4
- import { initialize } from '<%= modulePrefix %>/initializers/<%= dasherizedModuleName %>';
5
- import { module, test } from 'qunit';
6
- import Resolver from 'ember-resolver';
7
- <% if (destroyAppExists) { %>import destroyApp from '../../helpers/destroy-app';<% } else { %>import { run } from '@ember/runloop';<% } %>
8
-
9
- module('<%= friendlyTestName %>', function (hooks) {
10
- hooks.beforeEach(function () {
11
- this.TestApplication = class TestApplication extends Application {
12
- modulePrefix = config.modulePrefix;
13
- podModulePrefix = config.podModulePrefix;
14
- Resolver = Resolver;
15
- };
16
- this.TestApplication.initializer({
17
- name: 'initializer under test',
18
- initialize,
19
- });
20
-
21
- this.application = this.TestApplication.create({ autoboot: false });
22
- });
23
-
24
- hooks.afterEach(function () {
25
- <% if (destroyAppExists) { %>destroyApp(this.application);<% } else { %>run(this.application, 'destroy');<% } %>
26
- });
27
-
28
- // TODO: Replace this with your real tests.
29
- test('it works', async function (assert) {
30
- await this.application.boot();
31
-
32
- assert.ok(true);
33
- });
34
- });
@@ -1,5 +0,0 @@
1
- export function initialize(/* appInstance */) {}
2
-
3
- export default {
4
- initialize,
5
- };
@@ -1,21 +0,0 @@
1
- /**
2
- @module @ember/renderer
3
- @public
4
- */
5
-
6
- /**
7
- * @class Renderer
8
- * @public
9
- */
10
-
11
- /**
12
- Returns a promise which will resolve when rendering has settled. Settled in
13
- this context is defined as when all of the tags in use are "current" (e.g.
14
- `renderers.every(r => r._isValid())`). When this is checked at the _end_ of
15
- the run loop, this essentially guarantees that all rendering is completed.
16
-
17
- @method renderSettled
18
- @return {Promise<void>} a promise which fulfills when rendering has settled
19
- @public
20
- */
21
- export { renderSettled } from '@ember/-internals/glimmer';