@hyper-fetch/core 9.2.0 → 9.4.0
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/__tests__/features/adapter/adapter.request-options.spec.ts +116 -0
- package/__tests__/features/cache/cache.base.spec.ts +48 -0
- package/__tests__/features/cache/cache.replace-equal-deep.spec.ts +125 -0
- package/__tests__/features/dispatcher/dispatcher.events.spec.ts +52 -0
- package/__tests__/features/request/request.setters.spec.ts +7 -0
- package/dist/adapter/adapter.d.ts +17 -12
- package/dist/adapter/adapter.d.ts.map +1 -1
- package/dist/adapter/adapter.types.d.ts +5 -3
- package/dist/adapter/adapter.types.d.ts.map +1 -1
- package/dist/cache/cache.d.ts.map +1 -1
- package/dist/cache/cache.types.d.ts +3 -1
- package/dist/cache/cache.types.d.ts.map +1 -1
- package/dist/cache/cache.utils.d.ts +14 -0
- package/dist/cache/cache.utils.d.ts.map +1 -1
- package/dist/client/client.d.ts +2 -2
- package/dist/client/client.d.ts.map +1 -1
- package/dist/dispatcher/dispatcher.d.ts +7 -0
- package/dist/dispatcher/dispatcher.d.ts.map +1 -1
- package/dist/dispatcher/dispatcher.events.d.ts +15 -1
- package/dist/dispatcher/dispatcher.events.d.ts.map +1 -1
- package/dist/dispatcher/dispatcher.types.d.ts +4 -0
- package/dist/dispatcher/dispatcher.types.d.ts.map +1 -1
- package/dist/dispatcher/dispatcher.utils.d.ts +2 -0
- package/dist/dispatcher/dispatcher.utils.d.ts.map +1 -1
- package/dist/http-adapter/http-adapter.fetch.d.ts +1 -1
- package/dist/http-adapter/http-adapter.fetch.d.ts.map +1 -1
- package/dist/index.mjs +89 -8
- package/dist/index.mjs.map +1 -1
- package/dist/request/request.d.ts +3 -0
- package/dist/request/request.d.ts.map +1 -1
- package/dist/request/request.types.d.ts +6 -0
- package/dist/request/request.types.d.ts.map +1 -1
- package/dist/sdk/sdk.d.ts +1 -0
- package/dist/sdk/sdk.d.ts.map +1 -1
- package/dist/types/adapter.types.d.ts +13 -11
- package/dist/types/adapter.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adapter/adapter.ts +33 -13
- package/src/adapter/adapter.types.ts +7 -3
- package/src/cache/cache.ts +6 -1
- package/src/cache/cache.types.ts +1 -1
- package/src/cache/cache.utils.ts +56 -0
- package/src/client/client.ts +2 -1
- package/src/dispatcher/dispatcher.events.ts +29 -1
- package/src/dispatcher/dispatcher.ts +19 -6
- package/src/dispatcher/dispatcher.types.ts +5 -0
- package/src/dispatcher/dispatcher.utils.ts +6 -0
- package/src/request/request.ts +9 -0
- package/src/request/request.types.ts +6 -0
- package/src/sdk/sdk.ts +4 -0
- package/src/types/adapter.types.ts +18 -11
package/dist/client/client.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { HttpAdapterType } from '../http-adapter';
|
|
|
6
6
|
import { LogLevel, AppManager, LoggerManager, RequestManager } from '../managers';
|
|
7
7
|
import { PluginInstance, PluginMethodParameters, PluginMethods } from '../plugin';
|
|
8
8
|
import { RequestInstance, RequestJSON, RequestOptionsType, Request } from '../request';
|
|
9
|
-
import { EmptyTypes, TypeWithDefaults, ExtractAdapterMethodType, ExtractAdapterOptionsType, ExtractAdapterQueryParamsType, ExtractAdapterEndpointType, ExtractUnionAdapter, HydrateDataType, HydrationOptions, ExtractAdapterDefaultQueryParamsType } from '../types';
|
|
9
|
+
import { EmptyTypes, TypeWithDefaults, ExtractAdapterMethodType, ExtractAdapterOptionsType, ExtractAdapterQueryParamsType, ExtractAdapterEndpointType, ExtractUnionAdapter, HydrateDataType, HydrationOptions, ExtractAdapterDefaultQueryParamsType, ExtractAdapterRequestOptionsType } from '../types';
|
|
10
10
|
/**
|
|
11
11
|
* **Client** is a class that allows you to configure the connection with the server and then use it to create
|
|
12
12
|
* requests. It allows you to set global defaults for the requests configuration, query params configuration.
|
|
@@ -198,7 +198,7 @@ export declare class Client<GlobalErrorType extends ClientErrorType = Error, Ada
|
|
|
198
198
|
*
|
|
199
199
|
* This solution will be removed once https://github.com/microsoft/TypeScript/issues/10571 get resolved.
|
|
200
200
|
*/
|
|
201
|
-
_USE_DOUBLE_INITIALIZATION?: never) => <EndpointType extends ExtractAdapterEndpointType<Adapter>, AdapterOptions extends ExtractAdapterOptionsType<Adapter>, MethodType extends ExtractAdapterMethodType<Adapter>>(params: RequestOptionsType<EndpointType, AdapterOptions, MethodType>) => Request<TypeWithDefaults<RequestProperties, "response", undefined>, TypeWithDefaults<RequestProperties, "payload", undefined>, TypeWithDefaults<RequestProperties, "queryParams", ExtractAdapterDefaultQueryParamsType<Adapter>, never>, TypeWithDefaults<RequestProperties, "error", GlobalErrorType>, TypeWithDefaults<RequestProperties, "endpoint", EndpointType> extends string ? TypeWithDefaults<RequestProperties, "endpoint", EndpointType> : any, Client<GlobalErrorType, ExtractUnionAdapter<Adapter, {
|
|
201
|
+
_USE_DOUBLE_INITIALIZATION?: never) => <EndpointType extends ExtractAdapterEndpointType<Adapter>, AdapterOptions extends ExtractAdapterOptionsType<Adapter>, MethodType extends ExtractAdapterMethodType<Adapter>>(params: RequestOptionsType<EndpointType, AdapterOptions, MethodType> & ExtractAdapterRequestOptionsType<Adapter>) => Request<TypeWithDefaults<RequestProperties, "response", undefined>, TypeWithDefaults<RequestProperties, "payload", undefined>, TypeWithDefaults<RequestProperties, "queryParams", ExtractAdapterDefaultQueryParamsType<Adapter>, never>, TypeWithDefaults<RequestProperties, "error", GlobalErrorType>, TypeWithDefaults<RequestProperties, "endpoint", EndpointType> extends string ? TypeWithDefaults<RequestProperties, "endpoint", EndpointType> : any, Client<GlobalErrorType, ExtractUnionAdapter<Adapter, {
|
|
202
202
|
method: MethodType;
|
|
203
203
|
options: AdapterOptions;
|
|
204
204
|
queryParams: TypeWithDefaults<RequestProperties, "queryParams", ExtractAdapterDefaultQueryParamsType<Adapter>, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":"AAAA,O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,CAAC,EAAE,SAAS,eAAe,kEACL;IAE3G;;;;OAIG;IACH,QAAQ,GAAI,iBAAiB,SAAS,kBAAkB,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EACnG,MAAM,WAAW,CAAC,eAAe,CAAC,KAU6C,OAAO,iSAKpF,gEAAiB,MAAM,6DAAc,MAAM,EAC3C,MAAM,CAAC,eAAe,EAAE,OAAO,CAAC,CACjC,CACD;IAEF;;OAEG;IACH,KAAK,aAuBH;IAEF;;;;OAIG;IACH,OAAO,GACL,eAAe,CAAC,eAAe,GAAG,UAAU,CAAC,EAAE,EAC/C,UAAU,OAAO,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,eAAe,KAAK,OAAO,CAAC,gBAAgB,CAAC,CAAC,UA2B5F;IAEF;;;;OAIG;IACH,aAAa,GAAI,iBAAiB,SAAS,kBAAkB,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE;IACxG;;;;;;;;;;;;;;;OAeG;IAEH,6BAA6B,KAAK,MAWhC,YAAY,SAAS,0BAA0B,CAAC,OAAO,CAAC,EACxD,cAAc,SAAS,yBAAyB,CAAC,OAAO,CAAC,EACzD,UAAU,SAAS,wBAAwB,CAAC,OAAO,CAAC,EAEpD,QAAQ,kBAAkB,CAAC,YAAY,EAAE,cAAc,EAAE,UAAU,CAAC,GAAG,gCAAgC,CAAC,OAAO,CAAC;gBAUpG,UAAU;iBACT,cAAc;;;gBADf,UAAU;iBACT,cAAc;;yCA4B7B;CACH"}
|
|
@@ -15,12 +15,15 @@ export declare class Dispatcher<Adapter extends AdapterInstance> {
|
|
|
15
15
|
emitDrained: <Request extends RequestInstance>(values: QueueDataType<Request>, isTriggeredExternally?: boolean) => void;
|
|
16
16
|
emitQueueStatusChanged: <Request extends RequestInstance>(values: QueueDataType<Request>, isTriggeredExternally?: boolean) => void;
|
|
17
17
|
emitQueueChanged: <Request extends RequestInstance>(values: QueueDataType<Request>, isTriggeredExternally?: boolean) => void;
|
|
18
|
+
emitRunningRequestsChanged: (values: import('.').RunningRequestsChangeType, isTriggeredExternally?: boolean) => void;
|
|
18
19
|
onDrained: <Request extends RequestInstance>(callback: (values: QueueDataType<Request>) => void) => VoidFunction;
|
|
19
20
|
onDrainedByKey: <Request extends RequestInstance>(queryKey: string, callback: (values: QueueDataType<Request>) => void) => VoidFunction;
|
|
20
21
|
onQueueStatusChange: <Request extends RequestInstance>(callback: (values: QueueDataType<Request>) => void) => VoidFunction;
|
|
21
22
|
onQueueStatusChangeByKey: <Request extends RequestInstance>(queryKey: string, callback: (values: QueueDataType<Request>) => void) => VoidFunction;
|
|
22
23
|
onQueueChange: <Request extends RequestInstance>(callback: (values: QueueDataType<Request>) => void) => VoidFunction;
|
|
23
24
|
onQueueChangeByKey: <Request extends RequestInstance>(queryKey: string, callback: (values: QueueDataType<Request>) => void) => VoidFunction;
|
|
25
|
+
onRunningRequestsChange: (callback: (values: import('.').RunningRequestsChangeType) => void) => VoidFunction;
|
|
26
|
+
onRunningRequestsChangeByKey: (queryKey: string, callback: (values: import('.').RunningRequestsChangeType) => void) => VoidFunction;
|
|
24
27
|
};
|
|
25
28
|
storage: DispatcherStorageType;
|
|
26
29
|
private requestCount;
|
|
@@ -111,6 +114,10 @@ export declare class Dispatcher<Adapter extends AdapterInstance> {
|
|
|
111
114
|
* Get running request by id
|
|
112
115
|
*/
|
|
113
116
|
getRunningRequest: (queryKey: string, requestId: string) => RunningRequestValueType | undefined;
|
|
117
|
+
/**
|
|
118
|
+
* Single place for changing the running requests - notifies about the change
|
|
119
|
+
*/
|
|
120
|
+
private setRunningRequests;
|
|
114
121
|
/**
|
|
115
122
|
* Add request to the running requests list
|
|
116
123
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatcher.d.ts","sourceRoot":"","sources":["../../src/dispatcher/dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAuB,MAAM,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,EAAE,WAAW,MAAM,yCAGtD;IAEF;;OAEG;IACH,OAAO,CAAC,kBAAkB,CASxB;IAEF;;OAEG;IACH,iBAAiB,GAAI,UAAU,MAAM,EAAE,WAAW,MAAM,EAAE,SAAS,eAAe,KAAG,uBAAuB,CAI1G;IAEF;;OAEG;IACH,kBAAkB,GAAI,UAAU,MAAM,aAEpC;IAEF;;OAEG;IACH,iBAAiB,GAAI,UAAU,MAAM,EAAE,WAAW,MAAM,aAGtD;IAEF;;OAEG;IACH,qBAAqB,GAAI,UAAU,MAAM,UAMvC;IACF;;OAEG;IACH,oBAAoB,GAAI,UAAU,MAAM,EAAE,WAAW,MAAM,UAWzD;IAEF;;OAEG;IACH,qBAAqB,GAAI,UAAU,MAAM,UAEvC;IAEF;;OAEG;IACH,oBAAoB,GAAI,UAAU,MAAM,EAAE,WAAW,MAAM,UAMzD;IAEF;;OAEG;IACH,oBAAoB,GAAI,UAAU,MAAM,YAEtC;IAEF;;OAEG;IACH,0BAA0B,GAAI,UAAU,MAAM,UAG5C;IAEF;;OAEG;IAEH,iBAAiB,GAAI,CAAC,SAAS,eAAe,EAAE,SAAS,CAAC,KAAG,qBAAqB,CAAC,CAAC,CAAC,CAUnF;IAQF;;OAEG;IACH,GAAG,GAAI,SAAS,eAAe,YA4C7B;IAEF;;OAEG;IACH,MAAM,GAAI,UAAU,MAAM,EAAE,WAAW,MAAM,EAAE,UAAU,MAAM,wDAgC7D;IAEF;;;OAGG;IACH,cAAc,GAAU,aAAa,qBAAqB,4DAqKxD;CACH"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { QueueDataType } from '.';
|
|
1
|
+
import { QueueDataType, RunningRequestsChangeType } from '.';
|
|
2
2
|
import { default as EventEmitter } from 'events';
|
|
3
3
|
import { RequestInstance } from '../request';
|
|
4
4
|
export declare const getDispatcherEvents: (emitter: EventEmitter) => {
|
|
5
5
|
emitDrained: <Request extends RequestInstance>(values: QueueDataType<Request>, isTriggeredExternally?: boolean) => void;
|
|
6
6
|
emitQueueStatusChanged: <Request extends RequestInstance>(values: QueueDataType<Request>, isTriggeredExternally?: boolean) => void;
|
|
7
7
|
emitQueueChanged: <Request extends RequestInstance>(values: QueueDataType<Request>, isTriggeredExternally?: boolean) => void;
|
|
8
|
+
emitRunningRequestsChanged: (values: RunningRequestsChangeType, isTriggeredExternally?: boolean) => void;
|
|
8
9
|
/**
|
|
9
10
|
* When queue becomes empty
|
|
10
11
|
* @param callback
|
|
@@ -45,5 +46,18 @@ export declare const getDispatcherEvents: (emitter: EventEmitter) => {
|
|
|
45
46
|
* @returns
|
|
46
47
|
*/
|
|
47
48
|
onQueueChangeByKey: <Request extends RequestInstance>(queryKey: string, callback: (values: QueueDataType<Request>) => void) => VoidFunction;
|
|
49
|
+
/**
|
|
50
|
+
* When requests start or stop running (sent, finished, canceled or cleared)
|
|
51
|
+
* @param callback
|
|
52
|
+
* @returns
|
|
53
|
+
*/
|
|
54
|
+
onRunningRequestsChange: (callback: (values: RunningRequestsChangeType) => void) => VoidFunction;
|
|
55
|
+
/**
|
|
56
|
+
* When requests start or stop running (sent, finished, canceled or cleared) for given queryKey
|
|
57
|
+
* @param queryKey
|
|
58
|
+
* @param callback
|
|
59
|
+
* @returns
|
|
60
|
+
*/
|
|
61
|
+
onRunningRequestsChangeByKey: (queryKey: string, callback: (values: RunningRequestsChangeType) => void) => VoidFunction;
|
|
48
62
|
};
|
|
49
63
|
//# sourceMappingURL=dispatcher.events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatcher.events.d.ts","sourceRoot":"","sources":["../../src/dispatcher/dispatcher.events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"dispatcher.events.d.ts","sourceRoot":"","sources":["../../src/dispatcher/dispatcher.events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAyB,EAAE,MA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AY;IAI9F;;;;;OAKG;6CAES,MAAM,YACN,CAAC,MAAM,EAAE,yBAAyB,KAAK,IAAI,KACpD,YAAY;CAIf,CAAC"}
|
|
@@ -41,4 +41,8 @@ export type RunningRequestValueType = {
|
|
|
41
41
|
request: RequestInstance;
|
|
42
42
|
timestamp: number;
|
|
43
43
|
};
|
|
44
|
+
export type RunningRequestsChangeType = {
|
|
45
|
+
queryKey: string;
|
|
46
|
+
runningRequests: RunningRequestValueType[];
|
|
47
|
+
};
|
|
44
48
|
//# sourceMappingURL=dispatcher.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatcher.types.d.ts","sourceRoot":"","sources":["../../src/dispatcher/dispatcher.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE5D,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,CAAC,EAAE,qBAAqB,CAAC;CACjC,CAAC;AAGF,MAAM,MAAM,aAAa,CAAC,OAAO,SAAS,eAAe,GAAG,eAAe,IAAI;IAC7E,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,wCAAwC;IACxC,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AACF,MAAM,MAAM,aAAa,CAAC,OAAO,SAAS,eAAe,GAAG,eAAe,IAAI;IAC7E,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,qBAAqB,CAAC,OAAO,SAAS,eAAe,GAAG,eAAe,IAAI,IAAI,CACzF,aAAa,CAAC,OAAO,C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,EAAE,MAAM,MAAM,EAAE,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAChD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,gBAAgB,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACxF,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAIF,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,eAAe,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,uBAAuB,EAAE,CAAC;CAC5C,CAAC"}
|
|
@@ -6,6 +6,8 @@ export declare const getDispatcherStatusKey: () => string;
|
|
|
6
6
|
export declare const getDispatcherStatusByKey: (key: string) => string;
|
|
7
7
|
export declare const getDispatcherChangeKey: () => string;
|
|
8
8
|
export declare const getDispatcherChangeByKey: (key: string) => string;
|
|
9
|
+
export declare const getDispatcherRunningKey: () => string;
|
|
10
|
+
export declare const getDispatcherRunningByKey: (key: string) => string;
|
|
9
11
|
export declare const getIsEqualTimestamp: (currentTimestamp: number, threshold: number, queueTimestamp?: number) => boolean;
|
|
10
12
|
export declare const canRetryRequest: (currentRetries: number, retry: number | undefined) => boolean;
|
|
11
13
|
export declare const getRequestType: (request: RequestInstance, latestRequest: ResolvedQueueItemType | undefined) => DispatcherMode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatcher.utils.d.ts","sourceRoot":"","sources":["../../src/dispatcher/dispatcher.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,Y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AM,KAAG,MAEtD,CAAC;AACF,eAAO,MAAM,uBAAuB,QAAO,MAE1C,CAAC;AACF,eAAO,MAAM,yBAAyB,GAAI,KAAK,MAAM,KAAG,MAEvD,CAAC;AAIF,eAAO,MAAM,mBAAmB,GAAI,kBAAkB,MAAM,EAAE,WAAW,MAAM,EAAE,iBAAiB,MAAM,KAAG,OAK1G,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,gBAAgB,MAAM,EAAE,OAAO,MAAM,GAAG,SAAS,YAKhF,CAAC;AASF,eAAO,MAAM,cAAc,GAAI,SAAS,eAAe,EAAE,eAAe,qBAAqB,GAAG,SAAS,mBAoBxG,CAAC"}
|
|
@@ -2,5 +2,5 @@ import { QueryParamsType } from '../adapter';
|
|
|
2
2
|
import { HttpMethodsType } from '../types';
|
|
3
3
|
import { Adapter } from '../adapter/adapter';
|
|
4
4
|
import { HttpAdapterExtraType, FetchAdapterOptionsType } from './http-adapter.types';
|
|
5
|
-
export declare const getAdapter: () => Adapter<FetchAdapterOptionsType, HttpMethodsType, number, HttpAdapterExtraType, string | QueryParamsType | null, undefined, string, import('../adapter').DefaultMapperType, (queryParams: QueryParamsType | string | import('../types').EmptyTypes, options?: import('./http-adapter.types').QueryStringifyOptionsType) => string, import('../adapter').DefaultMapperType, import('../adapter').DefaultMapperType>;
|
|
5
|
+
export declare const getAdapter: () => Adapter<FetchAdapterOptionsType, HttpMethodsType, number, HttpAdapterExtraType, string | QueryParamsType | null, undefined, string, import('../adapter').DefaultMapperType, (queryParams: QueryParamsType | string | import('../types').EmptyTypes, options?: import('./http-adapter.types').QueryStringifyOptionsType) => string, import('../adapter').DefaultMapperType, import('../adapter').DefaultMapperType, {}>;
|
|
6
6
|
//# sourceMappingURL=http-adapter.fetch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-adapter.fetch.d.ts","sourceRoot":"","sources":["../../src/http-adapter/http-adapter.fetch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,KAAK,EAAE,eAAe,EAAkB,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAK1F,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"http-adapter.fetch.d.ts","sourceRoot":"","sources":["../../src/http-adapter/http-adapter.fetch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,KAAK,EAAE,eAAe,EAAkB,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAK1F,eAAO,MAAM,UAAU,kZA4KlB,CAAC"}
|
package/dist/index.mjs
CHANGED
|
@@ -1550,6 +1550,11 @@ var Adapter = class {
|
|
|
1550
1550
|
unstable_headerMapperConfig;
|
|
1551
1551
|
unstable_payloadMapperConfig;
|
|
1552
1552
|
unstable_endpointMapperConfig;
|
|
1553
|
+
/**
|
|
1554
|
+
* Type-only carrier of the additional `createRequest` fields declared by this adapter.
|
|
1555
|
+
* It has no runtime value - adapters read those fields from `request.requestOptions`.
|
|
1556
|
+
*/
|
|
1557
|
+
unstable_requestOptionsType = void 0;
|
|
1553
1558
|
constructor(options) {
|
|
1554
1559
|
this.options = options;
|
|
1555
1560
|
this.name = options.name;
|
|
@@ -1988,6 +1993,7 @@ var Request = class Request {
|
|
|
1988
1993
|
used;
|
|
1989
1994
|
deduplicate;
|
|
1990
1995
|
deduplicateTime;
|
|
1996
|
+
structuralSharing;
|
|
1991
1997
|
scope;
|
|
1992
1998
|
/**
|
|
1993
1999
|
* Instance-level lifecycle hooks. These callbacks fire for every `send()` / `exec()` call
|
|
@@ -2029,7 +2035,7 @@ var Request = class Request {
|
|
|
2029
2035
|
this.client = client;
|
|
2030
2036
|
this.requestOptions = requestOptions;
|
|
2031
2037
|
this.initialRequestConfiguration = initialRequestConfiguration;
|
|
2032
|
-
const { endpoint, headers, auth = true, method = client.adapter.defaultMethod, options, cancelable = false, retry = 0, retryTime = 500, cacheTime = Time.MIN * 5, cache = true, staleTime = Time.MIN * 5, queued = false, offline = true, abortKey, cacheKey, queryKey, deduplicate = false, deduplicateTime = null } = {
|
|
2038
|
+
const { endpoint, headers, auth = true, method = client.adapter.defaultMethod, options, cancelable = false, retry = 0, retryTime = 500, cacheTime = Time.MIN * 5, cache = true, staleTime = Time.MIN * 5, queued = false, offline = true, abortKey, cacheKey, queryKey, deduplicate = false, deduplicateTime = null, structuralSharing = true } = {
|
|
2033
2039
|
...this.client.adapter.unstable_getRequestDefaults?.(requestOptions),
|
|
2034
2040
|
...requestOptions
|
|
2035
2041
|
};
|
|
@@ -2055,6 +2061,7 @@ var Request = class Request {
|
|
|
2055
2061
|
this.used = initialRequestConfiguration?.used ?? false;
|
|
2056
2062
|
this.deduplicate = initialRequestConfiguration?.deduplicate ?? deduplicate;
|
|
2057
2063
|
this.deduplicateTime = initialRequestConfiguration?.deduplicateTime ?? deduplicateTime;
|
|
2064
|
+
this.structuralSharing = initialRequestConfiguration?.structuralSharing ?? structuralSharing;
|
|
2058
2065
|
this.scope = initialRequestConfiguration?.scope ?? null;
|
|
2059
2066
|
this.updatedAbortKey = initialRequestConfiguration?.updatedAbortKey ?? false;
|
|
2060
2067
|
this.updatedCacheKey = initialRequestConfiguration?.updatedCacheKey ?? false;
|
|
@@ -2168,6 +2175,10 @@ var Request = class Request {
|
|
|
2168
2175
|
setDeduplicateTime = (deduplicateTime) => {
|
|
2169
2176
|
return this.clone({ deduplicateTime });
|
|
2170
2177
|
};
|
|
2178
|
+
/** Enable or disable structural sharing - keeping references of unchanged parts of the response data in cache. */
|
|
2179
|
+
setStructuralSharing = (structuralSharing) => {
|
|
2180
|
+
return this.clone({ structuralSharing });
|
|
2181
|
+
};
|
|
2171
2182
|
/** Mark the request as used (prevents automatic refetching in hooks). */
|
|
2172
2183
|
setUsed = (used) => {
|
|
2173
2184
|
return this.clone({ used });
|
|
@@ -2265,6 +2276,7 @@ var Request = class Request {
|
|
|
2265
2276
|
updatedQueryKey: this.updatedQueryKey,
|
|
2266
2277
|
deduplicate: this.deduplicate,
|
|
2267
2278
|
deduplicateTime: this.deduplicateTime,
|
|
2279
|
+
structuralSharing: this.structuralSharing,
|
|
2268
2280
|
scope: this.scope,
|
|
2269
2281
|
isMockerEnabled: this.isMockerEnabled,
|
|
2270
2282
|
hasMock: !!this.unstable_mock
|
|
@@ -2467,6 +2479,7 @@ var Cache = class {
|
|
|
2467
2479
|
const previousCacheData = this.storage.get(storageKey);
|
|
2468
2480
|
const processedResponse = typeof response === "function" ? response(previousCacheData || null) : response;
|
|
2469
2481
|
const data = getCacheData(previousCacheData, processedResponse);
|
|
2482
|
+
if (request.structuralSharing !== false && previousCacheData) data.data = replaceEqualDeep(previousCacheData.data, data.data);
|
|
2470
2483
|
const newCacheData = {
|
|
2471
2484
|
...data,
|
|
2472
2485
|
scope,
|
|
@@ -2726,6 +2739,45 @@ var getCacheByKey = (key) => {
|
|
|
2726
2739
|
var getCacheKey = () => {
|
|
2727
2740
|
return `cache`;
|
|
2728
2741
|
};
|
|
2742
|
+
/**
|
|
2743
|
+
* Check if value is a plain object (object literal or `Object.create(null)`).
|
|
2744
|
+
* Class instances, Dates, Maps, Blobs etc. are not plain objects.
|
|
2745
|
+
*/
|
|
2746
|
+
var isPlainObject = (value) => {
|
|
2747
|
+
if (Object.prototype.toString.call(value) !== "[object Object]") return false;
|
|
2748
|
+
const prototype = Object.getPrototypeOf(value);
|
|
2749
|
+
return prototype === null || prototype === Object.prototype;
|
|
2750
|
+
};
|
|
2751
|
+
var isPlainArray = (value) => {
|
|
2752
|
+
return Array.isArray(value) && Object.keys(value).length === value.length;
|
|
2753
|
+
};
|
|
2754
|
+
/**
|
|
2755
|
+
* Structural sharing - returns `next` with every part that is deeply equal to `prev` replaced by the `prev` reference.
|
|
2756
|
+
* When both values are deeply equal the `prev` reference is returned, so consumers can rely on `===` checks.
|
|
2757
|
+
* Only plain objects and arrays are traversed, other values are compared with `Object.is`.
|
|
2758
|
+
* @param prev previous value
|
|
2759
|
+
* @param next incoming value
|
|
2760
|
+
* @returns `next` sharing unchanged references with `prev`
|
|
2761
|
+
*/
|
|
2762
|
+
var replaceEqualDeep = (prev, next) => {
|
|
2763
|
+
if (Object.is(prev, next)) return prev;
|
|
2764
|
+
const isArray = isPlainArray(prev) && isPlainArray(next);
|
|
2765
|
+
if (!isArray && !(isPlainObject(prev) && isPlainObject(next))) return next;
|
|
2766
|
+
const prevItems = prev;
|
|
2767
|
+
const nextItems = next;
|
|
2768
|
+
const prevKeys = Object.keys(prevItems);
|
|
2769
|
+
const nextKeys = Object.keys(nextItems);
|
|
2770
|
+
const copy = isArray ? [] : {};
|
|
2771
|
+
let equalItems = 0;
|
|
2772
|
+
nextKeys.forEach((key) => {
|
|
2773
|
+
const prevValue = prevItems[key];
|
|
2774
|
+
const nextValue = nextItems[key];
|
|
2775
|
+
const value = replaceEqualDeep(prevValue, nextValue);
|
|
2776
|
+
copy[key] = value;
|
|
2777
|
+
if (value === prevValue && (value !== void 0 || Object.prototype.hasOwnProperty.call(prevItems, key))) equalItems += 1;
|
|
2778
|
+
});
|
|
2779
|
+
return prevKeys.length === nextKeys.length && equalItems === prevKeys.length ? prev : copy;
|
|
2780
|
+
};
|
|
2729
2781
|
//#endregion
|
|
2730
2782
|
//#region src/cache/cache.events.ts
|
|
2731
2783
|
/** Create the cache event emitters and listeners for data changes, invalidation, and deletion. */
|
|
@@ -2791,6 +2843,10 @@ var getDispatcherEvents = (emitter) => ({
|
|
|
2791
2843
|
emitter.emit(getDispatcherChangeKey(), values, isTriggeredExternally);
|
|
2792
2844
|
emitter.emit(getDispatcherChangeByKey(values.queryKey), values, isTriggeredExternally);
|
|
2793
2845
|
},
|
|
2846
|
+
emitRunningRequestsChanged: (values, isTriggeredExternally) => {
|
|
2847
|
+
emitter.emit(getDispatcherRunningKey(), values, isTriggeredExternally);
|
|
2848
|
+
emitter.emit(getDispatcherRunningByKey(values.queryKey), values, isTriggeredExternally);
|
|
2849
|
+
},
|
|
2794
2850
|
onDrained: (callback) => {
|
|
2795
2851
|
emitter.on(getDispatcherDrainedKey(), callback);
|
|
2796
2852
|
return () => emitter.removeListener(getDispatcherDrainedKey(), callback);
|
|
@@ -2814,6 +2870,14 @@ var getDispatcherEvents = (emitter) => ({
|
|
|
2814
2870
|
onQueueChangeByKey: (queryKey, callback) => {
|
|
2815
2871
|
emitter.on(getDispatcherChangeByKey(queryKey), callback);
|
|
2816
2872
|
return () => emitter.removeListener(getDispatcherChangeByKey(queryKey), callback);
|
|
2873
|
+
},
|
|
2874
|
+
onRunningRequestsChange: (callback) => {
|
|
2875
|
+
emitter.on(getDispatcherRunningKey(), callback);
|
|
2876
|
+
return () => emitter.removeListener(getDispatcherRunningKey(), callback);
|
|
2877
|
+
},
|
|
2878
|
+
onRunningRequestsChangeByKey: (queryKey, callback) => {
|
|
2879
|
+
emitter.on(getDispatcherRunningByKey(queryKey), callback);
|
|
2880
|
+
return () => emitter.removeListener(getDispatcherRunningByKey(queryKey), callback);
|
|
2817
2881
|
}
|
|
2818
2882
|
});
|
|
2819
2883
|
//#endregion
|
|
@@ -3027,6 +3091,7 @@ var Dispatcher = class {
|
|
|
3027
3091
|
*/
|
|
3028
3092
|
clear = () => {
|
|
3029
3093
|
this.getQueuesKeys().forEach((queryKey) => this.cancelRunningRequests(queryKey));
|
|
3094
|
+
[...this.runningRequests.keys()].forEach((queryKey) => this.setRunningRequests(queryKey, []));
|
|
3030
3095
|
this.runningRequests.clear();
|
|
3031
3096
|
this.storage.clear();
|
|
3032
3097
|
this.client.triggerPlugins("onDispatcherCleared", { dispatcher: this });
|
|
@@ -3076,6 +3141,17 @@ var Dispatcher = class {
|
|
|
3076
3141
|
return this.getRunningRequests(queryKey).find((req) => req.requestId === requestId);
|
|
3077
3142
|
};
|
|
3078
3143
|
/**
|
|
3144
|
+
* Single place for changing the running requests - notifies about the change
|
|
3145
|
+
*/
|
|
3146
|
+
setRunningRequests = (queryKey, runningRequests) => {
|
|
3147
|
+
const previousRequests = this.getRunningRequests(queryKey);
|
|
3148
|
+
this.runningRequests.set(queryKey, runningRequests);
|
|
3149
|
+
if (previousRequests.length !== runningRequests.length || previousRequests.some((req, i) => req !== runningRequests[i])) this.events.emitRunningRequestsChanged({
|
|
3150
|
+
queryKey,
|
|
3151
|
+
runningRequests
|
|
3152
|
+
});
|
|
3153
|
+
};
|
|
3154
|
+
/**
|
|
3079
3155
|
* Add request to the running requests list
|
|
3080
3156
|
*/
|
|
3081
3157
|
addRunningRequest = (queryKey, requestId, request) => {
|
|
@@ -3084,9 +3160,7 @@ var Dispatcher = class {
|
|
|
3084
3160
|
request,
|
|
3085
3161
|
timestamp: Date.now()
|
|
3086
3162
|
};
|
|
3087
|
-
|
|
3088
|
-
runningRequests.push(newRunningRequest);
|
|
3089
|
-
this.runningRequests.set(queryKey, runningRequests);
|
|
3163
|
+
this.setRunningRequests(queryKey, [...this.getRunningRequests(queryKey), newRunningRequest]);
|
|
3090
3164
|
return newRunningRequest;
|
|
3091
3165
|
};
|
|
3092
3166
|
/**
|
|
@@ -3123,20 +3197,20 @@ var Dispatcher = class {
|
|
|
3123
3197
|
}
|
|
3124
3198
|
return true;
|
|
3125
3199
|
});
|
|
3126
|
-
this.
|
|
3200
|
+
this.setRunningRequests(queryKey, requests);
|
|
3127
3201
|
};
|
|
3128
3202
|
/**
|
|
3129
3203
|
* Delete all started requests, but do NOT clear it from queue and do NOT cancel them
|
|
3130
3204
|
*/
|
|
3131
3205
|
deleteRunningRequests = (queryKey) => {
|
|
3132
|
-
this.
|
|
3206
|
+
this.setRunningRequests(queryKey, []);
|
|
3133
3207
|
};
|
|
3134
3208
|
/**
|
|
3135
3209
|
* Delete request by id, but do NOT clear it from queue and do NOT cancel them
|
|
3136
3210
|
*/
|
|
3137
3211
|
deleteRunningRequest = (queryKey, requestId) => {
|
|
3138
3212
|
const runningRequests = this.getRunningRequests(queryKey);
|
|
3139
|
-
this.
|
|
3213
|
+
this.setRunningRequests(queryKey, runningRequests.filter((req) => req.requestId !== requestId));
|
|
3140
3214
|
};
|
|
3141
3215
|
/**
|
|
3142
3216
|
* Get count of requests from the same queryKey
|
|
@@ -3456,6 +3530,12 @@ var getDispatcherChangeKey = () => {
|
|
|
3456
3530
|
var getDispatcherChangeByKey = (key) => {
|
|
3457
3531
|
return `${key}-change-event`;
|
|
3458
3532
|
};
|
|
3533
|
+
var getDispatcherRunningKey = () => {
|
|
3534
|
+
return `running-event`;
|
|
3535
|
+
};
|
|
3536
|
+
var getDispatcherRunningByKey = (key) => {
|
|
3537
|
+
return `${key}-running-event`;
|
|
3538
|
+
};
|
|
3459
3539
|
var getIsEqualTimestamp = (currentTimestamp, threshold, queueTimestamp) => {
|
|
3460
3540
|
if (!queueTimestamp) return false;
|
|
3461
3541
|
return queueTimestamp - currentTimestamp <= threshold;
|
|
@@ -4118,6 +4198,7 @@ var applyObjectDefaults = (request, config) => {
|
|
|
4118
4198
|
if (config.offline !== void 0) result = result.setOffline(config.offline);
|
|
4119
4199
|
if (config.deduplicate !== void 0) result = result.setDeduplicate(config.deduplicate);
|
|
4120
4200
|
if (config.deduplicateTime !== void 0 && config.deduplicateTime !== null) result = result.setDeduplicateTime(config.deduplicateTime);
|
|
4201
|
+
if (config.structuralSharing !== void 0) result = result.setStructuralSharing(config.structuralSharing);
|
|
4121
4202
|
return result;
|
|
4122
4203
|
};
|
|
4123
4204
|
var applyDefaults = (request, context) => {
|
|
@@ -4223,6 +4304,6 @@ var createConfiguration = () => {
|
|
|
4223
4304
|
return (defaults) => defaults;
|
|
4224
4305
|
};
|
|
4225
4306
|
//#endregion
|
|
4226
|
-
export { AbortError, Adapter, AppEvents, AppManager, Cache, Client, DeletedError, Dispatcher, DispatcherMode, EventEmitter, HttpAdapter, HttpMethods, LoggerManager, Plugin, Request, RequestManager, RequestProcessingError, SAFE_HTTP_METHODS, Time, TimeoutError, UnexpectedError, appManagerInitialOptions, canRetryRequest, createClient, createConfiguration, createRequestHooks, createSdk, defaultMapper, defaultTimeout, getAbortByAbortKey, getAbortByIdKey, getAbortKey, getAdapter, getAdapterBindings, getAdapterHeaders, getAdapterOnError, getAdapterPayload, getAppManagerEvents, getCacheByKey, getCacheData, getCacheEvents, getCacheKey, getDeleteByKey, getDeleteKey, getDispatcherChangeByKey, getDispatcherChangeKey, getDispatcherDrainedByKey, getDispatcherDrainedKey, getDispatcherEvents, getDispatcherStatusByKey, getDispatcherStatusKey, getDownloadProgressByIdKey, getDownloadProgressByQueryKey, getDownloadProgressKey, getErrorMessage, getInvalidateByKey, getInvalidateKey, getIsEqualTimestamp, getLoadingByCacheKey, getLoadingByIdKey, getLoadingByQueryKey, getLoadingKey, getProgressData, getProgressValue, getRemoveByIdKey, getRemoveByQueryKey, getRemoveKey, getRequestDeduplicatedByCacheKey, getRequestDeduplicatedByIdKey, getRequestDeduplicatedByQueryKey, getRequestDeduplicatedKey, getRequestDispatcher, getRequestEta, getRequestKey, getRequestManagerEvents, getRequestStarByQueryKey, getRequestStartByIdKey, getRequestStartKey, getRequestType, getResponseByCacheKey, getResponseByIdKey, getResponseHeaders, getResponseKey, getResponseStartByIdKey, getResponseStartByQueryKey, getResponseStartKey, getSimpleKey, getTime, getUniqueRequestId, getUploadProgressByIdKey, getUploadProgressByQueryKey, getUploadProgressKey, handleResponse, hasDocument, hasWindow, interceptRequest, interceptResponse, logLevelOrder, logger, loggerColors, loggerStyles, mapResponseForSend, mocker, onDocumentEvent, onWindowEvent, parseErrorResponse, parseResponse, resolveClientMode, scopeKey, sendRequest, stringifyDefaultOptions, stringifyKey, stringifyQueryParams, stringifyValue, xhrExtra };
|
|
4307
|
+
export { AbortError, Adapter, AppEvents, AppManager, Cache, Client, DeletedError, Dispatcher, DispatcherMode, EventEmitter, HttpAdapter, HttpMethods, LoggerManager, Plugin, Request, RequestManager, RequestProcessingError, SAFE_HTTP_METHODS, Time, TimeoutError, UnexpectedError, appManagerInitialOptions, canRetryRequest, createClient, createConfiguration, createRequestHooks, createSdk, defaultMapper, defaultTimeout, getAbortByAbortKey, getAbortByIdKey, getAbortKey, getAdapter, getAdapterBindings, getAdapterHeaders, getAdapterOnError, getAdapterPayload, getAppManagerEvents, getCacheByKey, getCacheData, getCacheEvents, getCacheKey, getDeleteByKey, getDeleteKey, getDispatcherChangeByKey, getDispatcherChangeKey, getDispatcherDrainedByKey, getDispatcherDrainedKey, getDispatcherEvents, getDispatcherRunningByKey, getDispatcherRunningKey, getDispatcherStatusByKey, getDispatcherStatusKey, getDownloadProgressByIdKey, getDownloadProgressByQueryKey, getDownloadProgressKey, getErrorMessage, getInvalidateByKey, getInvalidateKey, getIsEqualTimestamp, getLoadingByCacheKey, getLoadingByIdKey, getLoadingByQueryKey, getLoadingKey, getProgressData, getProgressValue, getRemoveByIdKey, getRemoveByQueryKey, getRemoveKey, getRequestDeduplicatedByCacheKey, getRequestDeduplicatedByIdKey, getRequestDeduplicatedByQueryKey, getRequestDeduplicatedKey, getRequestDispatcher, getRequestEta, getRequestKey, getRequestManagerEvents, getRequestStarByQueryKey, getRequestStartByIdKey, getRequestStartKey, getRequestType, getResponseByCacheKey, getResponseByIdKey, getResponseHeaders, getResponseKey, getResponseStartByIdKey, getResponseStartByQueryKey, getResponseStartKey, getSimpleKey, getTime, getUniqueRequestId, getUploadProgressByIdKey, getUploadProgressByQueryKey, getUploadProgressKey, handleResponse, hasDocument, hasWindow, interceptRequest, interceptResponse, isPlainObject, logLevelOrder, logger, loggerColors, loggerStyles, mapResponseForSend, mocker, onDocumentEvent, onWindowEvent, parseErrorResponse, parseResponse, replaceEqualDeep, resolveClientMode, scopeKey, sendRequest, stringifyDefaultOptions, stringifyKey, stringifyQueryParams, stringifyValue, xhrExtra };
|
|
4227
4308
|
|
|
4228
4309
|
//# sourceMappingURL=index.mjs.map
|