@ember-data-types/store 5.6.0-alpha.0 → 5.6.0-alpha.11

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 (90) hide show
  1. package/README.md +5 -5
  2. package/package.json +1 -1
  3. package/unstable-preview-types/-private.d.ts +1 -30
  4. package/unstable-preview-types/-private.d.ts.map +1 -1
  5. package/unstable-preview-types/configure.d.ts +2 -6
  6. package/unstable-preview-types/configure.d.ts.map +1 -1
  7. package/unstable-preview-types/index.d.ts +2 -224
  8. package/unstable-preview-types/index.d.ts.map +1 -1
  9. package/unstable-preview-types/types.d.ts +1 -4
  10. package/unstable-preview-types/types.d.ts.map +1 -1
  11. package/unstable-preview-types/-private/cache-handler/handler.d.ts +0 -62
  12. package/unstable-preview-types/-private/cache-handler/handler.d.ts.map +0 -1
  13. package/unstable-preview-types/-private/cache-handler/types.d.ts +0 -107
  14. package/unstable-preview-types/-private/cache-handler/types.d.ts.map +0 -1
  15. package/unstable-preview-types/-private/cache-handler/utils.d.ts +0 -34
  16. package/unstable-preview-types/-private/cache-handler/utils.d.ts.map +0 -1
  17. package/unstable-preview-types/-private/caches/cache-utils.d.ts +0 -11
  18. package/unstable-preview-types/-private/caches/cache-utils.d.ts.map +0 -1
  19. package/unstable-preview-types/-private/caches/identifier-cache.d.ts +0 -180
  20. package/unstable-preview-types/-private/caches/identifier-cache.d.ts.map +0 -1
  21. package/unstable-preview-types/-private/caches/instance-cache.d.ts +0 -64
  22. package/unstable-preview-types/-private/caches/instance-cache.d.ts.map +0 -1
  23. package/unstable-preview-types/-private/caches/resource-utils.d.ts +0 -12
  24. package/unstable-preview-types/-private/caches/resource-utils.d.ts.map +0 -1
  25. package/unstable-preview-types/-private/debug/utils.d.ts +0 -9
  26. package/unstable-preview-types/-private/debug/utils.d.ts.map +0 -1
  27. package/unstable-preview-types/-private/document.d.ts +0 -155
  28. package/unstable-preview-types/-private/document.d.ts.map +0 -1
  29. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts +0 -179
  30. package/unstable-preview-types/-private/legacy-model-support/record-reference.d.ts.map +0 -1
  31. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts +0 -19
  32. package/unstable-preview-types/-private/legacy-model-support/shim-model-class.d.ts.map +0 -1
  33. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts +0 -31
  34. package/unstable-preview-types/-private/managers/cache-capabilities-manager.d.ts.map +0 -1
  35. package/unstable-preview-types/-private/managers/cache-manager.d.ts +0 -463
  36. package/unstable-preview-types/-private/managers/cache-manager.d.ts.map +0 -1
  37. package/unstable-preview-types/-private/managers/notification-manager.d.ts +0 -101
  38. package/unstable-preview-types/-private/managers/notification-manager.d.ts.map +0 -1
  39. package/unstable-preview-types/-private/managers/record-array-manager.d.ts +0 -101
  40. package/unstable-preview-types/-private/managers/record-array-manager.d.ts.map +0 -1
  41. package/unstable-preview-types/-private/network/request-cache.d.ts +0 -109
  42. package/unstable-preview-types/-private/network/request-cache.d.ts.map +0 -1
  43. package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts +0 -289
  44. package/unstable-preview-types/-private/new-core-tmp/promise-state.d.ts.map +0 -1
  45. package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts +0 -92
  46. package/unstable-preview-types/-private/new-core-tmp/reactivity/configure.d.ts.map +0 -1
  47. package/unstable-preview-types/-private/new-core-tmp/reactivity/internal.d.ts +0 -172
  48. package/unstable-preview-types/-private/new-core-tmp/reactivity/internal.d.ts.map +0 -1
  49. package/unstable-preview-types/-private/new-core-tmp/reactivity/signal.d.ts +0 -32
  50. package/unstable-preview-types/-private/new-core-tmp/reactivity/signal.d.ts.map +0 -1
  51. package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts +0 -276
  52. package/unstable-preview-types/-private/new-core-tmp/request-state.d.ts.map +0 -1
  53. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts +0 -145
  54. package/unstable-preview-types/-private/record-arrays/identifier-array.d.ts.map +0 -1
  55. package/unstable-preview-types/-private/record-arrays/many-array.d.ts +0 -203
  56. package/unstable-preview-types/-private/record-arrays/many-array.d.ts.map +0 -1
  57. package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts +0 -118
  58. package/unstable-preview-types/-private/record-arrays/native-proxy-type-fix.d.ts.map +0 -1
  59. package/unstable-preview-types/-private/store-service.d.ts +0 -1601
  60. package/unstable-preview-types/-private/store-service.d.ts.map +0 -1
  61. package/unstable-preview-types/-private/store-service.type-test.d.ts +0 -4
  62. package/unstable-preview-types/-private/store-service.type-test.d.ts.map +0 -1
  63. package/unstable-preview-types/-private/utils/coerce-id.d.ts +0 -10
  64. package/unstable-preview-types/-private/utils/coerce-id.d.ts.map +0 -1
  65. package/unstable-preview-types/-private/utils/construct-resource.d.ts +0 -9
  66. package/unstable-preview-types/-private/utils/construct-resource.d.ts.map +0 -1
  67. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts +0 -4
  68. package/unstable-preview-types/-private/utils/is-non-empty-string.d.ts.map +0 -1
  69. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts +0 -4
  70. package/unstable-preview-types/-private/utils/normalize-model-name.d.ts.map +0 -1
  71. package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts +0 -4
  72. package/unstable-preview-types/-private/utils/uuid-polyfill.d.ts.map +0 -1
  73. package/unstable-preview-types/-types/overview.d.ts +0 -21
  74. package/unstable-preview-types/-types/overview.d.ts.map +0 -1
  75. package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts +0 -110
  76. package/unstable-preview-types/-types/q/cache-capabilities-manager.d.ts.map +0 -1
  77. package/unstable-preview-types/-types/q/ds-model.d.ts +0 -25
  78. package/unstable-preview-types/-types/q/ds-model.d.ts.map +0 -1
  79. package/unstable-preview-types/-types/q/identifier.d.ts +0 -193
  80. package/unstable-preview-types/-types/q/identifier.d.ts.map +0 -1
  81. package/unstable-preview-types/-types/q/promise-proxies.d.ts +0 -4
  82. package/unstable-preview-types/-types/q/promise-proxies.d.ts.map +0 -1
  83. package/unstable-preview-types/-types/q/record-data-json-api.d.ts +0 -36
  84. package/unstable-preview-types/-types/q/record-data-json-api.d.ts.map +0 -1
  85. package/unstable-preview-types/-types/q/record-instance.d.ts +0 -29
  86. package/unstable-preview-types/-types/q/record-instance.d.ts.map +0 -1
  87. package/unstable-preview-types/-types/q/schema-service.d.ts +0 -354
  88. package/unstable-preview-types/-types/q/schema-service.d.ts.map +0 -1
  89. package/unstable-preview-types/-types/q/store.d.ts +0 -38
  90. package/unstable-preview-types/-types/q/store.d.ts.map +0 -1
