@warp-drive/legacy 5.8.0-alpha.5 → 5.8.0-alpha.6

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.
@@ -2,7 +2,7 @@ import { type Store } from "@warp-drive/core/store/-private";
2
2
  import type { ResourceKey } from "@warp-drive/core/types/identifier";
3
3
  import type { TypeFromInstance } from "@warp-drive/core/types/record";
4
4
  import type { Model } from "./model.js";
5
- export declare function instantiateRecord(this: Store, identifier: ResourceKey, createRecordArgs: {
5
+ export declare function instantiateRecord(this: Store, identifier: ResourceKey, createRecordArgs?: {
6
6
  [key: string]: unknown;
7
7
  }): Model;
8
8
  export declare function teardownRecord(record: Model): void;
@@ -207,8 +207,6 @@ export interface DelegatingSchemaService {
207
207
  doesTypeExist?(type: string): boolean;
208
208
  }
209
209
  export declare class DelegatingSchemaService implements SchemaService {
210
- _preferred: SchemaService;
211
- _secondary: SchemaService;
212
210
  constructor(store: Store, schema: SchemaService);
213
211
  isDelegated(resource: ResourceKey | {
214
212
  type: string;
@@ -252,4 +250,8 @@ export declare class DelegatingSchemaService implements SchemaService {
252
250
  CAUTION_MEGA_DANGER_ZONE_objectExtensions(field: ExtensibleField, resolvedType: string | null): null | ProcessedExtension["features"];
253
251
  CAUTION_MEGA_DANGER_ZONE_arrayExtensions(field: ExtensibleField): null | ProcessedExtension["features"];
254
252
  }
253
+ export interface PrivateDelegatingSchemaService extends DelegatingSchemaService {
254
+ _preferred: SchemaService;
255
+ _secondary: SchemaService;
256
+ }
255
257
  export {};
@@ -417,7 +417,9 @@ function registerDerivations(schema) {
417
417
  */
418
418
 
419
419
  class DelegatingSchemaService {
420
+ /** @internal */
420
421
  _preferred;
422
+ /** @internal */
421
423
  _secondary;
422
424
  constructor(store, schema) {
423
425
  this._preferred = schema;
package/dist/model.js CHANGED
@@ -670,7 +670,7 @@ function instantiateRecord(identifier, createRecordArgs) {
670
670
 
671
671
  // TODO deprecate allowing unknown args setting
672
672
  const createOptions = {
673
- _createProps: createRecordArgs,
673
+ _createProps: createRecordArgs ?? {},
674
674
  // TODO @deprecate consider deprecating accessing record properties during init which the below is necessary for
675
675
  _secretInit: {
676
676
  identifier,
package/dist/store.js CHANGED
@@ -524,6 +524,9 @@ function restoreDeprecatedStoreBehaviors(StoreKlass) {
524
524
  });
525
525
  return promise.then(document => document.content);
526
526
  };
527
+
528
+ // do not put a ts-expect-error here, because typedoc will fail to
529
+ // build due to this error only occurring when references are in use in the editor
527
530
  StoreKlass.prototype.getReference = function (resource, id) {
528
531
  macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
529
532
  if (!test) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warp-drive/legacy",
3
- "version": "5.8.0-alpha.5",
3
+ "version": "5.8.0-alpha.6",
4
4
  "description": "Decommissioned Packages for WarpDrive | Things your app might still want to maintain use of for a little longer.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -32,8 +32,8 @@
32
32
  }
33
33
  },
34
34
  "peerDependencies": {
35
- "@warp-drive/core": "5.8.0-alpha.5",
36
- "@warp-drive/utilities": "5.8.0-alpha.5"
35
+ "@warp-drive/core": "5.8.0-alpha.6",
36
+ "@warp-drive/utilities": "5.8.0-alpha.6"
37
37
  },
38
38
  "dependencies": {
39
39
  "@embroider/macros": "^1.18.1"
@@ -43,9 +43,9 @@
43
43
  "@babel/plugin-transform-typescript": "^7.28.0",
44
44
  "@babel/preset-typescript": "^7.27.1",
45
45
  "@types/jquery": "^3.5.33",
46
- "@warp-drive/internal-config": "5.8.0-alpha.5",
47
- "@warp-drive/core": "5.8.0-alpha.5",
48
- "@warp-drive/utilities": "5.8.0-alpha.5",
46
+ "@warp-drive/internal-config": "5.8.0-alpha.6",
47
+ "@warp-drive/core": "5.8.0-alpha.6",
48
+ "@warp-drive/utilities": "5.8.0-alpha.6",
49
49
  "ember-source": "~6.6.0",
50
50
  "decorator-transforms": "^2.3.0",
51
51
  "expect-type": "^1.2.2",