@ember-data/legacy-compat 4.12.8 → 4.13.0-alpha.3

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.
Files changed (61) hide show
  1. package/README.md +8 -0
  2. package/addon-main.cjs +5 -0
  3. package/{addon/fetch-manager-025964e9.js → dist/-private-BJlhRRce.js} +321 -194
  4. package/dist/-private-BJlhRRce.js.map +1 -0
  5. package/dist/-private.js +1 -0
  6. package/{addon → dist}/builders.js +69 -28
  7. package/dist/builders.js.map +1 -0
  8. package/dist/index.js +1087 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/utils-XGHLsgBS.js +23 -0
  11. package/dist/utils-XGHLsgBS.js.map +1 -0
  12. package/dist/utils.js +246 -0
  13. package/dist/utils.js.map +1 -0
  14. package/package.json +70 -39
  15. package/unstable-preview-types/-private.d.ts +17 -0
  16. package/unstable-preview-types/-private.d.ts.map +1 -0
  17. package/unstable-preview-types/builders/find-all.d.ts +41 -0
  18. package/unstable-preview-types/builders/find-all.d.ts.map +1 -0
  19. package/unstable-preview-types/builders/find-record.d.ts +62 -0
  20. package/unstable-preview-types/builders/find-record.d.ts.map +1 -0
  21. package/unstable-preview-types/builders/query.d.ts +72 -0
  22. package/unstable-preview-types/builders/query.d.ts.map +1 -0
  23. package/unstable-preview-types/builders/save-record.d.ts +40 -0
  24. package/unstable-preview-types/builders/save-record.d.ts.map +1 -0
  25. package/unstable-preview-types/builders/utils.d.ts +6 -0
  26. package/unstable-preview-types/builders/utils.d.ts.map +1 -0
  27. package/unstable-preview-types/builders.d.ts +18 -0
  28. package/unstable-preview-types/builders.d.ts.map +1 -0
  29. package/unstable-preview-types/index.d.ts +163 -0
  30. package/unstable-preview-types/index.d.ts.map +1 -0
  31. package/unstable-preview-types/legacy-network-handler/fetch-manager.d.ts +49 -0
  32. package/unstable-preview-types/legacy-network-handler/fetch-manager.d.ts.map +1 -0
  33. package/unstable-preview-types/legacy-network-handler/identifier-has-id.d.ts +5 -0
  34. package/unstable-preview-types/legacy-network-handler/identifier-has-id.d.ts.map +1 -0
  35. package/unstable-preview-types/legacy-network-handler/legacy-data-fetch.d.ts +15 -0
  36. package/unstable-preview-types/legacy-network-handler/legacy-data-fetch.d.ts.map +1 -0
  37. package/unstable-preview-types/legacy-network-handler/legacy-data-utils.d.ts +8 -0
  38. package/unstable-preview-types/legacy-network-handler/legacy-data-utils.d.ts.map +1 -0
  39. package/unstable-preview-types/legacy-network-handler/legacy-network-handler.d.ts +5 -0
  40. package/unstable-preview-types/legacy-network-handler/legacy-network-handler.d.ts.map +1 -0
  41. package/unstable-preview-types/legacy-network-handler/minimum-adapter-interface.d.ts +549 -0
  42. package/unstable-preview-types/legacy-network-handler/minimum-adapter-interface.d.ts.map +1 -0
  43. package/unstable-preview-types/legacy-network-handler/minimum-serializer-interface.d.ts +235 -0
  44. package/unstable-preview-types/legacy-network-handler/minimum-serializer-interface.d.ts.map +1 -0
  45. package/unstable-preview-types/legacy-network-handler/serializer-response.d.ts +9 -0
  46. package/unstable-preview-types/legacy-network-handler/serializer-response.d.ts.map +1 -0
  47. package/unstable-preview-types/legacy-network-handler/snapshot-record-array.d.ts +96 -0
  48. package/unstable-preview-types/legacy-network-handler/snapshot-record-array.d.ts.map +1 -0
  49. package/unstable-preview-types/legacy-network-handler/snapshot.d.ts +257 -0
  50. package/unstable-preview-types/legacy-network-handler/snapshot.d.ts.map +1 -0
  51. package/unstable-preview-types/legacy-network-handler/utils.d.ts +8 -0
  52. package/unstable-preview-types/legacy-network-handler/utils.d.ts.map +1 -0
  53. package/unstable-preview-types/utils.d.ts +161 -0
  54. package/unstable-preview-types/utils.d.ts.map +1 -0
  55. package/addon/-private.js +0 -1
  56. package/addon/builders.js.map +0 -1
  57. package/addon/fetch-manager-025964e9.js.map +0 -1
  58. package/addon/index.js +0 -674
  59. package/addon/index.js.map +0 -1
  60. package/addon-main.js +0 -93
  61. /package/{addon → dist}/-private.js.map +0 -0
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": "4.12.8",
4
+ "version": "4.13.0-alpha.3",
5
5
  "license": "MIT",
