Skip to content

Commit c39b603

Browse files
committed
Merge branch 'master' of github.com:getsentry/sentry-javascript
2 parents 4adbc0b + 6587399 commit c39b603

Some content is hidden

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

67 files changed

+3809
-4143
lines changed

CHANGELOG.md

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

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

7+
## 6.2.5
8+
9+
- [utils] fix: Avoid performance.timeOrigin if too skewed (#3356)
10+
11+
## 6.2.4
12+
13+
- [browser] fix: Add `SentryRequestType` to `RateLimitingCategory` mapping (#3328)
14+
- [browser] ref: Add fast-path to `fetchImpl` and cleanup redundant iframe (#3341)
15+
- [node] fix: Fallback to empty string if `req.baseUrl` is empty (#3329)
16+
- [node] ref: Remove circular dependency in `@sentry/node` (#3335)
17+
- [tracing] fix: Attach mysql tracing to `Connection.createQuery` instead of `Connection.prototype.query` (#3353)
18+
- [tracing] ref: Clarify naming in `BrowserTracing` integration (#3338)
19+
- [ember] ref: Fix tests to be forward compatible with component changes (#3347)
20+
- [ember] ref: Silence deprecation warnings in beta (#3346)
21+
22+
## 6.2.3
23+
24+
- [gatsby] fix: Update Vercel environment variables to match their current system variables (#3337)
25+
26+
## 6.2.2
27+
28+
- [hub] fix: Only create sessions if the correct methods are defined (#3281)
29+
- [core] fix: Don't override SDK metadata (#3304)
30+
- [browser] fix: Prevent fetch errors loops with invalid fetch implementations (#3318)
31+
- [serverless] ref: Add compatible runtime nodejs14.x to building awslambda layer (#3303)
32+
- [ember] fix: Keep route hook context when performance-wrapping (#3274)
33+
- [integrations] fix: Normalized Event before caching. (#3305)
34+
735
## 6.2.1
836

937
- [core] fix: Moves SDK metadata-setting into the `NodeClient/BrowserClient` to protect it from being overwritten by other classes extending `BaseClient` like @sentry/serverless (#3279)

CONTRIBUTING.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,20 @@ Similar to building and testing, linting can be done in the project root or in i
5151

5252
Note: you must run `yarn build` before `yarn lint` will work.
5353

54-
## Final Notes
54+
## Considerations Before Sending Your First PR
5555

56-
When contributing to the codebase, please make note of the following:
56+
When contributing to the codebase, please note:
5757

5858
- Non-trivial PRs will not be accepted without tests (see above).
5959
- Please do not bump version numbers yourself.
6060
- [`raven-js`](https://github.com/getsentry/sentry-javascript/tree/3.x/packages/raven-js) and [`raven-node`](https://github.com/getsentry/sentry-javascript/tree/3.x/packages/raven-node) are deprecated, and only bug and security fix PRs will be accepted targeting the [3.x branch](https://github.com/getsentry/sentry-javascript/tree/3.x). Any new features and improvements should be to our new SDKs (`browser` and `node`) and the packages (`core`, `hub`, `integrations`, and the like) which support them.
61+
62+
## Publishing a Release
63+
64+
_These steps are only relevant to Sentry employees when preparing and publishing a new SDK release._
65+
66+
1. Determine what version will be released (we use [semver](https://semver.org)).
67+
2. Update [`CHANGELOG.md`](https://github.com/getsentry/sentry-javascript/edit/master/CHANGELOG.md) to add an entry to the next release number and a list of changes since the last release.
68+
3. Run the [Prepare Release](https://github.com/getsentry/sentry-javascript/actions/workflows/release.yml) workflow.
69+
4. A new issue should appear in https://github.com/getsentry/publish/issues.
70+
5. Ask a member of the [@getsentry/releases team](https://github.com/orgs/getsentry/teams/releases/members) to approve the release.

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ convenient interface and improved consistency between various JavaScript environ
3939
For each major JavaScript platform, there is a specific high-level SDK that provides all the tools you need in a single
4040
package. Please refer to the README and instructions of those SDKs for more detailed information:
4141

42-
- [`@sentry/browser`](https://github.com/getsentry/sentry-javascript/tree/master/packages/browser): SDK for Browsers,
43-
including integrations for React, Angular, Ember, Vue and Backbone
42+
- [`@sentry/browser`](https://github.com/getsentry/sentry-javascript/tree/master/packages/browser): SDK for Browsers
43+
including integrations for Backbone
4444
- [`@sentry/node`](https://github.com/getsentry/sentry-javascript/tree/master/packages/node): SDK for Node, including
4545
integrations for Express, Koa, Loopback, Sails and Connect
46-
- [`@sentry/angular`](https://github.com/getsentry/sentry-javascript/tree/master/packages/angular): SDK for Angular
47-
- [`@sentry/react`](https://github.com/getsentry/sentry-javascript/tree/master/packages/react): SDK for ReactJS
48-
- [`@sentry/ember`](https://github.com/getsentry/sentry-javascript/tree/master/packages/ember): SDK for Ember
49-
- [`@sentry/vue`](https://github.com/getsentry/sentry-javascript/tree/master/packages/vue): SDK for Vue.js
46+
- [`@sentry/angular`](https://github.com/getsentry/sentry-javascript/tree/master/packages/angular): browser SDK with Angular integration enabled
47+
- [`@sentry/react`](https://github.com/getsentry/sentry-javascript/tree/master/packages/react): browser SDK with React integration enabled
48+
- [`@sentry/ember`](https://github.com/getsentry/sentry-javascript/tree/master/packages/ember): browser SDK with Ember integration enabled
49+
- [`@sentry/vue`](https://github.com/getsentry/sentry-javascript/tree/master/packages/vue): browser SDK with Vue integration enabled
5050
- [`@sentry/gatsby`](https://github.com/getsentry/sentry-javascript/tree/master/packages/gatsby): SDK for Gatsby
5151
- [`@sentry/react-native`](https://github.com/getsentry/sentry-react-native): SDK for React Native with support for native crashes
5252
- [`@sentry/integrations`](https://github.com/getsentry/sentry-javascript/tree/master/packages/integrations): Pluggable

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.2.1",
3+
"version": "6.2.5",
44
"packages": "packages/*",
55
"npmClient": "yarn",
66
"useWorkspaces": true

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"packages/types",
3737
"packages/typescript",
3838
"packages/utils",
39-
"packages/wasm",
40-
"packages/vue"
39+
"packages/vue",
40+
"packages/wasm"
4141
],
4242
"devDependencies": {
4343
"@google-cloud/storage": "^5.7.0",

packages/angular/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ Registering a Trace Service is a 3-step process.
8282
instrumentation:
8383

8484
```javascript
85-
import { init, routingInstrumentation } from '@sentry/angular';
85+
import { init, instrumentAngularRouting } from '@sentry/angular';
8686
import { Integrations as TracingIntegrations } from '@sentry/tracing';
8787

8888
init({
8989
dsn: '__DSN__',
9090
integrations: [
9191
new TracingIntegrations.BrowserTracing({
9292
tracingOrigins: ['localhost', 'https://yourserver.io/api'],
93-
routingInstrumentation: routingInstrumentation,
93+
routingInstrumentation: instrumentAngularRouting,
9494
}),
9595
],
9696
tracesSampleRate: 1,

packages/angular/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry/angular",
3-
"version": "6.2.1",
3+
"version": "6.2.5",
44
"description": "Offical 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,17 +21,17 @@
2121
"@angular/router": "10.x || 11.x"
2222
},
2323
"dependencies": {
24-
"@sentry/browser": "6.2.1",
25-
"@sentry/types": "6.2.1",
26-
"@sentry/utils": "6.2.1",
24+
"@sentry/browser": "6.2.5",
25+
"@sentry/types": "6.2.5",
26+
"@sentry/utils": "6.2.5",
2727
"rxjs": "^6.6.0",
2828
"tslib": "^1.9.3"
2929
},
3030
"devDependencies": {
3131
"@angular/common": "^10.0.3",
3232
"@angular/core": "^10.0.3",
3333
"@angular/router": "^10.0.3",
34-
"@sentry-internal/eslint-config-sdk": "6.2.1",
34+
"@sentry-internal/eslint-config-sdk": "6.2.5",
3535
"eslint": "7.6.0",
3636
"npm-run-all": "^4.1.2",
3737
"prettier": "1.19.0",

packages/angular/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ export { init } from './sdk';
44
export { createErrorHandler, ErrorHandlerOptions } from './errorhandler';
55
export {
66
getActiveTransaction,
7-
routingInstrumentation,
7+
// TODO `instrumentAngularRouting` is just an alias for `routingInstrumentation`; deprecate the latter at some point
8+
instrumentAngularRouting, // new name
9+
routingInstrumentation, // legacy name
810
TraceClassDecorator,
911
TraceMethodDecorator,
1012
TraceDirective,

packages/angular/src/tracing.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,24 @@ let stashedStartTransactionOnLocationChange: boolean;
1414
* Creates routing instrumentation for Angular Router.
1515
*/
1616
export function routingInstrumentation(
17-
startTransaction: (context: TransactionContext) => Transaction | undefined,
17+
customStartTransaction: (context: TransactionContext) => Transaction | undefined,
1818
startTransactionOnPageLoad: boolean = true,
1919
startTransactionOnLocationChange: boolean = true,
2020
): void {
2121
instrumentationInitialized = true;
22-
stashedStartTransaction = startTransaction;
22+
stashedStartTransaction = customStartTransaction;
2323
stashedStartTransactionOnLocationChange = startTransactionOnLocationChange;
2424

2525
if (startTransactionOnPageLoad) {
26-
startTransaction({
26+
customStartTransaction({
2727
name: window.location.pathname,
2828
op: 'pageload',
2929
});
3030
}
3131
}
3232

33+
export const instrumentAngularRouting = routingInstrumentation;
34+
3335
/**
3436
* Grabs active transaction off scope
3537
*/

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": "6.2.1",
3+
"version": "6.2.5",
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,13 +16,13 @@
1616
"access": "public"
1717
},
1818
"dependencies": {
19-
"@sentry/core": "6.2.1",
20-
"@sentry/types": "6.2.1",
21-
"@sentry/utils": "6.2.1",
19+
"@sentry/core": "6.2.5",
20+
"@sentry/types": "6.2.5",
21+
"@sentry/utils": "6.2.5",
2222
"tslib": "^1.9.3"
2323
},
2424
"devDependencies": {
25-
"@sentry-internal/eslint-config-sdk": "6.2.1",
25+
"@sentry-internal/eslint-config-sdk": "6.2.5",
2626
"@types/eslint": "^7.2.0",
2727
"@types/md5": "2.1.33",
2828
"btoa": "^1.2.1",

0 commit comments

Comments
 (0)