@lunora/angular 1.0.0-alpha.4 → 1.0.0-alpha.5
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/dist/index.d.mts +6 -4
- package/dist/index.d.ts +6 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DestroyRef, Signal, InjectionToken, EnvironmentProviders } from '@angular/core';
|
|
2
2
|
import { LunoraClient, User, LunoraClientOptions, ConnectionStatus, SubscriptionError, Preloaded, FunctionReference, ArgsOf, ReturnOf, MutationCallOptions, MutatorHandle } from '@lunora/client';
|
|
3
|
-
export type { ArgsOf, ConnectionStatus, FunctionReference, LunoraClient, LunoraClientOptions, MutationCallOptions, ReturnOf, SubscriptionError, Unsubscribe } from '@lunora/client';
|
|
3
|
+
export type { ArgsOf, ConnectionStatus, FunctionReference, LunoraClient, LunoraClientOptions, MutationCallOptions, Preloaded, ReturnOf, SubscriptionError, Unsubscribe } from '@lunora/client';
|
|
4
4
|
import { PaginationStatus } from '@lunora/client/pagination';
|
|
5
5
|
import { RateLimitStatus, RateLimitConfig } from '@lunora/ratelimit';
|
|
6
6
|
export { SKIP } from '@lunora/client/query';
|
|
@@ -102,6 +102,8 @@ interface ConnectionStatusOptions {
|
|
|
102
102
|
declare const connectionStatus: (options?: ConnectionStatusOptions) => Signal<ConnectionStatus>;
|
|
103
103
|
/** The value kinds a flag resolves to — OpenFeature's boolean / number / string / structured (JSON) flags. */
|
|
104
104
|
type FlagValue = boolean | number | string | Record<string, unknown> | unknown[] | null;
|
|
105
|
+
/** Targeting context bag forwarded to the OpenFeature provider. */
|
|
106
|
+
type FlagContext = Record<string, unknown>;
|
|
105
107
|
interface FlagOptions {
|
|
106
108
|
/** Client to bind to. Defaults to the injected `LUNORA_CLIENT`. */
|
|
107
109
|
client?: LunoraClient;
|
|
@@ -109,7 +111,7 @@ interface FlagOptions {
|
|
|
109
111
|
* Per-call targeting context merged on top of the app's default `identify`
|
|
110
112
|
* targeting key.
|
|
111
113
|
*/
|
|
112
|
-
context?:
|
|
114
|
+
context?: FlagContext;
|
|
113
115
|
/** `DestroyRef` whose `onDestroy` tears down the subscription. Defaults to `inject(DestroyRef)`. */
|
|
114
116
|
destroyRef?: DestroyRef;
|
|
115
117
|
}
|
|
@@ -138,7 +140,7 @@ interface FlagsOptions {
|
|
|
138
140
|
* Targeting context shared by every flag in the set, merged on top of the
|
|
139
141
|
* app's default `identify` targeting key.
|
|
140
142
|
*/
|
|
141
|
-
context?:
|
|
143
|
+
context?: FlagContext;
|
|
142
144
|
/** `DestroyRef` whose `onDestroy` tears down the subscriptions. Defaults to `inject(DestroyRef)`. */
|
|
143
145
|
destroyRef?: DestroyRef;
|
|
144
146
|
}
|
|
@@ -497,4 +499,4 @@ interface SubscriptionResult<T> {
|
|
|
497
499
|
* ```
|
|
498
500
|
*/
|
|
499
501
|
declare const subscription: <F extends FunctionReference>(reference: F, args: ArgsOf<F> | "skip", options?: SubscriptionOptions) => SubscriptionResult<ReturnOf<F>>;
|
|
500
|
-
export { type AuthOptions, type AuthResult, type ConnectionStatusOptions, type FlagOptions, type FlagsOptions, type HydratePreloadedOptions, type HydratePreloadedResult, type InfiniteQueryResult, LUNORA_CLIENT, type LiveQueryOptions, type MutateOptions, type MutatorResult, type PaginatedQueryOptions, type PaginatedQueryResult, type PresenceOptions, type PresenceResult, type ProvideLunoraOptions, type RateLimitOptions, type RateLimitResult, type SubscriptionOptions, type SubscriptionResult, auth, connectionStatus, flag, flags, hydratePreloaded, infiniteQuery, injectLunoraClient, liveQuery, mutate, mutator, paginatedQuery, presence, provideLunora, rateLimit, subscription };
|
|
502
|
+
export { type AuthOptions, type AuthResult, type ConnectionStatusOptions, type FlagContext, type FlagOptions, type FlagValue, type FlagsOptions, type HeartbeatReference, type HydratePreloadedOptions, type HydratePreloadedResult, type InfiniteQueryResult, LUNORA_CLIENT, type ListPresentReference, type LiveQueryOptions, type MutateOptions, type MutatorResult, type PaginatedQueryOptions, type PaginatedQueryResult, type PresenceOptions, type PresenceResult, type ProvideLunoraOptions, type RateLimitOptions, type RateLimitResult, type SubscriptionOptions, type SubscriptionResult, auth, connectionStatus, flag, flags, hydratePreloaded, infiniteQuery, injectLunoraClient, liveQuery, mutate, mutator, paginatedQuery, presence, provideLunora, rateLimit, subscription };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DestroyRef, Signal, InjectionToken, EnvironmentProviders } from '@angular/core';
|
|
2
2
|
import { LunoraClient, User, LunoraClientOptions, ConnectionStatus, SubscriptionError, Preloaded, FunctionReference, ArgsOf, ReturnOf, MutationCallOptions, MutatorHandle } from '@lunora/client';
|
|
3
|
-
export type { ArgsOf, ConnectionStatus, FunctionReference, LunoraClient, LunoraClientOptions, MutationCallOptions, ReturnOf, SubscriptionError, Unsubscribe } from '@lunora/client';
|
|
3
|
+
export type { ArgsOf, ConnectionStatus, FunctionReference, LunoraClient, LunoraClientOptions, MutationCallOptions, Preloaded, ReturnOf, SubscriptionError, Unsubscribe } from '@lunora/client';
|
|
4
4
|
import { PaginationStatus } from '@lunora/client/pagination';
|
|
5
5
|
import { RateLimitStatus, RateLimitConfig } from '@lunora/ratelimit';
|
|
6
6
|
export { SKIP } from '@lunora/client/query';
|
|
@@ -102,6 +102,8 @@ interface ConnectionStatusOptions {
|
|
|
102
102
|
declare const connectionStatus: (options?: ConnectionStatusOptions) => Signal<ConnectionStatus>;
|
|
103
103
|
/** The value kinds a flag resolves to — OpenFeature's boolean / number / string / structured (JSON) flags. */
|
|
104
104
|
type FlagValue = boolean | number | string | Record<string, unknown> | unknown[] | null;
|
|
105
|
+
/** Targeting context bag forwarded to the OpenFeature provider. */
|
|
106
|
+
type FlagContext = Record<string, unknown>;
|
|
105
107
|
interface FlagOptions {
|
|
106
108
|
/** Client to bind to. Defaults to the injected `LUNORA_CLIENT`. */
|
|
107
109
|
client?: LunoraClient;
|
|
@@ -109,7 +111,7 @@ interface FlagOptions {
|
|
|
109
111
|
* Per-call targeting context merged on top of the app's default `identify`
|
|
110
112
|
* targeting key.
|
|
111
113
|
*/
|
|
112
|
-
context?:
|
|
114
|
+
context?: FlagContext;
|
|
113
115
|
/** `DestroyRef` whose `onDestroy` tears down the subscription. Defaults to `inject(DestroyRef)`. */
|
|
114
116
|
destroyRef?: DestroyRef;
|
|
115
117
|
}
|
|
@@ -138,7 +140,7 @@ interface FlagsOptions {
|
|
|
138
140
|
* Targeting context shared by every flag in the set, merged on top of the
|
|
139
141
|
* app's default `identify` targeting key.
|
|
140
142
|
*/
|
|
141
|
-
context?:
|
|
143
|
+
context?: FlagContext;
|
|
142
144
|
/** `DestroyRef` whose `onDestroy` tears down the subscriptions. Defaults to `inject(DestroyRef)`. */
|
|
143
145
|
destroyRef?: DestroyRef;
|
|
144
146
|
}
|
|
@@ -497,4 +499,4 @@ interface SubscriptionResult<T> {
|
|
|
497
499
|
* ```
|
|
498
500
|
*/
|
|
499
501
|
declare const subscription: <F extends FunctionReference>(reference: F, args: ArgsOf<F> | "skip", options?: SubscriptionOptions) => SubscriptionResult<ReturnOf<F>>;
|
|
500
|
-
export { type AuthOptions, type AuthResult, type ConnectionStatusOptions, type FlagOptions, type FlagsOptions, type HydratePreloadedOptions, type HydratePreloadedResult, type InfiniteQueryResult, LUNORA_CLIENT, type LiveQueryOptions, type MutateOptions, type MutatorResult, type PaginatedQueryOptions, type PaginatedQueryResult, type PresenceOptions, type PresenceResult, type ProvideLunoraOptions, type RateLimitOptions, type RateLimitResult, type SubscriptionOptions, type SubscriptionResult, auth, connectionStatus, flag, flags, hydratePreloaded, infiniteQuery, injectLunoraClient, liveQuery, mutate, mutator, paginatedQuery, presence, provideLunora, rateLimit, subscription };
|
|
502
|
+
export { type AuthOptions, type AuthResult, type ConnectionStatusOptions, type FlagContext, type FlagOptions, type FlagValue, type FlagsOptions, type HeartbeatReference, type HydratePreloadedOptions, type HydratePreloadedResult, type InfiniteQueryResult, LUNORA_CLIENT, type ListPresentReference, type LiveQueryOptions, type MutateOptions, type MutatorResult, type PaginatedQueryOptions, type PaginatedQueryResult, type PresenceOptions, type PresenceResult, type ProvideLunoraOptions, type RateLimitOptions, type RateLimitResult, type SubscriptionOptions, type SubscriptionResult, auth, connectionStatus, flag, flags, hydratePreloaded, infiniteQuery, injectLunoraClient, liveQuery, mutate, mutator, paginatedQuery, presence, provideLunora, rateLimit, subscription };
|