@ember-data/store 5.6.0-alpha.5 → 5.6.0-beta.1

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.
Files changed (100) hide show
  1. package/addon-main.cjs +1 -1
  2. package/dist/-private.js +1 -2
  3. package/dist/configure.js +1 -1
  4. package/dist/index.js +208 -5
  5. package/dist/types.js +1 -0
  6. package/package.json +11 -15
  7. package/unstable-preview-types/-private.d.ts +3 -29
  8. package/unstable-preview-types/configure.d.ts +14 -14
  9. package/unstable-preview-types/index.d.ts +4 -225
  10. package/unstable-preview-types/types.d.ts +3 -6
  11. package/dist/-private.js.map +0 -1
  12. package/dist/configure-BCr2QDik.js +0 -160
  13. package/dist/configure-BCr2QDik.js.map +0 -1
  14. package/dist/configure.js.map +0 -1
  15. package/dist/index.js.map +0 -1
  16. package/dist/request-state-BEsHKec0.js +0 -7573
  17. package/dist/request-state-BEsHKec0.js.map +0 -1
  18. package/dist/types.js.map +0 -1
  19. package/unstable-preview-types/-private/cache-handler/handler.d.ts +0 -59
  20. package/unstable-preview-types/-private/cache-handler/handler.d.ts.map +0 -1
  21. package/unstable-preview-types/-private/cache-handler/types.d.ts +0 -101
  22. package/unstable-preview-types/-private/cache-handler/types.d.ts.map +0 -1
  23. package/unstable-preview-types/-private/cache-handler/utils.d.ts +0 -34
  24. package/unstable-preview-types/-private/cache-handler/utils.d.ts.map +0 -1
  25. package/unstable-preview-types/-private/caches/cache-utils.d.ts +0 -11
  26. package/unstable-preview-types/-private/caches/cache-utils.d.ts.map +0 -1
  27. package/unstable-preview-types/-private/caches/identifier-cache.d.ts +0 -171
  28. package/unstable-preview-types/-private/caches/identifier-cache.d.ts.map +0 -1
  29. package/unstable-preview-types/-private/caches/instance-cache.d.ts +0 -63
  30. package/unstable-preview-types/-private/caches/instance-cache.d.ts.map +0 -1
  31. package/unstable-preview-types/-private/caches/resource-utils.d.ts +0 -12
  32. package/unstable-preview-types/-private/caches/resource-utils.d.ts.map +0 -1
  33. package/unstable-preview-types/-private/debug/utils.d.ts +0 -9
  34. package/unstable-preview-types/-private/debug/utils.d.ts.map +0 -1
  35. package/unstable-preview-types/-private/document.d.ts +0 -149
  36. package/unstable-preview-types/-private/document.d.ts.map +0 -1
  37. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts +0 -166
  38. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts.map +0 -1
  39. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts +0 -19
  40. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts.map +0 -1
  41. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts +0 -28
  42. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts.map +0 -1
  43. package/unstable-preview-types/-private/managers/cache-manager.d.ts +0 -430
  44. package/unstable-preview-types/-private/managers/cache-manager.d.ts.map +0 -1
  45. package/unstable-preview-types/-private/managers/notification-manager.d.ts +0 -95
  46. package/unstable-preview-types/-private/managers/notification-manager.d.ts.map +0 -1
  47. package/unstable-preview-types/-private/managers/record-array-manager.d.ts +0 -100
  48. package/unstable-preview-types/-private/managers/record-array-manager.d.ts.map +0 -1
  49. package/unstable-preview-types/-private/network/request-cache.d.ts +0 -106
  50. package/unstable-preview-types/-private/network/request-cache.d.ts.map +0 -1
  51. package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts +0 -257
  52. package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts.map +0 -1
  53. package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts +0 -91
  54. package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts.map +0 -1
  55. package/unstable-preview-types/-private/new-core-tmp/reactivity/internal.d.ts +0 -172
  56. package/unstable-preview-types/-private/new-core-tmp/reactivity/internal.d.ts.map +0 -1
  57. package/unstable-preview-types/-private/new-core-tmp/reactivity/signal.d.ts +0 -32
  58. package/unstable-preview-types/-private/new-core-tmp/reactivity/signal.d.ts.map +0 -1
  59. package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts +0 -256
  60. package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts.map +0 -1
  61. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts +0 -143
  62. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts.map +0 -1
  63. package/unstable-preview-types/-private/record-arrays/many-array.d.ts +0 -202
  64. package/unstable-preview-types/-private/record-arrays/many-array.d.ts.map +0 -1
  65. package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts +0 -118
  66. package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts.map +0 -1
  67. package/unstable-preview-types/-private/store-service.d.ts +0 -1597
  68. package/unstable-preview-types/-private/store-service.d.ts.map +0 -1
  69. package/unstable-preview-types/-private/store-service.type-test.d.ts +0 -4
  70. package/unstable-preview-types/-private/store-service.type-test.d.ts.map +0 -1
  71. package/unstable-preview-types/-private/utils/coerce-id.d.ts +0 -7
  72. package/unstable-preview-types/-private/utils/coerce-id.d.ts.map +0 -1
  73. package/unstable-preview-types/-private/utils/construct-resource.d.ts +0 -9
  74. package/unstable-preview-types/-private/utils/construct-resource.d.ts.map +0 -1
  75. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts +0 -4
  76. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts.map +0 -1
  77. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts +0 -4
  78. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts.map +0 -1
  79. package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts +0 -4
  80. package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts.map +0 -1
  81. package/unstable-preview-types/-private.d.ts.map +0 -1
  82. package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts +0 -102
  83. package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts.map +0 -1
  84. package/unstable-preview-types/-types/q/ds-model.d.ts +0 -24
  85. package/unstable-preview-types/-types/q/ds-model.d.ts.map +0 -1
  86. package/unstable-preview-types/-types/q/identifier.d.ts +0 -175
  87. package/unstable-preview-types/-types/q/identifier.d.ts.map +0 -1
  88. package/unstable-preview-types/-types/q/promise-proxies.d.ts +0 -4
  89. package/unstable-preview-types/-types/q/promise-proxies.d.ts.map +0 -1
  90. package/unstable-preview-types/-types/q/record-data-json-api.d.ts +0 -33
  91. package/unstable-preview-types/-types/q/record-data-json-api.d.ts.map +0 -1
  92. package/unstable-preview-types/-types/q/record-instance.d.ts +0 -24
  93. package/unstable-preview-types/-types/q/record-instance.d.ts.map +0 -1
  94. package/unstable-preview-types/-types/q/schema-service.d.ts +0 -334
  95. package/unstable-preview-types/-types/q/schema-service.d.ts.map +0 -1
  96. package/unstable-preview-types/-types/q/store.d.ts +0 -37
  97. package/unstable-preview-types/-types/q/store.d.ts.map +0 -1
  98. package/unstable-preview-types/configure.d.ts.map +0 -1
  99. package/unstable-preview-types/index.d.ts.map +0 -1
  100. package/unstable-preview-types/types.d.ts.map +0 -1
