ember-source 4.4.0-alpha.3 → 4.4.0-alpha.6

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 (89) hide show
  1. package/CHANGELOG.md +5 -1
  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} +1 -1
  6. package/blueprints/acceptance-test/qunit-rfc-232-files/tests/acceptance/{__name__-test.js → __name__-test.ts} +1 -1
  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} +2 -2
  17. package/blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +3 -3
  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} +1 -1
  22. package/blueprints/controller-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
  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} +1 -1
  28. package/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/{__name__-test.js → __name__-test.ts} +1 -1
  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} +1 -1
  47. package/blueprints/route-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
  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} +1 -1
  52. package/blueprints/service-test/qunit-rfc-232-files/__root__/__testType__/__path__/{__test__.js → __test__.ts} +1 -1
  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 +15 -13
  60. package/dist/ember-template-compiler.map +1 -1
  61. package/dist/ember-testing.js +8 -4
  62. package/dist/ember-testing.map +1 -1
  63. package/dist/ember.debug.js +478 -1149
  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 -25
  67. package/dist/packages/@ember/-internals/extension-support/lib/container_debug_adapter.js +10 -19
  68. package/dist/packages/@ember/-internals/extension-support/lib/data_adapter.js +113 -112
  69. package/dist/packages/@ember/-internals/glimmer/index.js +117 -749
  70. package/dist/packages/@ember/-internals/metal/index.js +17 -22
  71. package/dist/packages/@ember/-internals/routing/lib/services/router.js +140 -145
  72. package/dist/packages/@ember/-internals/routing/lib/system/router.js +3 -1
  73. package/dist/packages/@ember/-internals/runtime/lib/ext/rsvp.js +8 -4
  74. package/dist/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +1 -1
  75. package/dist/packages/@ember/-internals/runtime/lib/mixins/array.js +1 -1
  76. package/dist/packages/@ember/-internals/runtime/lib/mixins/promise_proxy.js +16 -16
  77. package/dist/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +8 -8
  78. package/dist/packages/@ember/-internals/views/lib/system/utils.js +4 -2
  79. package/dist/packages/@ember/-internals/views/lib/views/core_view.js +5 -22
  80. package/dist/packages/@ember/canary-features/index.js +1 -5
  81. package/dist/packages/@ember/debug/index.js +1 -1
  82. package/dist/packages/@ember/debug/lib/deprecate.js +6 -2
  83. package/dist/packages/@ember/renderer/index.js +21 -0
  84. package/dist/packages/ember/version.js +1 -1
  85. package/docs/data.json +447 -260
  86. package/package.json +15 -12
  87. package/blueprints/initializer/files/__root__/initializers/__name__.js +0 -5
  88. package/blueprints/initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.js +0 -34
  89. package/blueprints/instance-initializer/files/__root__/instance-initializers/__name__.js +0 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "4.4.0-alpha.3",
3
+ "version": "4.4.0-alpha.6",
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
  },
@@ -59,23 +61,24 @@
59
61
  "broccoli-funnel": "^3.0.8",
60
62
  "broccoli-merge-trees": "^4.2.0",
61
63
  "chalk": "^4.0.0",
62
- "ember-auto-import": "^2.2.0",
64
+ "ember-auto-import": "^2.4.0",
63
65
  "ember-cli-babel": "^7.23.0",
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
- "inflection": "^1.13.1",
74
+ "inflection": "^1.13.2",
72
75
  "resolve": "^1.22.0",
73
76
  "semver": "^7.3.4",
74
77
  "silent-error": "^1.1.1"
75
78
  },
76
79
  "devDependencies": {
77
80
  "@babel/preset-env": "^7.16.11",
78
- "@glimmer/compiler": "0.83.1",
81
+ "@glimmer/compiler": "0.84.0",
79
82
  "@glimmer/destroyable": "0.83.1",
80
83
  "@glimmer/env": "^0.1.7",
81
84
  "@glimmer/global-context": "0.83.1",
@@ -83,7 +86,7 @@
83
86
  "@glimmer/manager": "0.83.1",
84
87
  "@glimmer/node": "0.83.1",
85
88
  "@glimmer/opcode-compiler": "0.83.1",
86
- "@glimmer/owner": "0.83.1",
89
+ "@glimmer/owner": "0.84.0",
87
90
  "@glimmer/program": "0.83.1",
88
91
  "@glimmer/reference": "0.83.1",
89
92
  "@glimmer/runtime": "0.83.1",
@@ -92,9 +95,9 @@
92
95
  "@types/qunit": "^2.11.3",
93
96
  "@types/rsvp": "^4.0.4",
94
97
  "@typescript-eslint/eslint-plugin": "^5.10.0",
95
- "@typescript-eslint/parser": "^5.10.0",
98
+ "@typescript-eslint/parser": "^5.13.0",
96
99
  "auto-dist-tag": "^2.1.1",
97
- "aws-sdk": "^2.1066.0",
100
+ "aws-sdk": "^2.1083.0",
98
101
  "babel-template": "^6.26.0",
99
102
  "backburner.js": "^2.7.0",
100
103
  "broccoli-babel-transpiler": "^7.8.0",
@@ -127,7 +130,7 @@
127
130
  "expect-type": "^0.13.0",
128
131
  "express": "^4.17.1",
129
132
  "finalhandler": "^1.1.2",
130
- "fs-extra": "^10.0.0",
133
+ "fs-extra": "^10.0.1",
131
134
  "git-repo-info": "^2.1.1",
132
135
  "github": "^0.2.3",
133
136
  "glob": "^7.2.0",
@@ -137,7 +140,7 @@
137
140
  "mocha": "^9.2.0",
138
141
  "npm-run-all": "^4.1.5",
139
142
  "prettier": "^2.1.2",
140
- "puppeteer": "^3.0.4",
143
+ "puppeteer": "^13.4.1",
141
144
  "qunit": "^2.14.0",
142
145
  "rollup-plugin-commonjs": "^9.3.4",
143
146
  "rollup-plugin-node-resolve": "^4.2.4",
@@ -148,7 +151,7 @@
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.3",
162
+ "_originalVersion": "4.4.0-alpha.6",
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
- };