Skip to content

Commit de37301

Browse files
author
Luca Forstner
authored
Merge pull request #11921 from getsentry/prepare-release/8.0.0-rc.1
2 parents 561a7d1 + 1a349eb commit de37301

File tree

9 files changed

+165
-248
lines changed

9 files changed

+165
-248
lines changed

.craft.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ targets:
127127

128128
# AWS Lambda Layer target
129129
- name: aws-lambda-layer
130-
includeNames: /^sentry-node-serverless-\d+.\d+.\d+(-(beta|alpha)\.\d+)?\.zip$/
130+
includeNames: /^sentry-node-serverless-\d+.\d+.\d+(-(beta|alpha|rc)\.\d+)?\.zip$/
131131
layerName: SentryNodeServerlessSDK
132132
compatibleRuntimes:
133133
- name: node

.github/workflows/auto-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
# Parse version from head branch
2626
text: ${{ github.head_ref }}
2727
# match: preprare-release/xx.xx.xx
28-
regex: '^prepare-release\/(\d+\.\d+\.\d+)(?:-(alpha|beta)\.\d+)?$'
28+
regex: '^prepare-release\/(\d+\.\d+\.\d+)(?:-(alpha|beta|rc)\.\d+)?$'
2929

3030
- name: Extract version
3131
id: get_version

CHANGELOG.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,35 @@
44

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

