@warp-drive/core 5.7.0-alpha.35 → 5.7.0-alpha.36
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/store/-private/new-core-tmp/request-state.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/reactive.js +2 -2
- package/dist/{request-state-Un5kBcmR.js → request-subscription-CjHGziEX.js} +989 -981
- package/dist/store/-private.js +1 -1
- package/dist/types/-private.js +1 -1
- package/package.json +3 -3
|
@@ -273,6 +273,10 @@ export interface CancelledRequest<
|
|
|
273
273
|
request: ImmutableRequestInfo<RT> | null;
|
|
274
274
|
response: Response | ResponseInfo | null;
|
|
275
275
|
}
|
|
276
|
+
export interface PrivateRequestState {
|
|
277
|
+
_loadingState?: RequestLoadingState;
|
|
278
|
+
_request: Future<unknown>;
|
|
279
|
+
}
|
|
276
280
|
/**
|
|
277
281
|
* RequestState extends the concept of {@link PromiseState} to provide a reactive
|
|
278
282
|
* wrapper for a request {@link Future} which allows you write declarative code
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { macroCondition, getGlobalConfig } from '@embroider/macros';
|
|
|
4
4
|
import { w as waitFor } from "./configure-C3x8YXzL.js";
|
|
5
5
|
import { peekUniversalTransient, setUniversalTransient } from './types/-private.js';
|
|
6
6
|
import { EnableHydration } from './types/request.js';
|
|
7
|
-
export { C as CacheHandler, S as Store, r as recordIdentifierFor, U as setIdentifierForgetMethod, Q as setIdentifierGenerationMethod, V as setIdentifierResetMethod, T as setIdentifierUpdateMethod, W as setKeyInfoForResource, s as storeFor } from "./request-
|
|
7
|
+
export { C as CacheHandler, S as Store, r as recordIdentifierFor, U as setIdentifierForgetMethod, Q as setIdentifierGenerationMethod, V as setIdentifierResetMethod, T as setIdentifierUpdateMethod, W as setKeyInfoForResource, s as storeFor } from "./request-subscription-CjHGziEX.js";
|
|
8
8
|
import '@ember/debug';
|
|
9
9
|
import './utils/string.js';
|
|
10
10
|
import "./symbols-sql1_mdx.js";
|
package/dist/reactive.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as ReactiveResource, M as isNonIdentityCacheableField, N as getFieldCacheKeyStrict, r as recordIdentifierFor, H as withSignalStore, G as createInternalMemo } from "./request-
|
|
2
|
-
export { O as checkout, P as commit } from "./request-
|
|
1
|
+
import { L as ReactiveResource, M as isNonIdentityCacheableField, N as getFieldCacheKeyStrict, r as recordIdentifierFor, H as withSignalStore, G as createInternalMemo } from "./request-subscription-CjHGziEX.js";
|
|
2
|
+
export { O as checkout, P as commit } from "./request-subscription-CjHGziEX.js";
|
|
3
3
|
import { isResourceSchema } from './types/schema/fields.js';
|
|
4
4
|
import { D as Destroy, C as Context } from "./symbols-sql1_mdx.js";
|
|
5
5
|
export { a as Checkout } from "./symbols-sql1_mdx.js";
|