-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9397 from getsentry/prepare-release/7.76.0
meta(changelog): Update changelog for 7.76.0
- Loading branch information
Showing
62 changed files
with
682 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,7 @@ export { | |
trace, | ||
withScope, | ||
captureCheckIn, | ||
withMonitor, | ||
setMeasurement, | ||
getActiveSpan, | ||
startSpan, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
build-types | ||
build-test | ||
lib.deno.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// @ts-check | ||
import dts from 'rollup-plugin-dts'; | ||
import nodeResolve from '@rollup/plugin-node-resolve'; | ||
import sucrase from '@rollup/plugin-sucrase'; | ||
import { defineConfig } from 'rollup'; | ||
|
||
export default [ | ||
defineConfig({ | ||
input: ['test/build.ts'], | ||
output: { | ||
file: 'build-test/index.js', | ||
sourcemap: true, | ||
preserveModules: false, | ||
strict: false, | ||
freeze: false, | ||
interop: 'auto', | ||
format: 'esm', | ||
banner: '/// <reference types="./index.d.ts" />', | ||
}, | ||
plugins: [ | ||
nodeResolve({ | ||
extensions: ['.mjs', '.js', '.json', '.node', '.ts', '.tsx'], | ||
}), | ||
sucrase({ transforms: ['typescript'] }), | ||
], | ||
}), | ||
defineConfig({ | ||
input: './build-test/build.d.ts', | ||
output: [{ file: 'build-test/index.d.ts', format: 'es' }], | ||
plugins: [ | ||
dts({ respectExternal: true }), | ||
// The bundled types contain a declaration for the __DEBUG_BUILD__ global | ||
// This can result in errors about duplicate global declarations so we strip it out! | ||
{ | ||
name: 'strip-global', | ||
renderChunk(code) { | ||
return { code: code.replace(/declare global \{\s*const __DEBUG_BUILD__: boolean;\s*\}/g, '') }; | ||
}, | ||
}, | ||
], | ||
}), | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ export { | |
trace, | ||
withScope, | ||
captureCheckIn, | ||
withMonitor, | ||
setMeasurement, | ||
getActiveSpan, | ||
startSpan, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// We use this as the entry point to bundle Sentry dependencies that are used by the tests. | ||
export * as sentryTypes from '@sentry/types'; | ||
export * as sentryUtils from '@sentry/utils'; | ||
export * as sentryCore from '@sentry/core'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
import { assertEquals } from 'https://deno.land/[email protected]/assert/assert_equals.ts'; | ||
import { assertSnapshot } from 'https://deno.land/[email protected]/testing/snapshot.ts'; | ||
|
||
import { createStackParser, nodeStackLineParser } from '../../utils/build/esm/index.js'; | ||
import type { sentryTypes } from '../build-test/index.js'; | ||
import { sentryUtils } from '../build-test/index.js'; | ||
import { defaultIntegrations, DenoClient, Hub, Scope } from '../build/index.js'; | ||
import { getNormalizedEvent } from './normalize.ts'; | ||
import { makeTestTransport } from './transport.ts'; | ||
|
||
function getTestClient(callback: (event?: Event) => void, integrations: any[] = []): [Hub, DenoClient] { | ||
function getTestClient( | ||
callback: (event?: sentryTypes.Event) => void, | ||
integrations: sentryTypes.Integration[] = [], | ||
): [Hub, DenoClient] { | ||
const client = new DenoClient({ | ||
dsn: 'https://[email protected]/5650507', | ||
debug: true, | ||
integrations: [...defaultIntegrations, ...integrations], | ||
stackParser: createStackParser(nodeStackLineParser()), | ||
stackParser: sentryUtils.createStackParser(sentryUtils.nodeStackLineParser()), | ||
transport: makeTestTransport(envelope => { | ||
callback(getNormalizedEvent(envelope)); | ||
}) as any, | ||
}), | ||
}); | ||
|
||
const scope = new Scope(); | ||
|
@@ -30,7 +34,7 @@ function delay(time: number): Promise<void> { | |
} | ||
|
||
Deno.test('captureException', async t => { | ||
let ev: Event | undefined; | ||
let ev: sentryTypes.Event | undefined; | ||
const [hub] = getTestClient(event => { | ||
ev = event; | ||
}); | ||
|
@@ -46,7 +50,7 @@ Deno.test('captureException', async t => { | |
}); | ||
|
||
Deno.test('captureMessage', async t => { | ||
let ev: Event | undefined; | ||
let ev: sentryTypes.Event | undefined; | ||
const [hub] = getTestClient(event => { | ||
ev = event; | ||
}); | ||
|
Oops, something went wrong.