Skip to content

meta(changelog): Update Changelog for 7.75.0 #9343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 39 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
40e4470
build(deno): Clean up build output (#9276)
Oct 17, 2023
2a08a79
build(ember): Gitignore prepack artifacts (#9282)
Oct 17, 2023
21e1ee2
Merge pull request #9283 from getsentry/master
github-actions[bot] Oct 17, 2023
dfe5db5
build(deno): Prepare Deno SDK for release on npm (#9281)
Oct 17, 2023
441f702
fix(astro): Make `Replay` and `BrowserTracing` integrations tree-shak…
Lms24 Oct 17, 2023
df08e8f
feat(node): Add abnormal session support for ANR (#9268)
timfish Oct 17, 2023
595ee3c
chore(repo): Change SDK selection order in bug issue template (#9288)
Lms24 Oct 18, 2023
da339b4
feat(node): Remove `lru_map` dependency (#9300)
timfish Oct 18, 2023
753f82b
feat: Remove tslib (#9299)
AbhiPrasad Oct 18, 2023
905a3a1
test(deno): Refer to local files in tests (#9297)
Oct 19, 2023
dc68c09
feat(opentelemetry): Add new `@sentry/opentelemetry` package (#9238)
mydea Oct 19, 2023
aea3905
feat(replay): Allow to treeshake rrweb features (#9274)
mydea Oct 19, 2023
8d5c306
test(loader): Improve loader tests & update loader (#9245)
mydea Oct 19, 2023
2ff6bd3
test(deno): Fix runtime normalization (#9309)
Oct 19, 2023
45d51f6
meta(deno): Add deno craft release target (#9310)
Oct 19, 2023
d7df098
feat(types): Add missing Profiling types (macho debug image, profile …
krystofwoldrich Oct 19, 2023
faf07bb
fix(e2e): Resolve `@sentry/node` dependency in bundler plugins to cur…
Oct 19, 2023
b925322
chore: Fix typos (#9315)
Subash-Lamichhane Oct 19, 2023
1c2b829
fix(node): Check buffer length when attempting to parse ANR frame (#9…
AbhiPrasad Oct 19, 2023
7abd153
feat(types): Add statsd envelope types (#9304)
AbhiPrasad Oct 19, 2023
7236510
feat(node): Vendor `cookie` module (#9308)
timfish Oct 19, 2023
7935e78
feat(dev): Change `yalc:publish` to publish with a hash (#9269)
billyvg Oct 19, 2023
d7de20e
ref: Move `isBrowser` util fn from `replay` to `util` (#9289)
billyvg Oct 19, 2023
16594de
fix(node-experimental): Make node-fetch support optional (#9321)
mydea Oct 20, 2023
046f868
meta(deno): Use https git protocol in deno release target (#9322)
Oct 20, 2023
54babf0
fix(types): Remove typo with CheckInEnvelope (#9303)
AbhiPrasad Oct 20, 2023
38730e8
meta(craft): Add id to Deno target (#9311)
Oct 20, 2023
42a60b6
test(e2e): Add test for local variables (#9278)
Oct 20, 2023
c5c12a9
test(e2e): use `127.0.0.1` instead of `localhost` for E2E `.npmrc` (#…
mydea Oct 23, 2023
9218eaa
fix(nextjs): Restore `autoInstrumentMiddleware` functionality (#9323)
Oct 23, 2023
a6c44af
fix(tracing-internal): Remove query params from urls with a trailing …
LubomirIgonda1 Oct 23, 2023
07b4c76
doc(astro): Update Readme (#9333)
Lms24 Oct 23, 2023
1245e91
fix(integrations): Fix transaction integration (#9334)
mydea Oct 23, 2023
8e603b5
fix(astro): Convert SDK init file import paths to POSIX paths (#9336)
Lms24 Oct 23, 2023
a410b04
fix(astro): Add integration default export to types entry point (#9337)
Lms24 Oct 24, 2023
921b8df
fix(replay): Fix xhr start timestamps (#9341)
mydea Oct 24, 2023
a0ff516
feat(replay): Share performance instrumentation with tracing (#9296)
mydea Oct 24, 2023
7c84181
fix(nextjs): Guard for case where `getInitialProps` may return undefi…
Oct 24, 2023
eb1c12a
meta(changelog): Update Changelog for 7.75.0
mydea Oct 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ targets:
- name: npm
id: '@sentry/replay'
includeNames: /^sentry-replay-\d.*\.tgz$/
## 1.6. OpenTelemetry package
- name: npm
id: '@sentry/opentelemetry'
includeNames: /^sentry-opentelemetry-\d.*\.tgz$/

## 2. Browser & Node SDKs
- name: npm
Expand Down Expand Up @@ -63,6 +67,17 @@ targets:
- name: npm
id: '@sentry/vercel-edge'
includeNames: /^sentry-vercel-edge-\d.*\.tgz$/
- name: npm
id: '@sentry/deno'
includeNames: /^sentry-deno-\d.*\.tgz$/
- name: commit-on-git-repository
# This will publish on the Deno registry
id: getsentry/deno
archive: /^sentry-deno-\d.*\.tgz$/
repositoryUrl: https://github.com/getsentry/sentry-deno.git
stripComponents: 1
branch: main
createTag: true

## 5. Node-based Packages
- name: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ body:
If you're using the CDN bundles, please specify the exact bundle (e.g. `bundle.tracing.min.js`) in your SDK
setup.
options:
- '@sentry/astro'
- '@sentry/browser'
- '@sentry/astro'
- '@sentry/angular'
- '@sentry/angular-ivy'
- '@sentry/bun'
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ jobs:
- *shared
- 'packages/node/**'
- 'packages/node-integration-tests/**'
deno:
- *shared
- *browser
- 'packages/deno/**'
any_code:
- '!**/*.md'

Expand All @@ -135,6 +139,7 @@ jobs:
changed_ember: ${{ steps.changed.outputs.ember }}
changed_remix: ${{ steps.changed.outputs.remix }}
changed_node: ${{ steps.changed.outputs.node }}
changed_deno: ${{ steps.changed.outputs.deno }}
changed_browser: ${{ steps.changed.outputs.browser }}
changed_browser_integration: ${{ steps.changed.outputs.browser_integration }}
changed_any_code: ${{ steps.changed.outputs.any_code }}
Expand Down Expand Up @@ -422,6 +427,7 @@ jobs:
job_deno_unit_tests:
name: Deno Unit Tests
needs: [job_get_metadata, job_build]
if: needs.job_get_metadata.outputs.changed_deno == 'true' || github.event_name != 'pull_request'
timeout-minutes: 10
runs-on: ubuntu-20.04
strategy:
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.md
.nxcache
packages/browser-integration-tests/fixtures/loader.js
19 changes: 19 additions & 0 deletions .size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ module.exports = [
gzip: true,
limit: '90 KB',
},
{
name: '@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped)',
path: 'packages/browser/build/npm/esm/index.js',
import: '{ init, Replay, BrowserTracing }',
gzip: true,
limit: '90 KB',
modifyWebpackConfig: function (config) {
const webpack = require('webpack');
config.plugins.push(
new webpack.DefinePlugin({
__SENTRY_DEBUG__: false,
__RRWEB_EXCLUDE_CANVAS__: true,
__RRWEB_EXCLUDE_SHADOW_DOM__: true,
__RRWEB_EXCLUDE_IFRAME__: true,
}),
);
return config;
},
},
{
name: '@sentry/browser (incl. Tracing) - Webpack (gzipped)',
path: 'packages/browser/build/npm/esm/index.js',
Expand Down
7 changes: 1 addition & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,7 @@
"${fileBasename}"
],

"skipFiles": [
"<node_internals>/**",
// this prevents us from landing in a neverending cycle of TS async-polyfill functions as we're stepping through
// our code
"${workspaceFolder}/node_modules/tslib/**/*"
],
"skipFiles": ["<node_internals>/**"],
"sourceMaps": true,
// this controls which files are sourcemapped
"outFiles": [
Expand Down
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,49 @@

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

## 7.75.0

### Important Changes

- **feat(opentelemetry): Add new `@sentry/opentelemetry` package (#9238)**

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.

You can read more about [@sentry/opentelemetry in the Readme](https://github.com/getsentry/sentry-javascript/tree/develop/packages/opentelemetry).

- **feat(replay): Allow to treeshake rrweb features (#9274)**

Starting with this release, you can configure the following build-time flags in order to reduce the SDK bundle size:

* `__RRWEB_EXCLUDE_CANVAS__`
* `__RRWEB_EXCLUDE_IFRAME__`
* `__RRWEB_EXCLUDE_SHADOW_DOM__`

You can read more about [tree shaking in our docs](https://docs.sentry.io/platforms/javascript/configuration/tree-shaking/).


### Other Changes

- build(deno): Prepare Deno SDK for release on npm (#9281)
- feat: Remove tslib (#9299)
- feat(node): Add abnormal session support for ANR (#9268)
- feat(node): Remove `lru_map` dependency (#9300)
- feat(node): Vendor `cookie` module (#9308)
- feat(replay): Share performance instrumentation with tracing (#9296)
- feat(types): Add missing Profiling types (macho debug image, profile measurements, stack frame properties) (#9277)
- feat(types): Add statsd envelope types (#9304)
- fix(astro): Add integration default export to types entry point (#9337)
- fix(astro): Convert SDK init file import paths to POSIX paths (#9336)
- fix(astro): Make `Replay` and `BrowserTracing` integrations tree-shakeable (#9287)
- fix(integrations): Fix transaction integration (#9334)
- fix(nextjs): Restore `autoInstrumentMiddleware` functionality (#9323)
- fix(nextjs): Guard for case where `getInitialProps` may return undefined (#9342)
- fix(node-experimental): Make node-fetch support optional (#9321)
- fix(node): Check buffer length when attempting to parse ANR frame (#9314)
- fix(replay): Fix xhr start timestamps (#9341)
- fix(tracing-internal): Remove query params from urls with a trailing slash (#9328)
- fix(types): Remove typo with CheckInEnvelope (#9303)

## 7.74.1

- chore(astro): Add `astro-integration` keyword (#9265)
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Additional labels for categorization can be added, and the Sentry SDK team may a
### Pull Requests (PRs)

PRs are merged via `Squash and merge`.
This means that all commits on the branch will be squashed into a single commit, and commited as such onto master.
This means that all commits on the branch will be squashed into a single commit, and committed as such onto master.

* The PR name can generally follow the commit name (e.g. `feat(core): Set custom transaction source for event processors`)
* Make sure to rebase the branch on `master` before squashing it
Expand Down
8 changes: 4 additions & 4 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Sentry.init({

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

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

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

## Removal of `@sentry/minimal`

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.
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.

```ts
// New in v7:
Expand All @@ -184,7 +184,7 @@ import {

## Explicit Client Options

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.
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.

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

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

# Migrating from `raven-js` to `@sentry/browser`
Expand Down
6 changes: 4 additions & 2 deletions docs/new-sdk-release-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ This page serves as a checklist of what to do when releasing a new SDK for the f

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

- [ ] 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

## Cutting the Release

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:
Expand All @@ -56,7 +58,7 @@ When you’re ready to make the first release, there are a couple of steps that
### Before the Release:

- [ ] 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.
- [ ] 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**\
- [ ] 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**\
*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*
- [ ] 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).
```yml
Expand All @@ -74,7 +76,7 @@ When you’re ready to make the first release, there are a couple of steps that
You have to fork this repo and PR the files from your fork to the main repo \
[Example PR](https://github.com/getsentry/sentry-release-registry/pull/80) from the Svelte SDK

- [ ] 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 \
- [ ] 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 \
[Example PR](https://github.com/getsentry/sentry-javascript/pull/5547) from the Svelte SDK \
*Subsequent releases will now be added automatically to the registry*

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"packages/node-integration-tests",
"packages/node-experimental",
"packages/opentelemetry-node",
"packages/opentelemetry",
"packages/react",
"packages/remix",
"packages/replay",
Expand All @@ -84,6 +85,7 @@
"@rollup/plugin-sucrase": "^4.0.3",
"@rollup/plugin-typescript": "^8.3.1",
"@size-limit/preset-small-lib": "~9.0.0",
"@size-limit/webpack": "~9.0.0",
"@strictsoftware/typedoc-plugin-monorepo": "^0.3.1",
"@types/chai": "^4.1.3",
"@types/jest": "^27.4.1",
Expand Down Expand Up @@ -122,7 +124,6 @@
"size-limit": "~9.0.0",
"ts-jest": "^27.1.4",
"ts-node": "10.9.1",
"tslib": "2.4.1",
"typedoc": "^0.18.0",
"typescript": "4.9.5",
"vitest": "^0.29.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-ivy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"lint": "run-s lint:prettier lint:eslint",
"lint:eslint": "eslint . --format stylish",
"lint:prettier": "prettier --check \"{src,test,scripts}/**/**.ts\"",
"yalc:publish": "yalc publish build --push"
"yalc:publish": "yalc publish build --push --sig"
},
"volta": {
"extends": "../../package.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"test": "yarn test:unit",
"test:unit": "jest",
"test:unit:watch": "jest --watch",
"yalc:publish": "yalc publish build --push"
"yalc:publish": "yalc publish build --push --sig"
},
"volta": {
"extends": "../../package.json"
Expand Down
Loading