@launchdarkly/o11y 1.2.0 → 1.3.1

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/record.d.ts CHANGED
@@ -353,9 +353,11 @@ declare type HighlightClassOptions = {
353
353
  disableSessionRecording?: boolean;
354
354
  reportConsoleErrors?: boolean;
355
355
  consoleMethodsToRecord?: ConsoleMethods[];
356
+ recordLaunchDarklySdkLogs?: boolean;
356
357
  privacySetting?: PrivacySettingOption;
357
358
  maskAllInputs?: boolean;
358
359
  maskInputOptions?: MaskInputOptions;
360
+ maskPiiText?: boolean;
359
361
  maskTextClass?: string | RegExp;
360
362
  maskTextSelector?: string;
361
363
  blockClass?: string | RegExp;
@@ -450,6 +452,14 @@ declare type HighlightOptions = CommonOptions & {
450
452
  * @example consoleMethodsToRecord: ['log', 'info', 'error']
451
453
  */
452
454
  consoleMethodsToRecord?: ConsoleMethods[];
455
+ /**
456
+ * Specifies whether console output written by the LaunchDarkly SDK's own
457
+ * logger (lines prefixed `[LaunchDarkly]`) is recorded. Skipped by default:
458
+ * the lines describe the SDK, and the streaming URL they contain embeds
459
+ * the evaluation context.
460
+ * @default false
461
+ */
462
+ recordLaunchDarklySdkLogs?: boolean;
453
463
  enableSegmentIntegration?: boolean;
454
464
  /**
455
465
  * Specifies the environment your application is running in.
@@ -686,10 +696,15 @@ declare type loadedEvent = {
686
696
  data: unknown;
687
697
  };
688
698
 
699
+ /**
700
+ * Per-component debug logger. Like `sdkLog`, its output is SDK-internal: it
701
+ * is written only in debug mode and never captured by the console recorder.
702
+ */
689
703
  declare class Logger {
690
704
  debug: boolean | undefined;
691
705
  name: string | undefined;
692
706
  constructor(debug?: boolean, name?: string);
707
+ private prefix;
693
708
  log(...data: any[]): void;
694
709
  warn(...data: any[]): void;
695
710
  }
@@ -988,6 +1003,15 @@ declare type ObserveOptions = CommonOptions & {
988
1003
  * @example consoleMethodsToRecord: ['log', 'info', 'error']
989
1004
  */
990
1005
  consoleMethodsToRecord?: ConsoleMethods[];
1006
+ /**
1007
+ * Specifies whether console output written by the LaunchDarkly SDK's own
1008
+ * logger (lines prefixed `[LaunchDarkly]`, e.g. stream connection
1009
+ * open/close messages) is recorded as logs. Those lines describe the SDK
1010
+ * rather than your application, and the streaming URL they contain embeds
1011
+ * the evaluation context, so they are skipped by default.
1012
+ * @default false
1013
+ */
1014
+ recordLaunchDarklySdkLogs?: boolean;
991
1015
  /**
992
1016
  * Specifies whether to record performance metrics (e.g. FPS, device memory).
993
1017
  * @default true
@@ -1221,6 +1245,15 @@ declare type RecordOptions = CommonOptions & {
1221
1245
  * Customize the input element types that are masked. Only applies if privacySetting is `none`.
1222
1246
  */
1223
1247
  maskInputOptions?: MaskInputOptions;
1248
+ /**
1249
+ * Whether to mask text on the page that looks like PII, such as emails, phone numbers,
1250
+ * credit card numbers, SSNs, street addresses, and IP addresses.
1251
+ * - `strict`: ignored. All text is always masked.
1252
+ * - `default`: PII-like text is masked unless this is `false`.
1253
+ * - `none`: PII-like text is not masked unless this is `true`.
1254
+ * Does not affect input masking, which is controlled by `maskAllInputs` and `maskInputOptions`.
1255
+ */
1256
+ maskPiiText?: boolean;
1224
1257
  /**
1225
1258
  * Customize which elements' text should be masked by specifying a CSS class name or RegExp.
1226
1259
  * Default class is 'highlight-mask'.
package/dist/record.js CHANGED
@@ -1,7 +1,7 @@
1
- import "./common-DQ61tUu9.js";
2
- import { R as i } from "./record-C_yieA7u.js";
1
+ import "./common-BjaGmQrE.js";
2
+ import { R as i } from "./record-BZHDLKsW.js";
3
3
  import "./LDRecord.js";
4
- import "./buffer-DIFxvF2Q.js";
4
+ import "./buffer-BjzLorpP.js";
5
5
  export {
6
6
  i as Record
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@launchdarkly/o11y",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "description": "Shared browser foundation for @launchdarkly/observability and @launchdarkly/session-replay. Capture frontend metrics, errors, logs, traces, and session replays.",
5
5
  "keywords": [
6
6
  "launchdarkly",