Welcome to Sentry's Angular 17 E2E test app
--
-
- Visit User 123 -
- Redirect -
- Cancel -
- Error -
- Component Tracking -
diff --git a/.claude/settings.local.json b/.claude/settings.local.json
index a651eb363952..8dfa2dec155e 100644
--- a/.claude/settings.local.json
+++ b/.claude/settings.local.json
@@ -11,4 +11,4 @@
],
"deny": []
}
-}
\ No newline at end of file
+}
diff --git a/.prettierignore b/.prettierignore
index 3022df3c6af7..99c0d942024b 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -1,3 +1,4 @@
packages/browser/test/loader.js
packages/replay-worker/examples/worker.min.js
dev-packages/browser-integration-tests/fixtures
+**/test.ts-snapshots/**
diff --git a/.prettierrc.json b/.prettierrc.json
deleted file mode 100644
index ba9a3dc2c246..000000000000
--- a/.prettierrc.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "arrowParens": "avoid",
- "printWidth": 120,
- "proseWrap": "always",
- "singleQuote": true,
- "trailingComma": "all"
-}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7e6f8752691a..26d828b1def6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,7 +15,6 @@
We will follow up with docs how to set up the SDK soon.
For now, If you're on SvelteKit version `2.31.0` or newer, you can easily opt into the new feature:
-
1. Enable [experimental tracing and instrumentation support](https://svelte.dev/docs/kit/observability) in `svelte.config.js`:
2. Move your `Sentry.init()` call from `src/hooks.server.(js|ts)` to the new `instrumentation.server.(js|ts)` file:
@@ -650,7 +649,6 @@ Work in this release was contributed by @0xbad0c0d3 and @alSergey. Thank you for
- **feat(nuxt): Add Cloudflare Nitro plugin ([#15597](https://github.com/getsentry/sentry-javascript/pull/15597))**
A Nitro plugin for `@sentry/nuxt` which initializes Sentry when deployed to Cloudflare (`cloudflare-pages` preset).
-
1. Remove the previous server config file: `sentry.server.config.ts`
2. Add a plugin in `server/plugins` (e.g. `server/plugins/sentry-cloudflare-setup.ts`)
3. Add this code in your plugin file
@@ -1215,7 +1213,6 @@ This PR adds trace propagation to `@sentry/react-router` by providing utilities
- **Logging Improvements**
Sentry is adding support for [structured logging](https://github.com/getsentry/sentry-javascript/discussions/15916). In this release we've made a variety of improvements to logging functionality in the Sentry SDKs.
-
- feat(node): Add server.address to nodejs logs ([#16006](https://github.com/getsentry/sentry-javascript/pull/16006))
- feat(core): Add sdk name and version to logs ([#16005](https://github.com/getsentry/sentry-javascript/pull/16005))
- feat(core): Add sentry origin attribute to console logs integration ([#15998](https://github.com/getsentry/sentry-javascript/pull/15998))
@@ -1264,7 +1261,6 @@ Work in this release was contributed by @Page- and @Fryuni. Thank you for your c
### Important Changes
- **feat: Add support for logs**
-
- feat(node): Add logging public APIs to Node SDKs ([#15764](https://github.com/getsentry/sentry-javascript/pull/15764))
- feat(core): Add support for `beforeSendLog` ([#15814](https://github.com/getsentry/sentry-javascript/pull/15814))
- feat(core): Add support for parameterizing logs ([#15812](https://github.com/getsentry/sentry-javascript/pull/15812))
@@ -1314,13 +1310,11 @@ Work in this release was contributed by @Page- and @Fryuni. Thank you for your c
```
The result will be an object with the following properties:
-
- `"no-client-active"`: There was no active client when the function was called. This possibly means that the SDK was not initialized yet.
- `"sentry-unreachable"`: The Sentry SaaS servers were not reachable. This likely means that there is an ad blocker active on the page or that there are other connection issues.
- `undefined`: The SDK is working as expected.
- **SDK Tracing Performance Improvements for Node SDKs**
-
- feat: Stop using `dropUndefinedKeys` ([#15796](https://github.com/getsentry/sentry-javascript/pull/15796))
- feat(node): Only add span listeners for instrumentation when used ([#15802](https://github.com/getsentry/sentry-javascript/pull/15802))
- ref: Avoid `dropUndefinedKeys` for `spanToJSON` calls ([#15792](https://github.com/getsentry/sentry-javascript/pull/15792))
diff --git a/dev-packages/browser-integration-tests/README.md b/dev-packages/browser-integration-tests/README.md
index c5c8ca28eb41..6d1f69cde973 100644
--- a/dev-packages/browser-integration-tests/README.md
+++ b/dev-packages/browser-integration-tests/README.md
@@ -95,7 +95,6 @@ occur while writing tests for Sentry Browser SDK.
Before running, a page for each test case is built under the case folder inside `dist`. If a page build is failed,
it's recommended to check:
-
- If both default `template.hbs` and `init.js` are defined for the test group.
- If a `subject.js` is defined for the test case.
- If either of `init.js` or `subject.js` contain non-browser code.
diff --git a/dev-packages/browser-integration-tests/suites/replay/ignoreMutations/test.ts b/dev-packages/browser-integration-tests/suites/replay/ignoreMutations/test.ts
index 3d76a2b07b1a..4f9676602b05 100644
--- a/dev-packages/browser-integration-tests/suites/replay/ignoreMutations/test.ts
+++ b/dev-packages/browser-integration-tests/suites/replay/ignoreMutations/test.ts
@@ -26,16 +26,15 @@ sentryTest('allows to ignore mutations via `ignoreMutations` option', async ({ g
const requests = await requestsPromise;
// All transform mutatinos are ignored and not captured
- const transformMutations = requests.replayRecordingSnapshots.filter(
- item =>
- (item.data as mutationData)?.attributes?.some(
- attr => attr.attributes['style'] && attr.attributes['class'] !== 'moved',
- ),
+ const transformMutations = requests.replayRecordingSnapshots.filter(item =>
+ (item.data as mutationData)?.attributes?.some(
+ attr => attr.attributes['style'] && attr.attributes['class'] !== 'moved',
+ ),
);
// Should capture the final class mutation
- const classMutations = requests.replayRecordingSnapshots.filter(
- item => (item.data as mutationData)?.attributes?.some(attr => attr.attributes['class']),
+ const classMutations = requests.replayRecordingSnapshots.filter(item =>
+ (item.data as mutationData)?.attributes?.some(attr => attr.attributes['class']),
);
expect(transformMutations).toEqual([]);
diff --git a/dev-packages/browser-integration-tests/utils/helpers.ts b/dev-packages/browser-integration-tests/utils/helpers.ts
index 42657ab14731..b3f55b4550a0 100644
--- a/dev-packages/browser-integration-tests/utils/helpers.ts
+++ b/dev-packages/browser-integration-tests/utils/helpers.ts
@@ -142,13 +142,10 @@ export const countEnvelopes = async (
page.on('request', requestHandler);
- setTimeout(
- () => {
- page.off('request', requestHandler);
- resolve(reqCount);
- },
- options?.timeout || 1000,
- );
+ setTimeout(() => {
+ page.off('request', requestHandler);
+ resolve(reqCount);
+ }, options?.timeout || 1000);
});
if (options?.url) {
diff --git a/dev-packages/cloudflare-integration-tests/tsconfig.json b/dev-packages/cloudflare-integration-tests/tsconfig.json
index 38816b36116e..07f106daf370 100644
--- a/dev-packages/cloudflare-integration-tests/tsconfig.json
+++ b/dev-packages/cloudflare-integration-tests/tsconfig.json
@@ -7,6 +7,6 @@
// Although this seems wrong to include `DOM` here, it's necessary to make
// global fetch available in tests in lower Node versions.
"lib": ["ES2020"],
- "esModuleInterop": true,
+ "esModuleInterop": true
}
}
diff --git a/dev-packages/e2e-tests/README.md b/dev-packages/e2e-tests/README.md
index a1eb1b559b9c..2c793fa05df0 100644
--- a/dev-packages/e2e-tests/README.md
+++ b/dev-packages/e2e-tests/README.md
@@ -81,11 +81,11 @@ for it to work with both regular and prerelease versions:
"scripts": {
"test": "echo \"Hello world!\"",
"test:build": "pnpm install",
- "test:assert": "pnpm test"
+ "test:assert": "pnpm test",
},
"dependencies": {
- "@sentry/node": "latest || *"
- }
+ "@sentry/node": "latest || *",
+ },
}
```
diff --git a/dev-packages/e2e-tests/test-applications/angular-17/angular.json b/dev-packages/e2e-tests/test-applications/angular-17/angular.json
index 387a7eefce16..e687f8228810 100644
--- a/dev-packages/e2e-tests/test-applications/angular-17/angular.json
+++ b/dev-packages/e2e-tests/test-applications/angular-17/angular.json
@@ -16,17 +16,10 @@
"outputPath": "dist/angular-17",
"index": "src/index.html",
"browser": "src/main.ts",
- "polyfills": [
- "zone.js"
- ],
+ "polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
- "assets": [
- "src/favicon.ico",
- "src/assets"
- ],
- "styles": [
- "src/styles.css"
- ],
+ "assets": ["src/favicon.ico", "src/assets"],
+ "styles": ["src/styles.css"],
"scripts": []
},
"configurations": {
@@ -74,18 +67,10 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
- "polyfills": [
- "zone.js",
- "zone.js/testing"
- ],
+ "polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "tsconfig.spec.json",
- "assets": [
- "src/favicon.ico",
- "src/assets"
- ],
- "styles": [
- "src/styles.css"
- ],
+ "assets": ["src/favicon.ico", "src/assets"],
+ "styles": ["src/styles.css"],
"scripts": []
}
}
diff --git a/dev-packages/e2e-tests/test-applications/angular-17/src/app/component-tracking/component-tracking.components.ts b/dev-packages/e2e-tests/test-applications/angular-17/src/app/component-tracking/component-tracking.components.ts
index 1e43d5c6c096..8349f666d11d 100644
--- a/dev-packages/e2e-tests/test-applications/angular-17/src/app/component-tracking/component-tracking.components.ts
+++ b/dev-packages/e2e-tests/test-applications/angular-17/src/app/component-tracking/component-tracking.components.ts
@@ -7,8 +7,8 @@ import { SampleComponent } from '../sample-component/sample-component.components
standalone: true,
imports: [TraceModule, SampleComponent],
template: `
- Welcome to Sentry's Angular 17 E2E test app
-
-
-
- Welcome to Sentry's Angular 17 E2E test app
+
+
+
+ Welcome to Sentry's Angular 18 E2E test app
-
-
-
- Welcome to Sentry's Angular 18 E2E test app
+
+
+
+ Welcome to Sentry's Angular 19 E2E test app
-
-
-
- Welcome to Sentry's Angular 19 E2E test app
+
+
+
+
src/pages
directory in your project.
- - From content layers to server islands, click to learn more about the new features and - improvements in Astro 5.0 -
- +src/pages
directory in your project.
+ + From content layers to server islands, click to learn more about the new features and improvements in Astro 5.0 +
+This page is static, except for the avatar which is loaded dynamically from the server
Fallback
- {body} -
- + ++ {body} +
+
- To get started, open the directory src/pages
in your project.
- Code Challenge: Tweak the "Welcome to Astro" message above.
-
+ To get started, open the directory src/pages
in your project.
+ Code Challenge: Tweak the "Welcome to Astro" message above.
+