Skip to content

Commit

Permalink
Merge pull request #9343 from getsentry/prepare-release/7.75.0
Browse files Browse the repository at this point in the history
meta(changelog): Update Changelog for 7.75.0
  • Loading branch information
mydea authored Oct 24, 2023
2 parents fdaf5f6 + eb1c12a commit 00d2996
Show file tree
Hide file tree
Showing 258 changed files with 6,546 additions and 2,419 deletions.
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

0 comments on commit 00d2996

Please sign in to comment.