@sentry/cloudflare 10.64.0 → 10.66.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 (73) hide show
  1. package/build/cjs/client.js.map +1 -1
  2. package/build/cjs/durableobject.js +2 -2
  3. package/build/cjs/durableobject.js.map +1 -1
  4. package/build/cjs/flush.js.map +1 -1
  5. package/build/cjs/instrument.js +3 -1
  6. package/build/cjs/instrument.js.map +1 -1
  7. package/build/cjs/instrumentations/worker/instrumentEnv.js +2 -1
  8. package/build/cjs/instrumentations/worker/instrumentEnv.js.map +1 -1
  9. package/build/cjs/instrumentations/worker/instrumentQueueProducer.js.map +1 -1
  10. package/build/cjs/instrumentations/worker/instrumentR2.js +1 -1
  11. package/build/cjs/instrumentations/worker/instrumentR2.js.map +1 -1
  12. package/build/cjs/integrations/hono.js +1 -1
  13. package/build/cjs/integrations/hono.js.map +1 -1
  14. package/build/cjs/options.js +2 -2
  15. package/build/cjs/options.js.map +1 -1
  16. package/build/cjs/pages-plugin.js +2 -4
  17. package/build/cjs/pages-plugin.js.map +1 -1
  18. package/build/cjs/request.js.map +1 -1
  19. package/build/cjs/utils/rpcMeta.js +2 -3
  20. package/build/cjs/utils/rpcMeta.js.map +1 -1
  21. package/build/cjs/workflows.js +11 -5
  22. package/build/cjs/workflows.js.map +1 -1
  23. package/build/cjs/wrapMethodWithSentry.js +1 -1
  24. package/build/cjs/wrapMethodWithSentry.js.map +1 -1
  25. package/build/esm/client.js.map +1 -1
  26. package/build/esm/durableobject.js +2 -2
  27. package/build/esm/durableobject.js.map +1 -1
  28. package/build/esm/flush.js.map +1 -1
  29. package/build/esm/instrument.js +3 -1
  30. package/build/esm/instrument.js.map +1 -1
  31. package/build/esm/instrumentations/worker/instrumentEnv.js +2 -1
  32. package/build/esm/instrumentations/worker/instrumentEnv.js.map +1 -1
  33. package/build/esm/instrumentations/worker/instrumentQueueProducer.js.map +1 -1
  34. package/build/esm/instrumentations/worker/instrumentR2.js +2 -2
  35. package/build/esm/instrumentations/worker/instrumentR2.js.map +1 -1
  36. package/build/esm/integrations/hono.js +2 -2
  37. package/build/esm/integrations/hono.js.map +1 -1
  38. package/build/esm/options.js +3 -3
  39. package/build/esm/options.js.map +1 -1
  40. package/build/esm/package.json +1 -1
  41. package/build/esm/pages-plugin.js +2 -4
  42. package/build/esm/pages-plugin.js.map +1 -1
  43. package/build/esm/request.js.map +1 -1
  44. package/build/esm/utils/rpcMeta.js +3 -4
  45. package/build/esm/utils/rpcMeta.js.map +1 -1
  46. package/build/esm/workflows.js +11 -5
  47. package/build/esm/workflows.js.map +1 -1
  48. package/build/esm/wrapMethodWithSentry.js +2 -2
  49. package/build/esm/wrapMethodWithSentry.js.map +1 -1
  50. package/build/types/client.d.ts +2 -1
  51. package/build/types/client.d.ts.map +1 -1
  52. package/build/types/durableobject.d.ts.map +1 -1
  53. package/build/types/executionContext.d.ts +13 -0
  54. package/build/types/executionContext.d.ts.map +1 -0
  55. package/build/types/flush.d.ts +3 -2
  56. package/build/types/flush.d.ts.map +1 -1
  57. package/build/types/instrument.d.ts.map +1 -1
  58. package/build/types/instrumentations/worker/instrumentEnv.d.ts.map +1 -1
  59. package/build/types/integrations/hono.d.ts.map +1 -1
  60. package/build/types/pages-plugin.d.ts.map +1 -1
  61. package/build/types/request.d.ts +3 -2
  62. package/build/types/request.d.ts.map +1 -1
  63. package/build/types/utils/rpcMeta.d.ts.map +1 -1
  64. package/build/types/workflows.d.ts.map +1 -1
  65. package/build/types/wrapMethodWithSentry.d.ts.map +1 -1
  66. package/build/types-ts3.8/client.d.ts +2 -1
  67. package/build/types-ts3.8/executionContext.d.ts +13 -0
  68. package/build/types-ts3.8/flush.d.ts +3 -2
  69. package/build/types-ts3.8/request.d.ts +3 -2
  70. package/package.json +6 -6
  71. package/build/types/utils/addOriginToSpan.d.ts +0 -5
  72. package/build/types/utils/addOriginToSpan.d.ts.map +0 -1
  73. package/build/types-ts3.8/utils/addOriginToSpan.d.ts +0 -5
