ember-source 4.9.0 → 4.9.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.
- package/CHANGELOG.md +264 -246
- 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 +2 -2
- package/types/preview/@ember/controller/index.d.ts +1 -1
- package/types/preview/@ember/owner/index.d.ts +38 -1
- package/types/preview/ember/index.d.ts +6 -6
- package/types/preview/index.d.ts +0 -1
- package/types/preview/@ember/application/deprecations.d.ts +0 -24
package/dist/header/license.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "4.9.
|
|
1
|
+
export default "4.9.2";
|
package/docs/data.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-source",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.2",
|
|
4
4
|
"description": "A JavaScript framework for creating ambitious web applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -179,6 +179,6 @@
|
|
|
179
179
|
]
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
|
-
"_originalVersion": "4.9.
|
|
182
|
+
"_originalVersion": "4.9.2",
|
|
183
183
|
"_versionPreviouslyCalculated": true
|
|
184
184
|
}
|
|
@@ -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
|
|
|
@@ -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
|
}
|
|
@@ -29,7 +29,6 @@ declare module 'ember' {
|
|
|
29
29
|
import EmberCoreObject from '@ember/object/core';
|
|
30
30
|
import * as EmberApplicationNs from '@ember/application';
|
|
31
31
|
import * as EmberApplicationInstanceNs from '@ember/application/instance';
|
|
32
|
-
import type * as EmberApplicationDeprecateNs from '@ember/application/deprecations';
|
|
33
32
|
import type * as EmberTestNs from '@ember/test';
|
|
34
33
|
import * as EmberControllerNs from '@ember/controller';
|
|
35
34
|
import EmberMixin from '@ember/object/mixin';
|
|
@@ -84,8 +83,7 @@ declare module 'ember' {
|
|
|
84
83
|
export class HashLocation extends EmberRoutingHashLocation {}
|
|
85
84
|
export class NoneLocation extends EmberRoutingNoneLocation {}
|
|
86
85
|
export class HistoryLocation extends EmberRoutingHistoryLocation {}
|
|
87
|
-
export const
|
|
88
|
-
export const deprecate: typeof EmberApplicationDeprecateNs.deprecate;
|
|
86
|
+
export const deprecate: typeof EmberDebugNs.deprecate;
|
|
89
87
|
export const getOwner: typeof EmberApplicationNs.getOwner;
|
|
90
88
|
export const setOwner: typeof EmberApplicationNs.setOwner;
|
|
91
89
|
export class EventDispatcher extends EmberEventDispatcher {}
|
|
@@ -238,9 +236,11 @@ declare module 'ember' {
|
|
|
238
236
|
const service: typeof EmberServiceNs.inject;
|
|
239
237
|
}
|
|
240
238
|
namespace ENV {
|
|
241
|
-
const EXTEND_PROTOTYPES:
|
|
242
|
-
|
|
243
|
-
|
|
239
|
+
const EXTEND_PROTOTYPES:
|
|
240
|
+
| boolean
|
|
241
|
+
| {
|
|
242
|
+
Array: boolean;
|
|
243
|
+
};
|
|
244
244
|
const LOG_BINDINGS: boolean;
|
|
245
245
|
const LOG_STACKTRACE_ON_DEPRECATION: boolean;
|
|
246
246
|
const LOG_VERSION: boolean;
|
package/types/preview/index.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ import './@ember/-internals/resolver';
|
|
|
28
28
|
import './@ember/application';
|
|
29
29
|
import './@ember/application/-private/event-dispatcher';
|
|
30
30
|
import './@ember/application/-private/registry';
|
|
31
|
-
import './@ember/application/deprecations';
|
|
32
31
|
import './@ember/application/instance';
|
|
33
32
|
import './@ember/application/types';
|
|
34
33
|
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
declare module '@ember/application/deprecations' {
|
|
2
|
-
import { AnyFn } from 'ember/-private/type-utils';
|
|
3
|
-
|
|
4
|
-
interface DeprecationOptions {
|
|
5
|
-
id: string;
|
|
6
|
-
until: string;
|
|
7
|
-
url?: string | undefined;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Display a deprecation warning with the provided message and a stack trace
|
|
12
|
-
* (Chrome and Firefox only).
|
|
13
|
-
*/
|
|
14
|
-
export function deprecate(message: string, test: boolean, options: DeprecationOptions): void;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Alias an old, deprecated method with its new counterpart.
|
|
18
|
-
*/
|
|
19
|
-
export function deprecateFunc<Func extends AnyFn>(
|
|
20
|
-
message: string,
|
|
21
|
-
options: DeprecationOptions,
|
|
22
|
-
func: Func
|
|
23
|
-
): Func;
|
|
24
|
-
}
|