@configdirector/nextjs-sdk 1.7.0 → 1.9.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.
Files changed (50) hide show
  1. package/README.md +41 -0
  2. package/dist/client/index.cjs +1 -5
  3. package/dist/client/index.d.cts +52 -216
  4. package/dist/client/index.d.cts.map +1 -1
  5. package/dist/client/index.d.mts +52 -216
  6. package/dist/client/index.d.mts.map +1 -1
  7. package/dist/client/index.mjs +1 -5
  8. package/dist/client/index.mjs.map +1 -1
  9. package/dist/client/installedTestClient-CrHwnJTr.mjs +7 -0
  10. package/dist/client/installedTestClient-CrHwnJTr.mjs.map +1 -0
  11. package/dist/client/installedTestClient-LbS5fHdP.cjs +6 -0
  12. package/dist/client/testing.cjs +2 -0
  13. package/dist/client/testing.d.cts +159 -0
  14. package/dist/client/testing.d.cts.map +1 -0
  15. package/dist/client/testing.d.mts +159 -0
  16. package/dist/client/testing.d.mts.map +1 -0
  17. package/dist/client/testing.mjs +3 -0
  18. package/dist/client/testing.mjs.map +1 -0
  19. package/dist/client/types-DA2VZKNX.d.mts +220 -0
  20. package/dist/client/types-DA2VZKNX.d.mts.map +1 -0
  21. package/dist/client/types-fL7X5zwg.d.cts +220 -0
  22. package/dist/client/types-fL7X5zwg.d.cts.map +1 -0
  23. package/dist/server/DefaultConfigDirectorClient-Cf73kJBQ.cjs +5 -0
  24. package/dist/server/DefaultConfigDirectorClient-ied5Boyk.mjs +6 -0
  25. package/dist/server/DefaultConfigDirectorClient-ied5Boyk.mjs.map +1 -0
  26. package/dist/server/{errors-B1AJJTZ-.mjs → errors-BGpFuqOO.mjs} +1 -1
  27. package/dist/server/{errors-B1AJJTZ-.mjs.map → errors-BGpFuqOO.mjs.map} +1 -1
  28. package/dist/server/index.cjs +1 -1
  29. package/dist/server/index.d.cts +14 -288
  30. package/dist/server/index.d.cts.map +1 -1
  31. package/dist/server/index.d.mts +14 -288
  32. package/dist/server/index.d.mts.map +1 -1
  33. package/dist/server/index.mjs +1 -1
  34. package/dist/server/index.mjs.map +1 -1
  35. package/dist/server/testing.cjs +1 -0
  36. package/dist/server/testing.d.cts +119 -0
  37. package/dist/server/testing.d.cts.map +1 -0
  38. package/dist/server/testing.d.mts +119 -0
  39. package/dist/server/testing.d.mts.map +1 -0
  40. package/dist/server/testing.mjs +2 -0
  41. package/dist/server/testing.mjs.map +1 -0
  42. package/dist/server/types-DnzM2ukj.d.cts +292 -0
  43. package/dist/server/types-DnzM2ukj.d.cts.map +1 -0
  44. package/dist/server/types-qIeNbtNf.d.mts +292 -0
  45. package/dist/server/types-qIeNbtNf.d.mts.map +1 -0
  46. package/package.json +37 -2
  47. package/dist/server/DefaultConfigDirectorClient-C3kQeXox.cjs +0 -5
  48. package/dist/server/DefaultConfigDirectorClient-D7A_CT1K.mjs +0 -6
  49. package/dist/server/DefaultConfigDirectorClient-D7A_CT1K.mjs.map +0 -1
  50. /package/dist/server/{errors-zhcEWVnY.cjs → errors-CCbuIqT8.cjs} +0 -0
@@ -1,2 +1,2 @@
1
1
  const e={off:-1,error:0,warn:1,info:2,debug:3},t=()=>{let e={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:`short`};try{return new Intl.DateTimeFormat(void 0,{...e,fractionalSecondDigits:3})}catch{return new Intl.DateTimeFormat(void 0,e)}};var n=class{constructor(e,n){this.level=e,this.decorator=n,this.level=e,this.decorator=n,this.dateFormatter=t()}debug(e,...t){this.log(console.debug,`debug`,e,...t)}info(e,...t){this.log(console.info,`info`,e,...t)}warn(e,...t){this.log(console.warn,`warn`,e,...t)}error(e,...t){this.log(console.error,`error`,e,...t)}log(t,n,r,...i){e[this.level]>=e[n]&&t(`[${this.dateFormatter.format(new Date)}] ${this.decorator?.decorateMessage(r)}`,...i)}},r=class e extends Error{constructor(t,n){super(t),this.name=`ConfigDirectorConnectionError`,this.status=n,Object.setPrototypeOf(this,e.prototype)}},i=class e extends Error{constructor(t){super(t),this.name=`ConfigDirectorValidationError`,Object.setPrototypeOf(this,e.prototype)}},a=class e extends Error{constructor(t){super(t),this.name=`ConfigDirectorInitializationError`,Object.setPrototypeOf(this,e.prototype)}};export{n as i,a as n,i as r,r as t};
