@ember-data/store 5.4.0-alpha.33 → 5.4.0-alpha.34
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/addon/-private.js +1 -1
- package/addon/{cache-handler-oB00-31L.js → cache-handler-k7I5KvcC.js} +11 -1
- package/addon/cache-handler-k7I5KvcC.js.map +1 -0
- package/addon/index.js +1 -1
- package/package.json +9 -9
- package/unstable-preview-types/-private/cache-handler.d.ts +2 -2
- package/unstable-preview-types/-private/caches/cache-utils.d.ts +2 -2
- package/unstable-preview-types/-private/caches/identifier-cache.d.ts +2 -2
- package/unstable-preview-types/-private/caches/instance-cache.d.ts +2 -2
- package/unstable-preview-types/-private/caches/resource-utils.d.ts +2 -2
- package/unstable-preview-types/-private/document.d.ts +2 -2
- package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts +2 -2
- package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts +2 -2
- package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts +2 -2
- package/unstable-preview-types/-private/managers/cache-manager.d.ts +2 -2
- package/unstable-preview-types/-private/managers/notification-manager.d.ts +2 -2
- package/unstable-preview-types/-private/managers/record-array-manager.d.ts +2 -2
- package/unstable-preview-types/-private/network/request-cache.d.ts +2 -2
- package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts +4 -8
- package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts.map +1 -1
- package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts +118 -0
- package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts.map +1 -0
- package/unstable-preview-types/-private/store-service.d.ts +2 -2
- package/unstable-preview-types/-private/utils/coerce-id.d.ts +2 -2
- package/unstable-preview-types/-private/utils/construct-resource.d.ts +2 -2
- package/unstable-preview-types/-private/utils/identifier-debug-consts.d.ts +2 -2
- package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts +2 -2
- package/unstable-preview-types/-private/utils/normalize-model-name.d.ts +2 -2
- package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts +2 -2
- package/unstable-preview-types/-private.d.ts +18 -3
- package/unstable-preview-types/-private.d.ts.map +1 -1
- package/unstable-preview-types/-types/overview.d.ts +2 -2
- package/unstable-preview-types/-types/q/cache-store-wrapper.d.ts +2 -2
- package/unstable-preview-types/-types/q/cache.d.ts +2 -2
- package/unstable-preview-types/-types/q/ds-model.d.ts +2 -2
- package/unstable-preview-types/-types/q/identifier.d.ts +2 -2
- package/unstable-preview-types/-types/q/promise-proxies.d.ts +2 -2
- package/unstable-preview-types/-types/q/record-data-json-api.d.ts +2 -2
- package/unstable-preview-types/-types/q/record-instance.d.ts +2 -2
- package/unstable-preview-types/-types/q/schema-service.d.ts +2 -2
- package/unstable-preview-types/-types/q/store.d.ts +2 -2
- package/unstable-preview-types/index.d.ts +3 -3
- package/addon/cache-handler-oB00-31L.js.map +0 -1
- package/unstable-preview-types/-private/index.d.ts +0 -18
- package/unstable-preview-types/-private/index.d.ts.map +0 -1
package/addon/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as CacheHandler, S as default, r as recordIdentifierFor, c as setIdentifierForgetMethod, a as setIdentifierGenerationMethod, d as setIdentifierResetMethod, b as setIdentifierUpdateMethod, s as storeFor } from "./cache-handler-
|
|
1
|
+
export { C as CacheHandler, S as default, r as recordIdentifierFor, c as setIdentifierForgetMethod, a as setIdentifierGenerationMethod, d as setIdentifierResetMethod, b as setIdentifierUpdateMethod, s as storeFor } from "./cache-handler-k7I5KvcC";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-data/store",
|
|
3
|
-
"version": "5.4.0-alpha.
|
|
3
|
+
"version": "5.4.0-alpha.34",
|
|
4
4
|
"description": "The core of EmberData. Provides the Store service which coordinates the cache with the network and presentation layers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"ember-data-logo-light.svg"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@ember-data/private-build-infra": "5.4.0-alpha.
|
|
25
|
+
"@ember-data/private-build-infra": "5.4.0-alpha.34",
|
|
26
26
|
"@embroider/macros": "^1.13.5",
|
|
27
27
|
"ember-cli-babel": "^8.2.0",
|
|
28
28
|
"pnpm-sync-dependencies-meta-injected": "0.0.10"
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@ember-data/request": "5.4.0-alpha.
|
|
49
|
-
"@ember-data/tracking": "5.4.0-alpha.
|
|
48
|
+
"@ember-data/request": "5.4.0-alpha.34",
|
|
49
|
+
"@ember-data/tracking": "5.4.0-alpha.34",
|
|
50
50
|
"@ember/string": "^3.1.1",
|
|
51
|
-
"@warp-drive/core-types": "0.0.0-alpha.
|
|
51
|
+
"@warp-drive/core-types": "0.0.0-alpha.20"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@babel/cli": "^7.23.9",
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"@babel/preset-env": "^7.23.9",
|
|
62
62
|
"@babel/preset-typescript": "^7.23.3",
|
|
63
63
|
"@babel/runtime": "^7.23.9",
|
|
64
|
-
"@ember-data/request": "5.4.0-alpha.
|
|
65
|
-
"@ember-data/tracking": "5.4.0-alpha.
|
|
64
|
+
"@ember-data/request": "5.4.0-alpha.34",
|
|
65
|
+
"@ember-data/tracking": "5.4.0-alpha.34",
|
|
66
66
|
"@ember/string": "^3.1.1",
|
|
67
67
|
"@embroider/addon-dev": "^4.1.2",
|
|
68
68
|
"@glimmer/component": "^1.1.2",
|
|
69
69
|
"@rollup/plugin-babel": "^6.0.4",
|
|
70
70
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
71
|
-
"@warp-drive/core-types": "0.0.0-alpha.
|
|
72
|
-
"@warp-drive/internal-config": "5.4.0-alpha.
|
|
71
|
+
"@warp-drive/core-types": "0.0.0-alpha.20",
|
|
72
|
+
"@warp-drive/internal-config": "5.4.0-alpha.34",
|
|
73
73
|
"ember-source": "~5.6.0",
|
|
74
74
|
"rollup": "^4.9.6",
|
|
75
75
|
"typescript": "^5.3.3",
|
|
@@ -7,5 +7,5 @@ declare module '@ember-data/store/-private/caches/cache-utils' {
|
|
|
7
7
|
export declare function removeRecordDataFor(identifier: StableRecordIdentifier | OpaqueRecordInstance): void;
|
|
8
8
|
export default function peekCache(instance: StableRecordIdentifier): Cache | null;
|
|
9
9
|
export default function peekCache(instance: OpaqueRecordInstance): Cache;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=cache-utils.d.ts.map
|
|
@@ -59,5 +59,5 @@ declare module '@ember-data/store/-private/caches/instance-cache' {
|
|
|
59
59
|
export declare function preloadData(store: Store, identifier: StableRecordIdentifier, preload: Record<string, Value>): void;
|
|
60
60
|
export declare function _clearCaches(): void;
|
|
61
61
|
export {};
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=instance-cache.d.ts.map
|
|
@@ -15,5 +15,5 @@ declare module '@ember-data/store/-private/legacy-model-support/shim-model-class
|
|
|
15
15
|
eachRelationship<K extends KeyOrString<T>>(callback: (key: K, relationship: RelationshipSchema) => void, binding?: T): void;
|
|
16
16
|
eachTransformedAttribute<K extends KeyOrString<T>>(callback: (key: K, type: string | null) => void, binding?: T): void;
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=shim-model-class.d.ts.map
|
|
@@ -25,5 +25,5 @@ declare module '@ember-data/store/-private/managers/cache-capabilities-manager'
|
|
|
25
25
|
hasRecord(identifier: StableRecordIdentifier): boolean;
|
|
26
26
|
disconnectRecord(identifier: StableRecordIdentifier): void;
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=cache-capabilities-manager.d.ts.map
|
|
@@ -94,5 +94,5 @@ declare module '@ember-data/store/-private/managers/notification-manager' {
|
|
|
94
94
|
_flushNotification(identifier: StableRecordIdentifier | StableDocumentIdentifier, value: CacheOperation): boolean;
|
|
95
95
|
destroy(): void;
|
|
96
96
|
}
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=notification-manager.d.ts.map
|
|
@@ -93,5 +93,5 @@ declare module '@ember-data/store/-private/managers/record-array-manager' {
|
|
|
93
93
|
}
|
|
94
94
|
export declare function disassociateIdentifier(ArraysCache: Map<StableRecordIdentifier, Set<Collection>>, array: Collection, identifier: StableRecordIdentifier): void;
|
|
95
95
|
export default RecordArrayManager;
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=record-array-manager.d.ts.map
|
|
@@ -105,5 +105,5 @@ declare module '@ember-data/store/-private/network/request-cache' {
|
|
|
105
105
|
getLastRequestForRecord(identifier: StableRecordIdentifier): RequestState | null;
|
|
106
106
|
}
|
|
107
107
|
export {};
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=request-cache.d.ts.map
|
|
@@ -6,17 +6,13 @@ declare module '@ember-data/store/-private/record-arrays/identifier-array' {
|
|
|
6
6
|
import type { Links, PaginationLinks } from '@warp-drive/core-types/spec/raw';
|
|
7
7
|
import type RecordArrayManager from '@ember-data/store/-private/managers/record-array-manager';
|
|
8
8
|
import type Store from '@ember-data/store/-private/store-service';
|
|
9
|
+
import { NativeProxy } from '@ember-data/store/-private/record-arrays/native-proxy-type-fix';
|
|
9
10
|
export declare const ARRAY_SIGNAL: unique symbol;
|
|
10
11
|
export declare const SOURCE: unique symbol;
|
|
11
12
|
export declare const MUTATE: unique symbol;
|
|
12
13
|
export declare const NOTIFY: unique symbol;
|
|
13
14
|
declare const IS_COLLECTION: unique symbol;
|
|
14
15
|
export declare function notifyArray(arr: IdentifierArray): void;
|
|
15
|
-
declare global {
|
|
16
|
-
interface ProxyConstructor {
|
|
17
|
-
new <TSource extends object, TTarget extends object>(target: TSource, handler: ProxyHandler<TSource>): TTarget;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
16
|
export type IdentifierArrayCreateOptions<T = unknown> = {
|
|
21
17
|
identifiers: StableRecordIdentifier[];
|
|
22
18
|
type?: T extends TypedRecordInstance ? TypeFromInstance<T> : string;
|
|
@@ -39,7 +35,7 @@ declare module '@ember-data/store/-private/record-arrays/identifier-array' {
|
|
|
39
35
|
@public
|
|
40
36
|
*/
|
|
41
37
|
interface IdentifierArray<T = unknown> extends Omit<Array<T>, '[]'> {
|
|
42
|
-
[MUTATE]?(target: StableRecordIdentifier[], receiver: typeof
|
|
38
|
+
[MUTATE]?(target: StableRecordIdentifier[], receiver: typeof NativeProxy<StableRecordIdentifier[], T[]>, prop: string, args: unknown[], _SIGNAL: Signal): unknown;
|
|
43
39
|
}
|
|
44
40
|
declare class IdentifierArray<T = unknown> {
|
|
45
41
|
DEPRECATED_CLASS_NAME: string;
|
|
@@ -133,5 +129,5 @@ declare module '@ember-data/store/-private/record-arrays/identifier-array' {
|
|
|
133
129
|
_update(): Promise<Collection<T>>;
|
|
134
130
|
destroy(clear: boolean): void;
|
|
135
131
|
}
|
|
136
|
-
|
|
137
|
-
|
|
132
|
+
}
|
|
133
|
+
//# sourceMappingURL=identifier-array.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identifier-array.d.ts","sourceRoot":"","sources":["../../../src/-private/record-arrays/identifier-array.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAQ5D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B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,MAAM,CAAC;IACjF;;;;;;QAMI;IACI,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,kBAAkB,CAAC;IAErC,OAAO,CAAC,KAAK,EAAE,OAAO;IAUtB,IACI,MAAM,WAET;IACD,IAAI,MAAM,CAAC,KAAK,QAAA,EAEf;gBAEW,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC;IAyOpD;;;;;;;;;;;;;;;;;;;MAmBE;IACF,MAAM,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAyBrC,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAUtC;;;;;;;;;;;;;;;;MAgBE;IACF,IAAI,IAAI,OAAO,CAAC,eAAe,CAAC;CAKjC;AAkBD,eAAe,eAAe,CAAC;AAE/B,MAAM,MAAM,uBAAuB,GAAG,4BAA4B,GAAG;IACnE,KAAK,EAAE,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC7D,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,qBAAa,UAAU,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;IAC7D,KAAK,EAAE,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAQ;gBAExD,OAAO,EAAE,uBAAuB;IAM5C,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAejC,OAAO,CAAC,KAAK,EAAE,OAAO;CAKvB"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
declare module '@ember-data/store/-private/record-arrays/native-proxy-type-fix' {
|
|
2
|
+
interface ProxyHandler<T extends object> {
|
|
3
|
+
/**
|
|
4
|
+
* A trap method for a function call.
|
|
5
|
+
* @param target The original callable object which is being proxied.
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
apply?(target: T, thisArg: any, argArray: any[]): any;
|
|
9
|
+
/**
|
|
10
|
+
* A trap for the `new` operator.
|
|
11
|
+
* @param target The original object which is being proxied.
|
|
12
|
+
* @param newTarget The constructor that was originally called.
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
construct?(target: T, argArray: any[], newTarget: Function): object;
|
|
16
|
+
/**
|
|
17
|
+
* A trap for `Object.defineProperty()`.
|
|
18
|
+
* @param target The original object which is being proxied.
|
|
19
|
+
* @returns A `Boolean` indicating whether or not the property has been defined.
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
defineProperty?(target: T, property: string | symbol, attributes: PropertyDescriptor): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* A trap for the `delete` operator.
|
|
25
|
+
* @param target The original object which is being proxied.
|
|
26
|
+
* @param p The name or `Symbol` of the property to delete.
|
|
27
|
+
* @returns A `Boolean` indicating whether or not the property was deleted.
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
deleteProperty?(target: T, p: string | symbol): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* A trap for getting a property value.
|
|
33
|
+
* @param target The original object which is being proxied.
|
|
34
|
+
* @param p The name or `Symbol` of the property to get.
|
|
35
|
+
* @param receiver The proxy or an object that inherits from the proxy.
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
get?(target: T, p: string | symbol, receiver: any): any;
|
|
39
|
+
/**
|
|
40
|
+
* A trap for `Object.getOwnPropertyDescriptor()`.
|
|
41
|
+
* @param target The original object which is being proxied.
|
|
42
|
+
* @param p The name of the property whose description should be retrieved.
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* A trap for the `[[GetPrototypeOf]]` internal method.
|
|
48
|
+
* @param target The original object which is being proxied.
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
getPrototypeOf?(target: T): object | null;
|
|
52
|
+
/**
|
|
53
|
+
* A trap for the `in` operator.
|
|
54
|
+
* @param target The original object which is being proxied.
|
|
55
|
+
* @param p The name or `Symbol` of the property to check for existence.
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
has?(target: T, p: string | symbol): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* A trap for `Object.isExtensible()`.
|
|
61
|
+
* @param target The original object which is being proxied.
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
isExtensible?(target: T): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* A trap for `Reflect.ownKeys()`.
|
|
67
|
+
* @param target The original object which is being proxied.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
ownKeys?(target: T): ArrayLike<string | symbol>;
|
|
71
|
+
/**
|
|
72
|
+
* A trap for `Object.preventExtensions()`.
|
|
73
|
+
* @param target The original object which is being proxied.
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
preventExtensions?(target: T): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* A trap for setting a property value.
|
|
79
|
+
* @param target The original object which is being proxied.
|
|
80
|
+
* @param p The name or `Symbol` of the property to set.
|
|
81
|
+
* @param receiver The object to which the assignment was originally directed.
|
|
82
|
+
* @returns A `Boolean` indicating whether or not the property was set.
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* A trap for `Object.setPrototypeOf()`.
|
|
88
|
+
* @param target The original object which is being proxied.
|
|
89
|
+
* @param newPrototype The object's new prototype or `null`.
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
setPrototypeOf?(target: T, v: object | null): boolean;
|
|
93
|
+
}
|
|
94
|
+
interface ProxyConstructor {
|
|
95
|
+
/**
|
|
96
|
+
* Creates a revocable Proxy object.
|
|
97
|
+
* @param target A target object to wrap with Proxy.
|
|
98
|
+
* @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
revocable<T extends object>(target: T, handler: ProxyHandler<T>): {
|
|
102
|
+
proxy: T;
|
|
103
|
+
revoke: () => void;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Creates a Proxy object. The Proxy object allows you to create an object that can be used in place of the
|
|
107
|
+
* original object, but which may redefine fundamental Object operations like getting, setting, and defining
|
|
108
|
+
* properties. Proxy objects are commonly used to log property accesses, validate, format, or sanitize inputs.
|
|
109
|
+
* @param target A target object to wrap with Proxy.
|
|
110
|
+
* @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
new <TSource extends object, TTarget extends object>(target: TSource, handler: ProxyHandler<TSource>): TTarget;
|
|
114
|
+
}
|
|
115
|
+
export declare const NativeProxy: ProxyConstructor;
|
|
116
|
+
export {};
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=native-proxy-type-fix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-proxy-type-fix.d.ts","sourceRoot":"","sources":["../../../src/-private/record-arrays/native-proxy-type-fix.ts"],"names":[],"mappings":"AAOA,UAAU,YAAY,CAAC,CAAC,SAAS,MAAM;IACrC;;;;OAIG;IACH,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;IAEtD;;;;;OAKG;IAEH,SAAS,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,SAAS,EAAE,QAAQ,GAAG,MAAM,CAAC;IAEpE;;;;;OAKG;IACH,cAAc,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,UAAU,EA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,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG;QAAE,KAAK,EAAE,CAAC,CAAC;QAAC,MAAM,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IAEnG;;;;;;;OAOG;IACH,KAAK,OAAO,SAAS,MAAM,EAAE,OAAO,SAAS,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;CAChH;AAED,eAAO,MAAM,WAAW,EAAE,gBAAuD,CAAC"}
|
|
@@ -1550,5 +1550,5 @@ declare module '@ember-data/store/-private/store-service' {
|
|
|
1550
1550
|
static create(args?: Record<string, unknown>): Store;
|
|
1551
1551
|
}
|
|
1552
1552
|
export default Store;
|
|
1553
|
-
|
|
1554
|
-
|
|
1553
|
+
}
|
|
1554
|
+
//# sourceMappingURL=store-service.d.ts.map
|
|
@@ -6,5 +6,5 @@ declare module '@ember-data/store/-private/utils/coerce-id' {
|
|
|
6
6
|
declare function coerceId(id: unknown): string | null;
|
|
7
7
|
export declare function ensureStringId(id: Coercable): string;
|
|
8
8
|
export default coerceId;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=coerce-id.d.ts.map
|
|
@@ -6,5 +6,5 @@ declare module '@ember-data/store/-private/utils/construct-resource' {
|
|
|
6
6
|
declare function constructResource(type: string, id: string, lid?: string | null): ExistingResourceIdentifierObject;
|
|
7
7
|
declare function constructResource(type: string, id?: string | number | null, lid?: string | null): ResourceIdentifierObject;
|
|
8
8
|
export default constructResource;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=construct-resource.d.ts.map
|
|
@@ -3,5 +3,5 @@ declare module '@ember-data/store/-private/utils/identifier-debug-consts' {
|
|
|
3
3
|
export declare const DEBUG_IDENTIFIER_BUCKET: unique symbol;
|
|
4
4
|
export declare const DEBUG_STALE_CACHE_OWNER: unique symbol;
|
|
5
5
|
export declare const CACHE_OWNER: unique symbol;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=identifier-debug-consts.d.ts.map
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
declare module '@ember-data/store/-private' {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
/**
|
|
3
|
+
@module @ember-data/store
|
|
4
|
+
*/
|
|
5
|
+
export { default as Store, storeFor } from '@ember-data/store/-private/store-service';
|
|
6
|
+
export { recordIdentifierFor } from '@ember-data/store/-private/caches/instance-cache';
|
|
7
|
+
export { CacheHandler, type LifetimesService } from '@ember-data/store/-private/cache-handler';
|
|
8
|
+
export { setIdentifierGenerationMethod, setIdentifierUpdateMethod, setIdentifierForgetMethod, setIdentifierResetMethod, isStableIdentifier, } from '@ember-data/store/-private/caches/identifier-cache';
|
|
9
|
+
export { default as coerceId } from '@ember-data/store/-private/utils/coerce-id';
|
|
10
|
+
export type { NativeProxy } from './-private/record-arrays/native-proxy-type-fix';
|
|
11
|
+
export { default as RecordArray, default as IdentifierArray, Collection as AdapterPopulatedRecordArray, notifyArray, SOURCE, MUTATE, ARRAY_SIGNAL, } from '@ember-data/store/-private/record-arrays/identifier-array';
|
|
12
|
+
export { default as RecordArrayManager, fastPush } from '@ember-data/store/-private/managers/record-array-manager';
|
|
13
|
+
export { _clearCaches } from '@ember-data/store/-private/caches/instance-cache';
|
|
14
|
+
export { default as peekCache, removeRecordDataFor } from '@ember-data/store/-private/caches/cache-utils';
|
|
15
|
+
export { setRecordIdentifier, StoreMap } from '@ember-data/store/-private/caches/instance-cache';
|
|
16
|
+
export { setCacheFor } from '@ember-data/store/-private/caches/cache-utils';
|
|
17
|
+
export { default as _deprecatingNormalize } from '@ember-data/store/-private/utils/normalize-model-name';
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=-private.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"-private.d.ts","sourceRoot":"","sources":["../src/-private.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"-private.d.ts","sourceRoot":"","sources":["../src/-private.ts"],"names":[],"mappings":"AAAA;;EAEE;AAEF,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE/E,OAAO,EACL,6BAA6B,EAC7B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,oCAAoC,CAAC;AAI5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACjE,YAAY,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,OAAO,IAAI,eAAe,EAC1B,UAAU,IAAI,2BAA2B,EACzC,WAAW,EACX,MAAM,EACN,MAAM,EACN,YAAY,GACb,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AAGnG,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAG1F,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,uCAAuC,CAAC"}
|
|
@@ -103,5 +103,5 @@ declare module '@ember-data/store/-types/q/cache-store-wrapper' {
|
|
|
103
103
|
notifyChange(identifier: StableRecordIdentifier, namespace: NotificationType, key?: string): void;
|
|
104
104
|
notifyChange(identifier: StableRecordIdentifier | StableDocumentIdentifier, namespace: NotificationType | 'added' | 'removed' | 'updated', key?: string): void;
|
|
105
105
|
}
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=cache-store-wrapper.d.ts.map
|
|
@@ -11,5 +11,5 @@ declare module '@ember-data/store/-types/q/ds-model' {
|
|
|
11
11
|
eachRelationship<K extends KeyOrString<T>>(callback: (this: ModelSchema<T>, key: K, relationship: RelationshipSchema) => void, binding?: T): void;
|
|
12
12
|
eachTransformedAttribute<K extends KeyOrString<T>>(callback: (this: ModelSchema<T>, key: K, type: string | null) => void, binding?: T): void;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=ds-model.d.ts.map
|
|
@@ -32,5 +32,5 @@ declare module '@ember-data/store/-types/q/record-data-json-api' {
|
|
|
32
32
|
meta?: Meta;
|
|
33
33
|
}
|
|
34
34
|
export type JsonApiRelationship = SingleResourceRelationship | CollectionResourceRelationship;
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=record-data-json-api.d.ts.map
|
|
@@ -13,5 +13,5 @@ declare module '@ember-data/store/-types/q/store' {
|
|
|
13
13
|
[K in string | 'adapterOptions']?: K extends 'adapterOptions' ? Record<string, unknown> : unknown;
|
|
14
14
|
};
|
|
15
15
|
export type FindAllOptions = BaseFinderOptions;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference path="./-private.d.ts" />
|
|
2
2
|
/// <reference path="./-private/cache-handler.d.ts" />
|
|
3
3
|
/// <reference path="./-private/document.d.ts" />
|
|
4
|
-
/// <reference path="./-private/index.d.ts" />
|
|
5
4
|
/// <reference path="./-private/store-service.d.ts" />
|
|
6
5
|
/// <reference path="./-private/network/request-cache.d.ts" />
|
|
7
6
|
/// <reference path="./-private/managers/cache-capabilities-manager.d.ts" />
|
|
@@ -9,6 +8,7 @@
|
|
|
9
8
|
/// <reference path="./-private/managers/notification-manager.d.ts" />
|
|
10
9
|
/// <reference path="./-private/managers/record-array-manager.d.ts" />
|
|
11
10
|
/// <reference path="./-private/record-arrays/identifier-array.d.ts" />
|
|
11
|
+
/// <reference path="./-private/record-arrays/native-proxy-type-fix.d.ts" />
|
|
12
12
|
/// <reference path="./-private/legacy-model-support/shim-model-class.d.ts" />
|
|
13
13
|
/// <reference path="./-private/legacy-model-support/record-reference.d.ts" />
|
|
14
14
|
/// <reference path="./-private/caches/instance-cache.d.ts" />
|
|
@@ -216,5 +216,5 @@ declare module '@ember-data/store' {
|
|
|
216
216
|
* @main @ember-data/store
|
|
217
217
|
*/
|
|
218
218
|
export { Store as default, CacheHandler, type LifetimesService, setIdentifierGenerationMethod, setIdentifierUpdateMethod, setIdentifierForgetMethod, setIdentifierResetMethod, recordIdentifierFor, storeFor, } from '@ember-data/store/-private';
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
}
|
|
220
|
+
//# sourceMappingURL=index.d.ts.map
|