@warp-drive-mirror/core 5.10.0-alpha.18 → 5.10.0-alpha.19
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/dist/build-config/babel-macros.d.ts +5 -0
- package/dist/build-config/canary-features.d.ts +5 -0
- package/dist/build-config/debugging.d.ts +59 -0
- package/dist/build-config/deprecations.d.ts +5 -0
- package/dist/build-config.d.ts +17 -0
- package/dist/configure.d.ts +8 -0
- package/dist/graph/-private.js +2 -1
- package/dist/graph/-private.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/reactive.d.ts +275 -0
- package/dist/reactive.js +1 -1
- package/dist/request.d.ts +8 -0
- package/dist/signals/-leaked.d.ts +14 -0
- package/dist/signals/-leaked.d.ts.map +1 -1
- package/dist/{src-PuYJ-RSZ.js → src-CvKTKJvq.js} +2 -2
- package/dist/src-CvKTKJvq.js.map +1 -0
- package/dist/store/-private.js +1 -1
- package/dist/store.d.ts +5 -0
- package/dist/types/-private.js +1 -1
- package/dist/types/cache/relationship.d.ts +5 -0
- package/dist/types/cache.d.ts +5 -0
- package/dist/types/graph.d.ts +5 -0
- package/dist/types/record.d.ts +5 -0
- package/dist/types/schema/concepts.d.ts +5 -0
- package/dist/types/schema/schema-service.d.ts +5 -0
- package/dist/types/spec/error.d.ts +4 -0
- package/dist/types/spec/json-api-raw.d.ts +5 -0
- package/dist/types.d.ts +8 -0
- package/dist/unpkg/dev/graph/-private.js +2 -1
- package/dist/unpkg/dev/graph/-private.js.map +1 -1
- package/dist/unpkg/dev/index.js +1 -1
- package/dist/unpkg/dev/reactive.js +1 -1
- package/dist/unpkg/dev/{src-Dy9m6GTv.js → src-CqJO8wIe.js} +2 -2
- package/dist/unpkg/dev/src-CqJO8wIe.js.map +1 -0
- package/dist/unpkg/dev/store/-private.js +1 -1
- package/dist/unpkg/dev/types/-private.js +1 -1
- package/dist/unpkg/dev-deprecated/graph/-private.js +2 -1
- package/dist/unpkg/dev-deprecated/graph/-private.js.map +1 -1
- package/dist/unpkg/dev-deprecated/index.js +1 -1
- package/dist/unpkg/dev-deprecated/reactive.js +1 -1
- package/dist/unpkg/dev-deprecated/{src-ByOiBTF3.js → src-BtyRjyV0.js} +2 -2
- package/dist/unpkg/dev-deprecated/src-BtyRjyV0.js.map +1 -0
- package/dist/unpkg/dev-deprecated/store/-private.js +1 -1
- package/dist/unpkg/dev-deprecated/types/-private.js +1 -1
- package/dist/unpkg/prod/graph/-private.js +5 -2
- package/dist/unpkg/prod/graph/-private.js.map +1 -1
- package/dist/unpkg/prod/index.js +1 -1
- package/dist/unpkg/prod/reactive.js +1 -1
- package/dist/unpkg/prod/{src-NuWjjfax.js → src-Ack6NaKZ.js} +2 -2
- package/dist/unpkg/prod/src-Ack6NaKZ.js.map +1 -0
- package/dist/unpkg/prod/store/-private.js +1 -1
- package/dist/unpkg/prod/types/-private.js +1 -1
- package/dist/unpkg/prod-deprecated/graph/-private.js +5 -2
- package/dist/unpkg/prod-deprecated/graph/-private.js.map +1 -1
- package/dist/unpkg/prod-deprecated/index.js +1 -1
- package/dist/unpkg/prod-deprecated/reactive.js +1 -1
- package/dist/unpkg/prod-deprecated/{src-Bt7BkX1Y.js → src-C8-R95FT.js} +2 -2
- package/dist/unpkg/prod-deprecated/src-C8-R95FT.js.map +1 -0
- package/dist/unpkg/prod-deprecated/store/-private.js +1 -1
- package/dist/unpkg/prod-deprecated/types/-private.js +1 -1
- package/package.json +4 -4
- package/dist/src-PuYJ-RSZ.js.map +0 -1
- package/dist/unpkg/dev/src-Dy9m6GTv.js.map +0 -1
- package/dist/unpkg/dev-deprecated/src-ByOiBTF3.js.map +0 -1
- package/dist/unpkg/prod/src-NuWjjfax.js.map +0 -1
- package/dist/unpkg/prod-deprecated/src-Bt7BkX1Y.js.map +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as setRecordIdentifier, D as isRequestKey, E as fieldValueIdentity, F as coerceId, I as ensureStringId, L as log, O as isResourceKey, P as normalizeModelName, R as logGroup, S as recordIdentifierFor, T as assertPrivateCapabilities, _ as isPrivateStore, b as StoreMap, f as createLegacyManyArray, g as assertPrivateStore, h as Store, m as CacheHandler, p as constructResource, v as RecordArrayManager, w as storeFor, x as _clearCaches, y as fastPush } from "../src-
|
|
1
|
+
import { C as setRecordIdentifier, D as isRequestKey, E as fieldValueIdentity, F as coerceId, I as ensureStringId, L as log, O as isResourceKey, P as normalizeModelName, R as logGroup, S as recordIdentifierFor, T as assertPrivateCapabilities, _ as isPrivateStore, b as StoreMap, f as createLegacyManyArray, g as assertPrivateStore, h as Store, m as CacheHandler, p as constructResource, v as RecordArrayManager, w as storeFor, x as _clearCaches, y as fastPush } from "../src-CqJO8wIe.js";
|
|
2
2
|
|
|
3
3
|
export { CacheHandler, RecordArrayManager, Store, StoreMap, _clearCaches, normalizeModelName as _deprecatingNormalize, assertPrivateCapabilities, assertPrivateStore, coerceId, constructResource, createLegacyManyArray, ensureStringId, fastPush, fieldValueIdentity, isPrivateStore, isRequestKey, isResourceKey, log, logGroup, recordIdentifierFor, setRecordIdentifier, storeFor };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/types/-private.ts
|
|
2
2
|
const name = "@warp-drive-mirror/core";
|
|
3
|
-
const version = "5.10.0-alpha.
|
|
3
|
+
const version = "5.10.0-alpha.19";
|
|
4
4
|
const GlobalRef = globalThis;
|
|
5
5
|
const UniversalCache = GlobalRef.__warpDrive_universalCache = GlobalRef.__warpDrive_universalCache ?? {};
|
|
6
6
|
GlobalRef[name] = GlobalRef[name] ?? { __version: version };
|
|
@@ -373,7 +373,7 @@ function upgradeDefinition(graph, key, propertyName, isImplicit = false) {
|
|
|
373
373
|
})(storeWrapper.schema.hasResource({ type: inverseType }));
|
|
374
374
|
inverseDefinition = null;
|
|
375
375
|
} else {
|
|
376
|
-
inverseKey = inverseForRelationship(getStore(storeWrapper), key,
|
|
376
|
+
inverseKey = inverseForRelationship(getStore(storeWrapper), key, meta.name);
|
|
377
377
|
if (!inverseKey && definition.isPolymorphic && definition.inverseKey) inverseDefinition = {
|
|
378
378
|
kind: "belongsTo",
|
|
379
379
|
key: definition.inverseKey,
|
|
@@ -398,6 +398,7 @@ function upgradeDefinition(graph, key, propertyName, isImplicit = false) {
|
|
|
398
398
|
if (!test) throw new Error(`Expected ${inverseKey} to be a relationship`);
|
|
399
399
|
})(isRelationshipField(metaFromInverse));
|
|
400
400
|
inverseDefinition = upgradeMeta(metaFromInverse);
|
|
401
|
+
inverseKey = inverseDefinition.key;
|
|
401
402
|
}
|
|
402
403
|
}
|
|
403
404
|
if (!inverseDefinition) {
|