@ethlete/query 5.32.1 → 5.32.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.
@@ -1,4 +1,3 @@
1
- import { HttpErrorResponse } from '@angular/common/http';
2
1
  import { Signal } from '@angular/core';
3
2
  import { QueryArgs, QuerySnapshot, RequestArgs } from '../http';
4
3
  import { BearerAuthProviderConfig, BearerAuthProviderTokens } from './bearer-auth-provider-config';
@@ -53,7 +52,6 @@ export type BearerAuthProvider<TLoginArgs extends QueryArgs, TTokenLoginArgs ext
53
52
  * The latest executed query that was not triggered internally.
54
53
  */
55
54
  latestExecutedQuery: Signal<QuerySnapshotWithType<TLoginArgs, TTokenLoginArgs, TTokenRefreshArgs, TSelectRoleArgs> | null>;
56
- onRefreshFailure?: (callback: (error: HttpErrorResponse) => void) => void;
57
55
  /**
58
56
  * A signal that contains the current access and refresh tokens.
59
57
  */
@@ -1,4 +1,4 @@
1
- import { DestroyRef, EnvironmentInjector } from '@angular/core';
1
+ import { DestroyRef, EnvironmentInjector, ɵEffectScheduler } from '@angular/core';
2
2
  import { QueryClient } from './query-client';
3
3
  import { QueryClientConfig } from './query-client-config';
4
4
  export type SetupQueryDependenciesOptions = {
@@ -13,5 +13,7 @@ export type QueryDependencies = {
13
13
  client: QueryClient;
14
14
  /** The injector of the query */
15
15
  injector: EnvironmentInjector;
16
+ /** The effect scheduler */
17
+ effectScheduler: ɵEffectScheduler;
16
18
  };
17
19
  export declare const setupQueryDependencies: (options: SetupQueryDependenciesOptions) => QueryDependencies;
@@ -15,9 +15,11 @@ import { QueryState } from './query-state';
15
15
  */
16
16
  export declare const CLEAR_QUERY_ARGS: unique symbol;
17
17
  export type ClearQueryArgs = typeof CLEAR_QUERY_ARGS;
18
- export declare const QUERY_EFFECT_ERROR_MESSAGE = "Effect triggered too often. This is probably due to a circular dependency inside the query.";
19
- /** A angular effect that will throw an error in dev mode if it is called too often. This indicates a circular dependency inside the effect. */
20
- export declare const queryEffect: (fn: (isFirstRun: boolean) => void, errorMessage: string, options?: CreateEffectOptions) => import("@angular/core").EffectRef;
18
+ /** A angular effect that can be nested inside another effect */
19
+ export declare const nestedEffect: (fn: () => void, options?: CreateEffectOptions) => import("@angular/core").EffectRef;
20
+ export declare const circularQueryDependencyChecker: () => {
21
+ check: () => void;
22
+ };
21
23
  export declare const shouldAutoExecuteQuery: (method: QueryMethod) => method is "GET" | "HEAD" | "OPTIONS";
22
24
  export declare const shouldAutoExecuteGqlQuery: (method: GqlQueryMethod) => method is "QUERY";
23
25
  export declare const extractExpiresInSeconds: (headers: HttpHeaders) => number | null;
@@ -4,4 +4,4 @@ import { InternalSecureCreateQueryCreatorOptions } from './secure-query-creator'
4
4
  export type CreateSecureQueryExecuteOptions<TArgs extends QueryArgs> = Omit<CreateQueryExecuteOptions<TArgs>, 'creatorInternals'> & {
5
5
  creatorInternals: InternalSecureCreateQueryCreatorOptions<TArgs>;
6
6
  };
7
- export declare const createSecureExecuteFn: <TArgs extends QueryArgs>(options: CreateSecureQueryExecuteOptions<TArgs>) => InternalQueryExecute<TArgs>;
7
+ export declare const createSecureExecuteFn: <TArgs extends QueryArgs>(executeOptions: CreateSecureQueryExecuteOptions<TArgs>) => InternalQueryExecute<TArgs>;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ethlete/query",
3
- "version": "5.32.1",
3
+ "version": "5.32.3",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@angular/common": "19.2.0",
7
- "@angular/core": "19.2.0",
8
- "@angular/forms": "19.2.0",
9
- "@angular/router": "19.2.0",
6
+ "@angular/common": "19.2.1",
7
+ "@angular/core": "19.2.1",
8
+ "@angular/forms": "19.2.1",
9
+ "@angular/router": "19.2.1",
10
10
  "@ethlete/core": "^4.0.3",
11
11
  "@ethlete/types": "^1.6.2",
12
12
  "rxjs": "7.8.2",