Skip to content

Commit 00d2996

Browse files
authored
Merge pull request #9343 from getsentry/prepare-release/7.75.0
meta(changelog): Update Changelog for 7.75.0
2 parents fdaf5f6 + eb1c12a commit 00d2996

File tree

258 files changed

+6546
-2419
lines changed

Some content is hidden

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

258 files changed

+6546
-2419
lines changed

.craft.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ targets:
2424
- name: npm
2525
id: '@sentry/replay'
2626
includeNames: /^sentry-replay-\d.*\.tgz$/
27+
## 1.6. OpenTelemetry package
28+
- name: npm
29+
id: '@sentry/opentelemetry'
30+
includeNames: /^sentry-opentelemetry-\d.*\.tgz$/
2731

2832
## 2. Browser & Node SDKs
2933
- name: npm
@@ -63,6 +67,17 @@ targets:
6367
- name: npm
6468
id: '@sentry/vercel-edge'
6569
includeNames: /^sentry-vercel-edge-\d.*\.tgz$/
70+
- name: npm
71+
id: '@sentry/deno'
72+
includeNames: /^sentry-deno-\d.*\.tgz$/
73+
- name: commit-on-git-repository
74+
# This will publish on the Deno registry
75+
id: getsentry/deno
76+
archive: /^sentry-deno-\d.*\.tgz$/
77+
repositoryUrl: https://github.com/getsentry/sentry-deno.git
78+
stripComponents: 1
79+
branch: main
80+
createTag: true
6681

6782
## 5. Node-based Packages
6883
- name: npm

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ body:
3030
If you're using the CDN bundles, please specify the exact bundle (e.g. `bundle.tracing.min.js`) in your SDK
3131
setup.
3232
options:
33-
- '@sentry/astro'
3433
- '@sentry/browser'
34+
- '@sentry/astro'
3535
- '@sentry/angular'
3636
- '@sentry/angular-ivy'
3737
- '@sentry/bun'

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ jobs:
122122
- *shared
123123
- 'packages/node/**'
124124
- 'packages/node-integration-tests/**'
125+
deno:
126+
- *shared
127+
- *browser
128+
- 'packages/deno/**'
125129
any_code:
126130
- '!**/*.md'
127131
@@ -135,6 +139,7 @@ jobs:
135139
changed_ember: ${{ steps.changed.outputs.ember }}
136140
changed_remix: ${{ steps.changed.outputs.remix }}
137141
changed_node: ${{ steps.changed.outputs.node }}
142+
changed_deno: ${{ steps.changed.outputs.deno }}
138143
changed_browser: ${{ steps.changed.outputs.browser }}
139144
changed_browser_integration: ${{ steps.changed.outputs.browser_integration }}
140145
changed_any_code: ${{ steps.changed.outputs.any_code }}
@@ -422,6 +427,7 @@ jobs:
422427
job_deno_unit_tests:
423428
name: Deno Unit Tests
424429
needs: [job_get_metadata, job_build]
430+
if: needs.job_get_metadata.outputs.changed_deno == 'true' || github.event_name != 'pull_request'
425431
timeout-minutes: 10
426432
runs-on: ubuntu-20.04
427433
strategy:

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.md
22
.nxcache
3+
packages/browser-integration-tests/fixtures/loader.js

.size-limit.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,25 @@ module.exports = [
77
gzip: true,
88
limit: '90 KB',
99
},
10+
{
11+
name: '@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped)',
12+
path: 'packages/browser/build/npm/esm/index.js',
13+
import: '{ init, Replay, BrowserTracing }',
14+
gzip: true,
15+
limit: '90 KB',
16+
modifyWebpackConfig: function (config) {
17+
const webpack = require('webpack');
18+
config.plugins.push(
19+
new webpack.DefinePlugin({
20+
__SENTRY_DEBUG__: false,
21+
__RRWEB_EXCLUDE_CANVAS__: true,
22+
__RRWEB_EXCLUDE_SHADOW_DOM__: true,
23+
__RRWEB_EXCLUDE_IFRAME__: true,
24+
}),
25+
);
26+
return config;
27+
},
28+
},
1029
{
1130
name: '@sentry/browser (incl. Tracing) - Webpack (gzipped)',
1231
path: 'packages/browser/build/npm/esm/index.js',

.vscode/launch.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,7 @@
129129
"${fileBasename}"
130130
],
131131

