@warp-drive/legacy 5.9.0-alpha.14 → 5.9.0-alpha.16
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/declarations/index.d.ts
CHANGED
|
@@ -81,6 +81,14 @@ export interface LegacyModelAndNetworkAndRequestStoreSetupOptions<T extends Cach
|
|
|
81
81
|
*/
|
|
82
82
|
legacyRequests: true;
|
|
83
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* The available options when setting up the legacy store,
|
|
86
|
+
* one of:
|
|
87
|
+
*
|
|
88
|
+
* - {@link LegacyModelStoreSetupOptions}
|
|
89
|
+
* - {@link LegacyModelAndNetworkStoreSetupOptions}
|
|
90
|
+
* - {@link LegacyModelAndNetworkAndRequestStoreSetupOptions}
|
|
91
|
+
*/
|
|
84
92
|
export type LegacyStoreSetupOptions<T extends Cache = Cache> = LegacyModelStoreSetupOptions<T> | LegacyModelAndNetworkStoreSetupOptions<T> | LegacyModelAndNetworkAndRequestStoreSetupOptions<T>;
|
|
85
93
|
export declare class ConfiguredStore<T extends {
|
|
86
94
|
cache: Cache;
|
|
@@ -89,6 +97,8 @@ export declare class ConfiguredStore<T extends {
|
|
|
89
97
|
}
|
|
90
98
|
/**
|
|
91
99
|
* Use the legacy store with the given options.
|
|
100
|
+
*
|
|
101
|
+
* See {@link LegacyStoreSetupOptions} for details on the available options.
|
|
92
102
|
*/
|
|
93
103
|
export declare function useLegacyStore<T extends Cache>(options: LegacyModelStoreSetupOptions<T>, StoreKlass?: typeof Store): typeof ConfiguredStore<{
|
|
94
104
|
cache: T;
|
package/dist/index.js
CHANGED
|
@@ -21,8 +21,18 @@ import { restoreDeprecatedStoreBehaviors } from './store.js';
|
|
|
21
21
|
* @mergeModuleWith <project>
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* The available options when setting up the legacy store,
|
|
26
|
+
* one of:
|
|
27
|
+
*
|
|
28
|
+
* - {@link LegacyModelStoreSetupOptions}
|
|
29
|
+
* - {@link LegacyModelAndNetworkStoreSetupOptions}
|
|
30
|
+
* - {@link LegacyModelAndNetworkAndRequestStoreSetupOptions}
|
|
31
|
+
*/
|
|
24
32
|
/**
|
|
25
33
|
* Use the legacy store with the given options.
|
|
34
|
+
*
|
|
35
|
+
* See {@link LegacyStoreSetupOptions} for details on the available options.
|
|
26
36
|
*/
|
|
27
37
|
function useLegacyStore(options, StoreKlass = Store) {
|
|
28
38
|
macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
|
package/dist/unpkg/dev/index.js
CHANGED
|
@@ -22,8 +22,19 @@ import { restoreDeprecatedStoreBehaviors } from './store.js';
|
|
|
22
22
|
|
|
23
23
|
//export type ConfiguredStore<T = unknown> = typeof Store;
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* The available options when setting up the legacy store,
|
|
27
|
+
* one of:
|
|
28
|
+
*
|
|
29
|
+
* - {@link LegacyModelStoreSetupOptions}
|
|
30
|
+
* - {@link LegacyModelAndNetworkStoreSetupOptions}
|
|
31
|
+
* - {@link LegacyModelAndNetworkAndRequestStoreSetupOptions}
|
|
32
|
+
*/
|
|
33
|
+
|
|
25
34
|
/**
|
|
26
35
|
* Use the legacy store with the given options.
|
|
36
|
+
*
|
|
37
|
+
* See {@link LegacyStoreSetupOptions} for details on the available options.
|
|
27
38
|
*/
|
|
28
39
|
|
|
29
40
|
function useLegacyStore(options, StoreKlass = Store) {
|
|
@@ -21,8 +21,19 @@ import { restoreDeprecatedStoreBehaviors } from './store.js';
|
|
|
21
21
|
|
|
22
22
|
//export type ConfiguredStore<T = unknown> = typeof Store;
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* The available options when setting up the legacy store,
|
|
26
|
+
* one of:
|
|
27
|
+
*
|
|
28
|
+
* - {@link LegacyModelStoreSetupOptions}
|
|
29
|
+
* - {@link LegacyModelAndNetworkStoreSetupOptions}
|
|
30
|
+
* - {@link LegacyModelAndNetworkAndRequestStoreSetupOptions}
|
|
31
|
+
*/
|
|
32
|
+
|
|
24
33
|
/**
|
|
25
34
|
* Use the legacy store with the given options.
|
|
35
|
+
*
|
|
36
|
+
* See {@link LegacyStoreSetupOptions} for details on the available options.
|
|
26
37
|
*/
|
|
27
38
|
|
|
28
39
|
function useLegacyStore(options, StoreKlass = Store) {
|
package/dist/unpkg/prod/index.js
CHANGED
|
@@ -22,8 +22,19 @@ import { restoreDeprecatedStoreBehaviors } from './store.js';
|
|
|
22
22
|
|
|
23
23
|
//export type ConfiguredStore<T = unknown> = typeof Store;
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* The available options when setting up the legacy store,
|
|
27
|
+
* one of:
|
|
28
|
+
*
|
|
29
|
+
* - {@link LegacyModelStoreSetupOptions}
|
|
30
|
+
* - {@link LegacyModelAndNetworkStoreSetupOptions}
|
|
31
|
+
* - {@link LegacyModelAndNetworkAndRequestStoreSetupOptions}
|
|
32
|
+
*/
|
|
33
|
+
|
|
25
34
|
/**
|
|
26
35
|
* Use the legacy store with the given options.
|
|
36
|
+
*
|
|
37
|
+
* See {@link LegacyStoreSetupOptions} for details on the available options.
|
|
27
38
|
*/
|
|
28
39
|
|
|
29
40
|
function useLegacyStore(options, StoreKlass = Store) {
|
|
@@ -21,8 +21,19 @@ import { restoreDeprecatedStoreBehaviors } from './store.js';
|
|
|
21
21
|
|
|
22
22
|
//export type ConfiguredStore<T = unknown> = typeof Store;
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* The available options when setting up the legacy store,
|
|
26
|
+
* one of:
|
|
27
|
+
*
|
|
28
|
+
* - {@link LegacyModelStoreSetupOptions}
|
|
29
|
+
* - {@link LegacyModelAndNetworkStoreSetupOptions}
|
|
30
|
+
* - {@link LegacyModelAndNetworkAndRequestStoreSetupOptions}
|
|
31
|
+
*/
|
|
32
|
+
|
|
24
33
|
/**
|
|
25
34
|
* Use the legacy store with the given options.
|
|
35
|
+
*
|
|
36
|
+
* See {@link LegacyStoreSetupOptions} for details on the available options.
|
|
26
37
|
*/
|
|
27
38
|
|
|
28
39
|
function useLegacyStore(options, StoreKlass = Store) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warp-drive/legacy",
|
|
3
|
-
"version": "5.9.0-alpha.
|
|
3
|
+
"version": "5.9.0-alpha.16",
|
|
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.9.0-alpha.
|
|
44
|
-
"@warp-drive/utilities": "5.9.0-alpha.
|
|
43
|
+
"@warp-drive/core": "5.9.0-alpha.16",
|
|
44
|
+
"@warp-drive/utilities": "5.9.0-alpha.16"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@embroider/macros": "^1.19.6"
|
|
@@ -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.9.0-alpha.
|
|
55
|
-
"@warp-drive/core": "5.9.0-alpha.
|
|
56
|
-
"@warp-drive/utilities": "5.9.0-alpha.
|
|
54
|
+
"@warp-drive/internal-config": "5.9.0-alpha.16",
|
|
55
|
+
"@warp-drive/core": "5.9.0-alpha.16",
|
|
56
|
+
"@warp-drive/utilities": "5.9.0-alpha.16",
|
|
57
57
|
"ember-source": "~6.12.0",
|
|
58
58
|
"decorator-transforms": "^2.3.0",
|
|
59
59
|
"expect-type": "^1.2.2",
|