@sentry/cloudflare 9.11.0 → 9.12.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 +13 -8
- package/build/esm/package.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -22,16 +22,21 @@ To get started, first install the `@sentry/cloudflare` package:
|
|
|
22
22
|
npm install @sentry/cloudflare
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
Then set
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
compatibility_flags
|
|
30
|
-
|
|
25
|
+
Then either set the `nodejs_als` or `nodejs_compat` compatibility flags in your `wrangler.jsonc`/`wrangler.toml` config. This is because the SDK needs access to the `AsyncLocalStorage` API to work correctly.
|
|
26
|
+
|
|
27
|
+
```jsonc {tabTitle:JSON} {filename:wrangler.jsonc}
|
|
28
|
+
{
|
|
29
|
+
"compatibility_flags": [
|
|
30
|
+
"nodejs_als"
|
|
31
|
+
// "nodejs_compat"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
31
34
|
```
|
|
32
35
|
|
|
33
|
-
|
|
34
|
-
[
|
|
36
|
+
```toml {tabTitle:Toml} {filename:wrangler.toml}
|
|
37
|
+
compatibility_flags = ["nodejs_als"]
|
|
38
|
+
# compatibility_flags = ["nodejs_compat"]
|
|
39
|
+
```
|
|
35
40
|
|
|
36
41
|
## Setup (Cloudflare Pages)
|
|
37
42
|
|
package/build/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"9.
|
|
1
|
+
{"type":"module","version":"9.12.0","sideEffects":false}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/cloudflare",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.12.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",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@sentry/core": "9.
|
|
52
|
+
"@sentry/core": "9.12.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@cloudflare/workers-types": "^4.x"
|