@ember-data/legacy-compat 5.4.0-alpha.34 → 5.4.0-alpha.35

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ember-data/legacy-compat",
3
3
  "description": "Compatibility Shims for Older EmberData",
4
- "version": "5.4.0-alpha.34",
4
+ "version": "5.4.0-alpha.35",
5
5
  "license": "MIT",
6
6
  "author": "Chris Thoburn <runspired@users.noreply.github.com>",
7
7
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "version": 1
36
36
  },
37
37
  "dependencies": {
38
- "@ember-data/private-build-infra": "5.4.0-alpha.34",
38
+ "@ember-data/private-build-infra": "5.4.0-alpha.35",
39
39
  "@embroider/macros": "^1.13.5",
40
40
  "ember-cli-babel": "^8.2.0",
41
41
  "pnpm-sync-dependencies-meta-injected": "0.0.10"
@@ -73,11 +73,11 @@
73
73
  }
74
74
  },
75
75
  "peerDependencies": {
76
- "@ember-data/graph": "5.4.0-alpha.34",
77
- "@ember-data/json-api": "5.4.0-alpha.34",
78
- "@ember-data/request": "5.4.0-alpha.34",
79
- "@ember-data/store": "5.4.0-alpha.34",
80
- "@warp-drive/core-types": "0.0.0-alpha.20"
76
+ "@ember-data/graph": "5.4.0-alpha.35",
77
+ "@ember-data/json-api": "5.4.0-alpha.35",
78
+ "@ember-data/request": "5.4.0-alpha.35",
79
+ "@ember-data/store": "5.4.0-alpha.35",
80
+ "@warp-drive/core-types": "0.0.0-alpha.21"
81
81
  },
