@warp-drive/core 5.8.0-alpha.21 → 5.8.0-alpha.23

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.
@@ -8,13 +8,15 @@ import type { Handler } from "./request.js";
8
8
  import { Fetch } from "./request/-private/fetch.js";
9
9
  import { RequestManager } from "./request/-private/manager.js";
10
10
  import { CacheHandler, type CachePolicy, Store } from "./store/-private.js";
11
+ import { recordIdentifierFor } from "./store/-private.js";
11
12
  import type { CacheCapabilitiesManager } from "./types.js";
12
13
  import type { Cache } from "./types/cache.js";
13
14
  import type { Derivation, HashFn, Transformation } from "./types/schema/concepts.js";
14
15
  import type { ObjectSchema, PolarisResourceSchema, Trait } from "./types/schema/fields.js";
16
+ export { recordIdentifierFor, recordIdentifierFor as cacheKeyFor };
15
17
  export { Fetch, RequestManager };
16
18
  export { Store, CacheHandler, type CachePolicy };
17
- export { type StoreRequestContext, type StoreRequestInput, recordIdentifierFor, storeFor } from "./store/-private.js";
19
+ export { type StoreRequestContext, type StoreRequestInput, storeFor } from "./store/-private.js";
18
20
  /**
19
21
  * @deprecated use `ReactiveDocument` instead
20
22
  */
