# What changed in @spotlightjs/spotlight

> 73 changes in @spotlightjs/spotlight 2 to 4 from its official release notes, upgrade guides and advisories: 11 breaking, 2 security, 12 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/@spotlightjs/spotlight/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @spotlightjs/spotlight 4

### Breaking changes

- The console logging integration was removed from Sentry setup. (4.6.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.6.0)
- Sentry is disabled in development mode. (4.6.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.6.0)
- Sidecar accepts requests only from localhost or trusted Spotlight domains over HTTPS; connections from other origins are rejected. (4.6.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.6.0)
- Attachments from envelopes are associated with events and traces and displayed alongside other context information, supporting images, videos, JSON, code, and text files. (4.5.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.5.0)
- Viewers are collapsed by default and item payloads and attachments are rendered lazily to reduce UI stalls when opening large envelopes. (4.5.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.5.0)
- The CLI no longer displays ASCII art. (4.3.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.3.0)
- Local resource handling was removed because the overlay feature is not supported. (4.0.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.0.0)
- setupSidecar is now async, so callers must handle its asynchronous result. (4.0.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.0.0)
- Vite plugins were removed because they are deprecated. (4.0.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.0.0)

### Security

- Adds a react-router override to address an open redirect vulnerability. (4.11.5) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.11.5)
- A security vulnerability in qs was fixed. (4.10.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.10.0)

### New APIs and options

- Adds filter bars to the Errors and Logs tabs. (4.11.8) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.11.8)
- The UI now has a collapsible insights section. (4.11.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.11.0)
- A new EmptyState component was added to telemetry. (4.11.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.11.0)
- A dynamic header was added for the dragbar. (4.10.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.10.0)
- Adds --open / -o to automatically open the Spotlight dashboard in the default browser when starting the sidecar. (4.8.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.8.0)
- Adds a CLI option for configuring additional CORS origins, accepting full origins for strict matching and plain domains for permissive matching. (4.7.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.7.0)
- Adds an API option for configuring additional CORS origins, accepting full origins for strict matching and plain domains for permissive matching. (4.7.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.7.0)
- Docker Compose projects can use the COMPOSE_FILE environment variable. (4.6.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.6.0)
- Added a Spotlight SDK to help others build on top of it. (4.6.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.6.0)
- A dropdown lets users toggle visibility of log columns, and column visibility preferences are persisted to localStorage. (4.4.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.4.0)
- Using port 0 automatically selects a port. (4.3.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.3.0)
- A CLI argument adds a stdio-based MCP server. (4.0.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.0.0)

### Behavior and default changes

- Spotlight now surfaces gen_ai spans in AI Traces. (4.12.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.12.0)
- Spotlight now displays Sentry User Feedback events. (4.12.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.12.0)
- Envelope ingestion now supports text/plain for all sentry.javascript SDKs. (4.12.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.12.0)
- The TelemetryView layout was updated for better responsiveness. (4.11.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.11.0)
- Error messages are displayed better. (4.10.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.10.0)
- The UI now includes event origin badges. (4.10.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.10.0)
- Shiki uses a theme in light mode. (4.10.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.10.0)
- Opens external links in the default browser. (4.9.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.9.0)
- Reports the github-ci environment to Sentry when running in GitHub Actions CI. (4.7.1) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.7.1)
- Allows any DNS pointing to localhost in CORS. (4.7.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.7.0)
- When both Docker Compose and package.json are present, the user is prompted to choose between them. (4.6.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.6.0)
- The logs table adds a sortable Trace ID column with clickable links to trace details, truncated IDs, and an “N/A” fallback for missing values. (4.4.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.4.0)
- Uses a dynamic port so each run is isolated. (4.3.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.3.0)
- Multiple stdio MCP servers can now run as proxies for the existing main sidecar. (4.0.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.0.0)

### Tooling

- Options are now shown in command-specific help output. (4.11.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.11.0)
- Cleanup handlers were added for the EventSource connection in cli tail. (4.11.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.11.0)
- Adds per-command detailed help through `spotlight <command> --help`. (4.9.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.9.0)
- Adds `spotlight help <command>` for detailed help about a specific CLI command. (4.9.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.9.0)
- Adds a command to run your apps with Spotlight. (4.3.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.3.0)
- CLI runs now emit the Spotlight version. (4.3.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.3.0)
- The CLI command is now available for tailing error logs. (4.2.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.2.0)

### Fixes and other changes

- Queries and traces now support streamed spans. (4.12.1) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.12.1)
- Handles ISO 8601 string timestamps from non-JS SDKs. (4.11.8) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.11.8)
- Fixes path stacking in the sidebar and detail tabs when using React Router v7 splat routes. (4.11.6) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.11.6)
- Fixes the bin location used by the install script. (4.11.2) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.11.2)
- Error handling and user experience for EADDRINUSE are improved. (4.10.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.10.0)
- Node.js 24.x is supported. (4.10.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.10.0)
- Null and undefined span descriptions are handled safely. (4.10.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.10.0)
- Comparators handle null values safely. (4.10.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.10.0)
- Validation guards prevent crashes in WebVitalsDetail. (4.10.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.10.0)
- Adds support for AI SDK v2 in AI Mode. (4.9.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.9.0)
- Adds support for continuous profiling (Profiling V2). (4.9.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.9.0)
- Improves trace-view profile visualization with higher-contrast frame colors, a custom dark-theme palette, corrected sunburst sample counts, and improved treemap visibility. (4.9.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.9.0)
- Fixes flamechart tree building by iterating from root to leaf frames, resolving fragmented visualization. (4.8.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.8.0)
- Logs containing ANSI escape sequences are now properly styled in the log viewer instead of showing raw escape characters. (4.7.2) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.7.2)
- Fixes failures when running the package with npx. (4.7.1) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.7.1)
- Restores the ability to drag the Electron app. (4.7.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.7.0)
- Recovers semaphore buttons. (4.7.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.7.0)
- When SPOTLIGHT_CAPTURE is enabled, file capture errors are logged instead of crashing. (4.6.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.6.0)
- Next.js SDK categorization uses User-Agent headers to distinguish browser from server events. (4.5.1) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.5.1)
- SDK column sorting now compares SDK string properties instead of full log objects. (4.5.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.5.0)
- Fixes a hang during shutdown in MCP mode. (4.4.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.4.0)
- Orphan traces now display in the UI when parent transactions are missing, including distributed-tracing transactions without frontend instrumentation. (4.4.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.4.0)
- Image previews for resource.img spans in the Electron app now construct absolute URLs from relative paths. (4.4.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.4.0)
- When SENTRY_SPOTLIGHT points to the same Spotlight instance, Spotlight detects the loop and disables its integration to prevent memory exhaustion. (4.4.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.4.0)
- Fixes shutdown issues where graceful shutdown never worked. (4.3.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.3.0)
- Log messages now go to stderr to avoid clobbering the MCP stdio transport. (4.0.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%404.0.0)

## @spotlightjs/spotlight 3

### Breaking changes

- Browser console integration was removed in favor of structured logging in Sentry SDKs. (3.0.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%403.0.0)

## @spotlightjs/spotlight 2

### Breaking changes

- The Spotlight overlay no longer supports JS SDK versions older than 7.99.0 and supports SDK 8.x; host apps must use version 8 or >=7.99.0. (2.0.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%402.0.0)

### Fixes and other changes

- Spotlight supports the versioned Sentry carrier object introduced in Sentry SDK 8.6.0+. (2.0.0) — [release notes](https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs/spotlight%402.0.0)
