Skip to content

Commit f7d1ee5

Browse files
Merge pull request #7111 from getsentry/develop
[Gitflow] Merge develop into master
2 parents e497bcd + bc942ae commit f7d1ee5

File tree

91 files changed

+2426
-1270
lines changed

Some content is hidden

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

91 files changed

+2426
-1270
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ body:
2525
- type: dropdown
2626
id: package
2727
attributes:
28-
label: Which package are you using?
28+
label:
29+
Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g.
30+
`bundle.tracing.min.js`) in your SDK setup.
2931
options:
3032
- '@sentry/angular'
3133
- '@sentry/browser'
@@ -40,6 +42,8 @@ body:
4042
- '@sentry/svelte'
4143
- '@sentry/vue'
4244
- '@sentry/wasm'
45+
- Sentry Browser CDN bundle
46+
- Sentry Browser Loader
4347
validations:
4448
required: true
4549
- type: input

.github/workflows/build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,14 @@ jobs:
164164
id: compute_lockfile_hash
165165
run: echo "hash=${{ hashFiles('yarn.lock') }}" >> "$GITHUB_OUTPUT"
166166

167-
# When the `ci-skip-cache` label is added to a PR, we always want to skip dependency cache
168167
- name: Check dependency cache
169168
uses: actions/cache@v3
170169
id: cache_dependencies
171-
if: needs.job_get_metadata.outputs.force_skip_cache == 'false'
172170
with:
173171
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
174172
key: ${{ steps.compute_lockfile_hash.outputs.hash }}
175173

176174
- name: Install dependencies
177-
if:
178-
steps.cache_dependencies.outputs.cache-hit == '' || needs.job_get_metadata.outputs.force_skip_cache == 'true'
179175
run: yarn install --ignore-engines --frozen-lockfile
180176
outputs:
181177
dependency_cache_key: ${{ steps.compute_lockfile_hash.outputs.hash }}
@@ -802,7 +798,9 @@ jobs:
802798
needs: [job_get_metadata, job_build]
803799
runs-on: ubuntu-20.04
804800
timeout-minutes: 30
805-
if: contains(github.event.pull_request.labels.*.name, 'ci-overhead-measurements')
801+
if: |
802+
contains(github.event.pull_request.labels.*.name, 'ci-overhead-measurements') ||
803+
needs.job_get_metadata.outputs.is_develop == 'true'
806804
steps:
807805
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
808806
uses: actions/checkout@v3

.github/workflows/clear-cache.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Clear all GHA caches
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
clear-caches:
7+
name: Delete all caches
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- name: Clear caches
11+
uses: easimon/wipe-cache@v2

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Gitflow - Sync develop into master
22
on:
3-
push:
4-
pull_request:
5-
- types: [closed]
6-
- branches:
7-
- 'develop'
3+
pull_request:
4+
types:
5+
- closed
6+
branches:
7+
- develop
88

99
env:
1010
MAIN_BRANCH: master

.size-limit.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,10 @@ module.exports = [
8484
gzip: true,
8585
limit: '80 KB',
8686
},
87+
{
88+
name: '@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified)',
89+
path: 'packages/browser/build/bundles/bundle.replay.min.js',
90+
gzip: true,
91+
limit: '80 KB',
92+
},
8793
];

.yarnrc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
workspaces-experimental true
2-
env:
3-
NODE_OPTIONS --stack-trace-limit=10000
1+
env: NODE_OPTIONS --stack-trace-limit=10000

CHANGELOG.md

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

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

