@ember-data/tracking 5.4.0-alpha.33 → 5.4.0-alpha.35
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-data/tracking",
|
|
3
3
|
"description": "Tracking Primitives for controlling change notification of Tracked properties when working with EmberData",
|
|
4
|
-
"version": "5.4.0-alpha.
|
|
4
|
+
"version": "5.4.0-alpha.35",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Chris Thoburn <runspired@users.noreply.github.com>",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@ember-data/private-build-infra": "5.4.0-alpha.
|
|
30
|
+
"@ember-data/private-build-infra": "5.4.0-alpha.35",
|
|
31
31
|
"@embroider/macros": "^1.13.5",
|
|
32
32
|
"ember-cached-decorator-polyfill": "^1.0.2",
|
|
33
33
|
"ember-cli-babel": "^8.2.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@glimmer/validator": "^0.88.1",
|
|
64
64
|
"@rollup/plugin-babel": "^6.0.4",
|
|
65
65
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
66
|
-
"@warp-drive/internal-config": "5.4.0-alpha.
|
|
66
|
+
"@warp-drive/internal-config": "5.4.0-alpha.35",
|
|
67
67
|
"ember-source": "~5.6.0",
|
|
68
68
|
"rollup": "^4.9.6",
|
|
69
69
|
"typescript": "^5.3.3",
|
|
@@ -31,9 +31,9 @@ declare module '@ember-data/tracking/-private' {
|
|
|
31
31
|
* @internal
|
|
32
32
|
* @param obj
|
|
33
33
|
*/
|
|
34
|
-
export
|
|
35
|
-
export
|
|
36
|
-
export
|
|
34
|
+
export function subscribe(obj: Tag | Signal): void;
|
|
35
|
+
export function addToTransaction(obj: Tag | Signal): void;
|
|
36
|
+
export function addTransactionCB(method: OpaqueFn): void;
|
|
37
37
|
/**
|
|
38
38
|
* Run `method` without subscribing to any tracked properties
|
|
39
39
|
* controlled by EmberData.
|
|
@@ -50,7 +50,7 @@ declare module '@ember-data/tracking/-private' {
|
|
|
50
50
|
* @param method
|
|
51
51
|
* @return result of invoking method
|
|
52
52
|
*/
|
|
53
|
-
export
|
|
53
|
+
export function untracked<T extends OpaqueFn>(method: T): ReturnType<T>;
|
|
54
54
|
/**
|
|
55
55
|
* Run the method, subscribing to any tracked properties
|
|
56
56
|
* managed by EmberData that were accessed or written during
|
|
@@ -67,7 +67,7 @@ declare module '@ember-data/tracking/-private' {
|
|
|
67
67
|
* @param method
|
|
68
68
|
* @return result of invoking method
|
|
69
69
|
*/
|
|
70
|
-
export
|
|
70
|
+
export function transact<T extends OpaqueFn>(method: T): ReturnType<T>;
|
|
71
71
|
/**
|
|
72
72
|
* A helpful utility for creating a new function that
|
|
73
73
|
* always runs in a transaction. E.G. this "memoizes"
|
|
@@ -80,8 +80,8 @@ declare module '@ember-data/tracking/-private' {
|
|
|
80
80
|
* @param method
|
|
81
81
|
* @return a function that will invoke method in a transaction with any provided args and return its result
|
|
82
82
|
*/
|
|
83
|
-
export
|
|
84
|
-
export
|
|
83
|
+
export function memoTransact<T extends OpaqueFn>(method: T): (...args: unknown[]) => ReturnType<T>;
|
|
84
|
+
export const Signals: unique symbol;
|
|
85
85
|
/**
|
|
86
86
|
* use to add a signal property to the prototype of something.
|
|
87
87
|
*
|
|
@@ -109,7 +109,7 @@ declare module '@ember-data/tracking/-private' {
|
|
|
109
109
|
*
|
|
110
110
|
* @internal
|
|
111
111
|
*/
|
|
112
|
-
export
|
|
112
|
+
export function defineSignal<T extends object>(obj: T, key: string, v?: unknown): void;
|
|
113
113
|
export interface Signal {
|
|
114
114
|
/**
|
|
115
115
|
* Key on the associated object
|
|
@@ -159,7 +159,7 @@ declare module '@ember-data/tracking/-private' {
|
|
|
159
159
|
*/
|
|
160
160
|
lastValue: unknown;
|
|
161
161
|
}
|
|
162
|
-
export
|
|
162
|
+
export function createArrayTags<T extends object>(obj: T, signal: Signal): void;
|
|
163
163
|
/**
|
|
164
164
|
* Create a signal for the key/object pairing.
|
|
165
165
|
*
|
|
@@ -168,7 +168,7 @@ declare module '@ember-data/tracking/-private' {
|
|
|
168
168
|
* @param key Key to create the signal for
|
|
169
169
|
* @return the signal
|
|
170
170
|
*/
|
|
171
|
-
export
|
|
171
|
+
export function createSignal<T extends object>(obj: T, key: string): Signal;
|
|
172
172
|
/**
|
|
173
173
|
* Create a signal for the key/object pairing and subscribes to the signal.
|
|
174
174
|
*
|
|
@@ -180,9 +180,9 @@ declare module '@ember-data/tracking/-private' {
|
|
|
180
180
|
* @param key Key to create the signal for
|
|
181
181
|
* @return the signal
|
|
182
182
|
*/
|
|
183
|
-
export
|
|
184
|
-
export
|
|
185
|
-
export
|
|
183
|
+
export function entangleSignal<T extends object>(signals: Map<string, Signal>, obj: T, key: string): Signal;
|
|
184
|
+
export function getSignal<T extends object>(obj: T, key: string, initialState: boolean): Signal;
|
|
185
|
+
export function peekSignal<T extends object>(obj: T, key: string): Signal | undefined;
|
|
186
186
|
export {};
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
}
|
|
188
|
+
//# sourceMappingURL=-private.d.ts.map
|
|
@@ -5,7 +5,7 @@ declare module '@ember-data/tracking' {
|
|
|
5
5
|
import { createCache, getValue } from '@glimmer/tracking/primitives/cache';
|
|
6
6
|
export { transact, memoTransact, untracked } from '@ember-data/tracking/-private';
|
|
7
7
|
export { dependentKeyCompat as compat } from '@ember/object/compat';
|
|
8
|
-
export
|
|
8
|
+
export function cached<T extends object, K extends keyof T & string>(target: T, key: K, descriptor: PropertyDescriptor): void;
|
|
9
9
|
export { createCache, getValue };
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|