@sentry/server-utils 11.2.0 → 11.3.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 (71) hide show
  1. package/build/THIRD-PARTY-LICENSES.txt +32 -32
  2. package/build/cjs/ai/core/apiPromise.js +2 -2
  3. package/build/cjs/ai/core/apiPromise.js.map +1 -1
  4. package/build/cjs/ai/typesafe/index.js +5 -5
  5. package/build/cjs/ai/typesafe/index.js.map +1 -1
  6. package/build/cjs/ai/workers-ai/index.js +2 -2
  7. package/build/cjs/ai/workers-ai/index.js.map +1 -1
  8. package/build/cjs/ai/workers-ai/streaming.js +1 -0
  9. package/build/cjs/ai/workers-ai/streaming.js.map +1 -1
  10. package/build/cjs/ai/workers-ai/utils.js +16 -2
  11. package/build/cjs/ai/workers-ai/utils.js.map +1 -1
  12. package/build/cjs/integrations/anthropic.js +24 -4
  13. package/build/cjs/integrations/anthropic.js.map +1 -1
  14. package/build/cjs/integrations/fastify/utils.js +17 -2
  15. package/build/cjs/integrations/fastify/utils.js.map +1 -1
  16. package/build/cjs/integrations/openai-compatible.js +1 -1
  17. package/build/cjs/integrations/openai-compatible.js.map +1 -1
  18. package/build/cjs/integrations/openai.js +1 -1
  19. package/build/cjs/integrations/openai.js.map +1 -1
  20. package/build/cjs/integrations/redis/redis-cache.js +3 -3
  21. package/build/cjs/integrations/redis/redis-cache.js.map +1 -1
  22. package/build/cjs/orchestrion/bundler/load-hook.js +24 -0
  23. package/build/cjs/orchestrion/bundler/load-hook.js.map +1 -0
  24. package/build/cjs/orchestrion/config/index.js +1 -0
  25. package/build/cjs/orchestrion/config/index.js.map +1 -1
  26. package/build/cjs/orchestrion/config/remix-v3.js +28 -1
  27. package/build/cjs/orchestrion/config/remix-v3.js.map +1 -1
  28. package/build/esm/ai/core/apiPromise.js +2 -2
  29. package/build/esm/ai/core/apiPromise.js.map +1 -1
  30. package/build/esm/ai/typesafe/index.js +5 -6
  31. package/build/esm/ai/typesafe/index.js.map +1 -1
  32. package/build/esm/ai/workers-ai/index.js +2 -2
  33. package/build/esm/ai/workers-ai/index.js.map +1 -1
  34. package/build/esm/ai/workers-ai/streaming.js +1 -0
  35. package/build/esm/ai/workers-ai/streaming.js.map +1 -1
  36. package/build/esm/ai/workers-ai/utils.js +19 -5
  37. package/build/esm/ai/workers-ai/utils.js.map +1 -1
  38. package/build/esm/integrations/anthropic.js +26 -6
  39. package/build/esm/integrations/anthropic.js.map +1 -1
  40. package/build/esm/integrations/fastify/utils.js +17 -2
  41. package/build/esm/integrations/fastify/utils.js.map +1 -1
  42. package/build/esm/integrations/openai-compatible.js +2 -2
  43. package/build/esm/integrations/openai-compatible.js.map +1 -1
  44. package/build/esm/integrations/openai.js +2 -2
  45. package/build/esm/integrations/openai.js.map +1 -1
  46. package/build/esm/integrations/redis/redis-cache.js +5 -5
  47. package/build/esm/integrations/redis/redis-cache.js.map +1 -1
  48. package/build/esm/orchestrion/bundler/load-hook.js +22 -0
  49. package/build/esm/orchestrion/bundler/load-hook.js.map +1 -0
  50. package/build/esm/orchestrion/config/index.js +1 -1
  51. package/build/esm/orchestrion/config/index.js.map +1 -1
  52. package/build/esm/orchestrion/config/remix-v3.js +28 -1
  53. package/build/esm/orchestrion/config/remix-v3.js.map +1 -1
  54. package/build/esm/package.json +1 -1
  55. package/build/types/ai/core/apiPromise.d.ts +1 -1
  56. package/build/types/ai/core/apiPromise.d.ts.map +1 -1
  57. package/build/types/ai/typesafe/index.d.ts +6 -1
  58. package/build/types/ai/typesafe/index.d.ts.map +1 -1
  59. package/build/types/ai/workers-ai/utils.d.ts +2 -2
  60. package/build/types/ai/workers-ai/utils.d.ts.map +1 -1
  61. package/build/types/integrations/anthropic.d.ts.map +1 -1
  62. package/build/types/integrations/fastify/utils.d.ts +1 -1
  63. package/build/types/integrations/fastify/utils.d.ts.map +1 -1
  64. package/build/types/integrations/redis/redis-cache.d.ts.map +1 -1
  65. package/build/types/orchestrion/bundler/load-hook.d.ts +17 -0
  66. package/build/types/orchestrion/bundler/load-hook.d.ts.map +1 -0
  67. package/build/types/orchestrion/config/index.d.ts +1 -1
  68. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  69. package/build/types/orchestrion/config/remix-v3.d.ts +3 -0
  70. package/build/types/orchestrion/config/remix-v3.d.ts.map +1 -1
  71. package/package.json +11 -3
