Skip to content

Commit 87b44d8

Browse files
authored
Merge branch 'develop' into feat/tracing-in-core
2 parents 6a1b85d + 4ba16e7 commit 87b44d8

Some content is hidden

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

72 files changed

+805
-333
lines changed

.github/workflows/auto-release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Gitflow - Auto prepare release
2+
on:
3+
pull_request:
4+
types:
5+
- closed
6+
branches:
7+
- master
8+
9+
# This workflow tirggers a release when merging a branch with the pattern `prepare-release/VERSION` into master.
10+
jobs:
11+
release:
12+
runs-on: ubuntu-20.04
13+
name: 'Prepare a new version'
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
token: ${{ secrets.GH_RELEASE_PAT }}
19+
fetch-depth: 0
20+
21+
# https://github.com/actions-ecosystem/action-regex-match
22+
- uses: actions-ecosystem/action-regex-match@v2
23+
id: version
24+
with:
25+
# Parse version from head branch
26+
text: ${{ github.head_ref }}
27+
# match: preprare-release/xx.xx.xx
28+
regex: '^preprare-release\/(\d+\.\d+\.\d+)$'
29+
30+
- name: Prepare release
31+
uses: getsentry/action-prepare-release@v1
32+
if: github.event.pull_request.merged == true && steps.version.outputs.match != ''
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
35+
with:
36+
version: ${{ steps.version.outputs.match != '' }}
37+
force: false
38+
merge_target: master

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ jobs:
137137
# Note: These next three have to be checked as strings ('true'/'false')!
138138
is_develop: ${{ github.ref == 'refs/heads/develop' }}
139139
is_release: ${{ startsWith(github.ref, 'refs/heads/release/') }}
140-
is_gitflow_sync: ${{ github.head_ref == 'refs/heads/develop' || github.head_ref == 'refs/heads/master' }}
140+
# When merging into master, or from master
141+
is_gitflow_sync: ${{ github.head_ref == 'refs/heads/master' || github.ref == 'refs/heads/master' }}
141142
has_gitflow_label:
142143
${{ github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' Gitflow ') }}
143144
force_skip_cache:
@@ -468,7 +469,7 @@ jobs:
468469
strategy:
469470
fail-fast: false
470471
matrix:
471-
node: [10, 12, 14, 16, 18]
472+
node: [10, 12, 14, 16, '18.13.0']
472473
steps:
473474
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
474475
uses: actions/checkout@v3
@@ -532,6 +533,8 @@ jobs:
532533
- bundle_es5_min
533534
- bundle_es6
534535
- bundle_es6_min
536+
- bundle_replay_es6
537+
- bundle_replay_es6_min
535538
tracing_only:
536539
- true
537540
- false

.github/workflows/gitflow-sync-master.yml

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

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,38 @@
44

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