@@ -24,11 +26,11 @@ export { setIdentifierGenerationMethod, setIdentifierUpdateMethod, setIdentifier
24
26
  /**
25
27
  * Options for setting up a Store instance with `useRecommendedStore`.
26
28
  */
27
- export interface StoreSetupOptions {
29
+ export interface StoreSetupOptions<T extends Cache = Cache> {
28
30
  /**
29
31
  * The Cache implementation to use
30
32
  */
31
- cache: new (capabilities: CacheCapabilitiesManager) => Cache;
33
+ cache: new (capabilities: CacheCapabilitiesManager) => T;
32
34
  /**
33
35
  * The Cache policy to use.
34
36
  *
@@ -362,7 +362,7 @@ export declare function createRequestState<
362
362
  * ```
363
363
  *
364
364
  * If looking to use in a template, consider also the `<Request />` component
365
- * which offers a numbe of additional capabilities for requests *beyond* what
365
+ * which offers a number of additional capabilities for requests *beyond* what
366
366
  * `RequestState` provides.
367
367
  *
368
368
  */
@@ -1310,8 +1310,9 @@ export interface LegacyBelongsToField {
1310
1310
  */
1311
1311
  polymorphic?: boolean;
1312
1312
  /**
1313
- * Whether this field should ever make use of the legacy support infra
1314
- * from @ember-data/model and the LegacyNetworkMiddleware for adapters and serializers.
1313
+ * Whether this field should ever make use of the legacy request infra
1314
+ * from @warp-drive/legacy/compat and the LegacyNetworkMiddleware for
1315
+ * adapters and serializers.
1315
1316
  *
1316
1317
  * When true, none of the legacy support will be utilized. Sync relationships
1317
1318
  * will be expected to already have all their data. When reloading a sync relationship
@@ -826,6 +826,7 @@ if (macroCondition(getGlobalConfig().WarpDrive.env.DEBUG)) {
826
826
  function inverseDefinition(definition) {
827
827
  return {
828
828
  key: definition.inverseKey,
829
+ name: definition.inverseName,
829
830
  type: definition.inverseType,
830
831
  kind: definition.inverseKind,
831
832
  isAsync: definition.inverseIsAsync,
@@ -834,6 +835,7 @@ if (macroCondition(getGlobalConfig().WarpDrive.env.DEBUG)) {
834
835
  isCollection: definition.inverseIsCollection,
835
836
  isImplicit: definition.inverseIsImplicit,
836
837
  inverseKey: definition.key,
838
+ inverseName: definition.name,
837
839
  inverseType: definition.type,
838
840
  inverseKind: definition.kind,
839
841
  inverseIsAsync: definition.isAsync,
@@ -8321,7 +8321,7 @@ function createRequestState(future) {
8321
8321
  * ```
8322
8322
  *
8323
8323
  * If looking to use in a template, consider also the `<Request />` component
8324
- * which offers a numbe of additional capabilities for requests *beyond* what
8324
+ * which offers a number of additional capabilities for requests *beyond* what
8325
8325
  * `RequestState` provides.
8326
8326
  *
8327
8327
  */
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { C as CacheHandler, V as Fetch, W as RequestManager, S as Store, r as recordIdentifierFor, $ as setIdentifierForgetMethod, Y as setIdentifierGenerationMethod, a0 as setIdentifierResetMethod, Z as setIdentifierUpdateMethod, a1 as setKeyInfoForResource, s as storeFor, X as useRecommendedStore } from "./index-5DOGbDJz.js";
1
+ export { C as CacheHandler, V as Fetch, W as RequestManager, S as Store, r as cacheKeyFor, r as recordIdentifierFor, $ as setIdentifierForgetMethod, Y as setIdentifierGenerationMethod, a0 as setIdentifierResetMethod, Z as setIdentifierUpdateMethod, a1 as setKeyInfoForResource, s as storeFor, X as useRecommendedStore } from "./index-CHrZ1B2X.js";
2
2
  import "./symbols-sql1_mdx.js";
3
3
  import '@ember/debug';
4
4
  import '@embroider/macros';
package/dist/reactive.js CHANGED
@@ -1,4 +1,4 @@
1
- export { N as SchemaService, K as checkout, T as commit, p as createRequestSubscription, P as fromIdentity, U as getPromiseState, q as getRequestState, L as instantiateRecord, Q as registerDerivations, M as teardownRecord, O as withDefaults } from "./index-5DOGbDJz.js";
1
+ export { N as SchemaService, K as checkout, T as commit, p as createRequestSubscription, P as fromIdentity, U as getPromiseState, q as getRequestState, L as instantiateRecord, Q as registerDerivations, M as teardownRecord, O as withDefaults } from "./index-CHrZ1B2X.js";
2
2
  export { a as Checkout } from "./symbols-sql1_mdx.js";
3
3
  import './types/request.js';
4
4
  import '@embroider/macros';
@@ -1,2 +1,2 @@
1
- export { C as CacheHandler, D as DISPOSE, R as RecordArrayManager, B as Signals, S as Store, k as StoreMap, _ as _clearCaches, n as _deprecatingNormalize, h as assertPrivateCapabilities, d as assertPrivateStore, b as coerceId, c as constructResource, I as consumeInternalSignal, F as createInternalMemo, l as createLegacyManyArray, p as createRequestSubscription, z as defineGate, A as defineNonEnumerableSignal, y as defineSignal, e as ensureStringId, x as entangleInitiallyStaleSignal, w as entangleSignal, f as fastPush, v as gate, J as getOrCreateInternalSignal, q as getRequestState, g as isPrivateStore, a as isRequestKey, i as isResourceKey, m as log, o as logGroup, u as memoized, H as notifyInternalSignal, E as peekInternalSignal, r as recordIdentifierFor, j as setRecordIdentifier, t as signal, s as storeFor, G as withSignalStore } from "../index-5DOGbDJz.js";
1
+ export { C as CacheHandler, D as DISPOSE, R as RecordArrayManager, B as Signals, S as Store, k as StoreMap, _ as _clearCaches, n as _deprecatingNormalize, h as assertPrivateCapabilities, d as assertPrivateStore, b as coerceId, c as constructResource, I as consumeInternalSignal, F as createInternalMemo, l as createLegacyManyArray, p as createRequestSubscription, z as defineGate, A as defineNonEnumerableSignal, y as defineSignal, e as ensureStringId, x as entangleInitiallyStaleSignal, w as entangleSignal, f as fastPush, v as gate, J as getOrCreateInternalSignal, q as getRequestState, g as isPrivateStore, a as isRequestKey, i as isResourceKey, m as log, o as logGroup, u as memoized, H as notifyInternalSignal, E as peekInternalSignal, r as recordIdentifierFor, j as setRecordIdentifier, t as signal, s as storeFor, G as withSignalStore } from "../index-CHrZ1B2X.js";
2
2
  export { A as ARRAY_SIGNAL, O as OBJECT_SIGNAL, w as waitFor } from "../configure-C3x8YXzL.js";
@@ -1,6 +1,6 @@
1
1
  import { macroCondition, getGlobalConfig } from '@embroider/macros';
2
2
  const name = "@warp-drive/core";
3
- const version = "5.8.0-alpha.21";
3
+ const version = "5.8.0-alpha.23";
4
4
 
5
5
  // in testing mode, we utilize globals to ensure only one copy exists of
6
6
  // these maps, due to bugs in ember-auto-import
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warp-drive/core",
3
- "version": "5.8.0-alpha.21",
3
+ "version": "5.8.0-alpha.23",
4
4
  "description": "Core package for WarpDrive | All the Universal Basics",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -37,13 +37,13 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@embroider/macros": "^1.18.1",
40
- "@warp-drive/build-config": "5.8.0-alpha.21"
40
+ "@warp-drive/build-config": "5.8.0-alpha.23"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@babel/core": "^7.28.3",
44
44
  "@babel/plugin-transform-typescript": "^7.28.0",
45
45
  "@babel/preset-typescript": "^7.27.1",
46
- "@warp-drive/internal-config": "5.8.0-alpha.21",
46
+ "@warp-drive/internal-config": "5.8.0-alpha.23",
47
47
  "decorator-transforms": "^2.3.0",
48
48
  "ember-source": "~6.6.0",
49
49
  "expect-type": "^1.2.2",