ember-source 4.8.2 → 4.8.3
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 +5 -0
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +2 -2
- 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 +2 -2
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +1 -1
- package/package.json +7 -4
- package/types/preview/@ember/controller/index.d.ts +1 -1
- package/types/preview/@ember/owner/index.d.ts +38 -1
package/dist/header/license.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "4.8.
|
|
1
|
+
export default "4.8.3";
|
package/docs/data.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-source",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.3",
|
|
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.
|
|
182
|
-
"_versionPreviouslyCalculated": true
|
|
183
|
-
|
|
181
|
+
"_originalVersion": "4.8.3",
|
|
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;
|
|
@@ -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
|
|
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
|
}
|