Skip to content
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

meta(changelog): Update changelog for 7.78.0 #9471

Merged
merged 29 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
f78c1d4
Merge pull request #9418 from getsentry/master
github-actions[bot] Oct 31, 2023
b2a56bc
feat(replay): Update rrweb to 2.2.0 (#9414)
mydea Oct 31, 2023
24b2791
Add alerting instructions to readme.md
jas-kas Nov 1, 2023
4e0caa2
Update packages/feedback/README.md
jas-kas Nov 1, 2023
081285d
Update packages/feedback/README.md
jas-kas Nov 1, 2023
0db338a
Merge pull request #9427 from getsentry/jas-kas-edit-readme-feedback
jas-kas Nov 1, 2023
6dc1952
ci(deps): bump actions/setup-node from 3 to 4
dependabot[bot] Nov 1, 2023
4babd02
docs(feedback): Add more themeables + improve/fix inconsistencies (#9…
billyvg Nov 1, 2023
f796d50
fix(replay): Ensure we stop for rate limit headers (#9420)
mydea Nov 2, 2023
d8beaa0
ref(replay): Use rrweb for slow click detection (#9408)
mydea Nov 2, 2023
10fb09a
ref(replay): Use fflate instead of pako for compression (#9436)
mydea Nov 3, 2023
bf72904
feat(node-experimental): Add hapi tracing support (#9449)
mydea Nov 6, 2023
460bea1
feat(nextjs): Add client routing instrumentation for app router (#9446)
lforst Nov 6, 2023
2c1b288
fix(nextjs): Fix sourcemaps resolving for local dev when basePath is …
lforst Nov 6, 2023
9f32c61
feat(nextjs): Add automatic sourcemapping for edge part of the SDK (#…
lforst Nov 6, 2023
c17b008
feat(feedback): Implement new user feedback embeddable widget (#9217)
billyvg Nov 6, 2023
fdb263e
fix(nextjs): Only inject basepath in dev mode (#9465)
lforst Nov 7, 2023
47b6730
test(loader): Add tests for loader `window.sentryOnLoad` (#9331)
mydea Nov 7, 2023
9a92e6b
feat(astro): Add Sentry middleware (#9445)
Lms24 Nov 7, 2023
86c8d2a
build(polyfills): Remove output format specific logic (#9467)
lforst Nov 7, 2023
c3a6590
test(ember): Test that prod builds & source maps work (#9466)
mydea Nov 7, 2023
9a94e23
feat(replay): Stop fixing truncated JSONs in SDK (#9437)
mydea Nov 7, 2023
e9d1713
feat(feedback): Add "outline focus" and "foreground hover" vars (#9462)
billyvg Nov 7, 2023
aa27ff0
ref(feedback): Add treeshaking for logger statements (#9475)
billyvg Nov 7, 2023
170dcc5
feat(feedback): Add `openDialog` and `closeDialog` onto integration i…
billyvg Nov 7, 2023
a3ebebc
docs(feedback): Add configuration row for `cancelForegroundHover` (#9…
billyvg Nov 7, 2023
6ddf14d
docs(feedback): Add example for `openDialog()` (#9481)
billyvg Nov 7, 2023
6200b3c
feat(replay): Allow to configure `beforeErrorSampling` (#9470)
mydea Nov 8, 2023
beeb4e7
meta(changelog): Update Changelog for 7.78.0
mydea Nov 7, 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
41 changes: 21 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
- *shared
- 'packages/browser/**'
- 'packages/replay/**'
- 'packages/feedback/**'
browser_integration:
- *shared
- *browser
Expand Down Expand Up @@ -168,7 +169,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
# we use a hash of yarn.lock as our cache key, because if it hasn't changed, our dependencies haven't changed,
Expand Down Expand Up @@ -216,7 +217,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Check dependency cache
Expand Down Expand Up @@ -274,7 +275,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
# The size limit action runs `yarn` and `yarn build` when this job is executed on
# use Node 14 for now.
Expand Down Expand Up @@ -306,7 +307,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand All @@ -329,7 +330,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand All @@ -351,7 +352,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand Down Expand Up @@ -382,7 +383,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand All @@ -409,7 +410,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Set up Bun
Expand Down Expand Up @@ -438,7 +439,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Set up Deno
Expand Down Expand Up @@ -472,7 +473,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Restore caches
Expand Down Expand Up @@ -504,7 +505,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Restore caches
Expand Down Expand Up @@ -569,7 +570,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand Down Expand Up @@ -626,7 +627,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand Down Expand Up @@ -679,7 +680,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand All @@ -705,7 +706,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand Down Expand Up @@ -745,7 +746,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Restore caches
Expand Down Expand Up @@ -781,7 +782,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Restore caches
Expand Down Expand Up @@ -810,7 +811,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand Down Expand Up @@ -900,7 +901,7 @@ jobs:
with:
version: 8.3.1
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'packages/e2e-tests/package.json'
- name: Restore caches
Expand Down Expand Up @@ -983,7 +984,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Check canary cache
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
with:
version: 8.3.1
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'

Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flaky-test-detector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Check out current branch
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
cache: 'yarn'
Expand Down
8 changes: 7 additions & 1 deletion .size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ module.exports = [
config.plugins.push(
new webpack.DefinePlugin({
__SENTRY_DEBUG__: false,
__RRWEB_EXCLUDE_CANVAS__: true,
__RRWEB_EXCLUDE_SHADOW_DOM__: true,
__RRWEB_EXCLUDE_IFRAME__: true,
__SENTRY_EXCLUDE_REPLAY_WORKER__: true,
Expand Down Expand Up @@ -122,4 +121,11 @@ module.exports = [
gzip: true,
limit: '57 KB',
},
{
name: '@sentry-internal/feedback - Webpack (gzipped)',
path: 'packages/feedback/build/npm/esm/index.js',
import: '{ Feedback }',
gzip: true,
limit: '35 KB',
},
];
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,38 @@

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

## 7.78.0

### Important Changes

- **Replay Bundle Size improvements**

We've dramatically decreased the bundle size of our Replay package, reducing the minified & gzipped bundle size by ~20 KB!
This was possible by extensive use of tree shaking and a host of small changes to reduce our footprint:

- feat(replay): Update rrweb to 2.2.0 (#9414)
- ref(replay): Use fflate instead of pako for compression (#9436)

By using [tree shaking](https://docs.sentry.io/platforms/javascript/configuration/tree-shaking/) it is possible to shave up to 10 additional KB off the bundle.

#### Other Changes

- feat(astro): Add Sentry middleware (#9445)
- feat(feedback): Add "outline focus" and "foreground hover" vars (#9462)
- feat(feedback): Add `openDialog` and `closeDialog` onto integration interface (#9464)
- feat(feedback): Implement new user feedback embeddable widget (#9217)
- feat(nextjs): Add automatic sourcemapping for edge part of the SDK (#9454)
- feat(nextjs): Add client routing instrumentation for app router (#9446)
- feat(node-experimental): Add hapi tracing support (#9449)
- feat(replay): Allow to configure `beforeErrorSampling` (#9470)
- feat(replay): Stop fixing truncated JSONs in SDK (#9437)
- fix(nextjs): Fix sourcemaps resolving for local dev when basePath is set (#9457)
- fix(nextjs): Only inject basepath in dev mode (#9465)
- fix(replay): Ensure we stop for rate limit headers (#9420)
- ref(feedback): Add treeshaking for logger statements (#9475)
- ref(replay): Use rrweb for slow click detection (#9408)
- build(polyfills): Remove output format specific logic (#9467)

## 7.77.0

- feat: Move LinkedErrors integration to @sentry/core (#9404)
Expand Down
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"build:transpile": {
"inputs": ["production", "^production"],
"dependsOn": ["^build:transpile:uncached", "^build:transpile", "build:transpile:uncached"],
"dependsOn": ["^build:transpile"],
"outputs": ["{projectRoot}/build/npm", "{projectRoot}/build/esm", "{projectRoot}/build/cjs"]
},
"build:types": {
Expand Down
1 change: 0 additions & 1 deletion packages/angular-ivy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"build:transpile": {
"dependsOn": [
"^build:transpile",
"^build:transpile:uncached",
"^build:types"
]
}
Expand Down
1 change: 0 additions & 1 deletion packages/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
"build:transpile": {
"dependsOn": [
"^build:transpile",
"^build:transpile:uncached",
"^build:types"
]
}
Expand Down
18 changes: 17 additions & 1 deletion packages/astro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Install the Sentry Astro SDK with the `astro` CLI:
npx astro add @sentry/astro
```

Complete the setup by adding your DSN and source maps upload configuration:
Add your DSN and source maps upload configuration:

```javascript
import { defineConfig } from "astro/config";
Expand All @@ -56,6 +56,22 @@ Follow [this guide](https://docs.sentry.io/product/accounts/auth-tokens/#organiz
SENTRY_AUTH_TOKEN="your-token"
```

Complete the setup by adding the Sentry middleware to your `src/middleware.js` file:

```javascript
// src/middleware.js
import { sequence } from "astro:middleware";
import * as Sentry from "@sentry/astro";

export const onRequest = sequence(
Sentry.sentryMiddleware(),
// Add your other handlers after sentryMiddleware
);
```

This middleware creates server-side spans to monitor performance on the server for page load and endpoint requests.


## Configuration

Check out our docs for configuring your SDK setup:
Expand Down
1 change: 1 addition & 0 deletions packages/astro/src/index.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@ export {
export * from '@sentry/node';

export { init } from './server/sdk';
export { handleRequest } from './server/middleware';

export default sentryAstro;
Loading
Loading