@@ -1 +1 @@
1
- {"type":"module","version":"11.2.0","sideEffects":false}
1
+ {"type":"module","version":"11.3.0","sideEffects":false}
@@ -1,2 +1,2 @@
1
- export declare function onApiPromiseResponse(result: unknown, onResponse: (response: unknown) => void, onError: (error: unknown) => void): boolean;
1
+ export declare function wrapApiPromiseResponse(result: unknown, onResponse: (response: unknown) => void, onError: (error: unknown) => void): boolean;
2
2
  //# sourceMappingURL=apiPromise.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apiPromise.d.ts","sourceRoot":"","sources":["../../../../src/ai/core/apiPromise.ts"],"names":[],"mappings":"AAgBA,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,EACvC,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAChC,OAAO,CA4DT"}
1
+ {"version":3,"file":"apiPromise.d.ts","sourceRoot":"","sources":["../../../../src/ai/core/apiPromise.ts"],"names":[],"mappings":"AAiBA,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,EACvC,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAChC,OAAO,CA4DT"}
@@ -5,7 +5,12 @@ import type { GenAiOptions } from '../core/utils';
5
5
  * `defaultModel`, the same way the SDK resolves it.
6
6
  */
7
7
  export declare function startEvaluateSpan(request: unknown, client: unknown, recordInputs: boolean): Span;
8
- /** Add the response model, token usage and (optionally) the answers of a `systemOne` result. */
8
+ /** Serialize the `state` and `questions` of an evaluation request. Also used for TypeSafe models on Workers AI. */
9
+ export declare function getEvaluationInputMessages(request: Record<string, unknown>): string | undefined;
10
+ /**
11
+ * Add the response model, token usage and (optionally) the answers of a `systemOne` result.
12
+ * Also used for TypeSafe models on Workers AI.
13
+ */
9
14
  export declare function addResponseAttributes(span: Span, result: unknown, recordOutputs: boolean): void;
10
15
  /**
11
16
  * `systemOne` returns a lazy `APIPromise` before the request settles, and parses the body on the first
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai/typesafe/index.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AASzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,GAAG,IAAI,CAWhG;AAsBD,gGAAgG;AAChG,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,GAAG,IAAI,CAyB/F;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,EAC/B,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAChC,OAAO,CAkBT;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,CAAC,CAe/F"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai/typesafe/index.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AASzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,GAAG,IAAI,CAWhG;AAgBD,mHAAmH;AACnH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,SAAS,CAE/F;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,GAAG,IAAI,CAyB/F;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,EAC/B,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAChC,OAAO,CAkBT;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,CAAC,CAe/F"}
@@ -5,7 +5,7 @@ export { setOutputMessagesAttribute };
5
5
  * Determine the gen_ai operation name from the inputs passed to `AI.run`.
6
6
  * Workers AI exposes a single `run` method, so we infer the operation from the input shape.
7
7
  */
8
- export type WorkersAiOperationName = 'chat' | 'embeddings';
8
+ export type WorkersAiOperationName = 'chat' | 'embeddings' | 'evaluate';
9
9
  export declare const WORKERS_AI_OPERATION_SPAN_OPS: Record<WorkersAiOperationName, string>;
10
10
  export declare function getOperationName(inputs: unknown): WorkersAiOperationName;
11
11
  /**
@@ -20,5 +20,5 @@ export declare function addRequestAttributes(span: Span, inputs: unknown, operat
20
20
  /**
21
21
  * Record the response attributes (token usage, response text, tool calls) on the span.
22
22
  */