2
- //# sourceMappingURL=errors-B1AJJTZ-.mjs.map
2
+ //# sourceMappingURL=errors-BGpFuqOO.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors-B1AJJTZ-.mjs","names":[],"sources":["../../../shared/src/logger.ts","../../../shared/src/errors.ts"],"sourcesContent":["import type { ConfigDirectorLogger, ConfigDirectorLogMessageDecorator, ConfigDirectorLoggingLevel } from \"./types\";\n\nconst LEVELS: Record<ConfigDirectorLoggingLevel, number> = {\n off: -1,\n error: 0,\n warn: 1,\n info: 2,\n debug: 3,\n};\n\nconst buildDateFormatter = () => {\n const baseOptions: Intl.DateTimeFormatOptions = {\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: \"2-digit\",\n timeZoneName: \"short\",\n };\n\n try {\n return new Intl.DateTimeFormat(\n undefined,\n { ...baseOptions, fractionalSecondDigits: 3 } as Intl.DateTimeFormatOptions,\n );\n } catch {\n return new Intl.DateTimeFormat(undefined, baseOptions);\n }\n};\n\nexport class DefaultConsoleLogger implements ConfigDirectorLogger {\n private readonly dateFormatter;\n\n constructor(private readonly level: ConfigDirectorLoggingLevel, private readonly decorator: ConfigDirectorLogMessageDecorator) {\n this.level = level;\n this.decorator = decorator;\n this.dateFormatter = buildDateFormatter();\n }\n\n debug(message: string, ...args: any): void {\n this.log(console.debug, \"debug\", message, ...args);\n }\n\n info(message: string, ...args: any): void {\n this.log(console.info, \"info\", message, ...args);\n }\n\n warn(message: string, ...args: any): void {\n this.log(console.warn, \"warn\", message, ...args);\n }\n\n error(message: string, ...args: any): void {\n this.log(console.error, \"error\", message, ...args);\n }\n\n protected log(loggerFunction: (...args: any) => void, level: ConfigDirectorLoggingLevel, message: string, ...args: any) {\n if (LEVELS[this.level] >= LEVELS[level]) {\n loggerFunction(`[${this.dateFormatter.format(new Date())}] ${this.decorator?.decorateMessage(message)}`, ...args);\n }\n }\n}\n","export class ConfigDirectorConnectionError extends Error {\n public override readonly name: string = \"ConfigDirectorConnectionError\";\n public readonly status?: number;\n\n constructor(message: string, status?: number) {\n super(message);\n this.status = status;\n\n Object.setPrototypeOf(this, ConfigDirectorConnectionError.prototype);\n }\n}\n\nexport class ConfigDirectorValidationError extends Error {\n public override readonly name: string = \"ConfigDirectorValidationError\";\n\n constructor(message: string) {\n super(message);\n\n Object.setPrototypeOf(this, ConfigDirectorValidationError.prototype);\n }\n}\n\nexport class ConfigDirectorInitializationError extends Error {\n public override readonly name: string = \"ConfigDirectorInitializationError\";\n\n constructor(message: string) {\n super(message);\n\n Object.setPrototypeOf(this, ConfigDirectorInitializationError.prototype);\n }\n}\n"],"mappings":"AAEA,MAAM,EAAqD,CACzD,IAAK,GACL,MAAO,EACP,KAAM,EACN,KAAM,EACN,MAAO,EACR,CAEK,MAA2B,CAC/B,IAAM,EAA0C,CAC9C,KAAM,UACN,MAAO,UACP,IAAK,UACL,KAAM,UACN,OAAQ,UACR,OAAQ,UACR,aAAc,QACf,CAED,GAAI,CACF,OAAO,IAAI,KAAK,eACd,IAAA,GACA,CAAE,GAAG,EAAa,uBAAwB,EAAG,CAC9C,MACK,CACN,OAAO,IAAI,KAAK,eAAe,IAAA,GAAW,EAAY,GAI1D,IAAa,EAAb,KAAkE,CAGhE,YAAY,EAAoD,EAA+D,CAAlG,KAAA,MAAA,EAAoD,KAAA,UAAA,EAC/E,KAAK,MAAQ,EACb,KAAK,UAAY,EACjB,KAAK,cAAgB,GAAoB,CAG3C,MAAM,EAAiB,GAAG,EAAiB,CACzC,KAAK,IAAI,QAAQ,MAAO,QAAS,EAAS,GAAG,EAAK,CAGpD,KAAK,EAAiB,GAAG,EAAiB,CACxC,KAAK,IAAI,QAAQ,KAAM,OAAQ,EAAS,GAAG,EAAK,CAGlD,KAAK,EAAiB,GAAG,EAAiB,CACxC,KAAK,IAAI,QAAQ,KAAM,OAAQ,EAAS,GAAG,EAAK,CAGlD,MAAM,EAAiB,GAAG,EAAiB,CACzC,KAAK,IAAI,QAAQ,MAAO,QAAS,EAAS,GAAG,EAAK,CAGpD,IAAc,EAAwC,EAAmC,EAAiB,GAAG,EAAW,CAClH,EAAO,KAAK,QAAU,EAAO,IAC/B,EAAe,IAAI,KAAK,cAAc,OAAO,IAAI,KAAO,CAAC,IAAI,KAAK,WAAW,gBAAgB,EAAQ,GAAI,GAAG,EAAK,GC1D1G,EAAb,MAAa,UAAsC,KAAM,CAIvD,YAAY,EAAiB,EAAiB,CAC5C,MAAM,EAAQ,CAJhB,KAAyB,KAAe,gCAKtC,KAAK,OAAS,EAEd,OAAO,eAAe,KAAM,EAA8B,UAAU,GAI3D,EAAb,MAAa,UAAsC,KAAM,CAGvD,YAAY,EAAiB,CAC3B,MAAM,EAAQ,CAHhB,KAAyB,KAAe,gCAKtC,OAAO,eAAe,KAAM,EAA8B,UAAU,GAI3D,EAAb,MAAa,UAA0C,KAAM,CAG3D,YAAY,EAAiB,CAC3B,MAAM,EAAQ,CAHhB,KAAyB,KAAe,oCAKtC,OAAO,eAAe,KAAM,EAAkC,UAAU"}
1
+ {"version":3,"file":"errors-BGpFuqOO.mjs","names":[],"sources":["../../../shared/src/logger.ts","../../../shared/src/errors.ts"],"sourcesContent":["import type { ConfigDirectorLogger, ConfigDirectorLogMessageDecorator, ConfigDirectorLoggingLevel } from \"./types\";\n\nconst LEVELS: Record<ConfigDirectorLoggingLevel, number> = {\n off: -1,\n error: 0,\n warn: 1,\n info: 2,\n debug: 3,\n};\n\nconst buildDateFormatter = () => {\n const baseOptions: Intl.DateTimeFormatOptions = {\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: \"2-digit\",\n timeZoneName: \"short\",\n };\n\n try {\n return new Intl.DateTimeFormat(\n undefined,\n { ...baseOptions, fractionalSecondDigits: 3 } as Intl.DateTimeFormatOptions,\n );\n } catch {\n return new Intl.DateTimeFormat(undefined, baseOptions);\n }\n};\n\nexport class DefaultConsoleLogger implements ConfigDirectorLogger {\n private readonly dateFormatter;\n\n constructor(private readonly level: ConfigDirectorLoggingLevel, private readonly decorator: ConfigDirectorLogMessageDecorator) {\n this.level = level;\n this.decorator = decorator;\n this.dateFormatter = buildDateFormatter();\n }\n\n debug(message: string, ...args: any): void {\n this.log(console.debug, \"debug\", message, ...args);\n }\n\n info(message: string, ...args: any): void {\n this.log(console.info, \"info\", message, ...args);\n }\n\n warn(message: string, ...args: any): void {\n this.log(console.warn, \"warn\", message, ...args);\n }\n\n error(message: string, ...args: any): void {\n this.log(console.error, \"error\", message, ...args);\n }\n\n protected log(loggerFunction: (...args: any) => void, level: ConfigDirectorLoggingLevel, message: string, ...args: any) {\n if (LEVELS[this.level] >= LEVELS[level]) {\n loggerFunction(`[${this.dateFormatter.format(new Date())}] ${this.decorator?.decorateMessage(message)}`, ...args);\n }\n }\n}\n","export class ConfigDirectorConnectionError extends Error {\n public override readonly name: string = \"ConfigDirectorConnectionError\";\n public readonly status?: number;\n\n constructor(message: string, status?: number) {\n super(message);\n this.status = status;\n\n Object.setPrototypeOf(this, ConfigDirectorConnectionError.prototype);\n }\n}\n\nexport class ConfigDirectorValidationError extends Error {\n public override readonly name: string = \"ConfigDirectorValidationError\";\n\n constructor(message: string) {\n super(message);\n\n Object.setPrototypeOf(this, ConfigDirectorValidationError.prototype);\n }\n}\n\nexport class ConfigDirectorInitializationError extends Error {\n public override readonly name: string = \"ConfigDirectorInitializationError\";\n\n constructor(message: string) {\n super(message);\n\n Object.setPrototypeOf(this, ConfigDirectorInitializationError.prototype);\n }\n}\n"],"mappings":"AAEA,MAAM,EAAqD,CACzD,IAAK,GACL,MAAO,EACP,KAAM,EACN,KAAM,EACN,MAAO,EACR,CAEK,MAA2B,CAC/B,IAAM,EAA0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b,MAAa,UAA0C,KAAM,CAG3D,YAAY,EAAiB,CAC3B,MAAM,EAAQ,CAHhB,KAAyB,KAAe,oCAKtC,OAAO,eAAe,KAAM,EAAkC,UAAU"}
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./errors-zhcEWVnY.cjs`);require(`./DefaultConfigDirectorClient-C3kQeXox.cjs`);let t=require(`@configdirector/nextjs-sdk/client`),n=require(`react/jsx-runtime`);var r=class{decorateMessage(e){return`[ConfigDirector:nextjs-sdk] ${e}`}};const i=(t,n)=>new e.i(t??`warn`,n??new r),a=(t,n)=>new e.i(t,n??new r);async function o(t){if(process.env.NEXT_RUNTIME===`nodejs`){if(!t.serverSdkKey){let t=`The ConfigDirector serverSdkKey must be provided to register(). You can pass it via process.env.CONFIGDIRECTOR_SERVER_KEY.`;throw i().error(t),new e.n(t)}if(!globalThis.__configDirectorServerClient){let{DefaultConfigDirectorClient:e}=await Promise.resolve().then(()=>require(`./DefaultConfigDirectorClient-C3kQeXox.cjs`)),{serverSdkKey:n,...r}=t;globalThis.__configDirectorAppMeta={appName:t.metadata?.appName,appVersion:t.metadata?.appVersion};let i=new e(n,{sdkName:`nextjs-sdk`,sdkVersion:`1.7.0`},r);globalThis.__configDirectorServerClient=i,await i.initialize()}}}function s(){return globalThis.__configDirectorAppMeta??{}}function c(){if(!globalThis.__configDirectorServerClient)throw new e.n(`[ConfigDirector] Server client not initialized. Make sure to call register() in your instrumentation.ts file before using the SDK.`);return globalThis.__configDirectorServerClient}const l=i();function u(e){try{return c().getAllConfigs(e)}catch(e){return l.error(`Error retrieving SSR config set:`,e),{}}}async function d({children:e,configKeys:r,...i}){let a=u({context:i.context,configKeys:r}),o=s();return(0,n.jsx)(t.ConfigDirectorProvider,{...i,appName:i.appName??o.appName,appVersion:i.appVersion??o.appVersion,initialConfigs:a,children:e})}exports.ConfigDirectorProvider=d,exports.createConsoleLogger=a,exports.generateSsrConfigSet=u,exports.getAppMeta=s,exports.getConfigClient=c,exports.register=o;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./DefaultConfigDirectorClient-Cf73kJBQ.cjs`);const e=require(`./errors-CCbuIqT8.cjs`);let t=require(`@configdirector/nextjs-sdk/client`),n=require(`react/jsx-runtime`);var r=class{decorateMessage(e){return`[ConfigDirector:nextjs-sdk] ${e}`}};const i=(t,n)=>new e.i(t??`warn`,n??new r),a=(t,n)=>new e.i(t,n??new r);async function o(t){if(process.env.NEXT_RUNTIME===`nodejs`){if(!t.serverSdkKey){let t=`The ConfigDirector serverSdkKey must be provided to register(). You can pass it via process.env.CONFIGDIRECTOR_SERVER_KEY.`;throw i().error(t),new e.n(t)}if(!globalThis.__configDirectorServerClient){let{DefaultConfigDirectorClient:e}=await Promise.resolve().then(()=>require(`./DefaultConfigDirectorClient-Cf73kJBQ.cjs`)).then(e=>e.n),{serverSdkKey:n,...r}=t;globalThis.__configDirectorAppMeta={appName:t.metadata?.appName,appVersion:t.metadata?.appVersion};let i=new e(n,{sdkName:`nextjs-sdk`,sdkVersion:`1.9.0`},r);globalThis.__configDirectorServerClient=i,await i.initialize()}}}function s(){return globalThis.__configDirectorAppMeta??{}}function c(){if(!globalThis.__configDirectorServerClient)throw new e.n(`[ConfigDirector] Server client not initialized. Make sure to call register() in your instrumentation.ts file before using the SDK.`);return globalThis.__configDirectorServerClient}const l=i();function u(e){try{return c().getAllConfigs(e)}catch(e){return l.error(`Error retrieving SSR config set:`,e),{}}}async function d({children:e,configKeys:r,...i}){let a=u({context:i.context,configKeys:r}),o=s();return(0,n.jsx)(t.ConfigDirectorProvider,{...i,appName:i.appName??o.appName,appVersion:i.appVersion??o.appVersion,initialConfigs:a,children:e})}exports.ConfigDirectorProvider=d,exports.createConsoleLogger=a,exports.generateSsrConfigSet=u,exports.getAppMeta=s,exports.getConfigClient=c,exports.register=o;
@@ -1,294 +1,7 @@
1
+ import { a as ConfigDirectorLogger, c as ConfigEvaluation, d as ConnectionMode, i as ConfigDirectorLogMessageDecorator, l as ConfigState, n as ConfigDirectorClientOptions, o as ConfigDirectorLoggingLevel, r as ConfigDirectorContext, s as ConfigDirectorMetaContext, t as ConfigDirectorClient, u as ConfigValueType } from "./types-DnzM2ukj.cjs";
1
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
3
  import { PropsWithChildren } from "react";