package/README.md CHANGED
@@ -124,11 +124,11 @@ import RequestManager from '@ember-data/request';
124
124
  import { CacheHandler } from '@ember-data/store';
125
125
  import Fetch from '@ember-data/request/fetch';
126
126
 
127
- export default class extends RequestManager {
128
- constructor(createArgs) {
129
- super(createArgs);
130
- this.use([Fetch]);
131
- this.useCache(CacheHandler);
127
+ export default {
128
+ create() {
129
+ return new RequestManager()
130
+ .use([Fetch])
131
+ .useCache(CacheHandler);
132
132
  }
133
133
  }
134
134
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-data-types/store",
3
- "version": "5.6.0-alpha.0",
3
+ "version": "5.6.0-alpha.11",
4
4
  "files": [
5
5
  "unstable-preview-types",
6
6
  "README.md",
@@ -1,33 +1,4 @@
1
1
  declare module '@ember-data/store/-private' {
2
- /**
3
- @module @ember-data/store
4
- */
5
- export { Store, storeFor } from '@ember-data/store/-private/store-service';
6
- export { recordIdentifierFor } from '@ember-data/store/-private/caches/instance-cache';
7
- export { CacheHandler, type StoreRequestContext } from '@ember-data/store/-private/cache-handler/handler';
8
- export { type CachePolicy } from '@ember-data/store/-private/cache-handler/types';
9
- export { isStableIdentifier, isDocumentIdentifier } from '@ember-data/store/-private/caches/identifier-cache';
10
- export { constructResource } from '@ember-data/store/-private/utils/construct-resource';
11
- export type { ReactiveDocument as Document } from '@ember-data/store/-private/document';
12
- export type { InstanceCache } from '@ember-data/store/-private/caches/instance-cache';
13
- export type { FindRecordQuery, Request, SaveRecordMutation, RequestCacheRequestState, RequestStateService, } from '@ember-data/store/-private/network/request-cache';
14
- export type { CreateRecordProperties } from '@ember-data/store/-private/store-service';
15
- export { coerceId, ensureStringId } from '@ember-data/store/-private/utils/coerce-id';
16
- export type { NativeProxy } from '@ember-data/store/-private/record-arrays/native-proxy-type-fix';
17
- export { IdentifierArray as LiveArray, Collection as CollectionRecordArray, SOURCE, MUTATE, } from '@ember-data/store/-private/record-arrays/identifier-array';
18
- export { RecordArrayManager, fastPush } from '@ember-data/store/-private/managers/record-array-manager';
19
- export { _clearCaches } from '@ember-data/store/-private/caches/instance-cache';
20
- export { peekCache, removeRecordDataFor } from '@ember-data/store/-private/caches/cache-utils';
21
- export { setRecordIdentifier, StoreMap } from '@ember-data/store/-private/caches/instance-cache';
22
- export { setCacheFor } from '@ember-data/store/-private/caches/cache-utils';
23
- export { normalizeModelName as _deprecatingNormalize } from '@ember-data/store/-private/utils/normalize-model-name';
24
- export type { StoreRequestInput } from '@ember-data/store/-private/cache-handler/handler';
25
- export { RelatedCollection } from '@ember-data/store/-private/record-arrays/many-array';
26
- export { log, logGroup } from '@ember-data/store/-private/debug/utils';
27
- export { getPromiseState, type PromiseState } from '@ember-data/store/-private/new-core-tmp/promise-state';
28
- export { getRequestState, type RequestLoadingState, type RequestCacheRequestState as RequestState, } from '@ember-data/store/-private/new-core-tmp/request-state';
29
- export { createMemo, type SignalHooks } from '@ember-data/store/-private/new-core-tmp/reactivity/configure';
30
- export { memoized, gate, entangleSignal, defineSignal, defineNonEnumerableSignal, } from '@ember-data/store/-private/new-core-tmp/reactivity/signal';
31
- export { ARRAY_SIGNAL, OBJECT_SIGNAL, Signals, type WarpDriveSignal, peekInternalSignal, withSignalStore, notifyInternalSignal, consumeInternalSignal, getOrCreateInternalSignal, } from '@ember-data/store/-private/new-core-tmp/reactivity/internal';
2
+ export * from '@warp-drive/core/store/-private';
32
3
  }
33
4
  //# sourceMappingURL=-private.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"-private.d.ts","sourceRoot":"","sources":["../src/-private.ts"],"names":[],"mappings":"AAAA;;EAEE;AAEF,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAElE,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE9F,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,YAAY,EAAE,gBAAgB,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACxE,YAAY,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtE,YAAY,EACV,eAAe,EACf,OAAO,EACP,kBAAkB,EAClB,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,kCAAkC,CAAC;AAE1C,YAAY,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAIvE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACtE,YAAY,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EACL,eAAe,IAAI,SAAS,EAC5B,UAAU,IAAI,qBAAqB,EACnC,MAAM,EACN,MAAM,GACP,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AAGxF,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAG/E,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,IAAI,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AACpG,YAAY,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC3F,OAAO,EACL,eAAe,EACf,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,IAAI,YAAY,GAC9C,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC5F,OAAO,EACL,QAAQ,EACR,IAAI,EACJ,cAAc,EACd,YAAY,EACZ,yBAAyB,GAC1B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,YAAY,EACZ,aAAa,EACb,OAAO,EACP,KAAK,eAAe,EACpB,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,6CAA6C,CAAC"}
1
+ {"version":3,"file":"-private.d.ts","sourceRoot":"","sources":["../src/-private.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
@@ -3,19 +3,15 @@ declare module '@ember-data/store/configure' {
3
3
  * Provides a configuration API for the reactivity system
4
4
  * that WarpDrive should use.
5
5
  *
6
- * @module @ember-data/store/configure
7
- * @main @ember-data/store/configure
6
+ * @module
8
7
  */
9
8
  /**
10
9
  * Configures the signals implementation to use. Supports multiple
11
10
  * implementations simultaneously.
12
11
  *
13
- * @method setupSignals
14
- * @static
15
- * @for @ember-data/store/configure
16
12
  * @public
17
13
  * @param {function} buildConfig - a function that takes options and returns a configuration object
18
14
  */
19
- export { setupSignals } from '@ember-data/store/-private/new-core-tmp/reactivity/configure';
15
+ export { setupSignals } from '@warp-drive/core/configure';
20
16
  }
21
17
  //# sourceMappingURL=configure.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../src/configure.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH;;;;;;;;;GASG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC"}
1
+ {"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../src/configure.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH;;;;;;GAMG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC"}
@@ -1,229 +1,7 @@
1
- /// <reference path="./types.d.ts" />
2
1
  /// <reference path="./configure.d.ts" />
3
2
  /// <reference path="./-private.d.ts" />
4
- /// <reference path="./-types/overview.d.ts" />
5
- /// <reference path="./-types/q/store.d.ts" />
6
- /// <reference path="./-types/q/identifier.d.ts" />
7
- /// <reference path="./-types/q/promise-proxies.d.ts" />
8
- /// <reference path="./-types/q/schema-service.d.ts" />
9
- /// <reference path="./-types/q/record-instance.d.ts" />
10
- /// <reference path="./-types/q/record-data-json-api.d.ts" />
11
- /// <reference path="./-types/q/cache-capabilities-manager.d.ts" />
12
- /// <reference path="./-types/q/ds-model.d.ts" />
13
- /// <reference path="./-private/store-service.d.ts" />
14
- /// <reference path="./-private/store-service.type-test.d.ts" />
15
- /// <reference path="./-private/document.d.ts" />
16
- /// <reference path="./-private/caches/cache-utils.d.ts" />
17
- /// <reference path="./-private/caches/resource-utils.d.ts" />
18
- /// <reference path="./-private/caches/instance-cache.d.ts" />
19
- /// <reference path="./-private/caches/identifier-cache.d.ts" />
20
- /// <reference path="./-private/legacy-model-support/shim-model-class.d.ts" />
21
- /// <reference path="./-private/legacy-model-support/record-reference.d.ts" />
22
- /// <reference path="./-private/managers/notification-manager.d.ts" />
23
- /// <reference path="./-private/managers/record-array-manager.d.ts" />
24
- /// <reference path="./-private/managers/cache-capabilities-manager.d.ts" />
25
- /// <reference path="./-private/managers/cache-manager.d.ts" />
26
- /// <reference path="./-private/new-core-tmp/request-state.d.ts" />
27
- /// <reference path="./-private/new-core-tmp/promise-state.d.ts" />
28
- /// <reference path="./-private/new-core-tmp/reactivity/internal.d.ts" />
29
- /// <reference path="./-private/new-core-tmp/reactivity/signal.d.ts" />
30
- /// <reference path="./-private/new-core-tmp/reactivity/configure.d.ts" />
31
- /// <reference path="./-private/debug/utils.d.ts" />
32
- /// <reference path="./-private/network/request-cache.d.ts" />
33
- /// <reference path="./-private/cache-handler/utils.d.ts" />
34
- /// <reference path="./-private/cache-handler/types.d.ts" />
35
- /// <reference path="./-private/cache-handler/handler.d.ts" />
36
- /// <reference path="./-private/utils/normalize-model-name.d.ts" />
37
- /// <reference path="./-private/utils/uuid-polyfill.d.ts" />
38
- /// <reference path="./-private/utils/construct-resource.d.ts" />
39
- /// <reference path="./-private/utils/is-non-empty-string.d.ts" />
40
- /// <reference path="./-private/utils/coerce-id.d.ts" />
41
- /// <reference path="./-private/record-arrays/identifier-array.d.ts" />
42
- /// <reference path="./-private/record-arrays/many-array.d.ts" />
43
- /// <reference path="./-private/record-arrays/native-proxy-type-fix.d.ts" />
3
+ /// <reference path="./types.d.ts" />
44
4
  declare module '@ember-data/store' {
45
- /**
46
- * <p align="center">
47
- * <img
48
- * class="project-logo"
49
- * src="https://raw.githubusercontent.com/emberjs/data/4612c9354e4c54d53327ec2cf21955075ce21294/ember-data-logo-light.svg#gh-light-mode-only"
50
- * alt="EmberData Store"
51
- * width="240px"
52
- * title="EmberData Store"
53
- * />
54
- * </p>
55
- *
56
- * This package provides [*Ember***Data**](https://github.com/emberjs/data/)'s `Store` class.
57
- *
58
- * A [Store](https://api.emberjs.com/ember-data/release/classes/Store) coordinates interaction between your application, a [Cache](https://api.emberjs.com/ember-data/release/classes/%3CInterface%3E%20Cache),
59
- * and sources of data (such as your API or a local persistence layer) accessed via a [RequestManager](https://github.com/emberjs/data/tree/main/packages/request).
60
- *
61
- * Optionally, a Store can be configured to hydrate the response data into rich presentation classes.
62
- *
63
- * ## Installation
64
- *
65
- * If you have installed `ember-data` then you already have this package installed.
66
- * Otherwise you can install it using your javascript package manager of choice.
67
- * For instance with [pnpm](https://pnpm.io/)
68
- *
69
- * ```
70
- * pnpm add @ember-data/store
71
- * ```
72
- *
73
- * After installing you will want to configure your first `Store`. Read more below
74
- * for how to create and configure stores for your application.
75
- *
76
- *
77
- * ## 🔨 Creating A Store
78
- *
79
- * To use a `Store` we will need to do few things: add a [Cache](https://api.emberjs.com/ember-data/release/classes/%3CInterface%3E%20Cache)
80
- * to store data **in-memory**, add a [Handler](https://api.emberjs.com/ember-data/release/classes/%3CInterface%3E%20Cache) to fetch data from a source,
81
- * and implement `instantiateRecord` to tell the store how to display the data for individual resources.
82
- *
83
- * > **Note**
84
- * > If you are using the package `ember-data` then a JSON:API cache, RequestManager, LegacyNetworkHandler,
85
- * > and `instantiateRecord` are configured for you by default.
86
- *
87
- * ### Configuring A Cache
88
- *
89
- * To start, let's install a [JSON:API](https://jsonapi.org/) cache. If your app uses `GraphQL` or `REST` other
90
- * caches may better fit your data. You can author your own cache by creating one that
91
- * conforms to the [spec](https://api.emberjs.com/ember-data/release/classes/%3CInterface%3E%20Cache).
92
- *
93
- * The package `@ember-data/json-api` provides a [JSON:API](https://jsonapi.org/) cache we can use.
94
- * After installing it, we can configure the store to use this cache.
95
- *
96
- * ```js
97
- * import Store from '@ember-data/store';
98
- * import Cache from '@ember-data/json-api';
99
- *
100
- * class extends Store {
101
- * createCache(storeWrapper) {
102
- * return new Cache(storeWrapper);
103
- * }
104
- * }
105
- * ```
106
- *
107
- * Now that we have a `cache` let's setup something to handle fetching
108
- * and saving data via our API.
109
- *
110
- * > **Note**
111
- * > The `ember-data` package automatically includes and configures
112
- * > the `@ember-data/json-api` cache for you.
113
- *
114
- * ### Handling Requests
115
- *
116
- * When *Ember***Data** needs to fetch or save data it will pass that request to your application's `RequestManager` for fulfillment. How this fulfillment occurs (in-memory, device storage, via single or multiple API requests, etc.) is then up to the registered request handlers.
117
- *
118
- * To start, let's install the `RequestManager` from `@ember-data/request` and the basic `Fetch` handler from ``@ember-data/request/fetch`.
119
- *
120
- * > **Note**
121
- * > If your app uses `GraphQL`, `REST` or different conventions for `JSON:API` than your cache expects, other handlers may better fit your data. You can author your own handler by creating one that conforms to the [handler interface](https://github.com/emberjs/data/tree/main/packages/request#handling-requests).
122
- *
123
- * ```ts
124
- * import Store from '@ember-data/store';
125
- * import RequestManager from '@ember-data/request';
126
- * import Fetch from '@ember-data/request/fetch';
127
- *
128
- * export default class extends Store {
129
- * requestManager = new RequestManager()
130
- * .use([Fetch]);
131
- * }
132
- * ```
133
- *
134
- * **Using RequestManager as a Service**
135
- *
136
- * Alternatively if you have configured the `RequestManager` to be a service you may re-use it.
137
- *
138
- * *app/services/request.js*
139
- * ```ts
140
- * import RequestManager from '@ember-data/request';
141
- * import Fetch from '@ember-data/request/fetch';
142
- *
143
- * export default class extends RequestManager {
144
- * constructor(createArgs) {
145
- * super(createArgs);
146
- * this.use([Fetch]);
147
- * }
148
- * }
149
- * ```
150
- *
151
- * *app/services/store.js*
152
- * ```ts
153
- * import Store from '@ember-data/store';
154
- * import { service } from '@ember/service';
155
- *
156
- * export default class extends Store {
157
- * @service('request') requestManager
158
- * }
159
- * ```
160
- *
161
- *
162
- * ### Presenting Data from the Cache
163
- *
164
- * Now that we have a source and a cache for our data, we need to configure how
165
- * the Store delivers that data back to our application. We do this via the hook
166
- * [instantiateRecord](https://api.emberjs.com/ember-data/release/classes/Store/methods/instantiateRecord%20(hook)?anchor=instantiateRecord%20(hook)),
167
- * which allows us to transform the data for a resource before handing it to the application.
168
- *
169
- * A naive way to present the data would be to return it as JSON. Typically instead
170
- * this hook will be used to add reactivity and make each unique resource a singleton,
171
- * ensuring that if the cache updates our presented data will reflect the new state.
172
- *
173
- * Below is an example of using the hooks `instantiateRecord` and a `teardownRecord`
174
- * to provide minimal read-only reactive state for simple resources.
175
- *
176
- * ```ts
177
- * import Store, { recordIdentifierFor } from '@ember-data/store';
178
- * import { TrackedObject } from 'tracked-built-ins';
179
- *
180
- * class extends Store {
181
- * instantiateRecord(identifier) {
182
- * const { cache, notifications } = this;
183
- *
184
- * // create a TrackedObject with our attributes, id and type
185
- * const record = new TrackedObject(Object.assign({}, cache.peek(identifier)));
186
- * record.type = identifier.type;
187
- * record.id = identifier.id;
188
- *
189
- * notifications.subscribe(identifier, (_, change) => {
190
- * if (change === 'attributes') {
191
- * Object.assign(record, cache.peek(identifier));
192
- * }
193
- * });
194
- *
195
- * return record;
196
- * }
197
- * }
198
- * ```
199
- *
200
- * Because `instantiateRecord` is opaque to the nature of the record, an implementation
201
- * can be anything from a fairly simple object to a robust proxy that intelligently links
202
- * together associated records through relationships.
203
- *
204
- * This also enables creating a record that separates `edit` flows from `create` flows
205
- * entirely. A record class might choose to implement a `checkout`method that gives access
206
- * to an editable instance while the primary record continues to be read-only and reflect
207
- * only persisted (non-mutated) state.
208
- *
209
- * Typically you will choose an existing record implementation such as `@ember-data/model`
210
- * for your application.
211
- *
212
- * Because of the boundaries around instantiation and the cache, record implementations
213
- * should be capable of interop both with each other and with any `Cache`. Due to this,
214
- * if needed an application can utilize multiple record implementations and multiple cache
215
- * implementations either to support enhanced features for only a subset of records or to
216
- * be able to incrementally migrate from one record/cache to another record or cache.
217
- *
218
- * > **Note**
219
- * > The `ember-data` package automatically includes the `@ember-data/model`
220
- * > package and configures it for you.
221
- *
222
- * @module @ember-data/store
223
- * @main @ember-data/store
224
- */
225
- export { Store as default, type StoreRequestContext, CacheHandler, type Document, type CachePolicy, type StoreRequestInput, recordIdentifierFor, storeFor, } from '@ember-data/store/-private';
226
- export type { DocumentCacheOperation, CacheOperation, NotificationType, } from '@ember-data/store/-private/managers/notification-manager';
227
- export { setIdentifierGenerationMethod, setIdentifierUpdateMethod, setIdentifierForgetMethod, setIdentifierResetMethod, setKeyInfoForResource, } from '@ember-data/store/-private/caches/identifier-cache';
5
+ export { Store as default, type StoreRequestContext, CacheHandler, type Document, type CachePolicy, type StoreRequestInput, recordIdentifierFor, storeFor, type DocumentCacheOperation, type CacheOperation, type NotificationType, setIdentifierGenerationMethod, setIdentifierUpdateMethod, setIdentifierForgetMethod, setIdentifierResetMethod, setKeyInfoForResource, } from '@warp-drive/core';
228
6
  }
229
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmLG;AACH,OAAO,EACL,KAAK,IAAI,OAAO,EAChB,KAAK,mBAAmB,EACxB,YAAY,EACZ,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,mBAAmB,EACnB,QAAQ,GACT,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,sBAAsB,EACtB,cAAc,EACd,gBAAgB,GACjB,MAAM,0CAA0C,CAAC;AAElD,OAAO,EACL,6BAA6B,EAC7B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,oCAAoC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA2LA,OAAO,EACL,KAAK,IAAI,OAAO,EAChB,KAAK,mBAAmB,EACxB,YAAY,EACZ,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,mBAAmB,EACnB,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,6BAA6B,EAC7B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC"}
@@ -1,7 +1,4 @@
1
1
  declare module '@ember-data/store/types' {
2
- export type { CacheCapabilitiesManager } from '@ember-data/store/-types/q/cache-capabilities-manager';
3
- export type { ModelSchema } from '@ember-data/store/-types/q/ds-model';
4
- export type { SchemaService } from '@ember-data/store/-types/q/schema-service';
5
- export type { BaseFinderOptions, FindRecordOptions, LegacyResourceQuery, QueryOptions, FindAllOptions, } from '@ember-data/store/-types/q/store';
2
+ export type { CacheCapabilitiesManager, ModelSchema, SchemaService, BaseFinderOptions, FindRecordOptions, LegacyResourceQuery, QueryOptions, FindAllOptions, } from '@warp-drive/core/types';
6
3
  }
7
4
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACtF,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,cAAc,GACf,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,wBAAwB,EACxB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,cAAc,GACf,MAAM,wBAAwB,CAAC"}
@@ -1,62 +0,0 @@
1
- declare module '@ember-data/store/-private/cache-handler/handler' {
2
- /**
3
- * @module @ember-data/store
4
- */
5
- import type { CacheHandler as CacheHandlerType } from '@ember-data/request';
6
- import type { ImmutableRequestInfo, RequestContext } from '@warp-drive/core-types/request';
7
- import type { ResourceIdentifierObject } from '@warp-drive/core-types/spec/json-api-raw';
8
- import type { Store } from '@ember-data/store/-private/store-service';
9
- export type LooseStoreRequestInfo<T = unknown, RT = unknown> = Omit<ImmutableRequestInfo<T, RT>, 'records' | 'headers'> & {
10
- records?: ResourceIdentifierObject[];
11
- headers?: Headers;
12
- };
13
- export type StoreRequestInput<T = unknown, RT = unknown> = ImmutableRequestInfo<T, RT> | LooseStoreRequestInfo<T, RT>;
14
- export interface StoreRequestContext extends RequestContext {
15
- request: ImmutableRequestInfo & {
16
- store: Store;
17
- };
18
- }
19
- /**
20
- * A CacheHandler that adds support for using an EmberData Cache with a RequestManager.
21
- *
22
- * This handler will only run when a request has supplied a `store` instance. Requests
23
- * issued by the store via `store.request()` will automatically have the `store` instance
24
- * attached to the request.
25
- *
26
- * ```ts
27
- * requestManager.request({
28
- * store: store,
29
- * url: '/api/posts',
30
- * method: 'GET'
31
- * });
32
- * ```
33
- *
34
- * When this handler elects to handle a request, it will return the raw `StructuredDocument`
35
- * unless the request has `[EnableHydration]` set to `true`. In this case, the handler will
36
- * return a `Document` instance that will automatically update the UI when the cache is updated
37
- * in the future and will hydrate any identifiers in the StructuredDocument into Record instances.
38
- *
39
- * When issuing a request via the store, [EnableHydration] is automatically set to `true`. This
40
- * means that if desired you can issue requests that utilize the cache without needing to also
41
- * utilize Record instances if desired.
42
- *
43
- * Said differently, you could elect to issue all requests via a RequestManager, without ever using
44
- * the store directly, by setting [EnableHydration] to `true` and providing a store instance. Not
45
- * necessarily the most useful thing, but the decoupled nature of the RequestManager and incremental-feature
46
- * approach of EmberData allows for this flexibility.
47
- *
48
- * ```ts
49
- * import { EnableHydration } from '@warp-drive/core-types/request';
50
- *
51
- * requestManager.request({
52
- * store: store,
53
- * url: '/api/posts',
54
- * method: 'GET',
55
- * [EnableHydration]: true
56
- * });
57
- *
58
- * @typedoc
59
- */
60
- export const CacheHandler: CacheHandlerType;
61
- }
62
- //# 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;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAkB,MAAM,qBAAqB,CAAC;AAI5F,OAAO,KAAK,EACV,oBAAoB,EACpB,cAAc,EAGf,MAAM,gCAAgC,CAAC;AAQxC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAGzF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAU9C,MAAM,MAAM,qBAAqB,CAAC,CAAC,GAAG,OAAO,EAAE,EAAE,GAAG,OAAO,IAAI,IAAI,CACjE,oBAAoB,CAAC,CAAC,EAAE,EAAE,CAAC,EAC3B,SAAS,GAAG,SAAS,CACtB,GAAG;IACF,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,OAAO,EAAE,EAAE,GAAG,OAAO,IAAI,oBAAoB,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,qBAAqB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AAEtH,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD,OAAO,EAAE,oBAAoB,GAAG;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,CAAC;CAClD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,YAAY,EAAE,gBA0E1B,CAAC"}
@@ -1,107 +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
- * @method isHardExpired
31
- * @public
32
- * @param {StableDocumentIdentifier} identifier
33
- * @param {Store} store
34
- * @return {Boolean} true if the request is considered hard expired
35
- */
36
- isHardExpired(identifier: StableDocumentIdentifier, store: Store): boolean;
37
- /**
38
- * Invoked if `isHardExpired` is false to determine if the request
39
- * should be update behind the scenes if cache data is already available.
40
- *
41
- * Note, this is only invoked if the request has a cache-key.
42
- *
43
- * If true, the request will be fulfilled from cache while a backgrounded
44
- * request is made to update the cache via the configured request handlers.
45
- *
46
- * @method isSoftExpired
47
- * @public
48
- * @param {StableDocumentIdentifier} identifier
49
- * @param {Store} store
50
- * @return {Boolean} true if the request is considered soft expired
51
- */
52
- isSoftExpired(identifier: StableDocumentIdentifier, store: Store): boolean;
53
- /**
54
- * Invoked when a request will be sent to the configured request handlers.
55
- * This is invoked for both foreground and background requests.
56
- *
57
- * Note, this is invoked regardless of whether the request has a cache-key.
58
- *
59
- * @method willRequest [Optional]
60
- * @public
61
- * @param {ImmutableRequestInfo} request
62
- * @param {StableDocumentIdentifier | null} identifier
63
- * @param {Store} store
64
- * @return {void}
65
- */
66
- willRequest?(request: ImmutableRequestInfo, identifier: StableDocumentIdentifier | null, store: Store): void;
67
- /**
68
- * Invoked when a request has been fulfilled from the configured request handlers.
69
- * This is invoked for both foreground and background requests once the cache has
70
- * been updated.
71
- *
72
- * Note, this is invoked regardless of whether the request has a cache-key.
73
- *
74
- * It is best practice to notify the store of any requests marked as invalidated
75
- * so that request subscriptions can reload when needed.
76
- *
77
- * ```ts
78
- * store.notifications.notify(identifier, 'invalidated');
79
- * ```
80
- *
81
- * This allows anything subscribed to the request to be notified of the change
82
- *
83
- * e.g.
84
- *
85
- * ```ts
86
- * store.notifications.subscribe(identifier, (_, type) => {
87
- * if (type === 'invalidated') {
88
- * // do update
89
- * }
90
- * });
91
- * ```
92
- *
93
- * Note,
94
- *
95
- *
96
- * @method didRequest [Optional]
97
- * @public
98
- * @param {ImmutableRequestInfo} request
99
- * @param {ImmutableResponse} response
100
- * @param {StableDocumentIdentifier | null} identifier
101
- * @param {Store} store
102
- * @return {void}
103
- */
104
- didRequest?(request: ImmutableRequestInfo, response: Response | ResponseInfo | null, identifier: StableDocumentIdentifier | null, store: Store): void;
105
- }
106
- }
107
- //# 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;;;;;;;;;;;;;;;OAeG;IACH,aAAa,CAAC,UAAU,EAAE,wBAAwB,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC;IAC3E;;;;;;;;;;;;;;OAcG;IACH,aAAa,CAAC,UAAU,EAAE,wBAAwB,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC;IAE3E;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,CAAC,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,wBAAwB,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAE7G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;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,EAC7B,sBAAsB,EACvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AACxG,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAElE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C,eAAO,MAAM,YAAY,aAA4D,CAAC;AAEtF,wBAAgB,eAAe,CAC7B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,oBAAoB,EAC7B,cAAc,EAAE,OAAO,EACvB,UAAU,EAAE,wBAAwB,GAAG,IAAI,GAC1C,OAAO,CAQT;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,oBAAoB,EAC7B,SAAS,EAAE,OAAO,EAClB,UAAU,EAAE,wBAAwB,GAAG,IAAI,GAC1C,OAAO,CAOT;AAED,wBAAgB,UAAU,CACxB,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,GACrC,OAAO,IAAI,6BAA6B,GAAG,6BAA6B,GAAG,6BAA6B,CAE1G;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,QAAQ,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,OAAO,CAahF;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,KAAK,GAAG;IAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAA;CAAE,GACrC,KAAK,IAAI,cAAc,GAAG;IAAE,MAAM,EAAE,QAAQ,EAAE,CAAA;CAAE,CAElD;AAED,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG;IAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAGrG,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,eAa5C;AAED,wBAAgB,eAAe,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"}