7+
## 8.0.0-rc.1
8+
9+
This release contains no changes and was done for technical purposes. This version is considered stable.
10+
11+
For the sake of completeness this changelog entry includes the changes from the previous release candidate:
12+
13+
We recommend to read the detailed [migration guide](https://docs.sentry.io/platforms/javascript/migration/v7-to-v8/) in
14+
the docs.
15+
16+
### Important Changes
17+
18+
- **feat(node): Support hapi v21 & fix E2E test (#11906)**
19+
20+
We now support hapi v21 and added tests for it.
21+
22+
- **feat(node): Warn if ESM mode is detected (#11914)**
23+
24+
When running Sentry in ESM mode, we will now warn you that this is not supported as of now. We are working on ensuring
25+
support with ESM builds.
26+
27+
### Other Changes
28+
29+
- feat(feedback): Iterate on css for better scrolling & resizing when browser is small (#11893)
30+
- fix(node): Ensure prisma integration creates valid DB spans (#11908)
31+
- fix(node): Include loader hook files in package.json (#11911)
32+
733
## 8.0.0-rc.0
834

9-
This is the first release candidate of Sentry JavaScript SDK v8. Except for missing ESM support, this version is
10-
considered stable.
35+
This is the first release candidate of Sentry JavaScript SDK v8.
1136

1237
We recommend to read the detailed [migration guide](https://docs.sentry.io/platforms/javascript/migration/v7-to-v8/) in
1338
the docs.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"@types/jsdom": "^21.1.6",
104104
"@types/node": "^14.18.0",
105105
"@types/rimraf": "^3.0.2",
106-
"@vitest/coverage-c8": "^0.29.2",
106+
"@vitest/coverage-v8": "^1.6.0",
107107
"codecov": "^3.6.5",
108108
"deepmerge": "^4.2.2",
109109
"downlevel-dts": "~0.11.0",
@@ -127,7 +127,7 @@
127127
"ts-node": "10.9.1",
128128
"typedoc": "^0.18.0",
129129
"typescript": "4.9.5",
130-
"vitest": "^0.29.2",
130+
"vitest": "^1.6.0",
131131
"yalc": "^1.0.0-pre.53"
132132
},
133133
"resolutions": {

packages/angular/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"ng-packagr": "^14.2.2",
4141
"rxjs": "7.8.1",
4242
"typescript": "4.6.4",
43-
"vitest": "^1.4.0",
4443
"zone.js": "^0.12.0"
4544
},
4645
"scripts": {

packages/astro/test/integration/snippets.test.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('buildClientSnippet', () => {
1515
it('returns a basic Sentry init call with default options', () => {
1616
const snippet = buildClientSnippet({});
1717
expect(snippet).toMatchInlineSnapshot(`
18-
"import * as Sentry from \\"@sentry/astro\\";
18+
"import * as Sentry from "@sentry/astro";
1919
2020
Sentry.init({
2121
dsn: import.meta.env.PUBLIC_SENTRY_DSN,
@@ -34,13 +34,13 @@ describe('buildClientSnippet', () => {
3434
const snippet = buildClientSnippet(allSdkOptions);
3535

3636
expect(snippet).toMatchInlineSnapshot(`
37-
"import * as Sentry from \\"@sentry/astro\\";
37+
"import * as Sentry from "@sentry/astro";
3838
3939
Sentry.init({
40-
dsn: \\"my-dsn\\",
40+
dsn: "my-dsn",
4141
debug: true,
42-
environment: \\"staging\\",
43-
release: \\"1.0.0\\",
42+
environment: "staging",
43+
release: "1.0.0",
4444
tracesSampleRate: 0.3,
4545
sampleRate: 0.2,
4646
integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()],
@@ -53,7 +53,7 @@ describe('buildClientSnippet', () => {
5353
it('does not include browserTracingIntegration if tracesSampleRate is 0', () => {
5454
const snippet = buildClientSnippet({ tracesSampleRate: 0 });
5555
expect(snippet).toMatchInlineSnapshot(`
56-
"import * as Sentry from \\"@sentry/astro\\";
56+
"import * as Sentry from "@sentry/astro";
5757
5858
Sentry.init({
5959
dsn: import.meta.env.PUBLIC_SENTRY_DSN,
@@ -72,7 +72,7 @@ describe('buildClientSnippet', () => {
7272
it('does not include Replay if replay sample ratest are 0', () => {
7373
const snippet = buildClientSnippet({ replaysSessionSampleRate: 0, replaysOnErrorSampleRate: 0 });
7474
expect(snippet).toMatchInlineSnapshot(`
75-
"import * as Sentry from \\"@sentry/astro\\";
75+
"import * as Sentry from "@sentry/astro";
7676
7777
Sentry.init({
7878
dsn: import.meta.env.PUBLIC_SENTRY_DSN,
@@ -91,7 +91,7 @@ describe('buildServerSnippet', () => {
9191
it('returns a basic Sentry init call with default options', () => {
9292
const snippet = buildServerSnippet({});
9393
expect(snippet).toMatchInlineSnapshot(`
94-
"import * as Sentry from \\"@sentry/astro\\";
94+
"import * as Sentry from "@sentry/astro";
9595
9696
Sentry.init({
9797
dsn: import.meta.env.PUBLIC_SENTRY_DSN,
@@ -107,13 +107,13 @@ describe('buildServerSnippet', () => {
107107
const snippet = buildServerSnippet(allSdkOptions);
108108

109109
expect(snippet).toMatchInlineSnapshot(`
110-
"import * as Sentry from \\"@sentry/astro\\";
110+
"import * as Sentry from "@sentry/astro";
111111
112112
Sentry.init({
113-
dsn: \\"my-dsn\\",
113+
dsn: "my-dsn",
114114
debug: true,
115-
environment: \\"staging\\",
116-
release: \\"1.0.0\\",
115+
environment: "staging",
116+
release: "1.0.0",
117117
tracesSampleRate: 0.3,
118118
sampleRate: 0.2,
119119
});"

packages/sveltekit/.empty.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Hack to get $app/stores import working (can't mock it in tests if path is not resolvable).
2+
// See: https://github.com/vitest-dev/vitest/issues/4630

packages/sveltekit/vite.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import { dirname, resolve } from 'path';
2+
import { fileURLToPath } from 'url';
3+
14
import type { UserConfig } from 'vitest';
25

36
import baseConfig from '../../vite/vite.config';
@@ -10,5 +13,11 @@ export default {
1013
...(baseConfig as UserConfig & { test: any }).test,
1114
environment: 'jsdom',
1215
setupFiles: ['./test/vitest.setup.ts'],
16+
alias: [
17+
{
18+
find: '$app/stores',
19+
replacement: resolve(fileURLToPath(dirname(import.meta.url)), '/.empty.js'),
20+
},
21+
],
1322
},
1423
};

0 commit comments

Comments
 (0)