3
4
 
4
- //#region ../shared/src/types.d.ts
5
- declare const ConfigTypeList: readonly ["custom", "boolean", "string", "integer", "float", "enum", "url", "json"];
6
- type ConfigType = (typeof ConfigTypeList)[number];
7
- type ConfigEnumLikeType = {
8
- [key: string]: string | number;
9
- };
10
- type ConfigValueType = string | number | boolean | object | ConfigEnumLikeType;
11
- type ConfigState = {
12
- id: string;
13
- key: string;
14
- type: ConfigType;
15
- value: string | undefined | null;
16
- valueId?: string | undefined | null;
17
- };
18
- type ConfigDirectorLoggingLevel = "debug" | "info" | "warn" | "error" | "off";
19
- interface ConfigDirectorLogger {
20
- debug(message: string, ...args: any): void;
21
- info(message: string, ...args: any): void;
22
- warn(message: string, ...args: any): void;
23
- error(message: string, ...args: any): void;
24
- }
25
- interface ConfigDirectorLogMessageDecorator {
26
- decorateMessage(message: string): string;
27
- }
28
- type EvaluationReason = "found-match" | "config-state-missing" | "client-not-ready" | "type-mismatch" | "value-missing" | "invalid-number" | "invalid-json" | "invalid-boolean";
29
- type ConfigEvaluation = {
30
- key: string;
31
- value: ConfigValueType;
32
- valueId?: string;
33
- isDefaultValue: boolean;
34
- reason: EvaluationReason;
35
- context?: ConfigDirectorContext;
36
- };
37
- /**
38
- * The user's context to be sent to ConfigDirector. This context will be used for targeting
39
- * rules evaluation.
40
- */
41
- type ConfigDirectorContext = {
42
- /**
43
- * The user's identifier. This should be a value that uniquely identifies an application
44
- * user.
45
- * In the case of anonymous users, you could generate a UUID or alternatively not provide
46
- * the {@link id} and the SDK will generate a random UUID. However, keep in mind that this
47
- * value is used for segmenting users in percentage rollouts, and changes to the {@link id}
48
- * could result in the user being assigned to a different percentile.
49
- */
50
- id?: string;
51
- /**
52
- * The user's display name. This will be shown in the ConfigDirector dashboard and may be
53
- * used for targeting rules.
54
- */
55
- name?: string;
56
- /**
57
- * Any arbitrary traits for the current user. They will be shown in the ConfigDirector
58
- * dashboard and may be used for targeting rules.
59
- */
60
- traits?: {
61
- [key: string]: unknown;
62
- };
63
- /**
64
- * Whether or not to treat the context as anonymous during evaluation. When `true`, the
65
- * context values will be used for targeting rules evaluation but the context will not be
66
- * persisted and will not appear in the dashboard.
67
- *
68
- * @default false
69
- */
70
- anonymous?: boolean;
71
- };
72
- /**
73
- * Metadata about your application. It is recommended you include these values when configuring
74
- * a ConfigDirector client so that you can use them in targeting rules.
75
- */
76
- type ConfigDirectorMetaContext = {
77
- appVersion?: string;
78
- appName?: string;
79
- };
80
- type ConnectionMode = "streaming" | "polling";
81
- //#endregion
82
- //#region ../js-server-sdk/src/types.d.ts
83
- /**
84
- * Configuration options for the {@link ConfigDirectorClient}
85
- */
86
- type ConfigDirectorClientOptions = {
87
- /**
88
- * Application metadata that remains constant through the lifetime of the connection
89
- */
90
- metadata?: ConfigDirectorMetaContext;
91
- /**
92
- * Connection options
93
- */
94
- connection?: {
95
- /**
96
- * The connection mode to be used, one of `streaming` (default) or `polling`.
97
- * If set to `streaming`, the connection will remain open and receive updates whenever
98
- * config state is updated on the ConfigDirector dashboard.
99
- * When set to `polling`, there will be an initial request to retrieve config state during
100
- * initialization, and additional requests on a `pollingInterval`.
101
- *
102
- * Defaults to `streaming`
103
- */
104
- mode?: ConnectionMode;
105
- /**
106
- * The polling interval in _seconds_ when the `mode` is set to `polling`. This option has no
107
- * effect when the `mode` is set to `streaming`.
108
- *
109
- * Defaults to 60 seconds
110
- */
111
- pollingInterval?: number;
112
- /**
113
- * The timeout, in milliseconds, to be used in initialization and when updating the context.
114
- * If streaming is enabled, the operation (initialization or context update) may still succeed
115
- * after it times out if no unrecoverable errors are encountered (like an invalid SDK key).
116
- * If streaming is disabled, if the operation times out, it will not be retried.
117
- *
118
- * Defaults to 3,000 milliseconds (3 seconds)
119
- */
120
- timeout?: number;
121
- /**
122
- * The base URL to the ConfigDirector SDK server. To be used only when needing to route through a
123
- * proxy to connect to the ConfigDirector SDK server. Please refer to the docs on how to configure
124
- * a proxy for the client SDK.
125
- */
126
- url?: string;
127
- };
128
- /**
129
- * A logger that implements {@link ConfigDirectorLogger}. It defaults to the ConfigDirector console
130
- * logger set to 'warn' level.
131
- *
132
- * The log level of the default logger can be adjusted by creating a default logger with the desired
133
- * level and providing it in this property:
134
- * @example
135
- * import { createClient, createConsoleLogger } from "@configdirector/server-sdk";
136
- * const client = createClient(
137
- * "YOUR-SERVER-SDK-KEY",
138
- * { logger: createConsoleLogger("debug") },
139
- * );
140
- */
141
- logger?: ConfigDirectorLogger;
142
- /**
143
- * Telemetry tunning. It is unlikely these settings need to be adjusted. However, in cases where
144
- * your application has a large number of evaluations per second, you can adjust these settings
145
- * to tune the memory footprint and frequency of telemetry requests.
146
- * Keep in mind that ConfigDirector relies on these telemetry events to provide insights and features
147
- * related to the configs being used.
148
- */
149
- telemetry?: {
150
- /**
151
- * The size limit of telemetry event queues. If the size limit is reached before the events are
152
- * flushed to the network, older events will be dropped.
153
- *
154
- * ConfigDirector keeps a count of dropped events. If the number of dropped events is higher than
155
- * 50% of the total events, ConfigDirector will issue a notification alert in the dashboard.
156
- *
157
- * A number between 100 and 100,000. Defaults to 5,000.
158
- */
159
- eventQueueLimit?: number;
160
- /**
161
- * How often events are flushed and sent over the network in milliseconds.
162
- *
163
- * Decrease this number if your application consistently captures a large number of events in short
164
- * periods of time in order to reduce memory footprint from a large event queue.
165
- *
166
- * Defaults to 30,000 milliseconds (30 seconds)
167
- */
168
- flushInterval?: number;
169
- };
170
- /**
171
- * Handlers for hooks/events emitted by the client. Each hook accepts either a single event handler or
172
- * an array of event handlers.
173
- *
174
- * @example
175
- * import { createClient, createConsoleLogger } from "@configdirector/server-sdk";
176
- * const client = createClient(
177
- * "YOUR-SERVER-SDK-KEY",
178
- * {
179
- * hooks: {
180
- * configEvaluated: (event) => { console.log(event.evaluation); }
181
- * },
182
- * },
183
- * );
184
- */
185
- hooks?: ClientHooks$1;
186
- };
187
- type ClientEvents$1 = {
188
- configsUpdated: {
189
- keys: string[];
190
- };
191
- clientReady: undefined;
192
- configEvaluated: {
193
- evaluation: ConfigEvaluation;
194
- };
195
- connectionError: {
196
- error: Error;
197
- };
198
- };
199
- type ClientHooks$1 = {
200
- clientReady?: HookHandler$1<"clientReady"> | HookHandler$1<"clientReady">[];
201
- configsUpdated?: HookHandler$1<"configsUpdated"> | HookHandler$1<"configsUpdated">[];
202
- configEvaluated?: HookHandler$1<"configEvaluated"> | HookHandler$1<"configEvaluated">[];
203
- connectionError?: HookHandler$1<"connectionError"> | HookHandler$1<"connectionError">[];
204
- };
205
- type HookHandler$1<TEvent extends keyof ClientEvents$1> = (payload: ClientEvents$1[TEvent]) => void;
206
- type WatchHandler<T extends ConfigValueType> = (message: T) => void;
207
- /**
208
- * The ConfigDirector SDK client object.
209
- *
210
- * Applications should create a single instance of `ConfigDirectorClient`, and call
211
- * {@link initialize} during application initialization.
212
- */
213
- interface ConfigDirectorClient {
214
- /**
215
- * Initializes the connection to ConfigDirector to retrieve config definitions. Until
216
- * initialization is successful, all flags will return their default value provided to
217
- * {@link watch} or {@link getValue}.
218
- *
219
- * If the connection fails or is interrupted with a transient error (network error,
220
- * internal server error, etc) the client will continue to attempt to connect. However,
221
- * if the connection fails with a persistent error, like an invalid SDK key, the client will
222
- * not attempt to re-connect and an error will be logged to the console or the provided
223
- * logger.
224
- */
225
- initialize(): Promise<void>;
226
- /**
227
- * Returns whether or not the client is ready after calling {@link initialize}
228
- *
229
- * The definition of ready is that the connection to the server was successful, and config definitions
230
- * were received.
231
- */
232
- get isReady(): boolean;
233
- /**
234
- * Evaluates a config and returns its value based on the current context and targeting rules
235
- *
236
- * @returns The evaluated config value, or the `defaultValue` if the config state was unavailable
237
- * @param configKey The config key to evaluate
238
- * @param defaultValue The default value to be returned if the config state is unavailable. For
239
- * example, if the client cannot connect to the server due to network conditions, or if getValue
240
- * is called before initialization is done.
241
- * @param context The user's context to be used for targeting rules evaluation (optional)
242
- */
243
- getValue<T extends ConfigValueType>(configKey: string, defaultValue: T, context?: ConfigDirectorContext): T;
244
- /**
245
- * Watches for changes to a a config evaluation value. Whenever the config value changes, the
246
- * provided callback function will be called with the new value. Changes can happen due to updates
247
- * to the config in the ConfigDirector dashboard, or if the context is updated via {@link updateContext}.
248
- *
249
- * @returns An 'unwatch' function that can be called to remove the subscriber
250
- *
251
- * @param configKey The config key to watch
252
- * @param defaultValue The default value to be referenced if the config state is unavailable
253
- * @param callback The callback function to be called whenever the config value is updated
254
- * @param context The user's context to be used for targeting rules evaluation (optional)
255
- */
256
- watch<T extends ConfigValueType>(configKey: string, defaultValue: T, callback: WatchHandler<T>, context?: ConfigDirectorContext): () => void;
257
- /**
258
- * Removes a particular subscriber to the given `configKey`, or all subscribers if no callback
259
- * is provided.
260
- *
261
- * @param configKey The config key to remove subscribers from
262
- * @param callback The subscriber to be removed. If not provided, all subscribers are removed for
263
- * the given `configKey`.
264
- */
265
- unwatch<T extends ConfigValueType>(configKey: string, callback?: WatchHandler<T>): void;
266
- /**
267
- * Removes all subscribers from all config keys
268
- */
269
- unwatchAll(): void;
270
- /**
271
- * Returns the evaluated {@link ConfigState} for every known config key, or only the keys
272
- * listed in `configKeys` when provided.
273
- *
274
- * Intended for SSR hydration — does NOT record telemetry events. Returns an empty object
275
- * when the client is not yet ready.
276
- */
277
- getAllConfigs(options?: {
278
- context?: ConfigDirectorContext;
279
- configKeys?: string[];
280
- }): Record<string, ConfigState>;
281
- on<T extends keyof ClientEvents$1>(eventName: T, handler: (args: ClientEvents$1[T]) => void): void;
282
- off<T extends keyof ClientEvents$1>(eventName: T, handler?: (args: ClientEvents$1[T]) => void): void;
283
- /**
284
- * Disposes of the client. All connections are closed, and all event and config key subscribers
285
- * are removed.
286
- *
287
- * Intended to be called when your application shuts down
288
- */
289
- dispose(): void;
290
- }
291
- //#endregion
292
5
  //#region src/server/singleton.d.ts
