ember-source 5.3.0-beta.1 → 5.4.0-alpha.2

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.
@@ -5,5 +5,5 @@
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 5.3.0-beta.1
8
+ * @version 5.4.0-alpha.2
9
9
  */
@@ -1 +1 @@
1
- export default "5.3.0-beta.1";
1
+ export default "5.4.0-alpha.2";
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": "5.3.0-beta.1"
6
+ "version": "5.4.0-alpha.2"
7
7
  },
8
8
  "files": {
9
9
  "node_modules/rsvp/lib/rsvp/promise/all.js": {
@@ -11533,6 +11533,13 @@
11533
11533
  "class": "Ember.@ember/controller",
11534
11534
  "module": "@ember/controller"
11535
11535
  },
11536
+ {
11537
+ "file": "packages/@ember/controller/index.ts",
11538
+ "line": 370,
11539
+ "description": "A type registry for Ember `Controller`s. Meant to be declaration-merged so string\nlookups resolve to the correct type.\n\nBlueprints should include such a declaration merge for TypeScript:\n\n```ts\nimport Controller from '@ember/controller';\n\nexport default class ExampleController extends Controller {\n// ...\n}\n\ndeclare module '@ember/controller' {\n export interface Registry {\n example: ExampleController;\n }\n}\n```\n\nThen `@inject` can check that the service is registered correctly, and APIs\nlike `owner.lookup('controller:example')` can return `ExampleController`.",
11540
+ "class": "Ember.@ember/controller",
11541
+ "module": "@ember/controller"
11542
+ },
11536
11543
  {
11537
11544
  "file": "packages/@ember/debug/lib/capture-render-tree.ts",
11538
11545
  "line": 9,
@@ -19572,6 +19579,10 @@
19572
19579
  "message": "Missing item type",
19573
19580
  "line": " packages/@ember/controller/index.ts:31"
19574
19581
  },
19582
+ {
19583
+ "message": "Missing item type\nA type registry for Ember `Controller`s. Meant to be declaration-merged so string\nlookups resolve to the correct type.\n\nBlueprints should include such a declaration merge for TypeScript:\n\n```ts\nimport Controller from '@ember/controller';\n\nexport default class ExampleController extends Controller {\n// ...\n}\n\ndeclare module '@ember/controller' {\n export interface Registry {\n example: ExampleController;\n }\n}\n```\n\nThen `@inject` can check that the service is registered correctly, and APIs\nlike `owner.lookup('controller:example')` can return `ExampleController`.",
19584
+ "line": " packages/@ember/controller/index.ts:370"
19585
+ },
19575
19586
  {
19576
19587
  "message": "Missing item type",
19577
19588
  "line": " packages/@ember/engine/index.ts:470"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "5.3.0-beta.1",
3
+ "version": "5.4.0-alpha.2",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -136,7 +136,7 @@
136
136
  "eslint-plugin-disable-features": "^0.1.3",
137
137
  "eslint-plugin-ember-internal": "^3.0.0",
138
138
  "eslint-plugin-import": "^2.27.5",
139
- "eslint-plugin-node": "^11.1.0",
139
+ "eslint-plugin-n": "^16.0.1",
140
140
  "eslint-plugin-prettier": "^4.2.1",
141
141
  "eslint-plugin-qunit": "^7.3.4",
142
142
  "execa": "^5.1.1",
@@ -186,9 +186,9 @@
186
186
  "node": "16.20.0",
187
187
  "yarn": "1.22.19"
188
188
  },
189
- "_originalVersion": "5.3.0-beta.1",
189
+ "_originalVersion": "5.4.0-alpha.2",
190
190
  "_versionPreviouslyCalculated": true,
191
191
  "publishConfig": {
192
- "tag": "beta"
192
+ "tag": "alpha"
193
193
  }
194
194
  }
@@ -281,4 +281,28 @@ declare module '@ember/controller' {
281
281
  export function inject(...args: ElementDescriptor): DecoratorPropertyDescriptor;
282
282
  export function inject(): PropertyDecorator;
283
283
  export { Controller as default, ControllerMixin };
284
+ /**
285
+ A type registry for Ember `Controller`s. Meant to be declaration-merged so string
286
+ lookups resolve to the correct type.
287
+
288
+ Blueprints should include such a declaration merge for TypeScript:
289
+
290
+ ```ts
291
+ import Controller from '@ember/controller';
292
+
293
+ export default class ExampleController extends Controller {
294
+ // ...
295
+ }
296
+
297
+ declare module '@ember/controller' {
298
+ export interface Registry {
299
+ example: ExampleController;
300
+ }
301
+ }
302
+ ```
303
+
304
+ Then `@inject` can check that the service is registered correctly, and APIs
305
+ like `owner.lookup('controller:example')` can return `ExampleController`.
306
+ */
307
+ export interface Registry extends Record<string, Controller | undefined> {}
284
308
  }
@@ -0,0 +1,11 @@
1
+ // This module provides an 'extension' to the `@ember/owner` module from the
2
+ // `@ember/controller` module. Our type publishing infrastructure will pass it
3
+ // through unchanged, so end users will get this extension.
4
+
5
+ import type { Registry } from '@ember/controller';
6
+
7
+ declare module '@ember/owner' {
8
+ export interface DIRegistry {
9
+ controller: Registry;
10
+ }
11
+ }
@@ -208,6 +208,7 @@
208
208
  /// <reference path="./@ember/component/index.d.ts" />
209
209
  /// <reference path="./@ember/component/template-only.d.ts" />
210
210
  /// <reference path="./@ember/controller/index.d.ts" />
211
+ /// <reference path="./@ember/controller/owner-ext.d.ts" />
211
212
  /// <reference path="./@ember/debug/container-debug-adapter.d.ts" />
212
213
  /// <reference path="./@ember/debug/data-adapter.d.ts" />
213
214
  /// <reference path="./@ember/debug/index.d.ts" />