@warp-drive/legacy 5.8.0-beta.1 → 5.8.0-beta.2

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.
@@ -7,9 +7,21 @@ import type { CacheCapabilitiesManager } from "@warp-drive/core/types";
7
7
  import type { Cache } from "@warp-drive/core/types/cache";
8
8
  import type { ObjectSchema, ResourceSchema } from "@warp-drive/core/types/schema/fields";
9
9
  interface _LegacyStoreSetupOptions<T extends Cache> extends Omit<StoreSetupOptions<T>, "schemas"> {
10
+ /**
11
+ * The {@link ResourceSchema | ResourceSchemas} or {@link ObjectSchema | ObjectSchemas} of entities
12
+ * migrated to no longer use {@link Model}.
13
+ *
14
+ * :::caution
15
+ * {@link Model} is still able to be used directly as a source of schema when using {@link useLegacyStore},
16
+ * however, its reliance on EmberObject, classic computeds and resolver behaviors mean that Model
17
+ * will stop working when these things are deprecated in Ember.
18
+ * :::
19
+ */
10
20
  schemas?: Array<ResourceSchema | ObjectSchema>;
11
21
  /**
12
22
  * Whether to include support for ModelFragments migrations.
23
+ *
24
+ * @default false
13
25
  */
14
26
  modelFragments?: boolean;
15
27
  }
@@ -17,11 +29,19 @@ export interface LegacyModelStoreSetupOptions<T extends Cache> extends _LegacySt
17
29
  /**
18
30
  * If true, it is presumed that no requests require use of the LegacyNetworkHandler
19
31
  * and associated adapters/serializer methods.
32
+ *
33
+ * If legacyRequests is true, {@link linksMode} must be false
34
+ *
35
+ * @default false
20
36
  */
21
37
  linksMode: true;
22
38
  /**
23
39
  * if true, all legacy request methods and supporting infrastructure will
24
40
  * be available on the store.
41
+ *
42
+ * If legacyRequests is true, {@link linksMode} must be false
43
+ *
44
+ * @default false
25
45
  */
26
46
  legacyRequests?: false;
27
47
  }
@@ -29,11 +49,17 @@ export interface LegacyModelAndNetworkStoreSetupOptions<T extends Cache> extends
29
49
  /**
30
50
  * If true, it is presumed that no requests require use of the LegacyNetworkHandler
31
51
  * and associated adapters/serializer methods.
52
+ *
53
+ * @default false
32
54
  */
33
55
  linksMode: false;
34
56
  /**
35
57
  * if true, all legacy request methods and supporting infrastructure will
36
58
  * be available on the store.
59
+ *
60
+ * If legacyRequests is true, {@link linksMode} must be false
61
+ *
62
+ * @default false
37
63
  */
38
64
  legacyRequests?: false;
39
65
  }
@@ -41,11 +67,17 @@ export interface LegacyModelAndNetworkAndRequestStoreSetupOptions<T extends Cach
41
67
  /**
42
68
  * If true, it is presumed that no requests require use of the LegacyNetworkHandler
43
69
  * and associated adapters/serializer methods.
70
+ *
71
+ * @default false
44
72
  */
45
73
  linksMode: false;
46
74
  /**
47
75
  * if true, all legacy request methods and supporting infrastructure will
48
76
  * be available on the store.
77
+ *
78
+ * If legacyRequests is true, {@link linksMode} must be false
79
+ *
80
+ * @default false
49
81
  */
50
82
  legacyRequests: true;
51
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warp-drive/legacy",
3
- "version": "5.8.0-beta.1",
3
+ "version": "5.8.0-beta.2",
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"
@@ -40,8 +40,8 @@
40
40
  }
41
41
  },
42
42
  "peerDependencies": {
43
- "@warp-drive/core": "5.8.0-beta.1",
44
- "@warp-drive/utilities": "5.8.0-beta.1"
43
+ "@warp-drive/core": "5.8.0-beta.2",
44
+ "@warp-drive/utilities": "5.8.0-beta.2"
45
45
  },
46
46
  "dependencies": {
47
47
  "@embroider/macros": "^1.18.1"
@@ -51,9 +51,9 @@
51
51
  "@babel/plugin-transform-typescript": "^7.28.0",
52
52
  "@babel/preset-typescript": "^7.27.1",
53
53
  "@types/jquery": "^3.5.33",
54
- "@warp-drive/internal-config": "5.8.0-beta.1",
55
- "@warp-drive/core": "5.8.0-beta.1",
56
- "@warp-drive/utilities": "5.8.0-beta.1",
54
+ "@warp-drive/internal-config": "5.8.0-beta.2",
55
+ "@warp-drive/core": "5.8.0-beta.2",
56
+ "@warp-drive/utilities": "5.8.0-beta.2",
57
57
  "ember-source": "~6.6.0",
58
58
  "decorator-transforms": "^2.3.0",
59
59
  "expect-type": "^1.2.2",