293
6
  declare global {
294
7
  var __configDirectorServerClient: ConfigDirectorClient | undefined;
@@ -357,6 +70,7 @@ type HookHandler<TEvent extends keyof ClientEvents> = (payload: ClientEvents[TEv
357
70
  type ClientEvents = {
358
71
  configsUpdated: {
359
72
  keys: string[];
73
+ removedKeys: string[];
360
74
  };
361
75
  clientReady: {
362
76
  action: ClientConnectAction;
@@ -401,6 +115,18 @@ type ConfigDirectorProviderOptions = {
401
115
  * Initialization timeout in milliseconds. Defaults to 3000.
402
116
  */
403
117
  timeout?: number;
118
+ /**
119
+ * The connection mode, one of `streaming` or `polling`. In `streaming` mode the connection stays
120
+ * open and receives config updates as they happen. In `polling` mode configs are fetched once during
121
+ * initialization and then again on every `pollingInterval`. Defaults to `streaming`.
122
+ */
123
+ mode?: ConnectionMode;
124
+ /**
125
+ * The polling interval in seconds when `mode` is `polling`. Has no effect in `streaming` mode.
126
+ * Defaults to 60 seconds. A value below the minimum of 30 seconds is raised to 30 seconds and a
127
+ * warning is logged.
128
+ */
129
+ pollingInterval?: number;
404
130
  /**
405
131
  * Initial user context to evaluate targeting rules against.
406
132
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../../shared/src/types.ts","../../../js-server-sdk/src/types.ts","../../src/server/singleton.ts","../../src/server/ssr.ts","../../../js-client-core/src/types.ts","../../../shared/src/logger.ts","../../src/client/types.ts","../../src/server/ConfigDirectorProvider.tsx","../../src/server/logger.ts"],"mappings":";;;;cAAa,cAAA;AAAA,KAUD,UAAA,WAAqB,cAAA;AAAA,KAErB,kBAAA;EAAA,CAAwB,GAAA;AAAA;AAAA,KAExB,eAAA,wCAAuD,kBAAA;AAAA,KAEvD,WAAA;EACV,EAAA;EACA,GAAA;EACA,IAAA,EAAM,UAAA;EACN,KAAA;EACA,OAAA;AAAA;AAAA,KAQU,0BAAA;AAAA,UAEK,oBAAA;EACf,K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AAA,CAAI,cAAA,MAAoB,IAAA,gBAAoB,KAAA,EAAO,0BAAA,EAA4B,OAAA,aAAoB,IAAA;AAAA;;;KCnCnG,6BAAA;ENXqB;;AAEjC;EMaE,MAAA;EACA,OAAA;EACA,UAAA;ENf6C;AAE/C;;EMiBE,GAAA;ENjBiE;;AAEnE;EMmBE,OAAA;;;;EAIA,OAAA,GAAU,qBAAA;ENpBV;;;EMwBA,QAAA,GAAW,0BAAA;EAEX,KAAA,GAAQ,WAAA;ENxBD;AAQT;;;;;AAEA;;;;EMyBE,cAAA,GAAiB,MAAA,SAAe,WAAA;AAAA;;;;;ANxDlC;;KOUY,2BAAA,GAA8B,IAAA,CAAK,6BAAA;EPDrC;;AACV;;;EOME,UAAA;AAAA;APJF;;;;;AAEA;;;;;AAEA;;;;;;;;;;;;AAaA;;;;;AAEA;;;;;;;;;;;;;;;;;;AAUA;;;;;AAIA;;;;;AAUA;;AA3CA,iBOgEsB,sBAAA,CAAA;EACpB,QAAA;EACA,UAAA;EAAA,GACG;AAAA,GACF,iBAAA,CAAkB,2BAAA,IAA4B,OAAA,CAAA,oBAAA,CAAA,GAAA,CAAA,OAAA;;;cChEpC,mBAAA,GACX,KAAA,EAAO,0BAAA,EACP,gBAAA,GAAmB,iCAAA,KAAiC,oBAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/server/singleton.ts","../../src/server/ssr.ts","../../../js-client-core/src/types.ts","../../../shared/src/logger.ts","../../src/client/types.ts","../../src/server/ConfigDirectorProvider.tsx","../../src/server/logger.ts"],"mappings":";;;;;QAIQ,MAAA;EAAA,IACF,4BAAA,EAA8B,oBAAA;EAAA,IAC9B,uBAAA;IAA2B,OAAA;IAAkB,UAAA;EAAA;AAAA;AAAA,KAGvC,eAAA;EALJ;;;;EAUN,YAAA;AAAA,IACE,2BAAA;;;;AANJ;;;;;AAoBA;;;;iBAAsB,QAAA,CAAS,OAAA,EAAS,eAAA,GAAkB,OAAA;AAAA,iBA6B1C,UA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