ember-source 4.8.2 → 4.8.4

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 4.8.2
8
+ * @version 4.8.4
9
9
  */
@@ -1 +1 @@
1
- export default "4.8.2";
1
+ export default "4.8.4";
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": "4.8.2"
6
+ "version": "4.8.4"
7
7
  },
8
8
  "files": {
9
9
  "node_modules/rsvp/lib/rsvp/promise/all.js": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-source",
3
- "version": "4.8.2",
3
+ "version": "4.8.4",
4
4
  "description": "A JavaScript framework for creating ambitious web applications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -178,6 +178,9 @@
178
178
  ]
179
179
  }
180
180
  },
181
- "_originalVersion": "4.8.2",
182
- "_versionPreviouslyCalculated": true
183
- }
181
+ "_originalVersion": "4.8.4",
182
+ "_versionPreviouslyCalculated": true,
183
+ "publishConfig": {
184
+ "tag": "old"
185
+ }
186
+ }
@@ -30,7 +30,7 @@ declare module '@ember/controller' {
30
30
  */
31
31
  transitionToRoute(...args: any[]): void;
32
32
  model: unknown;
33
- queryParams: Array<string | Record<string, QueryParamConfig | string | undefined>>;
33
+ queryParams: Readonly<Array<string | Record<string, QueryParamConfig | string | undefined>>>;
34
34
  target: object;
35
35
  }
36
36
  export const ControllerMixin: Mixin;
@@ -1,11 +1,12 @@
1
1
  declare module '@ember/debug/container-debug-adapter' {
2
+ import EmberObject from '@ember/object';
2
3
  import type { Resolver } from '@ember/-internals/resolver';
3
4
 
4
5
  /**
5
6
  * The ContainerDebugAdapter helps the container and resolver interface
6
7
  * with tools that debug Ember such as the Ember Inspector for Chrome and Firefox.
7
8
  */
8
- export default class ContainerDebugAdapter extends Object {
9
+ export default class ContainerDebugAdapter extends EmberObject {
9
10
  resolver: Resolver;
10
11
  canCatalogEntriesByType(type: string): boolean;
11
12
  catalogEntriesByType(type: string): string[];
@@ -3,7 +3,10 @@ declare module '@ember/owner' {
3
3
  * The name for a factory consists of a namespace and the name of a specific
4
4
  * type within that namespace, like `'service:session'`.
5
5
  */
6
- export type FullName = `${string}:${string}`;
6
+ export type FullName<
7
+ Type extends string = string,
8
+ Name extends string = string
9
+ > = `${Type}:${Name}`;
7
10
 
8
11
  // TODO: when migrating into Ember proper, evaluate whether we should introduce
9
12
  // a registry which users can provide to resolve known types, so e.g.
@@ -97,6 +100,40 @@ declare module '@ember/owner' {
97
100
  readonly class: Factory<T>;
98
101
  }
99
102
 
103
+ /**
104
+ A record mapping all known items of a given type: if the item is known it
105
+ will be `true`; otherwise it will be `false` or `undefined`.
106
+ */
107
+ export type KnownForTypeResult<Type extends string> = {
108
+ [Key in FullName<Type, string>]: boolean | undefined;
109
+ };
110
+
111
+ /**
112
+ A `Resolver` is the mechanism responsible for looking up code in your
113
+ application and converting its naming conventions into the actual classes,
114
+ functions, and templates that Ember needs to resolve its dependencies, for
115
+ example, what template to render for a given route. It is a system that helps
116
+ the app resolve the lookup of JavaScript modules agnostic of what kind of
117
+ module system is used, which can be AMD, CommonJS or just plain globals. It
118
+ is used to lookup routes, models, components, templates, or anything that is
119
+ used in your Ember app.
120
+
121
+ This interface is not a concrete class; instead, it represents the contract a
122
+ custom resolver must implement. Most apps never need to think about this: in
123
+ the default blueprint, this is supplied by the `ember-resolver` package.
124
+ */
125
+ export interface Resolver {
126
+ /**
127
+ The one required method for a `Resolver`. Given a string, resolve it to a
128
+ `Factory`, if one exists.
129
+ */
130
+ resolve: (name: string) => Factory<object> | object | undefined;
131
+ knownForType?: <Type extends string>(type: Type) => KnownForTypeResult<Type>;
132
+ lookupDescription?: (fullName: FullName) => string;
133
+ makeToString?: (factory: Factory<object>, fullName: FullName) => string;
134
+ normalize?: (fullName: FullName) => FullName;
135
+ }
136
+
100
137
  // Don't export things unless we *intend* to.
101
138
  export {};
102
139
  }