package/dist/types.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,59 +0,0 @@
1
- declare module '@ember-data/store/-private/cache-handler/handler' {
2
- import type { CacheHandler as CacheHandlerType } from '@ember-data/request';
3
- import type { ImmutableRequestInfo, RequestContext } from '@warp-drive/core-types/request';
4
- import type { ResourceIdentifierObject } from '@warp-drive/core-types/spec/json-api-raw';
5
- import type { RequestSignature } from '@warp-drive/core-types/symbols';
6
- import type { Store } from '@ember-data/store/-private/store-service';
7
- export type LooseStoreRequestInfo<RT = unknown, T = unknown> = Omit<ImmutableRequestInfo<RT, T>, 'records' | 'headers' | typeof RequestSignature> & {
8
- records?: ResourceIdentifierObject[];
9
- headers?: Headers;
10
- };
11
- export type StoreRequestInput<RT = unknown, T = unknown> = ImmutableRequestInfo<RT, T> | LooseStoreRequestInfo<RT, T>;
12
- export interface StoreRequestContext extends RequestContext {
13
- request: ImmutableRequestInfo & {
14
- store: Store;
15
- };
16
- }
17
- /**
18
- * A CacheHandler that adds support for using an EmberData Cache with a RequestManager.
19
- *
20
- * This handler will only run when a request has supplied a `store` instance. Requests
21
- * issued by the store via `store.request()` will automatically have the `store` instance
22
- * attached to the request.
23
- *
24
- * ```ts
25
- * requestManager.request({
26
- * store: store,
27
- * url: '/api/posts',
28
- * method: 'GET'
29
- * });
30
- * ```
31
- *
32
- * When this handler elects to handle a request, it will return the raw `StructuredDocument`
33
- * unless the request has `[EnableHydration]` set to `true`. In this case, the handler will
34
- * return a `Document` instance that will automatically update the UI when the cache is updated
35
- * in the future and will hydrate any identifiers in the StructuredDocument into Record instances.
36
- *
37
- * When issuing a request via the store, [EnableHydration] is automatically set to `true`. This
38
- * means that if desired you can issue requests that utilize the cache without needing to also
39
- * utilize Record instances if desired.
40
- *
41
- * Said differently, you could elect to issue all requests via a RequestManager, without ever using
42
- * the store directly, by setting [EnableHydration] to `true` and providing a store instance. Not
43
- * necessarily the most useful thing, but the decoupled nature of the RequestManager and incremental-feature
44
- * approach of EmberData allows for this flexibility.
45
- *
46
- * ```ts
47
- * import { EnableHydration } from '@warp-drive/core-types/request';
48
- *
49
- * requestManager.request({
50
- * store: store,
51
- * url: '/api/posts',
52
- * method: 'GET',
53
- * [EnableHydration]: true
54
- * });
55
- *
56
- */
57
- export const CacheHandler: CacheHandlerType;
58
- }
59
- //# sourceMappingURL=handler.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/-private/cache-handler/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAA0C,MAAM,qBAAqB,CAAC;AAGpH,OAAO,KAAK,EACV,oBAAoB,EACpB,cAAc,EAGf,MAAM,gCAAgC,CAAC;AAQxC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGvE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAU9C,MAAM,MAAM,qBAAqB,CAAC,EAAE,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,IAAI,IAAI,CACjE,oBAAoB,CAAC,EAAE,EAAE,CAAC,CAAC,EAC3B,SAAS,GAAG,SAAS,GAAG,OAAO,gBAAgB,CAChD,GAAG;IACF,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,EAAE,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,IAAI,oBAAoB,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,qBAAqB,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAEtH,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD,OAAO,EAAE,oBAAoB,GAAG;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,CAAC;CAClD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,YAAY,EAAE,gBA0E1B,CAAC"}
@@ -1,101 +0,0 @@
1
- declare module '@ember-data/store/-private/cache-handler/types' {
2
- import type { StableDocumentIdentifier } from '@warp-drive/core-types/identifier';
3
- import type { ImmutableRequestInfo, ResponseInfo } from '@warp-drive/core-types/request';
4
- import type { Store } from '@ember-data/store/-private/store-service';
5
- /**
6
- * A service which an application may provide to the store via
7
- * the store's `lifetimes` property to configure the behavior
8
- * of the CacheHandler.
9
- *
10
- * The default behavior for request lifetimes is to never expire
11
- * unless manually refreshed via `cacheOptions.reload` or `cacheOptions.backgroundReload`.
12
- *
13
- * Implementing this service allows you to programatically define
14
- * when a request should be considered expired.
15
- *
16
- * @class (Interface) CachePolicy
17
- * @public
18
- */
19
- export interface CachePolicy {
20
- /**
21
- * Invoked to determine if the request may be fulfilled from cache
22
- * if possible.
23
- *
24
- * Note, this is only invoked if the request has a cache-key.
25
- *
26
- * If no cache entry is found or the entry is hard expired,
27
- * the request will be fulfilled from the configured request handlers
28
- * and the cache will be updated before returning the response.
29
- *
30
- * @public
31
- * @param {StableDocumentIdentifier} identifier
32
- * @param {Store} store
33
- * @return {Boolean} true if the request is considered hard expired
34
- */
35
- isHardExpired(identifier: StableDocumentIdentifier, store: Store): boolean;
36
- /**
37
- * Invoked if `isHardExpired` is false to determine if the request
38
- * should be update behind the scenes if cache data is already available.
39
- *
40
- * Note, this is only invoked if the request has a cache-key.
41
- *
42
- * If true, the request will be fulfilled from cache while a backgrounded
43
- * request is made to update the cache via the configured request handlers.
44
- *
45
- * @public
46
- * @param {StableDocumentIdentifier} identifier
47
- * @param {Store} store
48
- * @return {Boolean} true if the request is considered soft expired
49
- */
50
- isSoftExpired(identifier: StableDocumentIdentifier, store: Store): boolean;
51
- /**
52
- * Invoked when a request will be sent to the configured request handlers.
53
- * This is invoked for both foreground and background requests.
54
- *
55
- * Note, this is invoked regardless of whether the request has a cache-key.
56
- *
57
- * @public
58
- * @param {ImmutableRequestInfo} request
59
- * @param {StableDocumentIdentifier | null} identifier
60
- * @param {Store} store
61
- * @return {void}
62
- */
63
- willRequest?(request: ImmutableRequestInfo, identifier: StableDocumentIdentifier | null, store: Store): void;
64
- /**
65
- * Invoked when a request has been fulfilled from the configured request handlers.
66
- * This is invoked for both foreground and background requests once the cache has
67
- * been updated.
68
- *
69
- * Note, this is invoked regardless of whether the request has a cache-key.
70
- *
71
- * It is best practice to notify the store of any requests marked as invalidated
72
- * so that request subscriptions can reload when needed.
73
- *
74
- * ```ts
75
- * store.notifications.notify(identifier, 'invalidated');
76
- * ```
77
- *
78
- * This allows anything subscribed to the request to be notified of the change
79
- *
80
- * e.g.
81
- *
82
- * ```ts
83
- * store.notifications.subscribe(identifier, (_, type) => {
84
- * if (type === 'invalidated') {
85
- * // do update
86
- * }
87
- * });
88
- * ```
89
- *
90
- *
91
- * @public
92
- * @param {ImmutableRequestInfo} request
93
- * @param {ImmutableResponse} response
94
- * @param {StableDocumentIdentifier | null} identifier
95
- * @param {Store} store
96
- * @return {void}
97
- */
98
- didRequest?(request: ImmutableRequestInfo, response: Response | ResponseInfo | null, identifier: StableDocumentIdentifier | null, store: Store): void;
99
- }
100
- }
101
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/-private/cache-handler/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAEzF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;;;;;OAcG;IACH,aAAa,CAAC,UAAU,EAAE,wBAAwB,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC;IAC3E;;;;;;;;;;;;;OAaG;IACH,aAAa,CAAC,UAAU,EAAE,wBAAwB,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC;IAE3E;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,CAAC,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,wBAAwB,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAE7G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,UAAU,CAAC,CACT,OAAO,EAAE,oBAAoB,EAC7B,QAAQ,EAAE,QAAQ,GAAG,YAAY,GAAG,IAAI,EACxC,UAAU,EAAE,wBAAwB,GAAG,IAAI,EAC3C,KAAK,EAAE,KAAK,GACX,IAAI,CAAC;CACT"}
@@ -1,34 +0,0 @@
1
- declare module '@ember-data/store/-private/cache-handler/utils' {
2
- import type { StableDocumentIdentifier } from '@warp-drive/core-types/identifier';
3
- import type { ImmutableCreateRequestOptions, ImmutableDeleteRequestOptions, ImmutableRequestInfo, ImmutableUpdateRequestOptions, StructuredDataDocument } from '@warp-drive/core-types/request';
4
- import type { ResourceDataDocument, ResourceErrorDocument } from '@warp-drive/core-types/spec/document';
5
- import type { ApiError } from '@warp-drive/core-types/spec/error';
6
- import type { Store } from '@ember-data/store/-private/store-service';
7
- export const MUTATION_OPS: Set<string>;
8
- export function calcShouldFetch(store: Store, request: ImmutableRequestInfo, hasCachedValue: boolean, identifier: StableDocumentIdentifier | null): boolean;
9
- export function calcShouldBackgroundFetch(store: Store, request: ImmutableRequestInfo, willFetch: boolean, identifier: StableDocumentIdentifier | null): boolean;
10
- export function isMutation(request: Partial<ImmutableRequestInfo>): request is ImmutableUpdateRequestOptions | ImmutableCreateRequestOptions | ImmutableDeleteRequestOptions;
11
- export function isCacheAffecting<T>(document: StructuredDataDocument<T>): boolean;
12
- export function isAggregateError(error: Error & {
13
- errors?: ApiError[];
14
- }): error is AggregateError & {
15
- errors: ApiError[];
16
- };
17
- export type RobustError = Error & {
18
- error: string | object;
19
- errors?: ApiError[];
20
- content?: unknown;
21
- };
22
- export function cloneError(error: RobustError): RobustError;
23
- export function isErrorDocument(document: ResourceDataDocument | ResourceErrorDocument): document is ResourceErrorDocument;
24
- export function getPriority(identifier: StableDocumentIdentifier | null, deduped: Map<StableDocumentIdentifier, {
25
- priority: {
26
- blocking: boolean;
27
- };
28
- }>, priority: {
29
- blocking: boolean;
30
- }): {
31
- blocking: boolean;
32
- };
33
- }
34
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/-private/cache-handler/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EACV,6BAA6B,EAC7B,6BAA6B,EAC7B,oBAAoB,EACpB,6BAA6B,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CAC7B,QAAQ,EAAE,oBAAoB,GAAG,qBAAqB,GACrD,QAAQ,IAAI,qBAAqB,CAEnC;AAED,wBAAgB,WAAW,CACzB,UAAU,EAAE,wBAAwB,GAAG,IAAI,EAC3C,OAAO,EAAE,GAAG,CAAC,wBAAwB,EAAE;IAAE,QAAQ,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAA;CAAE,CAAC,EAC3E,QAAQ,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE;cADgC,OAAO;EAUvE"}
@@ -1,11 +0,0 @@
1
- declare module '@ember-data/store/-private/caches/cache-utils' {
2
- import type { Cache } from '@warp-drive/core-types/cache';
3
- import type { StableRecordIdentifier } from '@warp-drive/core-types/identifier';
4
- import type { OpaqueRecordInstance } from '@ember-data/store/-types/q/record-instance';
5
- export const CacheForIdentifierCache: Map<unknown, Cache>;
6
- export function setCacheFor(identifier: StableRecordIdentifier | OpaqueRecordInstance, cache: Cache): void;
7
- export function removeRecordDataFor(identifier: StableRecordIdentifier | OpaqueRecordInstance): void;
8
- export function peekCache(instance: StableRecordIdentifier): Cache | null;
9
- export function peekCache(instance: OpaqueRecordInstance): Cache;
10
- }
11
- //# sourceMappingURL=cache-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cache-utils.d.ts","sourceRoot":"","sources":["../../../src/-private/caches/cache-utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAEhF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAO3E,eAAO,MAAM,uBAAuB,qBAGnC,CAAC;AAEF,wBAAgB,WAAW,CAAC,UAAU,EAAE,sBAAsB,GAAG,oBAAoB,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAMzG;AAED,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,sBAAsB,GAAG,oBAAoB,GAAG,IAAI,CAEnG;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,sBAAsB,GAAG,KAAK,GAAG,IAAI,CAAC;AAC1E,wBAAgB,SAAS,CAAC,QAAQ,EAAE,oBAAoB,GAAG,KAAK,CAAC"}
@@ -1,171 +0,0 @@
1
- declare module '@ember-data/store/-private/caches/identifier-cache' {
2
- import { type Identifier, type RecordIdentifier, type StableDocumentIdentifier, type StableExistingRecordIdentifier, type StableRecordIdentifier } from '@warp-drive/core-types/identifier';
3
- import type { ImmutableRequestInfo } from '@warp-drive/core-types/request';
4
- import type { ExistingResourceIdentifierObject, ResourceIdentifierObject } from '@warp-drive/core-types/spec/json-api-raw';
5
- import type { ForgetMethod, GenerationMethod, KeyInfo, KeyInfoMethod, ResetMethod, UpdateMethod } from '@ember-data/store/-types/q/identifier';
6
- type TypeFromIdentifier<T> = T extends {
7
- type: infer U;
8
- } ? U : string;
9
- type NarrowIdentifierIfPossible<T> = T extends ExistingResourceIdentifierObject ? StableExistingRecordIdentifier<TypeFromIdentifier<T>> : StableRecordIdentifier;
10
- export function isStableIdentifier(identifier: unknown): identifier is StableRecordIdentifier;
11
- export function isDocumentIdentifier(identifier: unknown): identifier is StableDocumentIdentifier;
12
- interface KeyOptions {
13
- lid: IdentifierMap;
14
- id: IdentifierMap;
15
- }
16
- type TypeMap = {
17
- [key: string]: KeyOptions;
18
- };
19
- type IdentifierMap = Map<string, StableRecordIdentifier>;
20
- type StableCache = {
21
- resources: IdentifierMap;
22
- documents: Map<string, StableDocumentIdentifier>;
23
- resourcesByType: TypeMap;
24
- polymorphicLidBackMap: Map<string, string[]>;
25
- };
26
- export type MergeMethod = (targetIdentifier: StableRecordIdentifier, matchedIdentifier: StableRecordIdentifier, resourceData: unknown) => StableRecordIdentifier;
27
- export function setIdentifierGenerationMethod(method: GenerationMethod | null): void;
28
- export function setIdentifierUpdateMethod(method: UpdateMethod | null): void;
29
- export function setIdentifierForgetMethod(method: ForgetMethod | null): void;
30
- export function setIdentifierResetMethod(method: ResetMethod | null): void;
31
- export function setKeyInfoForResource(method: KeyInfoMethod | null): void;
32
- /**
33
- * Each instance of {Store} receives a unique instance of a IdentifierCache.
34
- *
35
- * This cache is responsible for assigning or retrieving the unique identify
36
- * for arbitrary resource data encountered by the store. Data representing
37
- * a unique resource or record should always be represented by the same
38
- * identifier.
39
- *
40
- * It can be configured by consuming applications.
41
- *
42
- * @class IdentifierCache
43
- @public
44
- */
45
- export class IdentifierCache {
46
- _cache: StableCache;
47
- _generate: GenerationMethod;
48
- _update: UpdateMethod;
49
- _forget: ForgetMethod;
50
- _reset: ResetMethod;
51
- _merge: MergeMethod;
52
- _keyInfoForResource: KeyInfoMethod;
53
- _id: number;
54
- constructor();
55
- /**
56
- * Internal hook to allow management of merge conflicts with identifiers.
57
- *
58
- * we allow late binding of this private internal merge so that
59
- * the cache can insert itself here to handle elimination of duplicates
60
- *
61
- * @private
62
- */
63
- __configureMerge(method: MergeMethod | null): void;
64
- upgradeIdentifier(resource: {
65
- type: string;
66
- id: string | null;
67
- lid?: string;
68
- }): StableRecordIdentifier;
69
- /**
70
- * @private
71
- */
72
- _getRecordIdentifier(resource: {
73
- type: string;
74
- id: string | null;
75
- lid?: string;
76
- }, shouldGenerate: 2): StableRecordIdentifier;
77
- _getRecordIdentifier(resource: unknown, shouldGenerate: 1): StableRecordIdentifier;
78
- _getRecordIdentifier(resource: unknown, shouldGenerate: 0): StableRecordIdentifier | undefined;
79
- /**
80
- * allows us to peek without generating when needed
81
- * useful for the "create" case when we need to see if
82
- * we are accidentally overwritting something
83
- *
84
- * @param resource
85
- * @return {StableRecordIdentifier | undefined}
86
- * @private
87
- */
88
- peekRecordIdentifier(resource: ResourceIdentifierObject | Identifier): StableRecordIdentifier | undefined;
89
- /**
90
- Returns the DocumentIdentifier for the given Request, creates one if it does not yet exist.
91
- Returns `null` if the request does not have a `cacheKey` or `url`.
92
-
93
- @param request
94
- @return {StableDocumentIdentifier | null}
95
- @public
96
- */
97
- getOrCreateDocumentIdentifier(request: ImmutableRequestInfo): StableDocumentIdentifier | null;
98
- /**
99
- Returns the Identifier for the given Resource, creates one if it does not yet exist.
100
-
101
- Specifically this means that we:
102
-
103
- - validate the `id` `type` and `lid` combo against known identifiers
104
- - return an object with an `lid` that is stable (repeated calls with the same
105
- `id` + `type` or `lid` will return the same `lid` value)
106
- - this referential stability of the object itself is guaranteed
107
-
108
- @param resource
109
- @return {StableRecordIdentifier}
110
- @public
111
- */
112
- getOrCreateRecordIdentifier<T>(resource: T): NarrowIdentifierIfPossible<T>;
113
- /**
114
- Returns a new Identifier for the supplied data. Call this method to generate
115
- an identifier when a new resource is being created local to the client and
116
- potentially does not have an `id`.
117
-
118
- Delegates generation to the user supplied `GenerateMethod` if one has been provided
119
- with the signature `generateMethod({ type }, 'record')`.
120
-
121
- @param data
122
- @return {StableRecordIdentifier}
123
- @public
124
- */
125
- createIdentifierForNewRecord(data: {
126
- type: string;
127
- id?: string | null;
128
- }): StableRecordIdentifier;
129
- /**
130
- Provides the opportunity to update secondary lookup tables for existing identifiers
131
- Called after an identifier created with `createIdentifierForNewRecord` has been
132
- committed.
133
-
134
- Assigned `id` to an `Identifier` if `id` has not previously existed; however,
135
- attempting to change the `id` or calling update without providing an `id` when
136
- one is missing will throw an error.
137
-
138
- - sets `id` (if `id` was previously `null`)
139
- - `lid` and `type` MUST NOT be altered post creation
140
-
141
- If a merge occurs, it is possible the returned identifier does not match the originally
142
- provided identifier. In this case the abandoned identifier will go through the usual
143
- `forgetRecordIdentifier` codepaths.
144
-
145
- @param identifierObject
146
- @param data
147
- @return {StableRecordIdentifier}
148
- @public
149
- */
150
- updateRecordIdentifier(identifierObject: RecordIdentifier, data: unknown): StableRecordIdentifier;
151
- /**
152
- * @private
153
- */
154
- _mergeRecordIdentifiers(keyInfo: KeyInfo, identifier: StableRecordIdentifier, existingIdentifier: StableRecordIdentifier, data: unknown): StableRecordIdentifier;
155
- /**
156
- Provides the opportunity to eliminate an identifier from secondary lookup tables
157
- as well as eliminates it from ember-data's own lookup tables and book keeping.
158
-
159
- Useful when a record has been deleted and the deletion has been persisted and
160
- we do not care about the record anymore. Especially useful when an `id` of a
161
- deleted record might be reused later for a new record.
162
-
163
- @param identifierObject
164
- @public
165
- */
166
- forgetRecordIdentifier(identifierObject: RecordIdentifier): void;
167
- destroy(): void;
168
- }
169
- export {};
170
- }
171
- //# sourceMappingURL=identifier-cache.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identifier-cache.d.ts","sourceRoot":"","sources":["../../../src/-private/caches/identifier-cache.ts"],"names":[],"mappings":"AAQA,OAAO,EAKL,KAAK,UAAU,EAEf,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EAEnC,KAAK,sBAAsB,EAC5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EACV,gCAAgC,EAEhC,wBAAwB,EACzB,MAAM,0CAA0C,CAAC;AAElD,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,OAAO,EACP,aAAa,EACb,WAAW,EACX,YAAY,EACb,MAAM,2BAA2B,CAAC;AAQnC,KAAK,kBAAkB,CAAC,CAAC,IAAI,CAAC,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG,CAAC,GAAG,MAAM,CAAC;AAEtE,KAAK,0BAA0B,CAAC,CAAC,IAAI,CAAC,SAAS,gCAAgC,GAC3E,8BAA8B,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,GACrD,sBAAsB,CAAC;AAI3B,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI,sBAAsB,CAE5F;AAED,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI,wBAAwB,CAEhG;AAwBD,UAAU,UAAU;IAClB,GA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B,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,sBAAsB,EAClC,kBAAkB,EAAE,sBAAsB,EAC1C,IAAI,EAAE,OAAO,GACZ,sBAAsB;IAoCzB;;;;;;;;;;MAUE;IACF,sBAAsB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,IAAI;IA8BhE,OAAO;CAOR"}
@@ -1,63 +0,0 @@
1
- declare module '@ember-data/store/-private/caches/instance-cache' {
2
- import type { Cache } from '@warp-drive/core-types/cache';
3
- import type { StableDocumentIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
4
- import type { Value } from '@warp-drive/core-types/json/raw';
5
- import type { TypedRecordInstance, TypeFromInstance } from '@warp-drive/core-types/record';
6
- import type { OpaqueRecordInstance } from '@ember-data/store/-types/q/record-instance';
7
- import { ReactiveDocument } from '@ember-data/store/-private/document';
8
- import RecordReference from '@ember-data/store/-private/legacy-model-support/record-reference';
9
- import { CacheCapabilitiesManager } from '@ember-data/store/-private/managers/cache-capabilities-manager';
10
- import type { CacheManager } from '@ember-data/store/-private/managers/cache-manager';
11
- import type { CreateRecordProperties, Store } from '@ember-data/store/-private/store-service';
12
- export function peekRecordIdentifier(record: OpaqueRecordInstance): StableRecordIdentifier | undefined;
13
- /**
14
- Retrieves the unique referentially-stable [RecordIdentifier](/ember-data/release/classes/StableRecordIdentifier)
15
- assigned to the given record instance.
16
-
17
- ```js
18
- import { recordIdentifierFor } from "@ember-data/store";
19
- // ... gain access to a record, for instance with peekRecord or findRecord
20
- const record = store.peekRecord("user", "1");
21
- // get the identifier for the record (see docs for StableRecordIdentifier)
22
- const identifier = recordIdentifierFor(record);
23
- // access the identifier's properties.
24
- const { id, type, lid } = identifier;
25
- ```
26
-
27
- @public
28
- @param {Object} record a record instance previously obstained from the store.
29
- @return {StableRecordIdentifier}
30
- */
31
- export function recordIdentifierFor<T extends TypedRecordInstance>(record: T): StableRecordIdentifier<TypeFromInstance<T>>;
32
- export function recordIdentifierFor(record: OpaqueRecordInstance): StableRecordIdentifier;
33
- export function setRecordIdentifier(record: OpaqueRecordInstance, identifier: StableRecordIdentifier): void;
34
- export const StoreMap: Map<unknown, Store>;
35
- export function storeFor(record: OpaqueRecordInstance): Store | undefined;
36
- type Caches = {
37
- record: Map<StableRecordIdentifier, OpaqueRecordInstance>;
38
- reference: WeakMap<StableRecordIdentifier, RecordReference>;
39
- document: Map<StableDocumentIdentifier, ReactiveDocument<OpaqueRecordInstance | OpaqueRecordInstance[] | null | undefined>>;
40
- };
41
- export class InstanceCache {
42
- store: Store;
43
- cache: Cache;
44
- _storeWrapper: CacheCapabilitiesManager;
45
- __cacheManager: CacheManager;
46
- __instances: Caches;
47
- constructor(store: Store);
48
- peek(identifier: StableRecordIdentifier): Cache | OpaqueRecordInstance | undefined;
49
- getDocument<T>(identifier: StableDocumentIdentifier): ReactiveDocument<T>;
50
- getRecord(identifier: StableRecordIdentifier, properties?: CreateRecordProperties): OpaqueRecordInstance;
51
- getReference(identifier: StableRecordIdentifier): RecordReference;
52
- recordIsLoaded(identifier: StableRecordIdentifier, filterDeleted?: boolean): boolean;
53
- disconnect(identifier: StableRecordIdentifier): void;
54
- unloadRecord(identifier: StableRecordIdentifier): void;
55
- clear(type?: string): void;
56
- setRecordId(identifier: StableRecordIdentifier, id: string): void;
57
- }
58
- export function resourceIsFullyDeleted(instanceCache: InstanceCache, identifier: StableRecordIdentifier): boolean;
59
- export function preloadData(store: Store, identifier: StableRecordIdentifier, preload: Record<string, Value>): void;
60
- export function _clearCaches(): void;
61
- export {};
62
- }
63
- //# sourceMappingURL=instance-cache.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"instance-cache.d.ts","sourceRoot":"","sources":["../../../src/-private/caches/instance-cache.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC1G,OAAO,KAA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AAI,GAAG,SAAS,CAAC,CACnF,CAAC;CACH,CAAC;AAEF,qBAAa,aAAa;IAChB,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;IACb,aAAa,EAAE,wBAAwB,CAAC;IAExC,cAAc,EAAE,YAAY,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;gBAEhB,KAAK,EAAE,KAAK;IAuExB,IAAI,CAAC,UAAU,EAAE,sBAAsB,GAAG,KAAK,GAAG,oBAAoB,GAAG,SAAS;IAIlF,WAAW,CAAC,CAAC,EAAE,UAAU,EAAE,wBAAwB,GAAG,gBAAgB,CAAC,CAAC,CAAC;IASzE,SAAS,CAAC,UAAU,EAAE,sBAAsB,EAAE,UAAU,CAAC,EAAE,sBAAsB,GAAG,oBAAoB;IA8BxG,YAAY,CAAC,UAAU,EAAE,sBAAsB;IAW/C,cAAc,CAAC,UAAU,EAAE,sBAAsB,EAAE,aAAa,UAAQ;IAsBxE,UAAU,CAAC,UAAU,EAAE,sBAAsB;IAiB7C,YAAY,CAAC,UAAU,EAAE,sBAAsB;IAuD/C,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM;IAuBnB,WAAW,CAAC,UAAU,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM;CA+C3D;AAMD,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,sBAAsB,GAAG,OAAO,CAGhH;AAcD,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,QAwB3G;AAiCD,wBAAgB,YAAY,SAI3B"}
@@ -1,12 +0,0 @@
1
- declare module '@ember-data/store/-private/caches/resource-utils' {
2
- export function hasLid(resource: unknown): resource is {
3
- lid: string;
4
- };
5
- export function hasId(resource: unknown): resource is {
6
- id: string;
7
- };
8
- export function hasType(resource: unknown): resource is {
9
- type: string;
10
- };
11
- }
12
- //# sourceMappingURL=resource-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resource-utils.d.ts","sourceRoot":"","sources":["../../../src/-private/caches/resource-utils.ts"],"names":[],"mappings":"AAUA,wBAAgB,MAAM,CAAC,QAAQ,EAAE,OAAO,GAAG,QAAQ,IAAI;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAErE;AAED,wBAAgB,KAAK,CAAC,QAAQ,EAAE,OAAO,GAAG,QAAQ,IAAI;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAInE;AAED,wBAAgB,OAAO,CAAC,QAAQ,EAAE,OAAO,GAAG,QAAQ,IAAI;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAEvE"}
@@ -1,9 +0,0 @@
1
- declare module '@ember-data/store/-private/debug/utils' {
2
- export function logGroup(scope: 'cache', prefix: string, type: string, lid: string, bucket: string, key: string): void;
3
- export function logGroup(scope: 'reactive-ui', prefix: string, type: string, lid: string, bucket: string, key: ''): void;
4
- export function logGroup(scope: 'notify', prefix: string, type: string, lid: string, bucket: string, key: string): void;
5
- export function log(scope: 'cache', prefix: string, type: string, lid: string, bucket: string, key: string): void;
6
- export function log(scope: 'reactive-ui', prefix: string, type: string, lid: string, bucket: string, key: ''): void;
7
- export function log(scope: 'notify', prefix: string, type: string, lid: string, bucket: string, key: string): void;
8
- }
9
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/-private/debug/utils.ts"],"names":[],"mappings":"AAiEA,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;AACvH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,MAAM,EACd,IAAI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