@sentry/cloudflare 10.58.0 → 10.60.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 (57) hide show
  1. package/build/cjs/durableobject.js +4 -1
  2. package/build/cjs/durableobject.js.map +1 -1
  3. package/build/cjs/index.js +1 -0
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/instrumentations/instrumentDurableObjectStorage.js +4 -0
  6. package/build/cjs/instrumentations/instrumentDurableObjectStorage.js.map +1 -1
  7. package/build/cjs/instrumentations/instrumentDurableObjectSyncKvStorage.js +40 -0
  8. package/build/cjs/instrumentations/instrumentDurableObjectSyncKvStorage.js.map +1 -0
  9. package/build/cjs/instrumentations/worker/instrumentEnv.js +7 -0
  10. package/build/cjs/instrumentations/worker/instrumentEnv.js.map +1 -1
  11. package/build/cjs/instrumentations/worker/instrumentR2.js +124 -0
  12. package/build/cjs/instrumentations/worker/instrumentR2.js.map +1 -0
  13. package/build/cjs/sdk.js +2 -1
  14. package/build/cjs/sdk.js.map +1 -1
  15. package/build/cjs/utils/isBinding.js +4 -0
  16. package/build/cjs/utils/isBinding.js.map +1 -1
  17. package/build/cjs/utils/rpcOptions.js.map +1 -1
  18. package/build/cjs/vendor/stacktrace.js.map +1 -1
  19. package/build/esm/durableobject.js +4 -1
  20. package/build/esm/durableobject.js.map +1 -1
  21. package/build/esm/index.js +1 -1
  22. package/build/esm/instrumentations/instrumentDurableObjectStorage.js +4 -0
  23. package/build/esm/instrumentations/instrumentDurableObjectStorage.js.map +1 -1
  24. package/build/esm/instrumentations/instrumentDurableObjectSyncKvStorage.js +38 -0
  25. package/build/esm/instrumentations/instrumentDurableObjectSyncKvStorage.js.map +1 -0
  26. package/build/esm/instrumentations/worker/instrumentEnv.js +8 -1
  27. package/build/esm/instrumentations/worker/instrumentEnv.js.map +1 -1
  28. package/build/esm/instrumentations/worker/instrumentR2.js +122 -0
  29. package/build/esm/instrumentations/worker/instrumentR2.js.map +1 -0
  30. package/build/esm/package.json +1 -1
  31. package/build/esm/sdk.js +2 -1
  32. package/build/esm/sdk.js.map +1 -1
  33. package/build/esm/utils/isBinding.js +4 -1
  34. package/build/esm/utils/isBinding.js.map +1 -1
  35. package/build/esm/utils/rpcOptions.js.map +1 -1
  36. package/build/esm/vendor/stacktrace.js.map +1 -1
  37. package/build/types/durableobject.d.ts.map +1 -1
  38. package/build/types/index.d.ts +1 -1
  39. package/build/types/index.d.ts.map +1 -1
  40. package/build/types/instrumentations/instrumentDurableObjectStorage.d.ts.map +1 -1
  41. package/build/types/instrumentations/instrumentDurableObjectSyncKvStorage.d.ts +3 -0
  42. package/build/types/instrumentations/instrumentDurableObjectSyncKvStorage.d.ts.map +1 -0
  43. package/build/types/instrumentations/worker/instrumentEnv.d.ts +1 -2
  44. package/build/types/instrumentations/worker/instrumentEnv.d.ts.map +1 -1
  45. package/build/types/instrumentations/worker/instrumentR2.d.ts +9 -0
  46. package/build/types/instrumentations/worker/instrumentR2.d.ts.map +1 -0
  47. package/build/types/sdk.d.ts.map +1 -1
  48. package/build/types/utils/isBinding.d.ts +6 -1
  49. package/build/types/utils/isBinding.d.ts.map +1 -1
  50. package/build/types/utils/rpcOptions.d.ts.map +1 -1
  51. package/build/types/vendor/stacktrace.d.ts.map +1 -1
  52. package/build/types-ts3.8/index.d.ts +1 -1
  53. package/build/types-ts3.8/instrumentations/instrumentDurableObjectSyncKvStorage.d.ts +3 -0
  54. package/build/types-ts3.8/instrumentations/worker/instrumentEnv.d.ts +1 -2
  55. package/build/types-ts3.8/instrumentations/worker/instrumentR2.d.ts +9 -0
  56. package/build/types-ts3.8/utils/isBinding.d.ts +6 -1
  57. package/package.json +2 -2
@@ -30,7 +30,7 @@
30
30
  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31
31
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
32
  */
33
- import { D1Database, DurableObjectNamespace, Queue } from '@cloudflare/workers-types';
33
+ import { D1Database, DurableObjectNamespace, Queue, R2Bucket } from '@cloudflare/workers-types';
34
34
  /**
35
35
  * Checks if a value is a JSRPC proxy (service binding).
36
36
  *
@@ -56,4 +56,9 @@ export declare function isQueue(item: unknown): item is Queue;
56
56
  * D1Database has `prepare`, `batch`, and `exec` methods.
57
57
  */
58
58
  export declare function isD1Database(item: unknown): item is D1Database;
59
+ /**
60
+ * Duck-type check for R2 Bucket bindings.
61
+ * R2Bucket has `head`, `put`, and `createMultipartUpload` methods.
62
+ */
63
+ export declare function isR2Bucket(item: unknown): item is R2Bucket;
59
64
  //# sourceMappingURL=isBinding.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/cloudflare",
3
- "version": "10.58.0",
3
+ "version": "10.60.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",
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@opentelemetry/api": "^1.9.1",
53
- "@sentry/core": "10.58.0"
53
+ "@sentry/core": "10.60.0"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@cloudflare/workers-types": "^4.x"