@@ -1,5 +1,6 @@
1
1
  import { ExecutionContext } from '@cloudflare/workers-types';
2
2
  import { Client } from '@sentry/core';
3
+ import { ExecutionContextCompat } from './executionContext';
3
4
  type FlushLock = {
4
5
  readonly ready: Promise<void>;
5
6
  readonly finalize: () => Promise<void>;
@@ -18,7 +19,7 @@ type FlushLock = {
18
19
  *
19
20
  * By using the original waitUntil for flush operations, we bypass this issue.
20
21
  */
21
- export declare function getOriginalWaitUntil(context: ExecutionContext): ExecutionContext['waitUntil'] | undefined;
22
+ export declare function getOriginalWaitUntil(context: ExecutionContextCompat): ExecutionContext['waitUntil'] | undefined;
22
23
  /**
23
24
  * Enhances the given execution context by wrapping its `waitUntil` method with a proxy
24
25
  * to monitor pending tasks, and provides a flusher function to ensure all tasks
@@ -27,7 +28,7 @@ export declare function getOriginalWaitUntil(context: ExecutionContext): Executi
27
28
  * @param {ExecutionContext} context - The execution context to be enhanced. If no context is provided, the function returns undefined.
28
29
  * @return {FlushLock} Returns a flusher function if a valid context is provided, otherwise undefined.
29
30
  */
30
- export declare function makeFlushLock(context: ExecutionContext): FlushLock;
31
+ export declare function makeFlushLock(context: ExecutionContextCompat): FlushLock;
31
32
  /**
32
33
  * Flushes the client and then disposes of it to allow garbage collection.
33
34
  * This should be called at the end of each request to prevent memory leaks.
@@ -1,9 +1,10 @@
1
- import { CfProperties, ExecutionContext, IncomingRequestCfProperties } from '@cloudflare/workers-types';
1
+ import { CfProperties, IncomingRequestCfProperties } from '@cloudflare/workers-types';
2
2
  import { CloudflareOptions } from './client';
3
+ import { ExecutionContextCompat } from './executionContext';
3
4
  interface RequestHandlerWrapperOptions {
4
5
  options: CloudflareOptions;
5
6
  request: Request<unknown, IncomingRequestCfProperties<unknown> | CfProperties<unknown>>;
6
- context: ExecutionContext | undefined;
7
+ context: ExecutionContextCompat | undefined;
7
8
  /**
8
9
  * If true, errors will be captured, rethrown and sent to Sentry.
9
10
  * Otherwise, errors are rethrown but not captured.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/cloudflare",
3
- "version": "10.64.0",
3
+ "version": "10.66.0",
4
4
  "description": "Official Sentry SDK for Cloudflare Workers and Pages",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/cloudflare",
@@ -60,12 +60,12 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@opentelemetry/api": "^1.9.1",
63
- "@sentry/core": "10.64.0",
64
- "@sentry/node": "10.64.0",
65
- "@sentry/server-utils": "10.64.0"
63
+ "@sentry/core": "10.66.0",
64
+ "@sentry/node": "10.66.0",
65
+ "@sentry/server-utils": "10.66.0"
66
66
  },
67
67
  "peerDependencies": {
68
- "@cloudflare/workers-types": "^4.x"
68
+ "@cloudflare/workers-types": "^4.x || ^5.x"
69
69
  },
70
70
  "peerDependenciesMeta": {
71
71
  "@cloudflare/workers-types": {
@@ -73,7 +73,7 @@
73
73
  }
74
74
  },
75
75
  "devDependencies": {
76
- "@cloudflare/workers-types": "4.20250922.0",
76
+ "@cloudflare/workers-types": "5.20260710.1",
77
77
  "@types/node": "^18.19.1",
78
78
  "wrangler": "4.61.0"
79
79
  },
@@ -1,5 +0,0 @@
1
- import type { Span } from '@opentelemetry/api';
2
- import type { SpanOrigin } from '@sentry/core';
3
- /** Adds an origin to an OTEL Span. */
4
- export declare function addOriginToSpan(span: Span, origin: SpanOrigin): void;
5
- //# sourceMappingURL=addOriginToSpan.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"addOriginToSpan.d.ts","sourceRoot":"","sources":["../../../src/utils/addOriginToSpan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,sCAAsC;AACtC,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI,CAEpE"}
@@ -1,5 +0,0 @@
1
- import { Span } from '@opentelemetry/api';
2
- import { SpanOrigin } from '@sentry/core';
3
- /** Adds an origin to an OTEL Span. */
4
- export declare function addOriginToSpan(span: Span, origin: SpanOrigin): void;
5
- //# sourceMappingURL=addOriginToSpan.d.ts.map