23
- export declare function addResponseAttributes(span: Span, result: unknown, recordOutputs: boolean): void;
23
+ export declare function addResponseAttributes(span: Span, result: unknown, recordOutputs: boolean, operationName?: WorkersAiOperationName): void;
24
24
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/ai/workers-ai/utils.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAA6B,0BAA0B,EAA2B,MAAM,eAAe,CAAC;AAE/G,OAAO,EAAE,0BAA0B,EAAE,CAAC;AAItC;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,YAAY,CAAC;AAE3D,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAGhF,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,OAAO,GAAG,sBAAsB,CAUxE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,OAAO,EACf,aAAa,EAAE,MAAM,GACpB,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAmCpC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CA+B7F;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,GAAG,IAAI,CAkC/F"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/ai/workers-ai/utils.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAGL,0BAA0B,EAE3B,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,0BAA0B,EAAE,CAAC;AAItC;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,CAAC;AAExE,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAIhF,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,OAAO,GAAG,sBAAsB,CAcxE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,OAAO,EACf,aAAa,EAAE,MAAM,GACpB,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAmCpC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAoC7F;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,OAAO,EACf,aAAa,EAAE,OAAO,EACtB,aAAa,CAAC,EAAE,sBAAsB,GACrC,IAAI,CAyCN"}
@@ -1 +1 @@
1
- {"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../../src/integrations/anthropic.ts"],"names":[],"mappings":"AA6KA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;CAA6C,CAAC"}
1
+ {"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../../src/integrations/anthropic.ts"],"names":[],"mappings":"AAwNA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;CAA6C,CAAC"}
@@ -5,5 +5,5 @@ export declare const INTEGRATION_NAME: 'Fastify';
5
5
  *
6
6
  * 3xx and 4xx errors are not sent by default.
7
7
  */
