@sentry/effect 10.69.0 → 11.0.0-alpha.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/README.md CHANGED
@@ -27,7 +27,6 @@ const SentryLive = Layer.mergeAll(
27
27
  Sentry.effectLayer({
28
28
  dsn: '__DSN__',
29
29
  tracesSampleRate: 1.0,
30
- enableLogs: true,
31
30
  }),
32
31
  Layer.setTracer(Sentry.SentryEffectTracer),
33
32
  Logger.replace(Logger.defaultLogger, Sentry.SentryEffectLogger),
@@ -59,7 +58,6 @@ const SentryLive = Layer.mergeAll(
59
58
  Sentry.effectLayer({
60
59
  dsn: '__DSN__',
61
60
  tracesSampleRate: 1.0,
62
- enableLogs: true,
63
61
  }),
64
62
  Layer.succeed(Tracer.Tracer, Sentry.SentryEffectTracer),
65
63
  Logger.layer([Sentry.SentryEffectLogger]),
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
 
3
- const light = require('@sentry/node-core/light');
3
+ const node = require('@sentry/node');
4
4
  const index = require('./server/index.js');
5
5
  const tracer = require('./tracer.js');
6
6
  const logger = require('./logger.js');
@@ -14,14 +14,14 @@ exports.SentryEffectTracer = tracer.SentryEffectTracer;
14
14
  exports.SentryEffectLogger = logger.SentryEffectLogger;
15
15
  exports.SentryEffectMetricsLayer = metrics.SentryEffectMetricsLayer;
16
16
  exports.init = sdk.init;
17
- Object.prototype.hasOwnProperty.call(light, '__proto__') &&
17
+ Object.prototype.hasOwnProperty.call(node, '__proto__') &&
18
18
  !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
19
19
  Object.defineProperty(exports, '__proto__', {
20
20
  enumerable: true,
21
- value: light['__proto__']
21
+ value: node['__proto__']
22
22
  });
23
23
 
24
- Object.keys(light).forEach(k => {
25
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = light[k];
24
+ Object.keys(node).forEach(k => {
25
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = node[k];
26
26
  });
27
27
  //# sourceMappingURL=index.server.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/server/index.ts"],"sourcesContent":["import type { NodeOptions } from '@sentry/node-core/light';\nimport type * as EffectLayer from 'effect/Layer';\nimport { empty as emptyLayer, suspend as suspendLayer } from 'effect/Layer';\nimport { init } from './sdk';\n\nexport { init } from './sdk';\n\n/**\n * Options for the Sentry Effect server layer.\n */\nexport type EffectServerLayerOptions = NodeOptions;\n\n/**\n * Creates an Effect Layer that initializes Sentry for Node.js servers.\n *\n * To enable Effect tracing, logs, or metrics, compose with the respective layers:\n * - `Layer.setTracer(Sentry.SentryEffectTracer)` for tracing\n * - `Logger.replace(Logger.defaultLogger, Sentry.SentryEffectLogger)` for logs\n * - `Sentry.SentryEffectMetricsLayer` for metrics\n *\n * @example\n * ```typescript\n * import * as Sentry from '@sentry/effect/server';\n * import { NodeRuntime } from '@effect/platform-node';\n * import { Layer, Logger } from 'effect';\n * import { HttpLive } from './Http.js';\n *\n * const SentryLive = Layer.mergeAll(\n * Sentry.effectLayer({ dsn: '__DSN__' }),\n * Layer.setTracer(Sentry.SentryEffectTracer),\n * Logger.replace(Logger.defaultLogger, Sentry.SentryEffectLogger),\n * );\n *\n * const MainLive = HttpLive.pipe(Layer.provide(SentryLive));\n * MainLive.pipe(Layer.launch, NodeRuntime.runMain);\n * ```\n */\nexport function effectLayer(options: EffectServerLayerOptions): EffectLayer.Layer<never, never, never> {\n return suspendLayer(() => {\n init(options);\n return emptyLayer;\n });\n}\n"],"names":["suspendLayer","init","emptyLayer"],"mappings":";;;;;AAqCO,SAAS,YAAY,OAAA,EAA2E;AACrG,EAAA,OAAOA,cAAa,MAAM;AACxB,IAAAC,QAAA,CAAK,OAAO,CAAA;AACZ,IAAA,OAAOC,WAAA;AAAA,EACT,CAAC,CAAA;AACH;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/server/index.ts"],"sourcesContent":["import type { NodeOptions } from '@sentry/node';\nimport type * as EffectLayer from 'effect/Layer';\nimport { empty as emptyLayer, suspend as suspendLayer } from 'effect/Layer';\nimport { init } from './sdk';\n\nexport { init } from './sdk';\n\n/**\n * Options for the Sentry Effect server layer.\n */\nexport type EffectServerLayerOptions = NodeOptions;\n\n/**\n * Creates an Effect Layer that initializes Sentry for Node.js servers.\n *\n * To enable Effect tracing, logs, or metrics, compose with the respective layers:\n * - `Layer.setTracer(Sentry.SentryEffectTracer)` for tracing\n * - `Logger.replace(Logger.defaultLogger, Sentry.SentryEffectLogger)` for logs\n * - `Sentry.SentryEffectMetricsLayer` for metrics\n *\n * @example\n * ```typescript\n * import * as Sentry from '@sentry/effect/server';\n * import { NodeRuntime } from '@effect/platform-node';\n * import { Layer, Logger } from 'effect';\n * import { HttpLive } from './Http.js';\n *\n * const SentryLive = Layer.mergeAll(\n * Sentry.effectLayer({ dsn: '__DSN__' }),\n * Layer.setTracer(Sentry.SentryEffectTracer),\n * Logger.replace(Logger.defaultLogger, Sentry.SentryEffectLogger),\n * );\n *\n * const MainLive = HttpLive.pipe(Layer.provide(SentryLive));\n * MainLive.pipe(Layer.launch, NodeRuntime.runMain);\n * ```\n */\nexport function effectLayer(options: EffectServerLayerOptions): EffectLayer.Layer<never, never, never> {\n return suspendLayer(() => {\n init(options);\n return emptyLayer;\n });\n}\n"],"names":["suspendLayer","init","emptyLayer"],"mappings":";;;;;AAqCO,SAAS,YAAY,OAAA,EAA2E;AACrG,EAAA,OAAOA,cAAa,MAAM;AACxB,IAAAC,QAAA,CAAK,OAAO,CAAA;AACZ,IAAA,OAAOC,WAAA;AAAA,EACT,CAAC,CAAA;AACH;;;;;"}
@@ -1,14 +1,17 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
 
3
3
  const core = require('@sentry/core');
4
- const light = require('@sentry/node-core/light');
4
+ const node = require('@sentry/node');
5
5
 
6
6
  function init(options) {
7
7
  const opts = {
8
- ...options
8
+ ...options,
9
+ // The Effect SDK provides its own tracing (`SentryEffectTracer`), logging and error capture, so
10
+ // node's auto-instrumentation default integrations should not additionally create spans.
11
+ defaultIntegrations: options.defaultIntegrations ?? false
9
12
  };
10
- core.applySdkMetadata(opts, "effect", ["effect", "node-light"]);
11
- return light.init(opts);
13
+ core.applySdkMetadata(opts, "effect", ["effect", "node"]);
14
+ return node.init(opts);
12
15
  }
13
16
 
14
17
  exports.init = init;
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.js","sources":["../../../src/server/sdk.ts"],"sourcesContent":["import type { Client } from '@sentry/core';\nimport { applySdkMetadata } from '@sentry/core';\nimport type { NodeOptions } from '@sentry/node-core/light';\nimport { init as initNode } from '@sentry/node-core/light';\n\n/**\n * Initializes the Sentry Effect SDK for Node.js servers.\n *\n * @param options - Configuration options for the SDK\n * @returns The initialized Sentry client, or undefined if initialization failed\n */\nexport function init(options: NodeOptions): Client | undefined {\n const opts = {\n ...options,\n };\n\n applySdkMetadata(opts, 'effect', ['effect', 'node-light']);\n\n return initNode(opts);\n}\n"],"names":["applySdkMetadata","initNode"],"mappings":";;;;;AAWO,SAAS,KAAK,OAAA,EAA0C;AAC7D,EAAA,MAAM,IAAA,GAAO;AAAA,IACX,GAAG;AAAA,GACL;AAEA,EAAAA,qBAAA,CAAiB,IAAA,EAAM,QAAA,EAAU,CAAC,QAAA,EAAU,YAAY,CAAC,CAAA;AAEzD,EAAA,OAAOC,WAAS,IAAI,CAAA;AACtB;;;;"}
1
+ {"version":3,"file":"sdk.js","sources":["../../../src/server/sdk.ts"],"sourcesContent":["import type { Client } from '@sentry/core';\nimport { applySdkMetadata } from '@sentry/core';\nimport type { NodeOptions } from '@sentry/node';\nimport { init as initNode } from '@sentry/node';\n\n/**\n * Initializes the Sentry Effect SDK for Node.js servers.\n *\n * @param options - Configuration options for the SDK\n * @returns The initialized Sentry client, or undefined if initialization failed\n */\nexport function init(options: NodeOptions): Client | undefined {\n const opts = {\n ...options,\n // The Effect SDK provides its own tracing (`SentryEffectTracer`), logging and error capture, so\n // node's auto-instrumentation default integrations should not additionally create spans.\n defaultIntegrations: options.defaultIntegrations ?? false,\n };\n\n applySdkMetadata(opts, 'effect', ['effect', 'node']);\n\n return initNode(opts);\n}\n"],"names":["applySdkMetadata","initNode"],"mappings":";;;;;AAWO,SAAS,KAAK,OAAA,EAA0C;AAC7D,EAAA,MAAM,IAAA,GAAO;AAAA,IACX,GAAG,OAAA;AAAA;AAAA;AAAA,IAGH,mBAAA,EAAqB,QAAQ,mBAAA,IAAuB;AAAA,GACtD;AAEA,EAAAA,qBAAA,CAAiB,IAAA,EAAM,QAAA,EAAU,CAAC,QAAA,EAAU,MAAM,CAAC,CAAA;AAEnD,EAAA,OAAOC,UAAS,IAAI,CAAA;AACtB;;;;"}
@@ -1,4 +1,4 @@
1
- export * from '@sentry/node-core/light';
1
+ export * from '@sentry/node';
2
2
  export { effectLayer } from './server/index.js';
3
3
  export { SentryEffectTracer } from './tracer.js';
4
4
  export { SentryEffectLogger } from './logger.js';
@@ -1 +1 @@
1
- {"type":"module","version":"10.69.0","sideEffects":false}
1
+ {"type":"module","version":"11.0.0-alpha.0","sideEffects":false}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/server/index.ts"],"sourcesContent":["import type { NodeOptions } from '@sentry/node-core/light';\nimport type * as EffectLayer from 'effect/Layer';\nimport { empty as emptyLayer, suspend as suspendLayer } from 'effect/Layer';\nimport { init } from './sdk';\n\nexport { init } from './sdk';\n\n/**\n * Options for the Sentry Effect server layer.\n */\nexport type EffectServerLayerOptions = NodeOptions;\n\n/**\n * Creates an Effect Layer that initializes Sentry for Node.js servers.\n *\n * To enable Effect tracing, logs, or metrics, compose with the respective layers:\n * - `Layer.setTracer(Sentry.SentryEffectTracer)` for tracing\n * - `Logger.replace(Logger.defaultLogger, Sentry.SentryEffectLogger)` for logs\n * - `Sentry.SentryEffectMetricsLayer` for metrics\n *\n * @example\n * ```typescript\n * import * as Sentry from '@sentry/effect/server';\n * import { NodeRuntime } from '@effect/platform-node';\n * import { Layer, Logger } from 'effect';\n * import { HttpLive } from './Http.js';\n *\n * const SentryLive = Layer.mergeAll(\n * Sentry.effectLayer({ dsn: '__DSN__' }),\n * Layer.setTracer(Sentry.SentryEffectTracer),\n * Logger.replace(Logger.defaultLogger, Sentry.SentryEffectLogger),\n * );\n *\n * const MainLive = HttpLive.pipe(Layer.provide(SentryLive));\n * MainLive.pipe(Layer.launch, NodeRuntime.runMain);\n * ```\n */\nexport function effectLayer(options: EffectServerLayerOptions): EffectLayer.Layer<never, never, never> {\n return suspendLayer(() => {\n init(options);\n return emptyLayer;\n });\n}\n"],"names":["suspendLayer","emptyLayer"],"mappings":";;;AAqCO,SAAS,YAAY,OAAA,EAA2E;AACrG,EAAA,OAAOA,QAAa,MAAM;AACxB,IAAA,IAAA,CAAK,OAAO,CAAA;AACZ,IAAA,OAAOC,KAAA;AAAA,EACT,CAAC,CAAA;AACH;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/server/index.ts"],"sourcesContent":["import type { NodeOptions } from '@sentry/node';\nimport type * as EffectLayer from 'effect/Layer';\nimport { empty as emptyLayer, suspend as suspendLayer } from 'effect/Layer';\nimport { init } from './sdk';\n\nexport { init } from './sdk';\n\n/**\n * Options for the Sentry Effect server layer.\n */\nexport type EffectServerLayerOptions = NodeOptions;\n\n/**\n * Creates an Effect Layer that initializes Sentry for Node.js servers.\n *\n * To enable Effect tracing, logs, or metrics, compose with the respective layers:\n * - `Layer.setTracer(Sentry.SentryEffectTracer)` for tracing\n * - `Logger.replace(Logger.defaultLogger, Sentry.SentryEffectLogger)` for logs\n * - `Sentry.SentryEffectMetricsLayer` for metrics\n *\n * @example\n * ```typescript\n * import * as Sentry from '@sentry/effect/server';\n * import { NodeRuntime } from '@effect/platform-node';\n * import { Layer, Logger } from 'effect';\n * import { HttpLive } from './Http.js';\n *\n * const SentryLive = Layer.mergeAll(\n * Sentry.effectLayer({ dsn: '__DSN__' }),\n * Layer.setTracer(Sentry.SentryEffectTracer),\n * Logger.replace(Logger.defaultLogger, Sentry.SentryEffectLogger),\n * );\n *\n * const MainLive = HttpLive.pipe(Layer.provide(SentryLive));\n * MainLive.pipe(Layer.launch, NodeRuntime.runMain);\n * ```\n */\nexport function effectLayer(options: EffectServerLayerOptions): EffectLayer.Layer<never, never, never> {\n return suspendLayer(() => {\n init(options);\n return emptyLayer;\n });\n}\n"],"names":["suspendLayer","emptyLayer"],"mappings":";;;AAqCO,SAAS,YAAY,OAAA,EAA2E;AACrG,EAAA,OAAOA,QAAa,MAAM;AACxB,IAAA,IAAA,CAAK,OAAO,CAAA;AACZ,IAAA,OAAOC,KAAA;AAAA,EACT,CAAC,CAAA;AACH;;;;"}
@@ -1,11 +1,14 @@
1
1
  import { applySdkMetadata } from '@sentry/core';
2
- import { init as init$1 } from '@sentry/node-core/light';
2
+ import { init as init$1 } from '@sentry/node';
3
3
 
4
4
  function init(options) {
5
5
  const opts = {
6
- ...options
6
+ ...options,
7
+ // The Effect SDK provides its own tracing (`SentryEffectTracer`), logging and error capture, so
8
+ // node's auto-instrumentation default integrations should not additionally create spans.
9
+ defaultIntegrations: options.defaultIntegrations ?? false
7
10
  };
8
- applySdkMetadata(opts, "effect", ["effect", "node-light"]);
11
+ applySdkMetadata(opts, "effect", ["effect", "node"]);
9
12
  return init$1(opts);
10
13
  }
11
14
 
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.js","sources":["../../../src/server/sdk.ts"],"sourcesContent":["import type { Client } from '@sentry/core';\nimport { applySdkMetadata } from '@sentry/core';\nimport type { NodeOptions } from '@sentry/node-core/light';\nimport { init as initNode } from '@sentry/node-core/light';\n\n/**\n * Initializes the Sentry Effect SDK for Node.js servers.\n *\n * @param options - Configuration options for the SDK\n * @returns The initialized Sentry client, or undefined if initialization failed\n */\nexport function init(options: NodeOptions): Client | undefined {\n const opts = {\n ...options,\n };\n\n applySdkMetadata(opts, 'effect', ['effect', 'node-light']);\n\n return initNode(opts);\n}\n"],"names":["initNode"],"mappings":";;;AAWO,SAAS,KAAK,OAAA,EAA0C;AAC7D,EAAA,MAAM,IAAA,GAAO;AAAA,IACX,GAAG;AAAA,GACL;AAEA,EAAA,gBAAA,CAAiB,IAAA,EAAM,QAAA,EAAU,CAAC,QAAA,EAAU,YAAY,CAAC,CAAA;AAEzD,EAAA,OAAOA,OAAS,IAAI,CAAA;AACtB;;;;"}
1
+ {"version":3,"file":"sdk.js","sources":["../../../src/server/sdk.ts"],"sourcesContent":["import type { Client } from '@sentry/core';\nimport { applySdkMetadata } from '@sentry/core';\nimport type { NodeOptions } from '@sentry/node';\nimport { init as initNode } from '@sentry/node';\n\n/**\n * Initializes the Sentry Effect SDK for Node.js servers.\n *\n * @param options - Configuration options for the SDK\n * @returns The initialized Sentry client, or undefined if initialization failed\n */\nexport function init(options: NodeOptions): Client | undefined {\n const opts = {\n ...options,\n // The Effect SDK provides its own tracing (`SentryEffectTracer`), logging and error capture, so\n // node's auto-instrumentation default integrations should not additionally create spans.\n defaultIntegrations: options.defaultIntegrations ?? false,\n };\n\n applySdkMetadata(opts, 'effect', ['effect', 'node']);\n\n return initNode(opts);\n}\n"],"names":["initNode"],"mappings":";;;AAWO,SAAS,KAAK,OAAA,EAA0C;AAC7D,EAAA,MAAM,IAAA,GAAO;AAAA,IACX,GAAG,OAAA;AAAA;AAAA;AAAA,IAGH,mBAAA,EAAqB,QAAQ,mBAAA,IAAuB;AAAA,GACtD;AAEA,EAAA,gBAAA,CAAiB,IAAA,EAAM,QAAA,EAAU,CAAC,QAAA,EAAU,MAAM,CAAC,CAAA;AAEnD,EAAA,OAAOA,OAAS,IAAI,CAAA;AACtB;;;;"}
@@ -1,4 +1,4 @@
1
- export * from '@sentry/node-core/light';
1
+ export * from '@sentry/node';
2
2
  export { effectLayer, init } from './server/index';
3
3
  export type { EffectServerLayerOptions } from './server/index';
4
4
  export { SentryEffectTracer } from './tracer';
@@ -1 +1 @@
1
- {"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../../src/index.server.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACnD,YAAY,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../../src/index.server.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACnD,YAAY,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC"}
@@ -11,8 +11,16 @@ export declare function init(options: Options | clientSdk.BrowserOptions | serve
11
11
  export declare const linkedErrorsIntegration: typeof clientSdk.linkedErrorsIntegration;
12
12
  export declare const contextLinesIntegration: typeof clientSdk.contextLinesIntegration;
13
13
  export declare const spanStreamingIntegration: typeof clientSdk.spanStreamingIntegration;
14
+ export declare const withStaticSpan: typeof clientSdk.withStaticSpan;
14
15
  export declare const withStreamedSpan: typeof clientSdk.withStreamedSpan;
15
16
  export declare const getDefaultIntegrations: (options: Options) => Integration[];
16
17
  export declare const defaultStackParser: StackParser;
17
18
  export declare const logger: typeof clientSdk.logger | typeof serverSdk.logger;
19
+ export declare const launchDarklyIntegration: typeof clientSdk.launchDarklyIntegration;
20
+ export declare const buildLaunchDarklyFlagUsedHandler: typeof clientSdk.buildLaunchDarklyFlagUsedHandler;
21
+ export declare const openFeatureIntegration: typeof clientSdk.openFeatureIntegration;
22
+ export declare const OpenFeatureIntegrationHook: typeof clientSdk.OpenFeatureIntegrationHook;
23
+ export declare const unleashIntegration: typeof clientSdk.unleashIntegration;
24
+ export declare const growthbookIntegration: typeof clientSdk.growthbookIntegration;
25
+ export declare const statsigIntegration: typeof clientSdk.statsigIntegration;
18
26
  //# sourceMappingURL=index.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.types.d.ts","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,KAAK,KAAK,WAAW,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,KAAK,SAAS,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAEjD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAE/B,YAAY,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,YAAY,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,CAAC,OAAO,UAAU,WAAW,CACjC,OAAO,EAAE,SAAS,CAAC,wBAAwB,GAAG,SAAS,CAAC,wBAAwB,GAC/E,WAAW,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAE1C,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC,cAAc,GAAG,SAAS,CAAC,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;AACtH,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,OAAO,SAAS,CAAC,uBAAuB,CAAC;AACvF,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,OAAO,SAAS,CA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kBAAkB,EAAE,OAAO,SAAS,CAAC,kBAAkB,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { NodeOptions } from '@sentry/node-core/light';
1
+ import type { NodeOptions } from '@sentry/node';
2
2
  import type * as EffectLayer from 'effect/Layer';
3
3
  export { init } from './sdk';
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,KAAK,WAAW,MAAM,cAAc,CAAC;AAIjD,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,wBAAwB,GAAG,WAAW,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAKrG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,KAAK,WAAW,MAAM,cAAc,CAAC;AAIjD,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,wBAAwB,GAAG,WAAW,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAKrG"}
@@ -1,5 +1,5 @@
1
1
  import type { Client } from '@sentry/core';
2
- import type { NodeOptions } from '@sentry/node-core/light';
2
+ import type { NodeOptions } from '@sentry/node';
3
3
  /**
4
4
  * Initializes the Sentry Effect SDK for Node.js servers.
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../src/server/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAG3D;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAQ7D"}
1
+ {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../src/server/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAW7D"}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@sentry/effect",
3
- "version": "10.69.0",
3
+ "version": "11.0.0-alpha.0",
4
4
  "description": "Official Sentry SDK for Effect",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/effect",
7
7
  "author": "Sentry",
8
8
  "license": "MIT",
9
9
  "engines": {
10
- "node": ">=18"
10
+ "node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
11
11
  },
12
12
  "files": [
13
13
  "/build"
@@ -40,26 +40,13 @@
40
40
  "require": "./build/cjs/index.client.js"
41
41
  }
42
42
  },
43
- "typesVersions": {
44
- "<5.0": {
45
- "build/types/index.types.d.ts": [
46
- "build/types-ts3.8/index.types.d.ts"
47
- ],
48
- "build/types/index.server.d.ts": [
49
- "build/types-ts3.8/index.server.d.ts"
50
- ],
51
- "build/types/index.client.d.ts": [
52
- "build/types-ts3.8/index.client.d.ts"
53
- ]
54
- }
55
- },
56
43
  "publishConfig": {
57
44
  "access": "public"
58
45
  },
59
46
  "dependencies": {
60
- "@sentry/browser": "10.69.0",
61
- "@sentry/core": "10.69.0",
62
- "@sentry/node-core": "10.69.0"
47
+ "@sentry/browser": "11.0.0-alpha.0",
48
+ "@sentry/core": "11.0.0-alpha.0",
49
+ "@sentry/node": "11.0.0-alpha.0"
63
50
  },
64
51
  "peerDependencies": {
65
52
  "effect": "^3.0.0 || ^4.0.0-beta.50"
@@ -77,17 +64,15 @@
77
64
  "build": "run-p build:transpile build:types",
78
65
  "build:dev": "yarn build",
79
66
  "build:transpile": "rollup -c rollup.npm.config.mjs",
80
- "build:types": "run-s build:types:core build:types:downlevel",
81
- "build:types:core": "tsc -p tsconfig.types.json",
82
- "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8",
67
+ "build:types": "tsc -p tsconfig.types.json",
83
68
  "build:watch": "run-p build:transpile:watch",
84
69
  "build:dev:watch": "yarn build:watch",
85
70
  "build:transpile:watch": "rollup -c rollup.npm.config.mjs --watch",
86
71
  "build:tarball": "npm pack",
87
72
  "circularDepCheck": "madge --circular src/index.client.ts && madge --circular src/index.server.ts && madge --circular src/index.types.ts",
88
73
  "clean": "rimraf build coverage sentry-effect-*.tgz",
89
- "fix": "eslint . --format stylish --fix",
90
- "lint": "eslint . --format stylish",
74
+ "lint:fix": "oxlint . --fix --type-aware",
75
+ "lint": "oxlint . --type-aware",
91
76
  "test": "vitest run",
92
77
  "test:watch": "vitest --watch",
93
78
  "yalc:publish": "yalc publish --push --sig"
@@ -1,33 +0,0 @@
1
- import { BrowserOptions } from '@sentry/browser';
2
- import * as EffectLayer from 'effect/Layer';
3
- export { init } from './sdk';
4
- /**
5
- * Options for the Sentry Effect client layer.
6
- */
7
- export type EffectClientLayerOptions = BrowserOptions;
8
- /**
9
- * Creates an Effect Layer that initializes Sentry for browser clients.
10
- *
11
- * To enable Effect tracing, logs, or metrics, compose with the respective layers:
12
- * - `Layer.setTracer(Sentry.SentryEffectTracer)` for tracing
13
- * - `Logger.replace(Logger.defaultLogger, Sentry.SentryEffectLogger)` for logs
14
- * - `Sentry.SentryEffectMetricsLayer` for metrics
15
- *
16
- * @example
17
- * ```typescript
18
- * import * as Sentry from '@sentry/effect/client';
19
- * import { Layer, Logger, LogLevel } from 'effect';
20
- *
21
- * const SentryLive = Layer.mergeAll(
22
- * Sentry.effectLayer({
23
- * dsn: '__DSN__',
24
- * integrations: [Sentry.browserTracingIntegration()],
25
- * tracesSampleRate: 1.0,
26
- * }),
27
- * Layer.setTracer(Sentry.SentryEffectTracer),
28
- * Logger.replace(Logger.defaultLogger, Sentry.SentryEffectLogger),
29
- * );
30
- * ```
31
- */
32
- export declare function effectLayer(options: EffectClientLayerOptions): EffectLayer.Layer<never, never, never>;
33
- //# sourceMappingURL=index.d.ts.map
@@ -1,10 +0,0 @@
1
- import { BrowserOptions } from '@sentry/browser';
2
- import { Client } from '@sentry/core';
3
- /**
4
- * Initializes the Sentry Effect SDK for browser clients.
5
- *
6
- * @param options - Configuration options for the SDK
7
- * @returns The initialized Sentry client, or undefined if initialization failed
8
- */
9
- export declare function init(options: BrowserOptions): Client | undefined;
10
- //# sourceMappingURL=sdk.d.ts.map
@@ -1,7 +0,0 @@
1
- export * from '@sentry/browser';
2
- export { effectLayer, init } from './client/index';
3
- export { EffectClientLayerOptions } from './client/index';
4
- export { SentryEffectTracer } from './tracer';
5
- export { SentryEffectLogger } from './logger';
6
- export { SentryEffectMetricsLayer } from './metrics';
7
- //# sourceMappingURL=index.client.d.ts.map
@@ -1,7 +0,0 @@
1
- export * from '@sentry/node-core/light';
2
- export { effectLayer, init } from './server/index';
3
- export { EffectServerLayerOptions } from './server/index';
4
- export { SentryEffectTracer } from './tracer';
5
- export { SentryEffectLogger } from './logger';
6
- export { SentryEffectMetricsLayer } from './metrics';
7
- //# sourceMappingURL=index.server.d.ts.map
@@ -1,18 +0,0 @@
1
- import { Client, Integration, Options, StackParser } from '@sentry/core';
2
- import * as EffectLayer from 'effect/Layer';
3
- import * as clientSdk from './index.client';
4
- import * as serverSdk from './index.server';
5
- export * from './index.client';
6
- export * from './index.server';
7
- export { EffectClientLayerOptions } from './index.client';
8
- export { EffectServerLayerOptions } from './index.server';
9
- export declare function effectLayer(options: clientSdk.EffectClientLayerOptions | serverSdk.EffectServerLayerOptions): EffectLayer.Layer<never, never, never>;
10
- export declare function init(options: Options | clientSdk.BrowserOptions | serverSdk.NodeOptions): Client | undefined;
11
- export declare const linkedErrorsIntegration: typeof clientSdk.linkedErrorsIntegration;
12
- export declare const contextLinesIntegration: typeof clientSdk.contextLinesIntegration;
13
- export declare const spanStreamingIntegration: typeof clientSdk.spanStreamingIntegration;
14
- export declare const withStreamedSpan: typeof clientSdk.withStreamedSpan;
15
- export declare const getDefaultIntegrations: (options: Options) => Integration[];
16
- export declare const defaultStackParser: StackParser;
17
- export declare const logger: typeof clientSdk.logger | typeof serverSdk.logger;
18
- //# sourceMappingURL=index.types.d.ts.map
@@ -1,6 +0,0 @@
1
- import * as Logger from 'effect/Logger';
2
- /**
3
- * Effect Logger that sends logs to Sentry.
4
- */
5
- export declare const SentryEffectLogger: Logger.Logger<unknown, void>;
6
- //# sourceMappingURL=logger.d.ts.map
@@ -1,8 +0,0 @@
1
- import * as Layer from 'effect/Layer';
2
- /**
3
- * Effect Layer that periodically flushes metrics to Sentry.
4
- * The layer manages its own state for delta counter calculations,
5
- * which is automatically cleaned up when the layer is finalized.
6
- */
7
- export declare const SentryEffectMetricsLayer: Layer.Layer<never, never, never>;
8
- //# sourceMappingURL=metrics.d.ts.map
@@ -1,34 +0,0 @@
1
- import { NodeOptions } from '@sentry/node-core/light';
2
- import * as EffectLayer from 'effect/Layer';
3
- export { init } from './sdk';
4
- /**
5
- * Options for the Sentry Effect server layer.
6
- */
7
- export type EffectServerLayerOptions = NodeOptions;
8
- /**
9
- * Creates an Effect Layer that initializes Sentry for Node.js servers.
10
- *
11
- * To enable Effect tracing, logs, or metrics, compose with the respective layers:
12
- * - `Layer.setTracer(Sentry.SentryEffectTracer)` for tracing
13
- * - `Logger.replace(Logger.defaultLogger, Sentry.SentryEffectLogger)` for logs
14
- * - `Sentry.SentryEffectMetricsLayer` for metrics
15
- *
16
- * @example
17
- * ```typescript
18
- * import * as Sentry from '@sentry/effect/server';
19
- * import { NodeRuntime } from '@effect/platform-node';
20
- * import { Layer, Logger } from 'effect';
21
- * import { HttpLive } from './Http.js';
22
- *
23
- * const SentryLive = Layer.mergeAll(
24
- * Sentry.effectLayer({ dsn: '__DSN__' }),
25
- * Layer.setTracer(Sentry.SentryEffectTracer),
26
- * Logger.replace(Logger.defaultLogger, Sentry.SentryEffectLogger),
27
- * );
28
- *
29
- * const MainLive = HttpLive.pipe(Layer.provide(SentryLive));
30
- * MainLive.pipe(Layer.launch, NodeRuntime.runMain);
31
- * ```
32
- */
33
- export declare function effectLayer(options: EffectServerLayerOptions): EffectLayer.Layer<never, never, never>;
34
- //# sourceMappingURL=index.d.ts.map
@@ -1,10 +0,0 @@
1
- import { Client } from '@sentry/core';
2
- import { NodeOptions } from '@sentry/node-core/light';
3
- /**
4
- * Initializes the Sentry Effect SDK for Node.js servers.
5
- *
6
- * @param options - Configuration options for the SDK
7
- * @returns The initialized Sentry client, or undefined if initialization failed
8
- */
9
- export declare function init(options: NodeOptions): Client | undefined;
10
- //# sourceMappingURL=sdk.d.ts.map
@@ -1,6 +0,0 @@
1
- import * as EffectTracer from 'effect/Tracer';
2
- /**
3
- * Effect Layer that sets up the Sentry tracer for Effect spans.
4
- */
5
- export declare const SentryEffectTracer: EffectTracer.Tracer;
6
- //# sourceMappingURL=tracer.d.ts.map