@warp-drive/core 5.9.0-alpha.8 → 5.9.0-alpha.9

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.
@@ -67,7 +67,7 @@ function assertValidRelationshipPayload(graph, op) {
67
67
  kind
68
68
  } = definition;
69
69
  if (payload.links) {
70
- warn(`You pushed a record of type '${type}' with a relationship '${field}' configured as 'async: false'. You've included a link but no primary data, this may be an error in your payload. WarpDrive will treat this relationship as known-to-be-empty.`, isAsync || !!payload.data || state.hasReceivedData, {
70
+ warn(`You pushed a record of type '${type}' with a relationship '${field}' configured as 'async: false'. You've included a link but no primary data, this may be an error in your payload. WarpDrive will treat this relationship as known-to-be-empty.`, isAsync || payload.data === null || !!payload.data || state.hasReceivedData, {
71
71
  id: 'ds.store.push-link-for-sync-relationship'
72
72
  });
73
73
  } else if (payload.data) {
@@ -9620,7 +9620,7 @@ const Fetch = {
9620
9620
  }
9621
9621
  }
9622
9622
  context.setResponse(response);
9623
- if (response.status === 204) {
9623
+ if (response.status === 204 || context.request.method === 'HEAD') {
9624
9624
  return null;
9625
9625
  }
9626
9626
  let text = '';
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { C as CacheHandler, F as Fetch, z as RequestManager, S as Store, r as cacheKeyFor, r as recordIdentifierFor, E as setIdentifierForgetMethod, B as setIdentifierGenerationMethod, G as setIdentifierResetMethod, D as setIdentifierUpdateMethod, H as setKeyInfoForResource, s as storeFor, A as useRecommendedStore } from "./index-D4jKuR0r.js";
1
+ export { C as CacheHandler, F as Fetch, z as RequestManager, S as Store, r as cacheKeyFor, r as recordIdentifierFor, E as setIdentifierForgetMethod, B as setIdentifierGenerationMethod, G as setIdentifierResetMethod, D as setIdentifierUpdateMethod, H as setKeyInfoForResource, s as storeFor, A as useRecommendedStore } from "./index-D1MSdV3_.js";
2
2
  import "./symbols-3C1OkYtZ.js";
3
3
  import "./configure-BlQ9ebNX.js";
4
4
  import '@embroider/macros';
package/dist/reactive.js CHANGED
@@ -1,4 +1,4 @@
1
- export { u as SchemaService, p as checkout, y as commit, v as fromIdentity, q as instantiateRecord, x as registerDerivations, t as teardownRecord, w as withDefaults } from "./index-D4jKuR0r.js";
1
+ export { u as SchemaService, p as checkout, y as commit, v as fromIdentity, q as instantiateRecord, x as registerDerivations, t as teardownRecord, w as withDefaults } from "./index-D1MSdV3_.js";
2
2
  export { C as Checkout } from "./symbols-3C1OkYtZ.js";
3
3
  export { f as createRequestSubscription, i as getPromiseState, h as getRequestState } from "./configure-BlQ9ebNX.js";
4
4
  import '@embroider/macros';
@@ -1 +1 @@
1
- export { C as CacheHandler, R as RecordArrayManager, S as Store, k as StoreMap, _ as _clearCaches, n as _deprecatingNormalize, h as assertPrivateCapabilities, d as assertPrivateStore, b as coerceId, c as constructResource, l as createLegacyManyArray, e as ensureStringId, f as fastPush, g as isPrivateStore, a as isRequestKey, i as isResourceKey, m as log, o as logGroup, r as recordIdentifierFor, j as setRecordIdentifier, s as storeFor } from "../index-D4jKuR0r.js";
1
+ export { C as CacheHandler, R as RecordArrayManager, S as Store, k as StoreMap, _ as _clearCaches, n as _deprecatingNormalize, h as assertPrivateCapabilities, d as assertPrivateStore, b as coerceId, c as constructResource, l as createLegacyManyArray, e as ensureStringId, f as fastPush, g as isPrivateStore, a as isRequestKey, i as isResourceKey, m as log, o as logGroup, r as recordIdentifierFor, j as setRecordIdentifier, s as storeFor } from "../index-D1MSdV3_.js";
@@ -1,6 +1,6 @@
1
1
  import { macroCondition, getGlobalConfig } from '@embroider/macros';
2
2
  const name = "@warp-drive/core";
3
- const version = "5.9.0-alpha.8";
3
+ const version = "5.9.0-alpha.9";
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
@@ -55,7 +55,7 @@ function assertValidRelationshipPayload(graph, op) {
55
55
  kind
56
56
  } = definition;
57
57
  if (payload.links) {
58
- console.warn(`You pushed a record of type '${type}' with a relationship '${field}' configured as 'async: false'. You've included a link but no primary data, this may be an error in your payload. WarpDrive will treat this relationship as known-to-be-empty.`, isAsync || !!payload.data || state.hasReceivedData, {
58
+ console.warn(`You pushed a record of type '${type}' with a relationship '${field}' configured as 'async: false'. You've included a link but no primary data, this may be an error in your payload. WarpDrive will treat this relationship as known-to-be-empty.`, isAsync || payload.data === null || !!payload.data || state.hasReceivedData, {
59
59
  id: 'ds.store.push-link-for-sync-relationship'
60
60
  });
61
61
  } else if (payload.data) {
@@ -8939,7 +8939,7 @@ const Fetch = {
8939
8939
  }
8940
8940
  }
8941
8941
  context.setResponse(response);
8942
- if (response.status === 204) {
8942
+ if (response.status === 204 || context.request.method === 'HEAD') {
8943
8943
  return null;
8944
8944
  }
8945
8945
  let text = '';
@@ -1,4 +1,4 @@
1
- export { C as CacheHandler, F as Fetch, y as RequestManager, S as Store, r as cacheKeyFor, r as recordIdentifierFor, D as setIdentifierForgetMethod, A as setIdentifierGenerationMethod, E as setIdentifierResetMethod, B as setIdentifierUpdateMethod, G as setKeyInfoForResource, s as storeFor, z as useRecommendedStore } from "./index-BrSRAfLa.js";
1
+ export { C as CacheHandler, F as Fetch, y as RequestManager, S as Store, r as cacheKeyFor, r as recordIdentifierFor, D as setIdentifierForgetMethod, A as setIdentifierGenerationMethod, E as setIdentifierResetMethod, B as setIdentifierUpdateMethod, G as setKeyInfoForResource, s as storeFor, z as useRecommendedStore } from "./index-BRuavm7L.js";
2
2
  import "./-private-sql1_mdx.js";
3
3
  import "./-leaked-BYj8zMi0.js";
4
4
  import './store.js';
@@ -1,3 +1,3 @@
1
- export { q as SchemaService, o as checkout, x as commit, u as fromIdentity, p as instantiateRecord, v as registerDerivations, t as teardownRecord, w as withDefaults } from "./index-BrSRAfLa.js";
1
+ export { q as SchemaService, o as checkout, x as commit, u as fromIdentity, p as instantiateRecord, v as registerDerivations, t as teardownRecord, w as withDefaults } from "./index-BRuavm7L.js";
2
2
  export { a as Checkout } from "./-private-sql1_mdx.js";
3
3
  export { k as createRequestSubscription, m as getPromiseState, l as getRequestState } from "./-leaked-BYj8zMi0.js";
@@ -1,6 +1,6 @@
1
1
  import '../types/request.js';
2
- import { i as isResourceKey, c as coerceId } from "../index-BrSRAfLa.js";
3
- export { C as CacheHandler, R as RecordArrayManager, S as Store, j as StoreMap, _ as _clearCaches, n as _deprecatingNormalize, g as assertPrivateCapabilities, b as assertPrivateStore, k as createLegacyManyArray, e as ensureStringId, f as fastPush, d as isPrivateStore, a as isRequestKey, l as log, m as logGroup, r as recordIdentifierFor, h as setRecordIdentifier, s as storeFor } from "../index-BrSRAfLa.js";
2
+ import { i as isResourceKey, c as coerceId } from "../index-BRuavm7L.js";
3
+ export { C as CacheHandler, R as RecordArrayManager, S as Store, j as StoreMap, _ as _clearCaches, n as _deprecatingNormalize, g as assertPrivateCapabilities, b as assertPrivateStore, k as createLegacyManyArray, e as ensureStringId, f as fastPush, d as isPrivateStore, a as isRequestKey, l as log, m as logGroup, r as recordIdentifierFor, h as setRecordIdentifier, s as storeFor } from "../index-BRuavm7L.js";
4
4
  function isNonEmptyString(str) {
5
5
  return Boolean(str && typeof str === 'string');
6
6
  }
@@ -1,5 +1,5 @@
1
1
  const name = "@warp-drive/core";
2
- const version = "5.9.0-alpha.8";
2
+ const version = "5.9.0-alpha.9";
3
3
 
4
4
  // in testing mode, we utilize globals to ensure only one copy exists of
5
5
  // these maps, due to bugs in ember-auto-import
@@ -59,7 +59,7 @@ function assertValidRelationshipPayload(graph, op) {
59
59
  kind
60
60
  } = definition;
61
61
  if (payload.links) {
62
- console.warn(`You pushed a record of type '${type}' with a relationship '${field}' configured as 'async: false'. You've included a link but no primary data, this may be an error in your payload. WarpDrive will treat this relationship as known-to-be-empty.`, isAsync || !!payload.data || state.hasReceivedData, {
62
+ console.warn(`You pushed a record of type '${type}' with a relationship '${field}' configured as 'async: false'. You've included a link but no primary data, this may be an error in your payload. WarpDrive will treat this relationship as known-to-be-empty.`, isAsync || payload.data === null || !!payload.data || state.hasReceivedData, {
63
63
  id: 'ds.store.push-link-for-sync-relationship'
64
64
  });
65
65
  } else if (payload.data) {
@@ -9554,7 +9554,7 @@ const Fetch = {
9554
9554
  }
9555
9555
  }
9556
9556
  context.setResponse(response);
9557
- if (response.status === 204) {
9557
+ if (response.status === 204 || context.request.method === 'HEAD') {
9558
9558
  return null;
9559
9559
  }
9560
9560
  let text = '';
@@ -1,4 +1,4 @@
1
- export { C as CacheHandler, F as Fetch, z as RequestManager, S as Store, r as cacheKeyFor, r as recordIdentifierFor, E as setIdentifierForgetMethod, B as setIdentifierGenerationMethod, G as setIdentifierResetMethod, D as setIdentifierUpdateMethod, H as setKeyInfoForResource, s as storeFor, A as useRecommendedStore } from "./index-RnWJEamT.js";
1
+ export { C as CacheHandler, F as Fetch, z as RequestManager, S as Store, r as cacheKeyFor, r as recordIdentifierFor, E as setIdentifierForgetMethod, B as setIdentifierGenerationMethod, G as setIdentifierResetMethod, D as setIdentifierUpdateMethod, H as setKeyInfoForResource, s as storeFor, A as useRecommendedStore } from "./index-BwwP9hpV.js";
2
2
  import "./-private-3C1OkYtZ.js";
3
3
  import "./-leaked-D0KHC8Qz.js";
4
4
  import './store.js';
@@ -1,3 +1,3 @@
1
- export { u as SchemaService, p as checkout, y as commit, v as fromIdentity, q as instantiateRecord, x as registerDerivations, t as teardownRecord, w as withDefaults } from "./index-RnWJEamT.js";
1
+ export { u as SchemaService, p as checkout, y as commit, v as fromIdentity, q as instantiateRecord, x as registerDerivations, t as teardownRecord, w as withDefaults } from "./index-BwwP9hpV.js";
2
2
  export { C as Checkout } from "./-private-3C1OkYtZ.js";
3
3
  export { c as createRequestSubscription, a as getPromiseState, g as getRequestState } from "./-leaked-D0KHC8Qz.js";
@@ -1 +1 @@
1
- export { C as CacheHandler, R as RecordArrayManager, S as Store, k as StoreMap, _ as _clearCaches, n as _deprecatingNormalize, h as assertPrivateCapabilities, d as assertPrivateStore, b as coerceId, c as constructResource, l as createLegacyManyArray, e as ensureStringId, f as fastPush, g as isPrivateStore, a as isRequestKey, i as isResourceKey, m as log, o as logGroup, r as recordIdentifierFor, j as setRecordIdentifier, s as storeFor } from "../index-RnWJEamT.js";
1
+ export { C as CacheHandler, R as RecordArrayManager, S as Store, k as StoreMap, _ as _clearCaches, n as _deprecatingNormalize, h as assertPrivateCapabilities, d as assertPrivateStore, b as coerceId, c as constructResource, l as createLegacyManyArray, e as ensureStringId, f as fastPush, g as isPrivateStore, a as isRequestKey, i as isResourceKey, m as log, o as logGroup, r as recordIdentifierFor, j as setRecordIdentifier, s as storeFor } from "../index-BwwP9hpV.js";
@@ -1,5 +1,5 @@
1
1
  const name = "@warp-drive/core";
2
- const version = "5.9.0-alpha.8";
2
+ const version = "5.9.0-alpha.9";
3
3
 
4
4
  // in testing mode, we utilize globals to ensure only one copy exists of
5
5
  // these maps, due to bugs in ember-auto-import
@@ -75,7 +75,7 @@ const Fetch = {
75
75
  }
76
76
  }
77
77
  context.setResponse(response);
78
- if (response.status === 204) {
78
+ if (response.status === 204 || context.request.method === 'HEAD') {
79
79
  return null;
80
80
  }
81
81
  let text = '';
@@ -1,5 +1,5 @@
1
1
  const name = "@warp-drive/core";
2
- const version = "5.9.0-alpha.8";
2
+ const version = "5.9.0-alpha.9";
3
3
 
4
4
  // in testing mode, we utilize globals to ensure only one copy exists of
5
5
  // these maps, due to bugs in ember-auto-import
@@ -75,7 +75,7 @@ const Fetch = {
75
75
  }
76
76
  }
77
77
  context.setResponse(response);
78
- if (response.status === 204) {
78
+ if (response.status === 204 || context.request.method === 'HEAD') {
79
79
  return null;
80
80
  }
81
81
  let text = '';
@@ -1,5 +1,5 @@
1
1
  const name = "@warp-drive/core";
2
- const version = "5.9.0-alpha.8";
2
+ const version = "5.9.0-alpha.9";
3
3
 
4
4
  // in testing mode, we utilize globals to ensure only one copy exists of
5
5
  // 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.9.0-alpha.8",
3
+ "version": "5.9.0-alpha.9",
4
4
  "description": "Core package for WarpDrive | All the Universal Basics",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -45,13 +45,13 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@embroider/macros": "^1.19.6",
48
- "@warp-drive/build-config": "5.9.0-alpha.8"
48
+ "@warp-drive/build-config": "5.9.0-alpha.9"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@babel/core": "^7.28.3",
52
52
  "@babel/plugin-transform-typescript": "^7.28.0",
53
53
  "@babel/preset-typescript": "^7.27.1",
54
- "@warp-drive/internal-config": "5.9.0-alpha.8",
54
+ "@warp-drive/internal-config": "5.9.0-alpha.9",
55
55
  "decorator-transforms": "^2.3.0",
56
56
  "ember-source": "~6.10.0",
57
57
  "expect-type": "^1.2.2",