7+
## 7.37.2
8+
9+
This release includes changes and fixes around text masking and blocking in Replay's `rrweb` dependency. See versions [1.102.0](https://github.com/getsentry/rrweb/releases/tag/1.102.0) and [1.103.0](https://github.com/getsentry/rrweb/releases/tag/1.103.0).
10+
11+
- feat: Check `blockSelector` for blocking elements as well
12+
- feat: With maskAllText, mask the attributes: placeholder, title, `aria-label`
13+
- feat: fix masking on `textarea`
14+
- feat: Add `maskAllText` option
15+
16+
SDK Changes:
17+
18+
- fix(replay): Fix svgs not getting unblocked (#7132)
19+
20+
## 7.37.1
21+
22+
- fix(browser): Support `async` in stack frame urls (#7131)
23+
- fix(nextjs): Make api route identifier stricter (#7126)
24+
- fix(node): Don't rely on `this` in http integration (#7135)
25+
- fix(replay): Fix missing fetch/xhr requests (#7134)
26+
- fix(tracing): Export `defaultStackParser` from tracing CDN bundles (#7116)
27+
728
## 7.37.0
829

930
- feat: Add source map debug ids (#7068)
1031
- feat(browser): Add IndexedDb offline transport store (#6983)
1132
- feat(nextjs): Add auto-wrapping for server components (#6953)
33+
- feat(nextjs): Improve client stack traces (#7097)
1234
- feat(replay): Improve rrweb error ignoring (#7087 & #7094)
1335
- feat(replay): Send client_report when replay sending fails (#7093)
1436
- fix(node): `LocalVariables`, Improve frame matching for ESM (#7049)
1537
- fix(node): Add lru cache to http integration span map (#7064)
38+
- fix(replay): Export Replay from Sentry namespace in full CDN bundle (#7119)
1639

1740
Work in this release contributed by @JamesHenry. Thank you for your contribution!
1841

MIGRATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export function makeMyCustomTransport(options: BaseTransportOptions): Transport
254254
}
255255

256256
// `createTransport` takes care of rate limiting and flushing
257-
return createTransport({ bufferSize: options.bufferSize }, makeRequest);
257+
return createTransport(options, makeRequest);
258258
}
259259

260260
Sentry.init({

docs/publishing-a-release.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ _These steps are only relevant to Sentry employees when preparing and publishing
66
**If you want to release a new SDK for the first time, be sure to follow the [New SDK Release Checklist](./new-sdk-release-checklist.md)**
77

88
1. Determine what version will be released (we use [semver](https://semver.org)).
9-
2. Update [`CHANGELOG.md`](https://github.com/getsentry/sentry-javascript/edit/master/CHANGELOG.md) to add an entry for the next release number and a list of changes since the last release. (See details below.)
10-
a. Merging the Changelog PR will automatically trigger a sync from `develop` -> `master`
11-
3. Run the [Prepare Release](https://github.com/getsentry/sentry-javascript/actions/workflows/release.yml) workflow.
12-
a. Wait for this until the sync to `master` is completed.
13-
4. A new issue should appear in https://github.com/getsentry/publish/issues.
14-
5. Ask a member of the [@getsentry/releases team](https://github.com/orgs/getsentry/teams/releases/members) to approve the release.
9+
2. Create a branch `prepare-release/VERSION`, eg. `prepare-release/7.37.0`, off develop
10+
3. Update [`CHANGELOG.md`](https://github.com/getsentry/sentry-javascript/edit/master/CHANGELOG.md) to add an entry for the next release number and a list of changes since the last release. (See details below.)
11+
4. Create a PR towards `master` branch
12+
5. When the PR is merged, it will automatically trigger the [Prepare Release](https://github.com/getsentry/sentry-javascript/actions/workflows/release.yml) on master.
13+
6. A new issue should appear in https://github.com/getsentry/publish/issues.
14+
7. Ask a member of the [@getsentry/releases team](https://github.com/orgs/getsentry/teams/releases/members) to approve the release.
1515
a. Once the release is completed, a sync from `master` ->` develop` will be automatically triggered
1616

1717
## Updating the Changelog
1818

19-
1. Create a new branch.
19+
1. Create a new branch `prepare-release/VERSION` off of `develop`, e.g. `prepare-release/7.37.1`.
2020
2. Run `yarn changelog` and copy everything
2121
3. Create a new section in the changelog, deciding based on the changes whether it should be a minor bump or a patch release.
2222
4. Paste in the logs you copied earlier.
2323
5. Delete any which aren't user-facing changes.
2424
7. If any of the PRs are from external contributors, include underneath the commits `Work in this release contributed by <list of external contributors' GitHub usernames>. Thank you for your contributions!`. If there's only one external PR, don't forget to remove the final `s`. If there are three or more, use an Oxford comma. (It's in the Sentry styleguide!)
25-
8. Commit, push, and open a PR with the title `meta: Update changelog for <fill in relevant version here>` against `develop` branch.
25+
8. Commit, push, and open a PR with the title `meta(changelog): Update changelog for VERSION` against `master` branch.

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "7.36.0",
3+
"version": "7.37.2",
44
"npmClient": "yarn",
55
"useWorkspaces": true
66
}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@
109109
"typescript": "3.8.3"
110110
},
111111
"resolutions": {
112-
"**/agent-base": "5",
113-
"@types/express-serve-static-core": "4.17.30"
112+
"**/agent-base": "5"
114113
},
115114
"version": "0.0.0",
116115
"name": "sentry-javascript"

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": "7.36.0",
3+
"version": "7.37.2",
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
"rxjs": "^6.5.5 || ^7.x"
2222
},
2323
"dependencies": {
24-
"@sentry/browser": "7.36.0",
25-
"@sentry/types": "7.36.0",
26-
"@sentry/utils": "7.36.0",
24+
"@sentry/browser": "7.37.2",
25+
"@sentry/types": "7.37.2",
26+
"@sentry/utils": "7.37.2",
2727
"tslib": "^2.0.0"
2828
},
2929
"devDependencies": {

packages/browser/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/browser",
3-
"version": "7.36.0",
3+
"version": "7.37.2",
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,10 +16,10 @@
1616
"access": "public"
1717
},
1818
"dependencies": {
19-
"@sentry/core": "7.36.0",
20-
"@sentry/replay": "7.36.0",
21-
"@sentry/types": "7.36.0",
22-
"@sentry/utils": "7.36.0",
19+
"@sentry/core": "7.37.2",
20+
"@sentry/replay": "7.37.2",
21+
"@sentry/types": "7.37.2",
22+
"@sentry/utils": "7.37.2",
2323
"tslib": "^1.9.3"
2424
},
2525
"devDependencies": {

packages/browser/src/stack-parsers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function createFrame(filename: string, func: string, lineno?: number, colno?: nu
3131

3232
// Chromium based browsers: Chrome, Brave, new Opera, new Edge
3333
const chromeRegex =
34-
/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
34+
/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?(?:async )?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
3535
const chromeEvalRegex = /\((\S*)(?::(\d+))(?::(\d+))\)/;
3636

3737
const chrome: StackLineParserFn = line => {

packages/browser/test/unit/tracekit/chromium.test.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,31 @@ describe('Tracekit - Chrome Tests', () => {
332332
});
333333
});
334334

335+
it('should parse frames with async urls', () => {
336+
const CHROME_109_ASYNC_URL = {
337+
message: 'bad',
338+
name: 'Error',
339+
stack: `Error: bad
340+
at callAnotherThing (http://localhost:5000/:20:16)
341+
at Object.callback (async http://localhost:5000/:25:7)
342+
at test (http://localhost:5000/:33:23)`,
343+
};
344+
345+
const ex = exceptionFromError(parser, CHROME_109_ASYNC_URL);
346+
347+
expect(ex).toEqual({
348+
value: 'bad',
349+
type: 'Error',
350+
stacktrace: {
351+
frames: [
352+
{ filename: 'http://localhost:5000/', function: 'test', lineno: 33, colno: 23, in_app: true },
353+
{ filename: 'http://localhost:5000/', function: 'Object.callback', lineno: 25, colno: 7, in_app: true },
354+
{ filename: 'http://localhost:5000/', function: 'callAnotherThing', lineno: 20, colno: 16, in_app: true },
355+
],
356+
},
357+
});
358+
});
359+
335360
it('should parse exceptions with native code frames in Edge 44', () => {
336361
const EDGE44_NATIVE_CODE_EXCEPTION = {
337362
message: 'test',

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/core",
3-
"version": "7.36.0",
3+
"version": "7.37.2",
44
"description": "Base implementation for all Sentry JavaScript SDKs",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/core",
@@ -16,8 +16,8 @@
1616
"access": "public"
1717
},
1818
"dependencies": {
19-
"@sentry/types": "7.36.0",
20-
"@sentry/utils": "7.36.0",
19+
"@sentry/types": "7.37.2",
20+
"@sentry/utils": "7.37.2",
2121
"tslib": "^1.9.3"
2222
},
2323
"scripts": {

packages/core/src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const SDK_VERSION = '7.36.0';
1+
export const SDK_VERSION = '7.37.2';

packages/e2e-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/e2e-tests",
3-
"version": "7.36.0",
3+
"version": "7.37.2",
44
"license": "MIT",
55
"engines": {
66
"node": ">=10"

packages/ember/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/ember",
3-
"version": "7.36.0",
3+
"version": "7.37.2",
44
"description": "Official Sentry SDK for Ember.js",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/ember",
@@ -29,10 +29,10 @@
2929
},
3030
"dependencies": {
3131
"@embroider/macros": "^1.9.0",
32-
"@sentry/browser": "7.36.0",
33-
"@sentry/tracing": "7.36.0",
34-
"@sentry/types": "7.36.0",
35-
"@sentry/utils": "7.36.0",
32+
"@sentry/browser": "7.37.2",
33+
"@sentry/tracing": "7.37.2",
34+
"@sentry/types": "7.37.2",
35+
"@sentry/utils": "7.37.2",
3636
"ember-auto-import": "^1.12.1 || ^2.4.3",
3737
"ember-cli-babel": "^7.26.11",
3838
"ember-cli-htmlbars": "^6.1.1",

packages/eslint-config-sdk/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/eslint-config-sdk",
3-
"version": "7.36.0",
3+
"version": "7.37.2",
44
"description": "Official Sentry SDK eslint config",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/eslint-config-sdk",
@@ -19,8 +19,8 @@
1919
"access": "public"
2020
},
2121
"dependencies": {
22-
"@sentry-internal/eslint-plugin-sdk": "7.36.0",
23-
"@sentry-internal/typescript": "7.36.0",
22+
"@sentry-internal/eslint-plugin-sdk": "7.37.2",
23+
"@sentry-internal/typescript": "7.37.2",
2424
"@typescript-eslint/eslint-plugin": "^5.48.0",
2525
"@typescript-eslint/parser": "^5.48.0",
2626
"eslint-config-prettier": "^6.11.0",

packages/eslint-plugin-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/eslint-plugin-sdk",
3-
"version": "7.36.0",
3+
"version": "7.37.2",
44
"description": "Official Sentry SDK eslint plugin",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/eslint-plugin-sdk",

0 commit comments

Comments
 (0)