8
- export declare function defaultShouldHandleError(_error: Error, _request: FastifyRequest, reply: FastifyReply): boolean;
8
+ export declare function defaultShouldHandleError(error: Error, _request: FastifyRequest, reply: FastifyReply): boolean;
9
9
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/integrations/fastify/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE5D,eAAO,MAAM,gBAAgB,EAAG,SAAkB,CAAC;AAEnD;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,KAAK,EAAE,YAAY,GAAG,OAAO,CAI9G"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/integrations/fastify/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE5D,eAAO,MAAM,gBAAgB,EAAG,SAAkB,CAAC;AAEnD;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,KAAK,EAAE,YAAY,GAAG,OAAO,CAI7G"}
@@ -1 +1 @@
1
- {"version":3,"file":"redis-cache.d.ts","sourceRoot":"","sources":["../../../../src/integrations/redis/redis-cache.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAiBzD,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,EAAE,CAAC,CAAC;AAI3E,eAAO,MAAM,YAAY,UAAkB,CAAC;AAC5C,eAAO,MAAM,YAAY,UAAmB,CAAC;AAC7C,eAAO,MAAM,eAAe,UAAoB,CAAC;AAGjD,4EAA4E;AAC5E,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB;;;;;;;;;;OAUG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;6FAC6F;AAC7F,wBAAgB,YAAY,CAAC,aAAa,EAAE,MAAM,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AAoB,CAAC;AAGjD,4EAA4E;AAC5E,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB;;;;;;;;;;OAUG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;6FAC6F;AAC7F,wBAAgB,YAAY,CAAC,aAAa,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAE9E;AAED,yDAAyD;AACzD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,cAAc,GAAG,SAAS,CAUzG;AAMD,2FAA2F;AAC3F,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,MAAM,EAAE,GAAG,SAAS,CA0BvG;AAED;uEACuE;AACvE,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAWxG;AAED,wDAAwD;AACxD,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAmB5E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,gBAAgB,EACzB,YAAY,EAAE,cAAc,EAC5B,OAAO,EAAE,iBAAiB,GACzB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,cAAc,CAAA;CAAE,GAAG,SAAS,CAwC1D;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CAehF"}
@@ -0,0 +1,17 @@
1
+ import type { InstrumentationConfig } from '../apmTypes';
2
+ export interface LoadHookTransformOptions {
3
+ /**
4
+ * Module specifier the transformed code imports its `tracingChannel` from, in place of
5
+ * `node:diagnostics_channel`. In a browser this is a URL the module loader can fetch.
6
+ */
7
+ dcModule: string;
8
+ /** Defaults to every built in instrumentation. */
9
+ instrumentations?: InstrumentationConfig[];
10
+ }
11
+ /**
12
+ * Instruments `code` when `filePath` is in an instrumented package, read from the nearest
13
+ * `package.json`. Returns `undefined` when it is not, or the transform fails, so the caller serves the
14
+ * module as is.
15
+ */
16
+ export declare function createLoadHookTransform(options: LoadHookTransformOptions): (filePath: string, code: string) => string | undefined;
17
+ //# sourceMappingURL=load-hook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-hook.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/load-hook.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEzD,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,qBAAqB,EAAE,CAAC;CAC5C;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,wBAAwB,GAChC,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAiBxD"}
@@ -83,5 +83,5 @@ export declare function getInstrumentedModuleNames(): string[];
83
83
  export declare function withoutInstrumentedExternals(external: readonly string[] | undefined, moduleNames?: string[]): string[] | undefined;
84
84
  export { nestjsChannels } from './nestjs';
85
85
  export { remixChannels } from './remix';
86
- export { remixV3Channels } from './remix-v3';
86
+ export { remixV3Channels, remixV3Config } from './remix-v3';
87
87
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AA8CzD;;;;;;;;;;;;GAYG;AACH,eAAO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M,EAAE,CAErD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EACvC,WAAW,GAAE,MAAM,EAA8B,GAChD,MAAM,EAAE,GAAG,SAAS,CAKtB;AAGD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
@@ -2,5 +2,8 @@ import type { InstrumentationConfig } from '../apmTypes';
2
2
  export declare const remixV3Config: InstrumentationConfig[];
3
3
  export declare const remixV3Channels: {
4
4
  readonly REMIX_V3_CREATE_ROUTER: 'orchestrion:@remix-run/fetch-router:createRouter';
5
+ readonly REMIX_V3_CREATE_ASSET_SERVER: 'orchestrion:@remix-run/assets:createAssetServer';
6
+ readonly REMIX_V3_CREATE_REQUEST_LISTENER: 'orchestrion:@remix-run/node-fetch-server:createRequestListener';
7
+ readonly REMIX_V3_UI_RUN: 'orchestrion:@remix-run/ui:run';
5
8
  };
6
9
  //# sourceMappingURL=remix-v3.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remix-v3.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/remix-v3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAQzD,eAAO,MAAM,aAAa,EAAE,qBAAqB,EAahD,CAAC;AAEF,eAAO,MAAM,eAAe;aAC1B,sBAAsB,EAAE,kDAAkD;CAClE,CAAC"}
1
+ {"version":3,"file":"remix-v3.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/remix-v3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAQzD,eAAO,MAAM,aAAa,EAAE,qBAAqB,EAqChD,CAAC;AAEF,eAAO,MAAM,eAAe;aAC1B,sBAAsB,EAAE,kDAAkD;aAC1E,4BAA4B,EAAE,iDAAiD;aAC/E,gCAAgC,EAAE,gEAAgE;aAClG,eAAe,EAAE,+BAA+B;CACxC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/server-utils",
3
- "version": "11.2.0",
3
+ "version": "11.3.0",
4
4
  "description": "Server Utilities for all Sentry JavaScript SDKs",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/server-utils",
@@ -51,6 +51,11 @@
51
51
  "import": "./build/esm/orchestrion/bundler/webpack-loader.js",
52
52
  "require": "./build/cjs/orchestrion/bundler/webpack-loader.js"
53
53
  },
54
+ "./orchestrion/load-hook": {
55
+ "types": "./build/types/orchestrion/bundler/load-hook.d.ts",
56
+ "import": "./build/esm/orchestrion/bundler/load-hook.js",
57
+ "require": "./build/cjs/orchestrion/bundler/load-hook.js"
58
+ },
54
59
  "./orchestrion/esbuild": {
55
60
  "types": "./build/types/orchestrion/bundler/esbuild.d.ts",
56
61
  "import": "./build/esm/orchestrion/bundler/esbuild.js",
@@ -81,6 +86,9 @@
81
86
  ],
82
87
  "orchestrion/bun": [
83
88
  "build/types/orchestrion/bundler/bun.d.ts"
89
+ ],
90
+ "orchestrion/load-hook": [
91
+ "build/types/orchestrion/bundler/load-hook.d.ts"
84
92
  ]
85
93
  }
86
94
  },
@@ -89,8 +97,8 @@
89
97
  },
90
98
  "dependencies": {
91
99
  "@opentelemetry/api": "^1.9.1",
92
- "@sentry/conventions": "^0.24.0",
93
- "@sentry/core": "11.2.0"
100
+ "@sentry/conventions": "^0.25.0",
101
+ "@sentry/core": "11.3.0"
94
102
  },
95
103
  "devDependencies": {
96
104
  "@apm-js-collab/code-transformer-bundler-plugins": "^0.7.4",