7+
## 7.37.0
8+
9+
- feat: Add source map debug ids (#7068)
10+
- feat(browser): Add IndexedDb offline transport store (#6983)
11+
- feat(nextjs): Add auto-wrapping for server components (#6953)
12+
- feat(replay): Improve rrweb error ignoring (#7087 & #7094)
13+
- feat(replay): Send client_report when replay sending fails (#7093)
14+
- fix(node): `LocalVariables`, Improve frame matching for ESM (#7049)
15+
- fix(node): Add lru cache to http integration span map (#7064)
16+
17+
Work in this release contributed by @JamesHenry. Thank you for your contribution!
18+
719
## 7.36.0
820

921
This Release re-introduces the accidentally removed but still deprecated `maskInputOptions` option for Session Replay.

CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ To run the test suite and our code linter, node.js and yarn are required.
1616
[`node` download](https://nodejs.org/download)
1717
[`yarn` download](https://yarnpkg.com/en/docs/install)
1818

19-
`sentry-javascript` is a monorepo containing several packages, and we use `lerna` to manage them. To get started, install all dependencies, use `lerna` to bootstrap the workspace, and then perform an initial build, so TypeScript can read all of the linked type definitions.
19+
`sentry-javascript` is a monorepo containing several packages, and we use `lerna` to manage them. To get started, install all dependencies, and then perform an initial build, so TypeScript can read all of the linked type definitions.
2020

2121
```
2222
$ yarn
23-
$ yarn lerna bootstrap
2423
$ yarn build
2524
```
2625

lerna.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
33
"version": "7.36.0",
4-
"packages": [
5-
"packages/*"
6-
],
74
"npmClient": "yarn",
85
"useWorkspaces": true
96
}

nx.json

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,44 +6,44 @@
66
"cacheableOperations": [
77
"build:bundle",
88
"build:transpile",
9-
"build:types"
9+
"build:types",
10+
"lint:eslint"
1011
]
1112
}
1213
}
1314
},
1415
"namedInputs": {
16+
"default": ["{projectRoot}/**/*", "sharedGlobals"],
1517
"sharedGlobals": [
1618
"{workspaceRoot}/*.js",
17-
"{workspaceRoot}/*.json",
18-
"{workspaceRoot}/yarn.lock"
19+
"{workspaceRoot}/*.json"
1920
],
20-
"default": [
21-
"{projectRoot}/**/*",
22-
"sharedGlobals",
21+
"production": [
22+
"default",
2323
"!{projectRoot}/test/**/*",
2424
"!{projectRoot}/**/*.md"
2525
]
2626
},
2727
"targetDefaults": {
2828
"build:bundle": {
29+
"inputs": ["production", "^production"],
2930
"dependsOn": [
30-
"^build:transpile",
3131
"build:transpile"
3232
],
3333
"outputs": [
3434
"{projectRoot}/build/bundles"
3535
]
3636
},
3737
"build:tarball": {
38+
"inputs": ["production", "^production"],
3839
"dependsOn": [
39-
"^build:transpile",
4040
"build:transpile",
41-
"^build:types",
4241
"build:types"
4342
],
4443
"outputs": []
4544
},
4645
"build:transpile": {
46+
"inputs": ["production", "^production"],
4747
"dependsOn": [
4848
"^build:transpile:uncached",
4949
"^build:transpile",
@@ -56,28 +56,18 @@
5656
]
5757
},
5858
"build:types": {
59+
"inputs": ["production", "^production"],
5960
"dependsOn": [
6061
"^build:types"
6162
],
6263
"outputs": [
6364
"{projectRoot}/build/types",
6465
"{projectRoot}/build/npm/types"
6566
]
66-
}
67-
},
68-
"targets": {
69-
"@sentry/serverless": {
70-
"build:bundle": {
71-
"dependsOn": [
72-
"^build:transpile",
73-
"build:transpile",
74-
"^build:types",
75-
"build:types"
76-
],
77-
"outputs": [
78-
"{projectRoot}/build/aws"
79-
]
80-
}
67+
},
68+
"lint:eslint": {
69+
"inputs": ["default"],
70+
"outputs": []
8171
}
8272
}
8373
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"scripts": {
44
"build": "node ./scripts/verify-packages-versions.js && run-s build:types build:transpile build:bundle",
55
"build:bundle": "lerna run build:bundle",
6-
"build:dev": "run-s build:types build:transpile",
6+
"build:dev": "lerna run build:types,build:transpile",
77
"build:dev:filter": "lerna run build:dev --include-filtered-dependencies --include-filtered-dependents --scope",
88
"build:transpile": "lerna run build:transpile",
99
"build:types": "lerna run build:types",
@@ -85,7 +85,7 @@
8585
"jsdom": "^19.0.0",
8686
"karma-browserstack-launcher": "^1.5.1",
8787
"karma-firefox-launcher": "^1.1.0",
88-
"lerna": "^6.0.3",
88+
"lerna": "6.5.0-alpha.2",
8989
"madge": "4.0.2",
9090
"magic-string": "^0.27.0",
9191
"mocha": "^6.1.4",

packages/angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"fix:eslint": "eslint . --format stylish --fix",
5555
"fix:prettier": "prettier --write \"{src,test,scripts}/**/**.ts\"",
5656
"lint": "run-s lint:prettier lint:eslint",
57-
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
57+
"lint:eslint": "eslint . --format stylish",
5858
"lint:prettier": "prettier --check \"{src,test,scripts}/**/**.ts\"",
5959
"test": "yarn test:unit",
6060
"test:unit": "jest",

packages/browser/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"btoa": "^1.2.1",
2828
"chai": "^4.1.2",
2929
"chokidar": "^3.0.2",
30+
"fake-indexeddb": "^4.0.1",
3031
"karma": "^6.3.16",
3132
"karma-chai": "^0.1.0",
3233
"karma-chrome-launcher": "^2.2.0",
@@ -61,7 +62,7 @@
6162
"fix:eslint": "eslint . --format stylish --fix",
6263
"fix:prettier": "prettier --write \"{src,test,scripts}/**/**.ts\"",
6364
"lint": "run-s lint:prettier lint:eslint",
64-
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
65+
"lint:eslint": "eslint . --format stylish",
6566
"lint:prettier": "prettier --check \"{src,test,scripts}/**/**.ts\"",
6667
"size:check": "run-p size:check:es5 size:check:es6",
6768
"size:check:es5": "cat build/bundles/bundle.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES5: \",$1,\"kB\";}'",

packages/browser/rollup.bundle.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,16 @@ const builds = [];
1414
builds.push(...makeBundleConfigVariants(baseBundleConfig));
1515
});
1616

17+
// Full bundle incl. replay only available for es6
18+
const replayBaseBundleConfig = makeBaseBundleConfig({
19+
bundleType: 'standalone',
20+
entrypoints: ['src/index.ts'],
21+
jsVersion: 'es6',
22+
licenseTitle: '@sentry/browser & @sentry/replay',
23+
outputFileBase: () => 'bundles/bundle.replay',
24+
includeReplay: true,
25+
});
26+
27+
builds.push(...makeBundleConfigVariants(replayBaseBundleConfig));
28+
1729
export default builds;

packages/browser/src/index.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@ const INTEGRATIONS = {
2121
export { INTEGRATIONS as Integrations };
2222

2323
// DO NOT DELETE THESE COMMENTS!
24-
// We want to exclude Replay from CDN bundles, so we remove the block below with our
25-
// excludeReplay Rollup plugin when generating bundles. Everything between
26-
// ROLLUP_EXCLUDE_FROM_BUNDLES_BEGIN and _END__ is removed for bundles.
24+
// We want to exclude Replay/Offline from CDN bundles, so we remove the block below with our
25+
// makeExcludeBlockPlugin Rollup plugin when generating bundles. Everything between
26+
// ROLLUP_EXCLUDE_*_FROM_BUNDLES_BEGIN and _END__ is removed for bundles.
2727

28-
// __ROLLUP_EXCLUDE_FROM_BUNDLES_BEGIN__
28+
// __ROLLUP_EXCLUDE_REPLAY_FROM_BUNDLES_BEGIN__
2929
export { Replay } from '@sentry/replay';
30-
// __ROLLUP_EXCLUDE_FROM_BUNDLES_END__
30+
// __ROLLUP_EXCLUDE_REPLAY_FROM_BUNDLES_END__
31+
32+
// __ROLLUP_EXCLUDE_OFFLINE_FROM_BUNDLES_BEGIN__
33+
export { makeBrowserOfflineTransport } from './transports/offline';
34+
// __ROLLUP_EXCLUDE_OFFLINE_FROM_BUNDLES_END__

0 commit comments

Comments
 (0)