82
82
  "peerDependenciesMeta": {
83
83
  "@ember-data/graph": {
@@ -98,19 +98,19 @@
98
98
  "@babel/preset-env": "^7.23.9",
99
99
  "@babel/preset-typescript": "^7.23.3",
100
100
  "@babel/runtime": "^7.23.9",
101
- "@ember-data/graph": "5.4.0-alpha.34",
102
- "@ember-data/json-api": "5.4.0-alpha.34",
103
- "@ember-data/request": "5.4.0-alpha.34",
104
- "@ember-data/request-utils": "5.4.0-alpha.34",
105
- "@ember-data/store": "5.4.0-alpha.34",
106
- "@ember-data/tracking": "5.4.0-alpha.34",
101
+ "@ember-data/graph": "5.4.0-alpha.35",
102
+ "@ember-data/json-api": "5.4.0-alpha.35",
103
+ "@ember-data/request": "5.4.0-alpha.35",
104
+ "@ember-data/request-utils": "5.4.0-alpha.35",
105
+ "@ember-data/store": "5.4.0-alpha.35",
106
+ "@ember-data/tracking": "5.4.0-alpha.35",
107
107
  "@ember/string": "^3.1.1",
108
108
  "@embroider/addon-dev": "^4.1.2",
109
109
  "@glimmer/component": "^1.1.2",
110
110
  "@rollup/plugin-babel": "^6.0.4",
111
111
  "@rollup/plugin-node-resolve": "^15.2.3",
112
- "@warp-drive/core-types": "0.0.0-alpha.20",
113
- "@warp-drive/internal-config": "5.4.0-alpha.34",
112
+ "@warp-drive/core-types": "0.0.0-alpha.21",
113
+ "@warp-drive/internal-config": "5.4.0-alpha.35",
114
114
  "ember-inflector": "^4.0.2",
115
115
  "ember-source": "~5.6.0",
116
116
  "rollup": "^4.9.6",
@@ -12,6 +12,6 @@ declare module '@ember-data/legacy-compat/-private' {
12
12
  export { SaveOp } from '@ember-data/legacy-compat/legacy-network-handler/fetch-manager';
13
13
  export { default as FetchManager } from '@ember-data/legacy-compat/legacy-network-handler/fetch-manager';
14
14
  export { default as Snapshot } from '@ember-data/legacy-compat/legacy-network-handler/snapshot';
15
- export declare function upgradeStore(store: Store): asserts store is CompatStore;
15
+ export function upgradeStore(store: Store): asserts store is CompatStore;
16
16
  }
17
17
  //# sourceMappingURL=-private.d.ts.map
@@ -50,8 +50,8 @@ declare module '@ember-data/legacy-compat' {
50
50
  @param {String} modelName
51
51
  @return Adapter
52
52
  */
53
- export declare function adapterFor(this: Store, modelName: string): MinimumAdapterInterface;
54
- export declare function adapterFor(this: Store, modelName: string, _allowMissing: true): MinimumAdapterInterface | undefined;
53
+ export function adapterFor(this: Store, modelName: string): MinimumAdapterInterface;
54
+ export function adapterFor(this: Store, modelName: string, _allowMissing: true): MinimumAdapterInterface | undefined;
55
55
  /**
56
56
  Returns an instance of the serializer for a given type. For
57
57
  example, `serializerFor('person')` will return an instance of
@@ -69,7 +69,7 @@ declare module '@ember-data/legacy-compat' {
69
69
  @param {String} modelName the record to serialize
70
70
  @return {Serializer}
71
71
  */
72
- export declare function serializerFor(this: Store, modelName: string): MinimumSerializerInterface | null;
72
+ export function serializerFor(this: Store, modelName: string): MinimumSerializerInterface | null;
73
73
  /**
74
74
  `normalize` converts a json payload into the normalized form that
75
75
  [push](../methods/push?anchor=push) expects.
@@ -90,7 +90,7 @@ declare module '@ember-data/legacy-compat' {
90
90
  @param {Object} payload
91
91
  @return {Object} The normalized payload
92
92
  */
93
- export declare function normalize(this: Store, modelName: string, payload: ObjectValue): import("@warp-drive/core-types/spec/raw").SingleResourceDocument<string>;
93
+ export function normalize(this: Store, modelName: string, payload: ObjectValue): import("@warp-drive/core-types/spec/raw").SingleResourceDocument<string>;
94
94
  /**
95
95
  Push some raw data into the store.
96
96
 
@@ -147,8 +147,8 @@ declare module '@ember-data/legacy-compat' {
147
147
  @param {String} modelName Optionally, a model type used to determine which serializer will be used
148
148
  @param {Object} inputPayload
149
149
  */
150
- export declare function pushPayload(this: Store, modelName: string, inputPayload: ObjectValue): void;
151
- export declare function serializeRecord(this: Store, record: unknown, options?: SerializerOptions): unknown;
152
- export declare function cleanup(this: Store): void;
150
+ export function pushPayload(this: Store, modelName: string, inputPayload: ObjectValue): void;
151
+ export function serializeRecord(this: Store, record: unknown, options?: SerializerOptions): unknown;
152
+ export function cleanup(this: Store): void;
153
153
  }
154
154
  //# sourceMappingURL=index.d.ts.map
@@ -9,7 +9,7 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/fetch-manager'
9
9
  import type { TypeFromInstance } from '@warp-drive/core-types/record';
10
10
  import type { SingleResourceDocument } from '@warp-drive/core-types/spec/raw';
11
11
  import Snapshot from '@ember-data/legacy-compat/legacy-network-handler/snapshot';
12
- export declare const SaveOp: unique symbol;
12
+ export const SaveOp: unique symbol;
13
13
  export type FetchMutationOptions = FindRecordOptions & {
14
14
  [SaveOp]: 'createRecord' | 'deleteRecord' | 'updateRecord';
15
15
  };
@@ -1,5 +1,5 @@
1
1
  declare module '@ember-data/legacy-compat/legacy-network-handler/identifier-has-id' {
2
2
  import type { StableExistingRecordIdentifier } from '@warp-drive/core-types/identifier';
3
- export declare function assertIdentifierHasId(identifier: unknown): asserts identifier is StableExistingRecordIdentifier;
3
+ export function assertIdentifierHasId(identifier: unknown): asserts identifier is StableExistingRecordIdentifier;
4
4
  }
5
5
  //# sourceMappingURL=identifier-has-id.d.ts.map
@@ -1,6 +1,6 @@
1
1
  declare module '@ember-data/legacy-compat/legacy-network-handler/legacy-data-utils' {
2
2
  import type { AdapterPayload } from '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter-interface';
3
- export declare function iterateData<T>(data: T[] | T, fn: (o: T, index?: number) => T): T | T[];
4
- export declare function payloadIsNotBlank<T>(adapterPayload: T | AdapterPayload): adapterPayload is AdapterPayload;
3
+ export function iterateData<T>(data: T[] | T, fn: (o: T, index?: number) => T): T | T[];
4
+ export function payloadIsNotBlank<T>(adapterPayload: T | AdapterPayload): adapterPayload is AdapterPayload;
5
5
  }
6
6
  //# sourceMappingURL=legacy-data-utils.d.ts.map
@@ -1,5 +1,5 @@
1
1
  declare module '@ember-data/legacy-compat/legacy-network-handler/legacy-network-handler' {
2
2
  import type { Handler } from '@ember-data/request';
3
- export declare const LegacyNetworkHandler: Handler;
3
+ export const LegacyNetworkHandler: Handler;
4
4
  }
5
5
  //# sourceMappingURL=legacy-network-handler.d.ts.map
@@ -488,7 +488,7 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
488
488
  * and the record does not need to be reloaded prior to return, this method provides the ability
489
489
  * to specify whether a refresh of the data for the reload should be scheduled to occur in the background.
490
490
  *
491
- * Users may explicitly declare a record should/should not be background reloaded by passing
491
+ * Users may explicitly a record should/should not be background reloaded by passing
492
492
  * `backgroundReload: true` or `backgroundReload: false` as an option to the request respectively.
493
493
  *
494
494
  * ```js
@@ -514,7 +514,7 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter
514
514
  * is presented the opportunity to trigger a new non-blocking (background) request for
515
515
  * records of that type
516
516
  *
517
- * Users may explicitly declare that this background request should/should not occur by passing
517
+ * Users may explicitly that this background request should/should not occur by passing
518
518
  * `backgroundReload: true` or `backgroundReload: false` as an option to the request respectively.
519
519
  *
520
520
  * ```js
@@ -4,6 +4,6 @@ declare module '@ember-data/legacy-compat/legacy-network-handler/serializer-resp
4
4
  import type { JsonApiDocument } from '@warp-drive/core-types/spec/raw';
5
5
  import type { AdapterPayload } from '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter-interface';
6
6
  import type { MinimumSerializerInterface, RequestType } from '@ember-data/legacy-compat/legacy-network-handler/minimum-serializer-interface';
7
- export declare function normalizeResponseHelper(serializer: MinimumSerializerInterface | null, store: Store, modelClass: ModelSchema, payload: AdapterPayload, id: string | null, requestType: RequestType): JsonApiDocument;
7
+ export function normalizeResponseHelper(serializer: MinimumSerializerInterface | null, store: Store, modelClass: ModelSchema, payload: AdapterPayload, id: string | null, requestType: RequestType): JsonApiDocument;
8
8
  }
9
9
  //# sourceMappingURL=serializer-response.d.ts.map