Skip to content

Commit 770ce5d

Browse files
committed
Merge branch 'master' into abhi-reset-idletimeout
2 parents 8c35b6d + ab73aa8 commit 770ce5d

File tree

116 files changed

+2973
-1953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+2973
-1953
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: 🐞 Bug Report
2+
description: Tell us about something that's not working the way we (probably) intend.
3+
labels: 'Type: Bug'
4+
body:
5+
- type: checkboxes
6+
attributes:
7+
label: Is there an existing issue for this?
8+
description: Please search to see if an issue already exists for the bug you encountered.
9+
options:
10+
- label: I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
11+
required: true
12+
- label: I have reviewed the documentation https://docs.sentry.io/
13+
required: true
14+
- label: I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
15+
required: true
16+
- type: dropdown
17+
id: type
18+
attributes:
19+
label: How do you use Sentry?
20+
options:
21+
- Sentry Saas (sentry.io)
22+
- Self-hosted/on-premise
23+
validations:
24+
required: true
25+
- type: dropdown
26+
id: package
27+
attributes:
28+
label: Which package are you using?
29+
options:
30+
- "@sentry/angular"
31+
- "@sentry/browser"
32+
- "@sentry/ember"
33+
- "@sentry/gatsby"
34+
- "@sentry/nextjs"
35+
- "@sentry/node"
36+
- "@sentry/react"
37+
- "@sentry/serverless"
38+
- "@sentry/vue"
39+
- "@sentry/wasm"
40+
validations:
41+
required: true
42+
- type: input
43+
id: sdk-version
44+
attributes:
45+
label: SDK Version
46+
description: What version of the SDK are you using?
47+
placeholder: ex. 1.5.2
48+
validations:
49+
required: true
50+
- type: input
51+
id: framework-version
52+
attributes:
53+
label: Framework Version
54+
description: If you're using one of our framework-specific SDKs (`@sentry/react`, for example), what version of the framework are you using?
55+
placeholder: ex. 1.5.2
56+
- type: input
57+
id: link-to-sentry
58+
attributes:
59+
label: Link to Sentry event
60+
description: If applicable, provide a link to the affected event from your Sentry account. The event will only be viewable by Sentry staff.
61+
placeholder: https://sentry.io/organizations/<org-slug>/issues/<issue-id>/events/<event-id>/?project=<project-id>
62+
- type: textarea
63+
id: repro
64+
attributes:
65+
label: Steps to Reproduce
66+
description: How can we see what you're seeing? Specific is terrific.
67+
placeholder: |-
68+
1. What
69+
2. you
70+
3. did.
71+
validations:
72+
required: true
73+
- type: textarea
74+
id: expected
75+
attributes:
76+
label: Expected Result
77+
validations:
78+
required: true
79+
- type: textarea
80+
id: actual
81+
attributes:
82+
label: Actual Result
83+
description: Logs? Screenshots? Yes, please.
84+
validations:
85+
required: true
86+
- type: markdown
87+
attributes:
88+
value: |-
89+
## Thanks 🙏
90+
validations:
91+
required: false

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Ask a question
4+
url: https://github.com/getsentry/sentry-javascript/issues
5+
about: Ask questions and discuss with other community members

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: 💡 Feature Request
2+
description: Create a feature request for a sentry-javascript SDK.
3+
labels: 'Type: Improvement'
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: Thanks for taking the time to file a feature request! Please fill out this form as completely as possible.
8+
- type: textarea
9+
id: problem
10+
attributes:
11+
label: Problem Statement
12+
description: A clear and concise description of what you want and what your use case is.
13+
placeholder: |-
14+
I want to make whirled peas, but Sentry doesn't blend.
15+
validations:
16+
required: true
17+
- type: textarea
18+
id: expected
19+
attributes:
20+
label: Solution Brainstorm
21+
description: We know you have bright ideas to share ... share away, friend.
22+
placeholder: |-
23+
Add a blender to Sentry.
24+
validations:
25+
required: true
26+
- type: markdown
27+
attributes:
28+
value: |-
29+
## Thanks 🙏
30+
Check our [triage docs](https://open.sentry.io/triage/) for what to expect next.

.github/workflows/jira.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Create JIRA issue
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
7+
jobs:
8+
createIssue:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: getsentry/ga-jira-integration@main
12+
with:
13+
JIRA_API_HOST: ${{secrets.JIRA_BASEURL}}
14+
JIRA_API_TOKEN: ${{secrets.JIRA_APITOKEN}}
15+
JIRA_EMAIL: ${{secrets.JIRA_USEREMAIL}}
16+
TRIGGER_LABEL: "Jira"
17+
JIRA_PROJECT_ID: WEB
18+
JIRA_ISSUE_NAME: Story

.size-limit.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@ module.exports = [
4444
gzip: true,
4545
limit: '100 KB',
4646
},
47-
{
48-
name: '@sentry/react - Webpack (gzipped + minified)',
49-
path: 'packages/react/esm/index.js',
50-
import: '{ init }',
51-
gzip: true,
52-
limit: '100 KB',
53-
},
5447
{
5548
name: '@sentry/nextjs Client - Webpack (gzipped + minified)',
5649
path: 'packages/nextjs/esm/index.client.js',

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,45 @@
44

55
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66

7+
## 6.18.1
8+
9+
- fix(ember): use _backburner if it exists ([#4603](https://github.com/getsentry/sentry-javascript/pull/4603))
10+
- feat(gatsby): Upgrade Sentry Webpack Plugin to 1.18.8 ([#4636](https://github.com/getsentry/sentry-javascript/pull/4636))
11+
- feat(nextjs): Upgrade Sentry Webpack Plugin to 1.18.8 ([#4643](https://github.com/getsentry/sentry-javascript/pull/4643))
12+
- fix(nextjs): webpack as optional peer-dependency ([#4634](https://github.com/getsentry/sentry-javascript/pull/4634))
13+
14+
Work in this release contributed by @belgattitude, @pbernery, and @kylemh. Thank you for your contributions!
15+
16+
## 6.18.0
17+
18+
This patch deprecates the `frameContextLines` option for the Node SDK. The [migration documentation](./MIGRATION.md#upgrading-from-6.17.x-to-6.18.0) details how to migrate off the deprecated `frameContextLines` option.
19+
20+
- fix(browser): Only set event.stacktrace if we have 1 or more frames ([#4614](https://github.com/getsentry/sentry-javascript/pull/4614))
21+
- fix(hub): keep hint event id if it's provided ([#4577](https://github.com/getsentry/sentry-javascript/pull/4577))
22+
- fix(nextjs): Use env variable for build detection ([#4608](https://github.com/getsentry/sentry-javascript/pull/4608))
23+
- ref(node): Refactor node source fetching into integration ([#3729](https://github.com/getsentry/sentry-javascript/pull/3729))
24+
- feat(serverless): Added `ignoreSentryErrors` option for AWS lambda ([#4620](https://github.com/getsentry/sentry-javascript/pull/4620))
25+
26+
Work in this release contributed by @GoshaEgorian and @ichina. Thank you for your contributions!
27+
28+
## 6.17.9
29+
30+
- fix(gatsby): Add missing React peer dependency ([#4576](https://github.com/getsentry/sentry-javascript/pull/4576))
31+
- fix(types): Use Sentry event type instead of dom one ([#4584](https://github.com/getsentry/sentry-javascript/pull/4584))
32+
33+
Work in this release contributed by @aaronadamsCA. Thank you for your contribution!
34+
35+
## 6.17.8
36+
37+
- feat(types): Add Envelope types ([#4527](https://github.com/getsentry/sentry-javascript/pull/4527))
38+
- fix(build): Remove node code from CDN bundles ([#4548](https://github.com/getsentry/sentry-javascript/pull/4548))
39+
- fix(build): Prevent unused utils code in integration bundles ([#4547](https://github.com/getsentry/sentry-javascript/pull/4547))
40+
- fix(tracing): Export BrowserTracing directly in CDN bundle ([#4570](https://github.com/getsentry/sentry-javascript/pull/4570))
41+
- fix(utils): Use apply in console instrumentation ([#4568](https://github.com/getsentry/sentry-javascript/pull/4568))
42+
- ref(core): Log `normalizeDepth` when normalization is skipped([#4574](https://github.com/getsentry/sentry-javascript/pull/4574))
43+
44+
Work in this release contributed by @mydea. Thank you for your contribution!
45+
746
## 6.17.7
847

948
- fix(utils): Make new non-enumerable properties mutable ([#4528](https://github.com/getsentry/sentry-javascript/pull/4528))

MIGRATION.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# Upgrading from 6.17.x to 6.18.0
2+
3+
Version 6.18.0 deprecates the `frameContextLines` top-level option for the Node SDK. This option will be removed in an upcoming major version. To migrate off of the top-level option, pass it instead to the new `ContextLines` integration.
4+
5+
```js
6+
// New in 6.18.0
7+
init({
8+
dsn: '__DSN__',
9+
integrations: [new ContextLines({ frameContextLines: 10 })]
10+
});
11+
12+
// Before:
13+
init({
14+
dsn: '__DSN__',
15+
frameContextLines: 10,
16+
});
17+
```
18+
119
# Upgrading from 6.x to 6.17.x
220

321
You only need to make changes when migrating to `6.17.x` if you are using our internal `Dsn` class. Our internal API class and typescript enums were deprecated, so we recommend you migrate them as well.
@@ -72,7 +90,7 @@ We deprecated the `Status` enum in `@sentry/tracing` and it will be removed in t
7290

7391
```js
7492
// New in 6.17.0:
75-
import { spanStatusfromHttpCode } from '@sentry/utils';
93+
import { spanStatusfromHttpCode } from '@sentry/tracing';
7694

7795
const status = spanStatusfromHttpCode(403);
7896

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"lerna": "3.4.0",
3-
"version": "6.17.7",
3+
"version": "6.18.1",
44
"packages": "packages/*",
55
"npmClient": "yarn",
66
"useWorkspaces": true

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151
],
5252
"devDependencies": {
5353
"@google-cloud/storage": "^5.7.0",
54+
"@rollup/plugin-commonjs": "^21.0.1",
55+
"@rollup/plugin-node-resolve": "^13.1.3",
56+
"@rollup/plugin-replace": "^3.0.1",
5457
"@size-limit/preset-small-lib": "^4.5.5",
5558
"@strictsoftware/typedoc-plugin-monorepo": "^0.3.1",
5659
"@types/chai": "^4.1.3",
@@ -71,6 +74,7 @@
7174
"prettier": "2.5.1",
7275
"replace-in-file": "^4.0.0",
7376
"rimraf": "^3.0.2",
77+
"rollup": "^2.67.1",
7478
"rollup-plugin-license": "^2.6.1",
7579
"rollup-plugin-terser": "^7.0.2",
7680
"rollup-plugin-typescript2": "^0.31.2",

packages/angular/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/angular",
3-
"version": "6.17.7",
3+
"version": "6.18.1",
44
"description": "Official Sentry SDK for Angular",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/angular",
@@ -21,9 +21,9 @@
2121
"@angular/router": "10.x || 11.x || 12.x || 13.x"
2222
},
2323
"dependencies": {
24-
"@sentry/browser": "6.17.7",
25-
"@sentry/types": "6.17.7",
26-
"@sentry/utils": "6.17.7",
24+
"@sentry/browser": "6.18.1",
25+
"@sentry/types": "6.18.1",
26+
"@sentry/utils": "6.18.1",
2727
"rxjs": "^6.6.0",
2828
"tslib": "^1.9.3"
2929
},

packages/browser/package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/browser",
3-
"version": "6.17.7",
3+
"version": "6.18.1",
44
"description": "Official Sentry SDK for browsers",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/browser",
@@ -16,9 +16,9 @@
1616
"access": "public"
1717
},
1818
"dependencies": {
19-
"@sentry/core": "6.17.7",
20-
"@sentry/types": "6.17.7",
21-
"@sentry/utils": "6.17.7",
19+
"@sentry/core": "6.18.1",
20+
"@sentry/types": "6.18.1",
21+
"@sentry/utils": "6.18.1",
2222
"tslib": "^1.9.3"
2323
},
2424
"devDependencies": {
@@ -40,9 +40,6 @@
4040
"karma-webkit-launcher": "^1.0.2",
4141
"node-fetch": "^2.6.0",
4242
"playwright": "^1.17.1",
43-
"rollup": "^1.10.1",
44-
"rollup-plugin-commonjs": "^9.3.4",
45-
"rollup-plugin-node-resolve": "^4.2.3",
4643
"sinon": "^7.3.2",
4744
"webpack": "^4.30.0"
4845
},

0 commit comments

Comments
 (0)