Skip to content

Commit

Permalink
Merge pull request #11921 from getsentry/prepare-release/8.0.0-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed May 6, 2024
2 parents 561a7d1 + 1a349eb commit de37301
Show file tree
Hide file tree
Showing 9 changed files with 165 additions and 248 deletions.
2 changes: 1 addition & 1 deletion .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ targets:

# AWS Lambda Layer target
- name: aws-lambda-layer
includeNames: /^sentry-node-serverless-\d+.\d+.\d+(-(beta|alpha)\.\d+)?\.zip$/
includeNames: /^sentry-node-serverless-\d+.\d+.\d+(-(beta|alpha|rc)\.\d+)?\.zip$/
layerName: SentryNodeServerlessSDK
compatibleRuntimes:
- name: node
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
# Parse version from head branch
text: ${{ github.head_ref }}
# match: preprare-release/xx.xx.xx
regex: '^prepare-release\/(\d+\.\d+\.\d+)(?:-(alpha|beta)\.\d+)?$'
regex: '^prepare-release\/(\d+\.\d+\.\d+)(?:-(alpha|beta|rc)\.\d+)?$'

- name: Extract version
id: get_version
Expand Down
29 changes: 27 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,35 @@

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

## 8.0.0-rc.1

This release contains no changes and was done for technical purposes. This version is considered stable.

For the sake of completeness this changelog entry includes the changes from the previous release candidate:

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

### Important Changes

- **feat(node): Support hapi v21 & fix E2E test (#11906)**

We now support hapi v21 and added tests for it.

- **feat(node): Warn if ESM mode is detected (#11914)**

When running Sentry in ESM mode, we will now warn you that this is not supported as of now. We are working on ensuring
support with ESM builds.

### Other Changes

- feat(feedback): Iterate on css for better scrolling & resizing when browser is small (#11893)
- fix(node): Ensure prisma integration creates valid DB spans (#11908)
- fix(node): Include loader hook files in package.json (#11911)

## 8.0.0-rc.0

This is the first release candidate of Sentry JavaScript SDK v8. Except for missing ESM support, this version is
considered stable.
This is the first release candidate of Sentry JavaScript SDK v8.

We recommend to read the detailed [migration guide](https://docs.sentry.io/platforms/javascript/migration/v7-to-v8/) in
the docs.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"@types/jsdom": "^21.1.6",
"@types/node": "^14.18.0",
"@types/rimraf": "^3.0.2",
"@vitest/coverage-c8": "^0.29.2",
"@vitest/coverage-v8": "^1.6.0",
"codecov": "^3.6.5",
"deepmerge": "^4.2.2",
"downlevel-dts": "~0.11.0",
Expand All @@ -127,7 +127,7 @@
"ts-node": "10.9.1",
"typedoc": "^0.18.0",
"typescript": "4.9.5",
"vitest": "^0.29.2",
"vitest": "^1.6.0",
"yalc": "^1.0.0-pre.53"
},
"resolutions": {
Expand Down
1 change: 0 additions & 1 deletion packages/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"ng-packagr": "^14.2.2",
"rxjs": "7.8.1",
"typescript": "4.6.4",
"vitest": "^1.4.0",
"zone.js": "^0.12.0"
},
"scripts": {
Expand Down
24 changes: 12 additions & 12 deletions packages/astro/test/integration/snippets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('buildClientSnippet', () => {
it('returns a basic Sentry init call with default options', () => {
const snippet = buildClientSnippet({});
expect(snippet).toMatchInlineSnapshot(`
"import * as Sentry from \\"@sentry/astro\\";
"import * as Sentry from "@sentry/astro";
Sentry.init({
dsn: import.meta.env.PUBLIC_SENTRY_DSN,
Expand All @@ -34,13 +34,13 @@ describe('buildClientSnippet', () => {
const snippet = buildClientSnippet(allSdkOptions);

expect(snippet).toMatchInlineSnapshot(`
"import * as Sentry from \\"@sentry/astro\\";
"import * as Sentry from "@sentry/astro";
Sentry.init({
dsn: \\"my-dsn\\",
dsn: "my-dsn",
debug: true,
environment: \\"staging\\",
release: \\"1.0.0\\",
environment: "staging",
release: "1.0.0",
tracesSampleRate: 0.3,
sampleRate: 0.2,
integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()],
Expand All @@ -53,7 +53,7 @@ describe('buildClientSnippet', () => {
it('does not include browserTracingIntegration if tracesSampleRate is 0', () => {
const snippet = buildClientSnippet({ tracesSampleRate: 0 });
expect(snippet).toMatchInlineSnapshot(`
"import * as Sentry from \\"@sentry/astro\\";
"import * as Sentry from "@sentry/astro";
Sentry.init({
dsn: import.meta.env.PUBLIC_SENTRY_DSN,
Expand All @@ -72,7 +72,7 @@ describe('buildClientSnippet', () => {
it('does not include Replay if replay sample ratest are 0', () => {
const snippet = buildClientSnippet({ replaysSessionSampleRate: 0, replaysOnErrorSampleRate: 0 });
expect(snippet).toMatchInlineSnapshot(`
"import * as Sentry from \\"@sentry/astro\\";
"import * as Sentry from "@sentry/astro";
Sentry.init({
dsn: import.meta.env.PUBLIC_SENTRY_DSN,
Expand All @@ -91,7 +91,7 @@ describe('buildServerSnippet', () => {
it('returns a basic Sentry init call with default options', () => {
const snippet = buildServerSnippet({});
expect(snippet).toMatchInlineSnapshot(`
"import * as Sentry from \\"@sentry/astro\\";
"import * as Sentry from "@sentry/astro";
Sentry.init({
dsn: import.meta.env.PUBLIC_SENTRY_DSN,
Expand All @@ -107,13 +107,13 @@ describe('buildServerSnippet', () => {
const snippet = buildServerSnippet(allSdkOptions);

expect(snippet).toMatchInlineSnapshot(`
"import * as Sentry from \\"@sentry/astro\\";
"import * as Sentry from "@sentry/astro";
Sentry.init({
dsn: \\"my-dsn\\",
dsn: "my-dsn",
debug: true,
environment: \\"staging\\",
release: \\"1.0.0\\",
environment: "staging",
release: "1.0.0",
tracesSampleRate: 0.3,
sampleRate: 0.2,
});"
Expand Down
2 changes: 2 additions & 0 deletions packages/sveltekit/.empty.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Hack to get $app/stores import working (can't mock it in tests if path is not resolvable).
// See: https://github.com/vitest-dev/vitest/issues/4630
9 changes: 9 additions & 0 deletions packages/sveltekit/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { dirname, resolve } from 'path';
import { fileURLToPath } from 'url';

import type { UserConfig } from 'vitest';

import baseConfig from '../../vite/vite.config';
Expand All @@ -10,5 +13,11 @@ export default {
...(baseConfig as UserConfig & { test: any }).test,
environment: 'jsdom',
setupFiles: ['./test/vitest.setup.ts'],
alias: [
{
find: '$app/stores',
replacement: resolve(fileURLToPath(dirname(import.meta.url)), '/.empty.js'),
},
],
},
};

0 comments on commit de37301

Please sign in to comment.