132-
"skipFiles": [
133-
"<node_internals>/**",
134-
// this prevents us from landing in a neverending cycle of TS async-polyfill functions as we're stepping through
135-
// our code
136-
"${workspaceFolder}/node_modules/tslib/**/*"
137-
],
132+
"skipFiles": ["<node_internals>/**"],
138133
"sourceMaps": true,
139134
// this controls which files are sourcemapped
140135
"outFiles": [

CHANGELOG.md

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

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

7+
## 7.75.0
8+
9+
### Important Changes
10+
11+
- **feat(opentelemetry): Add new `@sentry/opentelemetry` package (#9238)**
12+
13+
This release publishes a new package, `@sentry/opentelemetry`. This is a runtime agnostic replacement for `@sentry/opentelemetry-node` and exports a couple of useful utilities which can be used to use Sentry together with OpenTelemetry.
14+
15+
You can read more about [@sentry/opentelemetry in the Readme](https://github.com/getsentry/sentry-javascript/tree/develop/packages/opentelemetry).
16+
17+
- **feat(replay): Allow to treeshake rrweb features (#9274)**
18+
19+
Starting with this release, you can configure the following build-time flags in order to reduce the SDK bundle size:
20+
21+
* `__RRWEB_EXCLUDE_CANVAS__`
22+
* `__RRWEB_EXCLUDE_IFRAME__`
23+
* `__RRWEB_EXCLUDE_SHADOW_DOM__`
24+
25+
You can read more about [tree shaking in our docs](https://docs.sentry.io/platforms/javascript/configuration/tree-shaking/).
26+
27+
28+
### Other Changes
29+
30+
- build(deno): Prepare Deno SDK for release on npm (#9281)
31+
- feat: Remove tslib (#9299)
32+
- feat(node): Add abnormal session support for ANR (#9268)
33+
- feat(node): Remove `lru_map` dependency (#9300)
34+
- feat(node): Vendor `cookie` module (#9308)
35+
- feat(replay): Share performance instrumentation with tracing (#9296)
36+
- feat(types): Add missing Profiling types (macho debug image, profile measurements, stack frame properties) (#9277)
37+
- feat(types): Add statsd envelope types (#9304)
38+
- fix(astro): Add integration default export to types entry point (#9337)
39+
- fix(astro): Convert SDK init file import paths to POSIX paths (#9336)
40+
- fix(astro): Make `Replay` and `BrowserTracing` integrations tree-shakeable (#9287)
41+
- fix(integrations): Fix transaction integration (#9334)
42+
- fix(nextjs): Restore `autoInstrumentMiddleware` functionality (#9323)
43+
- fix(nextjs): Guard for case where `getInitialProps` may return undefined (#9342)
44+
- fix(node-experimental): Make node-fetch support optional (#9321)
45+
- fix(node): Check buffer length when attempting to parse ANR frame (#9314)
46+
- fix(replay): Fix xhr start timestamps (#9341)
47+
- fix(tracing-internal): Remove query params from urls with a trailing slash (#9328)
48+
- fix(types): Remove typo with CheckInEnvelope (#9303)
49+
750
## 7.74.1
851

952
- chore(astro): Add `astro-integration` keyword (#9265)

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Additional labels for categorization can be added, and the Sentry SDK team may a
132132
### Pull Requests (PRs)
133133
134134
PRs are merged via `Squash and merge`.
135-
This means that all commits on the branch will be squashed into a single commit, and commited as such onto master.
135+
This means that all commits on the branch will be squashed into a single commit, and committed as such onto master.
136136
137137
* The PR name can generally follow the commit name (e.g. `feat(core): Set custom transaction source for event processors`)
138138
* Make sure to rebase the branch on `master` before squashing it

MIGRATION.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Sentry.init({
100100

101101
## Replay options changed (since 7.35.0) - #6645
102102

103-
Some options for replay have been depracted in favor of new APIs.
103+
Some options for replay have been deprecated in favor of new APIs.
104104
See [Replay Migration docs](./packages/replay/MIGRATION.md#upgrading-replay-from-7340-to-7350) for details.
105105

106106
## Renaming of Next.js wrapper methods (since 7.31.0) - #6790
@@ -162,7 +162,7 @@ Running the new SDK version on Node.js v6 is therefore highly discouraged.
162162

163163
## Removal of `@sentry/minimal`
164164

165-
The `@sentry/minimal` package was deleted and it's functionality was moved to `@sentry/hub`. All exports from `@sentry/minimal` should be avaliable in `@sentry/hub` other than `_callOnClient` function which was removed.
165+
The `@sentry/minimal` package was deleted and it's functionality was moved to `@sentry/hub`. All exports from `@sentry/minimal` should be available in `@sentry/hub` other than `_callOnClient` function which was removed.
166166

167167
```ts
168168
// New in v7:
@@ -184,7 +184,7 @@ import {
184184

185185
## Explicit Client Options
186186

187-
In v7, we've updated the `Client` to have options seperate from the options passed into `Sentry.init`. This means that constructing a client now requires 3 options: `integrations`, `transport` and `stackParser`. These can be customized as you see fit.
187+
In v7, we've updated the `Client` to have options separate from the options passed into `Sentry.init`. This means that constructing a client now requires 3 options: `integrations`, `transport` and `stackParser`. These can be customized as you see fit.
188188

189189
```ts
190190
import { BrowserClient, defaultStackParser, defaultIntegrations, makeFetchTransport } from '@sentry/browser';
@@ -764,7 +764,7 @@ this case is the `event_id`, in case the event will not be sent because of filte
764764
In `4.x` we had both `close` and `flush` on the `Client` draining the internal queue of events, helpful when you were
765765
using `@sentry/node` on a serverless infrastructure.
766766

767-
Now `close` and `flush` work similar, with the difference that if you call `close` in addition to returing a `Promise`
767+
Now `close` and `flush` work similar, with the difference that if you call `close` in addition to returning a `Promise`
768768
that you can await it also **disables** the client so it will not send any future events.
769769

770770
# Migrating from `raven-js` to `@sentry/browser`

docs/new-sdk-release-checklist.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ This page serves as a checklist of what to do when releasing a new SDK for the f
4747

4848
- [ ] Make sure it is added to `bundlePlugins.ts:makeTSPlugin` as `paths`, otherwise it will not be ES5 transpiled correctly for CDN builds.
4949

50+
- [ ] Make sure it is added to the [Verdaccio config](https://github.com/getsentry/sentry-javascript/blob/develop/packages/e2e-tests/verdaccio-config/config.yaml) for the E2E tests
51+
5052
## Cutting the Release
5153

5254
When you’re ready to make the first release, there are a couple of steps that need to be performed in the **correct order**. Note that you can prepare the PRs at any time but the **merging oder** is important:
@@ -56,7 +58,7 @@ When you’re ready to make the first release, there are a couple of steps that
5658
### Before the Release:
5759

5860
- [ ] 1) If not yet done, be sure to remove the `private: true` property from your SDK’s `package.json`. Additionally, ensure that `"publishConfig": {"access": "public"}` is set.
59-
- [ ] 2) Make sure that the new SDK is **not added** in`[craft.yml](https://github.com/getsentry/sentry-javascript/blob/master/.craft.yml)` as a target for the **Sentry release registry**\
61+
- [ ] 2) Make sure that the new SDK is **not added** in`[craft.yml](https://github.com/getsentry/sentry-javascript/blob/develop/.craft.yml)` as a target for the **Sentry release registry**\
6062
*Once this is added, craft will try to publish an entry in the next release which does not work and caused failed release runs in the past*
6163
- [ ] 3) Add an `npm` target in `craft.yml` for the new package. Make sure to insert it in the right place, after all the Sentry dependencies of your package but before packages that depend on your new package (if applicable).
6264
```yml
@@ -74,7 +76,7 @@ When you’re ready to make the first release, there are a couple of steps that
7476
You have to fork this repo and PR the files from your fork to the main repo \
7577
[Example PR](https://github.com/getsentry/sentry-release-registry/pull/80) from the Svelte SDK
7678
77-
- [ ] 2) Add an entry to `[craft.yml](https://github.com/getsentry/sentry-javascript/blob/master/.craft.yml)` to add releases of your SDK to the Sentry release registry \
79+
- [ ] 2) Add an entry to [craft.yml](https://github.com/getsentry/sentry-javascript/blob/develop/.craft.yml) to add releases of your SDK to the Sentry release registry \
7880
[Example PR](https://github.com/getsentry/sentry-javascript/pull/5547) from the Svelte SDK \
7981
*Subsequent releases will now be added automatically to the registry*
8082

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"packages/node-integration-tests",
6262
"packages/node-experimental",
6363
"packages/opentelemetry-node",
64+
"packages/opentelemetry",
6465
"packages/react",
6566
"packages/remix",
6667
"packages/replay",
@@ -84,6 +85,7 @@
8485
"@rollup/plugin-sucrase": "^4.0.3",
8586
"@rollup/plugin-typescript": "^8.3.1",
8687
"@size-limit/preset-small-lib": "~9.0.0",
88+
"@size-limit/webpack": "~9.0.0",
8789
"@strictsoftware/typedoc-plugin-monorepo": "^0.3.1",
8890
"@types/chai": "^4.1.3",
8991
"@types/jest": "^27.4.1",
@@ -122,7 +124,6 @@
122124
"size-limit": "~9.0.0",
123125
"ts-jest": "^27.1.4",
124126
"ts-node": "10.9.1",
125-
"tslib": "2.4.1",
126127
"typedoc": "^0.18.0",
127128
"typescript": "4.9.5",
128129
"vitest": "^0.29.2",

packages/angular-ivy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"lint": "run-s lint:prettier lint:eslint",
5757
"lint:eslint": "eslint . --format stylish",
5858
"lint:prettier": "prettier --check \"{src,test,scripts}/**/**.ts\"",
59-
"yalc:publish": "yalc publish build --push"
59+
"yalc:publish": "yalc publish build --push --sig"
6060
},
6161
"volta": {
6262
"extends": "../../package.json"

packages/angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"test": "yarn test:unit",
6161
"test:unit": "jest",
6262
"test:unit:watch": "jest --watch",
63-
"yalc:publish": "yalc publish build --push"
63+
"yalc:publish": "yalc publish build --push --sig"
6464
},
6565
"volta": {
6666
"extends": "../../package.json"

0 commit comments

Comments
 (0)