6
6
  "author": "Chris Thoburn <runspired@users.noreply.github.com>",
7
7
  "repository": {
@@ -12,7 +12,7 @@
12
12
  "homepage": "https://github.com/emberjs/data",
13
13
  "bugs": "https://github.com/emberjs/data/issues",
14
14
  "engines": {
15
- "node": "16.* || >= 18"
15
+ "node": ">= 18.20.4"
16
16
  },
17
17
  "keywords": [
18
18
  "ember-addon"
@@ -20,37 +20,54 @@
20
20
  "volta": {
21
21
  "extends": "../../package.json"
22
22
  },
23
- "dependencies": {
24
- "ember-cli-babel": "^7.26.11",
25
- "@ember-data/private-build-infra": "4.12.8",
26
- "@embroider/macros": "^1.10.0"
27
- },
28
23
  "files": [
29
- "addon-main.js",
30
- "addon",
24
+ "unstable-preview-types",
25
+ "addon-main.cjs",
26
+ "dist",
31
27
  "README.md",
32
28
  "LICENSE.md",
33
29
  "ember-data-logo-dark.svg",
34
30
  "ember-data-logo-light.svg"
35
31
  ],
32
+ "exports": {
33
+ ".": {
34
+ "default": "./dist/index.js"
35
+ },
36
+ "./*": {
37
+ "default": "./dist/*.js"
38
+ }
39
+ },
36
40
  "ember-addon": {
37
- "main": "addon-main.js",
41
+ "main": "addon-main.cjs",
38
42
  "type": "addon",
39
- "version": 1
43
+ "version": 2
40
44
  },
41
45
  "dependenciesMeta": {
42
- "@ember-data/private-build-infra": {
46
+ "@ember-data/request": {
47
+ "injected": true
48
+ },
49
+ "@ember-data/graph": {
50
+ "injected": true
51
+ },
52
+ "@ember-data/json-api": {
53
+ "injected": true
54
+ },
55
+ "@ember-data/store": {
43
56
  "injected": true
44
57
  },
45
- "@ember/string": {
58
+ "@warp-drive/core-types": {
59
+ "injected": true
60
+ },
61
+ "@ember-data/tracking": {
62
+ "injected": true
63
+ },
64
+ "@ember-data/request-utils": {
65
+ "injected": true
66
+ },
67
+ "@warp-drive/build-config": {
46
68
  "injected": true
47
69
  }
48
70
  },
49
- "peerDependencies": {
50
- "@ember-data/graph": "4.12.8",
51
- "@ember-data/json-api": "4.12.8",
52
- "@ember/string": "^3.0.1"
53
- },
54
71
  "peerDependenciesMeta": {
55
72
  "@ember-data/graph": {
56
73
  "optional": true
@@ -59,32 +76,46 @@
59
76
  "optional": true
60
77
  }
61
78
  },
79
+ "dependencies": {
80
+ "@embroider/macros": "^1.16.6",
81
+ "@warp-drive/build-config": "4.13.0-alpha.3"
82
+ },
83
+ "peerDependencies": {
84
+ "ember-source": "3.28.12 || ^4.0.4 || ^5.0.0 || ^6.0.0",
85
+ "@ember-data/graph": "4.13.0-alpha.3",
86
+ "@ember-data/json-api": "4.13.0-alpha.3",
87
+ "@ember-data/request": "4.13.0-alpha.3",
88
+ "@ember-data/request-utils": "4.13.0-alpha.3",
89
+ "@ember-data/store": "4.13.0-alpha.3",
90
+ "@ember/test-waiters": "^3.1.0 || >= 4.0.0",
91
+ "@warp-drive/core-types": "4.13.0-alpha.3"
92
+ },
62
93
  "devDependencies": {
63
- "@embroider/addon-dev": "^3.0.0",
64
- "rollup": "^3.20.2",
65
- "@babel/core": "^7.21.4",
66
- "@babel/cli": "^7.21.0",
67
- "@babel/plugin-proposal-class-properties": "^7.18.6",
68
- "@babel/plugin-proposal-decorators": "^7.21.0",
69
- "@babel/plugin-proposal-private-methods": "^7.18.6",
70
- "@babel/plugin-transform-typescript": "^7.21.3",
71
- "@babel/plugin-transform-runtime": "^7.21.4",
72
- "@babel/preset-typescript": "^7.21.4",
73
- "@babel/preset-env": "^7.21.4",
74
- "@babel/runtime": "^7.21.0",
75
- "@ember/string": "^3.0.1",
76
- "@rollup/plugin-babel": "^6.0.3",
77
- "@rollup/plugin-node-resolve": "^15.0.1",
78
- "@types/ember__string": "^3.0.15",
79
- "tslib": "^2.5.0",
80
- "walk-sync": "^3.0.0",
81
- "typescript": "^5.0.3"
94
+ "@babel/core": "^7.24.5",
95
+ "@babel/plugin-transform-typescript": "^7.24.5",
96
+ "@babel/preset-env": "^7.24.5",
97
+ "@babel/preset-typescript": "^7.24.1",
98
+ "@ember-data/graph": "4.13.0-alpha.3",
99
+ "@ember-data/json-api": "4.13.0-alpha.3",
100
+ "@ember-data/request": "4.13.0-alpha.3",
101
+ "@ember-data/request-utils": "4.13.0-alpha.3",
102
+ "@ember-data/store": "4.13.0-alpha.3",
103
+ "@ember-data/tracking": "4.13.0-alpha.3",
104
+ "@ember/test-waiters": "^3.1.0",
105
+ "@glimmer/component": "^1.1.2",
106
+ "@warp-drive/core-types": "4.13.0-alpha.3",
107
+ "@warp-drive/internal-config": "4.13.0-alpha.3",
108
+ "ember-source": "~5.12.0",
109
+ "pnpm-sync-dependencies-meta-injected": "0.0.14",
110
+ "typescript": "^5.7.2",
111
+ "vite": "^5.2.11"
82
112
  },
83
113
  "ember": {
84
114
  "edition": "octane"
85
115
  },
86
116
  "scripts": {
87
- "build": "rollup --config && babel ./addon --out-dir addon --plugins=../private-build-infra/src/transforms/babel-plugin-transform-ext.js",
88
- "start": "rollup --config --watch"
117
+ "lint": "eslint . --quiet --cache --cache-strategy=content",
118
+ "build:pkg": "vite build;",
119
+ "sync-hardlinks": "bun run sync-dependencies-meta-injected"
89
120
  }
90
121
  }
@@ -0,0 +1,17 @@
1
+ declare module '@ember-data/legacy-compat/-private' {
2
+ import type Store from '@ember-data/store';
3
+ import type { CompatStore } from '@ember-data/legacy-compat';
4
+ /**
5
+ * Utilities - often temporary - for maintaining backwards compatibility with
6
+ * older parts of EmberData.
7
+ *
8
+ @module @ember-data/legacy-compat
9
+ @main @ember-data/legacy-compat
10
+ */
11
+ export { SnapshotRecordArray } from '@ember-data/legacy-compat/legacy-network-handler/snapshot-record-array';
12
+ export { SaveOp } from '@ember-data/legacy-compat/legacy-network-handler/fetch-manager';
13
+ export { FetchManager } from '@ember-data/legacy-compat/legacy-network-handler/fetch-manager';
14
+ export { Snapshot } from '@ember-data/legacy-compat/legacy-network-handler/snapshot';
15
+ export function upgradeStore(store: Store): asserts store is CompatStore;
16
+ }
17
+ //# sourceMappingURL=-private.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"-private.d.ts","sourceRoot":"","sources":["../src/-private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AAErC;;;;;;EAME;AACF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAE7D,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,WAAW,CAAG"}
@@ -0,0 +1,41 @@
1
+ declare module '@ember-data/legacy-compat/builders/find-all' {
2
+ /**
3
+ * @module @ember-data/legacy-compat/builders
4
+ */
5
+ import type { StoreRequestInput } from '@ember-data/store';
6
+ import type { FindAllOptions } from '@ember-data/store/types';
7
+ import type { TypedRecordInstance, TypeFromInstance } from '@warp-drive/core-types/record';
8
+ import type { RequestSignature } from '@warp-drive/core-types/symbols';
9
+ type FindAllRequestInput<T extends string = string, RT = unknown[]> = StoreRequestInput & {
10
+ op: 'findAll';
11
+ data: {
12
+ type: T;
13
+ options: FindAllBuilderOptions;
14
+ };
15
+ [RequestSignature]?: RT;
16
+ };
17
+ type FindAllBuilderOptions<T = unknown> = FindAllOptions<T>;
18
+ /**
19
+ This function builds a request config to perform a `findAll` request for the given type.
20
+ When passed to `store.request`, this config will result in the same behavior as a `store.findAll` request.
21
+ Additionally, it takes the same options as `store.findAll`.
22
+
23
+ All `@ember-data/legacy-compat` builders exist to enable you to migrate your codebase to using the correct syntax for `store.request` while temporarily preserving legacy behaviors.
24
+ This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.
25
+ To that end, these builders are deprecated and will be removed in a future version of Ember Data.
26
+
27
+ @method findAll
28
+ @deprecated
29
+ @public
30
+ @static
31
+ @for @ember-data/legacy-compat/builders
32
+ @param {string} type the name of the resource
33
+ @param {object} query a query to be used by the adapter
34
+ @param {FindAllBuilderOptions} [options] optional, may include `adapterOptions` hash which will be passed to adapter.findAll
35
+ @return {FindAllRequestInput} request config
36
+ */
37
+ export function findAllBuilder<T extends TypedRecordInstance>(type: TypeFromInstance<T>, options?: FindAllBuilderOptions<T>): FindAllRequestInput<TypeFromInstance<T>, T[]>;
38
+ export function findAllBuilder(type: string, options?: FindAllBuilderOptions): FindAllRequestInput;
39
+ export {};
40
+ }
41
+ //# sourceMappingURL=find-all.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-all.d.ts","sourceRoot":"","sources":["../../src/builders/find-all.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAIvE,KAAK,mBAAmB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,EAAE,GAAG,OAAO,EAAE,IAAI,iBAAiB,GAAG;IACxF,EAAE,EAAE,SAAS,CAAC;IACd,IAAI,EAAE;QACJ,IAAI,EAAE,CAAC,CAAC;QACR,OAAO,EAAE,qBAAqB,CAAC;KAChC,CAAC;IACF,CAAC,gBAAgB,CAAC,CAAC,EAAE,EAAE,CAAC;CACzB,CAAC;AAEF,KAAK,qBAAqB,CAAC,CAAC,GAAG,OAAO,IAAI,cAAc,CAAC,CAAC,CAAC,CAAC;AAE5D;;;;;;;;;;;;;;;;;;EAkBE;AACF,wBAAgB,cAAc,CAAC,CAAC,SAAS,mBAAmB,EAC1D,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,EACzB,OAAO,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,GACjC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACjD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,mBAAmB,CAAC"}
@@ -0,0 +1,62 @@
1
+ declare module '@ember-data/legacy-compat/builders/find-record' {
2
+ /**
3
+ * @module @ember-data/legacy-compat/builders
4
+ */
5
+ import type { StoreRequestInput } from '@ember-data/store';
6
+ import type { FindRecordOptions } from '@ember-data/store/types';
7
+ import type { TypedRecordInstance, TypeFromInstance } from '@warp-drive/core-types/record';
8
+ import type { ResourceIdentifierObject } from '@warp-drive/core-types/spec/json-api-raw';
9
+ import type { RequestSignature } from '@warp-drive/core-types/symbols';
10
+ type FindRecordRequestInput<T extends string = string, RT = unknown> = StoreRequestInput & {
11
+ op: 'findRecord';
12
+ data: {
13
+ record: ResourceIdentifierObject<T>;
14
+ options: FindRecordBuilderOptions;
15
+ };
16
+ [RequestSignature]?: RT;
17
+ };
18
+ type FindRecordBuilderOptions = Omit<FindRecordOptions, 'preload'>;
19
+ /**
20
+ This function builds a request config to find the record for a given identifier or type and id combination.
21
+ When passed to `store.request`, this config will result in the same behavior as a `store.findRecord` request.
22
+ Additionally, it takes the same options as `store.findRecord`, with the exception of `preload` (which is unsupported).
23
+
24
+ **Example 1**
25
+
26
+ ```ts
27
+ import { findRecord } from '@ember-data/legacy-compat/builders';
28
+ const { content: post } = await store.request<Post>(findRecord<Post>('post', '1'));
29
+ ```
30
+
31
+ **Example 2**
32
+
33
+ `findRecord` can be called with a single identifier argument instead of the combination
34
+ of `type` (modelName) and `id` as separate arguments. You may recognize this combo as
35
+ the typical pairing from [JSON:API](https://jsonapi.org/format/#document-resource-object-identification)
36
+
37
+ ```ts
38
+ import { findRecord } from '@ember-data/legacy-compat/builders';
39
+ const { content: post } = await store.request<Post>(findRecord<Post>({ type: 'post', id }));
40
+ ```
41
+
42
+ All `@ember-data/legacy-compat` builders exist to enable you to migrate your codebase to using the correct syntax for `store.request` while temporarily preserving legacy behaviors.
43
+ This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.
44
+ To that end, these builders are deprecated and will be removed in a future version of Ember Data.
45
+
46
+ @method findRecord
47
+ @deprecated
48
+ @public
49
+ @static
50
+ @for @ember-data/legacy-compat/builders
51
+ @param {string|object} resource - either a string representing the name of the resource or a ResourceIdentifier object containing both the type (a string) and the id (a string) for the record or an lid (a string) of an existing record
52
+ @param {string|number|object} id - optional object with options for the request only if the first param is a ResourceIdentifier, else the string id of the record to be retrieved
53
+ @param {FindRecordBuilderOptions} [options] - if the first param is a string this will be the optional options for the request. See examples for available options.
54
+ @return {FindRecordRequestInput} request config
55
+ */
56
+ export function findRecordBuilder<T extends TypedRecordInstance>(type: TypeFromInstance<T>, id: string, options?: FindRecordBuilderOptions): FindRecordRequestInput<TypeFromInstance<T>, T>;
57
+ export function findRecordBuilder(type: string, id: string, options?: FindRecordBuilderOptions): FindRecordRequestInput;
58
+ export function findRecordBuilder<T extends TypedRecordInstance>(resource: ResourceIdentifierObject<TypeFromInstance<T>>, options?: FindRecordBuilderOptions): FindRecordRequestInput<TypeFromInstance<T>, T>;
59
+ export function findRecordBuilder(resource: ResourceIdentifierObject, options?: FindRecordBuilderOptions): FindRecordRequestInput;
60
+ export {};
61
+ }
62
+ //# sourceMappingURL=find-record.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-record.d.ts","sourceRoot":"","sources":["../../src/builders/find-record.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mB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AC,CAAC,EAAE,CAAC,CAAC,CAAC;AAClD,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,wBAAwB,EAClC,OAAO,CAAC,EAAE,wBAAwB,GACjC,sBAAsB,CAAC"}
@@ -0,0 +1,72 @@
1
+ declare module '@ember-data/legacy-compat/builders/query' {
2
+ /**
3
+ * @module @ember-data/legacy-compat/builders
4
+ */
5
+ import type { StoreRequestInput } from '@ember-data/store';
6
+ import type { LegacyResourceQuery, QueryOptions } from '@ember-data/store/types';
7
+ import type { TypedRecordInstance, TypeFromInstance } from '@warp-drive/core-types/record';
8
+ import type { RequestSignature } from '@warp-drive/core-types/symbols';
9
+ type QueryRequestInput<T extends string = string, RT = unknown[]> = StoreRequestInput & {
10
+ op: 'query';
11
+ data: {
12
+ type: T;
13
+ query: LegacyResourceQuery;
14
+ options: QueryBuilderOptions;
15
+ };
16
+ [RequestSignature]?: RT;
17
+ };
18
+ type QueryBuilderOptions = QueryOptions;
19
+ /**
20
+ This function builds a request config for a given type and query object.
21
+ When passed to `store.request`, this config will result in the same behavior as a `store.query` request.
22
+ Additionally, it takes the same options as `store.query`.
23
+
24
+ All `@ember-data/legacy-compat` builders exist to enable you to migrate your codebase to using the correct syntax for `store.request` while temporarily preserving legacy behaviors.
25
+ This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.
26
+ To that end, these builders are deprecated and will be removed in a future version of Ember Data.
27
+
28
+ @method query
29
+ @deprecated
30
+ @public
31
+ @static
32
+ @for @ember-data/legacy-compat/builders
33
+ @param {string} type the name of the resource
34
+ @param {object} query a query to be used by the adapter
35
+ @param {QueryBuilderOptions} [options] optional, may include `adapterOptions` hash which will be passed to adapter.query
36
+ @return {QueryRequestInput} request config
37
+ */
38
+ export function queryBuilder<T extends TypedRecordInstance>(type: TypeFromInstance<T>, query: LegacyResourceQuery<T>, options?: QueryBuilderOptions): QueryRequestInput<TypeFromInstance<T>, T[]>;
39
+ export function queryBuilder(type: string, query: LegacyResourceQuery, options?: QueryBuilderOptions): QueryRequestInput;
40
+ type QueryRecordRequestInput<T extends string = string, RT = unknown> = StoreRequestInput & {
41
+ op: 'queryRecord';
42
+ data: {
43
+ type: T;
44
+ query: LegacyResourceQuery;
45
+ options: QueryBuilderOptions;
46
+ };
47
+ [RequestSignature]?: RT;
48
+ };
49
+ /**
50
+ This function builds a request config for a given type and query object.
51
+ When passed to `store.request`, this config will result in the same behavior as a `store.queryRecord` request.
52
+ Additionally, it takes the same options as `store.queryRecord`.
53
+
54
+ All `@ember-data/legacy-compat` builders exist to enable you to migrate your codebase to using the correct syntax for `store.request` while temporarily preserving legacy behaviors.
55
+ This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.
56
+ To that end, these builders are deprecated and will be removed in a future version of Ember Data.
57
+
58
+ @method queryRecord
59
+ @deprecated
60
+ @public
61
+ @static
62
+ @for @ember-data/legacy-compat/builders
63
+ @param {string} type the name of the resource
64
+ @param {object} query a query to be used by the adapter
65
+ @param {QueryBuilderOptions} [options] optional, may include `adapterOptions` hash which will be passed to adapter.query
66
+ @return {QueryRecordRequestInput} request config
67
+ */
68
+ export function queryRecordBuilder<T extends TypedRecordInstance>(type: TypeFromInstance<T>, query: LegacyResourceQuery<T>, options?: QueryBuilderOptions): QueryRecordRequestInput<TypeFromInstance<T>, T | null>;
69
+ export function queryRecordBuilder(type: string, query: LegacyResourceQuery, options?: QueryBuilderOptions): QueryRecordRequestInput;
70
+ export {};
71
+ }
72
+ //# sourceMappingURL=query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/builders/query.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,gB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gB,kBAAkB,CAAC,CAAC,SAAS,mBAAmB,EAC9D,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,EACzB,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,EAC7B,OAAO,CAAC,EAAE,mBAAmB,GAC5B,uBAAuB,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;AAC1D,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,mBAAmB,EAC1B,OAAO,CAAC,EAAE,mBAAmB,GAC5B,uBAAuB,CAAC"}
@@ -0,0 +1,40 @@
1
+ declare module '@ember-data/legacy-compat/builders/save-record' {
2
+ /**
3
+ * @module @ember-data/legacy-compat/builders
4
+ */
5
+ import { type StoreRequestInput } from '@ember-data/store';
6
+ import type { StableRecordIdentifier } from '@warp-drive/core-types';
7
+ import type { TypedRecordInstance, TypeFromInstance } from '@warp-drive/core-types/record';
8
+ import type { RequestSignature } from '@warp-drive/core-types/symbols';
9
+ type SaveRecordRequestInput<T extends string = string, RT = unknown> = StoreRequestInput & {
10
+ op: 'createRecord' | 'deleteRecord' | 'updateRecord';
11
+ data: {
12
+ record: StableRecordIdentifier<T>;
13
+ options: SaveRecordBuilderOptions;
14
+ };
15
+ records: [StableRecordIdentifier<T>];
16
+ [RequestSignature]?: RT;
17
+ };
18
+ type SaveRecordBuilderOptions = Record<string, unknown>;
19
+ /**
20
+ This function builds a request config for saving the given record (e.g. creating, updating, or deleting the record).
21
+ When passed to `store.request`, this config will result in the same behavior as a legacy `store.saveRecord` request.
22
+ Additionally, it takes the same options as `store.saveRecord`.
23
+
24
+ All `@ember-data/legacy-compat` builders exist to enable you to migrate your codebase to using the correct syntax for `store.request` while temporarily preserving legacy behaviors.
25
+ This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.
26
+ To that end, these builders are deprecated and will be removed in a future version of Ember Data.
27
+
28
+ @method saveRecord
29
+ @deprecated
30
+ @public
31
+ @static
32
+ @for @ember-data/legacy-compat/builders
33
+ @param {object} record a record to save
34
+ @param {SaveRecordBuilderOptions} options optional, may include `adapterOptions` hash which will be passed to adapter.saveRecord
35
+ @return {SaveRecordRequestInput} request config
36
+ */
37
+ export function saveRecordBuilder<T extends TypedRecordInstance>(record: T, options?: Record<string, unknown>): SaveRecordRequestInput<TypeFromInstance<T>, T>;
38
+ export {};
39
+ }
40
+ //# sourceMappingURL=save-record.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"save-record.d.ts","sourceRoot":"","sources":["../../src/builders/save-record.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAiC,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG1F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,KAAK,sBAAsB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,EAAE,GAAG,OAAO,IAAI,iBAAiB,GAAG;IACzF,EAAE,EAAE,cAAc,GAAG,cAAc,GAAG,cAAc,CAAC;IACrD,IAAI,EAAE;QACJ,MAAM,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;QAClC,OAAO,EAAE,wBAAwB,CAAC;KACnC,CAAC;IACF,OAAO,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC,gBAAgB,CAAC,CAAC,EAAE,EAAE,CAAC;CACzB,CAAC;AAEF,KAAK,wBAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAWxD;;;;;;;;;;;;;;;;;EAiBE;AACF,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,mBAAmB,EAC7D,MAAM,EAAE,CAAC,EACT,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GACpC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAuChD"}
@@ -0,0 +1,6 @@
1
+ declare module '@ember-data/legacy-compat/builders/utils' {
2
+ import type { ResourceIdentifierObject } from '@warp-drive/core-types/spec/json-api-raw';
3
+ export function isMaybeIdentifier(maybeIdentifier: string | ResourceIdentifierObject): maybeIdentifier is ResourceIdentifierObject;
4
+ export function normalizeModelName(type: string): string;
5
+ }
6
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/builders/utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAEzF,wBAAgB,iBAAiB,CAC/B,eAAe,EAAE,MAAM,GAAG,wBAAwB,GACjD,eAAe,IAAI,wBAAwB,CAO7C;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAsBvD"}
@@ -0,0 +1,18 @@
1
+ declare module '@ember-data/legacy-compat/builders' {
2
+ /**
3
+ Builders for migrating from `store` methods to `store.request`.
4
+
5
+ These builders enable you to migrate your codebase to using the correct syntax for `store.request` while temporarily preserving legacy behaviors.
6
+ This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers.
7
+ To that end, these builders are deprecated and will be removed in a future version of Ember Data.
8
+
9
+ @module @ember-data/legacy-compat/builders
10
+ @main @ember-data/legacy-compat/builders
11
+ @deprecated
12
+ */
13
+ export { findAllBuilder as findAll } from '@ember-data/legacy-compat/builders/find-all';
14
+ export { findRecordBuilder as findRecord } from '@ember-data/legacy-compat/builders/find-record';
15
+ export { queryBuilder as query, queryRecordBuilder as queryRecord } from '@ember-data/legacy-compat/builders/query';
16
+ export { saveRecordBuilder as saveRecord } from '@ember-data/legacy-compat/builders/save-record';
17
+ }
18
+ //# sourceMappingURL=builders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builders.d.ts","sourceRoot":"","sources":["../src/builders.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,EAAE,iBAAiB,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzE,OAAO,EAAE,YAAY,IAAI,KAAK,EAAE,kBAAkB,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE5F,OAAO,EAAE,iBAAiB,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,163 @@
1
+ /// <reference path="./builders.d.ts" />
2
+ /// <reference path="./utils.d.ts" />
3
+ /// <reference path="./-private.d.ts" />
4
+ /// <reference path="./builders/find-record.d.ts" />
5
+ /// <reference path="./builders/query.d.ts" />
6
+ /// <reference path="./builders/utils.d.ts" />
7
+ /// <reference path="./builders/save-record.d.ts" />
8
+ /// <reference path="./builders/find-all.d.ts" />
9
+ /// <reference path="./legacy-network-handler/legacy-data-fetch.d.ts" />
10
+ /// <reference path="./legacy-network-handler/fetch-manager.d.ts" />
11
+ /// <reference path="./legacy-network-handler/minimum-adapter-interface.d.ts" />
12
+ /// <reference path="./legacy-network-handler/minimum-serializer-interface.d.ts" />
13
+ /// <reference path="./legacy-network-handler/snapshot.d.ts" />
14
+ /// <reference path="./legacy-network-handler/legacy-network-handler.d.ts" />
15
+ /// <reference path="./legacy-network-handler/serializer-response.d.ts" />
16
+ /// <reference path="./legacy-network-handler/snapshot-record-array.d.ts" />
17
+ /// <reference path="./legacy-network-handler/identifier-has-id.d.ts" />
18
+ /// <reference path="./legacy-network-handler/utils.d.ts" />
19
+ /// <reference path="./legacy-network-handler/legacy-data-utils.d.ts" />
20
+ declare module '@ember-data/legacy-compat' {
21
+ import type Store from '@ember-data/store';
22
+ import type { ObjectValue } from '@warp-drive/core-types/json/raw';
23
+ import { FetchManager } from '@ember-data/legacy-compat/-private';
24
+ import type { AdapterPayload, MinimumAdapterInterface } from '@ember-data/legacy-compat/legacy-network-handler/minimum-adapter-interface';
25
+ import type { MinimumSerializerInterface, SerializerOptions } from '@ember-data/legacy-compat/legacy-network-handler/minimum-serializer-interface';
26
+ export { LegacyNetworkHandler } from '@ember-data/legacy-compat/legacy-network-handler/legacy-network-handler';
27
+ export type { MinimumAdapterInterface, MinimumSerializerInterface, SerializerOptions, AdapterPayload };
28
+ /**
29
+ * @module @ember-data/store
30
+ * @class Store
31
+ */
32
+ export type LegacyStoreCompat = {
33
+ _fetchManager: FetchManager;
34
+ adapterFor(this: Store, modelName: string): MinimumAdapterInterface;
35
+ adapterFor(this: Store, modelName: string, _allowMissing: true): MinimumAdapterInterface | undefined;
36
+ serializerFor<K extends string>(modelName: K, _allowMissing?: boolean): MinimumSerializerInterface | null;
37
+ normalize(modelName: string, payload: ObjectValue): ObjectValue;
38
+ pushPayload(modelName: string, payload: ObjectValue): void;
39
+ serializeRecord(record: unknown, options?: SerializerOptions): unknown;
40
+ _adapterCache: Record<string, MinimumAdapterInterface & {
41
+ store: Store;
42
+ }>;
43
+ _serializerCache: Record<string, MinimumSerializerInterface & {
44
+ store: Store;
45
+ }>;
46
+ };
47
+ export type CompatStore = Store & LegacyStoreCompat;
48
+ /**
49
+ Returns an instance of the adapter for a given type. For
50
+ example, `adapterFor('person')` will return an instance of
51
+ the adapter located at `app/adapters/person.js`
52
+
53
+ If no `person` adapter is found, this method will look
54
+ for an `application` adapter (the default adapter for
55
+ your entire application).
56
+
57
+ @method adapterFor
58
+ @public
59
+ @param {String} modelName
60
+ @return Adapter
61
+ */
62
+ export function adapterFor(this: Store, modelName: string): MinimumAdapterInterface;
63
+ export function adapterFor(this: Store, modelName: string, _allowMissing: true): MinimumAdapterInterface | undefined;
64
+ /**
65
+ Returns an instance of the serializer for a given type. For
66
+ example, `serializerFor('person')` will return an instance of
67
+ `App.PersonSerializer`.
68
+
69
+ If no `App.PersonSerializer` is found, this method will look
70
+ for an `App.ApplicationSerializer` (the default serializer for
71
+ your entire application).
72
+
73
+ If a serializer cannot be found on the adapter, it will fall back
74
+ to an instance of `JSONSerializer`.
75
+
76
+ @method serializerFor
77
+ @public
78
+ @param {String} modelName the record to serialize
79
+ @return {Serializer}
80
+ */
81
+ export function serializerFor(this: Store, modelName: string): MinimumSerializerInterface | null;
82
+ /**
83
+ `normalize` converts a json payload into the normalized form that
84
+ [push](../methods/push?anchor=push) expects.
85
+
86
+ Example
87
+
88
+ ```js
89
+ socket.on('message', function(message) {
90
+ let modelName = message.model;
91
+ let data = message.data;
92
+ store.push(store.normalize(modelName, data));
93
+ });
94
+ ```
95
+
96
+ @method normalize
97
+ @public
98
+ @param {String} modelName The name of the model type for this payload
99
+ @param {Object} payload
100
+ @return {Object} The normalized payload
101
+ */
102
+ export function normalize(this: Store, modelName: string, payload: ObjectValue): import("@warp-drive/core-types/spec/json-api-raw").SingleResourceDocument;
103
+ /**
104
+ Push some raw data into the store.
105
+
106
+ This method can be used both to push in brand new
107
+ records, as well as to update existing records. You
108
+ can push in more than one type of object at once.
109
+ All objects should be in the format expected by the
110
+ serializer.
111
+
112
+ ```app/serializers/application.js
113
+ import RESTSerializer from '@ember-data/serializer/rest';
114
+
115
+ export default class ApplicationSerializer extends RESTSerializer;
116
+ ```
117
+
118
+ ```js
119
+ let pushData = {
120
+ posts: [
121
+ { id: 1, postTitle: "Great post", commentIds: [2] }
122
+ ],
123
+ comments: [
124
+ { id: 2, commentBody: "Insightful comment" }
125
+ ]
126
+ }
127
+
128
+ store.pushPayload(pushData);
129
+ ```
130
+
131
+ By default, the data will be deserialized using a default
132
+ serializer (the application serializer if it exists).
133
+
134
+ Alternatively, `pushPayload` will accept a model type which
135
+ will determine which serializer will process the payload.
136
+
137
+ ```app/serializers/application.js
138
+ import RESTSerializer from '@ember-data/serializer/rest';
139
+
140
+ export default class ApplicationSerializer extends RESTSerializer;
141
+ ```
142
+
143
+ ```app/serializers/post.js
144
+ import JSONSerializer from '@ember-data/serializer/json';
145
+
146
+ export default JSONSerializer;
147
+ ```
148
+
149
+ ```js
150
+ store.pushPayload(pushData); // Will use the application serializer
151
+ store.pushPayload('post', pushData); // Will use the post serializer
152
+ ```
153
+
154
+ @method pushPayload
155
+ @public
156
+ @param {String} modelName Optionally, a model type used to determine which serializer will be used
157
+ @param {Object} inputPayload
158
+ */
159
+ export function pushPayload(this: Store, modelName: string, inputPayload: ObjectValue): void;
160
+ export function serializeRecord(this: Store, record: unknown, options?: SerializerOptions): unknown;
161
+ export function cleanup(this: Store): void;
162
+ }
163
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAI3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAgB,MAAM,YAAY,CAAC;AAExD,OAAO,KAAK,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAC;AAClH,OAAO,KAAK,EACV,0BAA0B,EAC1B,iBAAiB,EAClB,MAAM,uDAAuD,CAAC;AAE/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AAEvF,YAAY,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC;AAEvG;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,aAAa,EAAE,YAAY,CAAC;IAC5B,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,GAAG,uBAAuB,CAAC;IACpE,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,GAAG,uBAAuB,GAAG,SAAS,CAAC;IAErG,aA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