npm / @spotlightjs/spotlight
@spotlightjs/spotlight
What changed in @spotlightjs/spotlight 2 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
11 breaking2 security12 new APIs and options14 behavior and defaults7 tooling27 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@spotlightjs/spotlight 470 changes
Breaking changes 9
The console logging integration was removed from Sentry setup.
Sentry is disabled in development mode.
Sidecar accepts requests only from localhost or trusted Spotlight domains over HTTPS; connections from other origins are rejected.
Attachments from envelopes are associated with events and traces and displayed alongside other context information, supporting images, videos, JSON, code, and text files.
Viewers are collapsed by default and item payloads and attachments are rendered lazily to reduce UI stalls when opening large envelopes.
The CLI no longer displays ASCII art.
Local resource handling was removed because the overlay feature is not supported.
setupSidecar is now async, so callers must handle its asynchronous result.
Vite plugins were removed because they are deprecated.
Security 2
Adds a react-router override to address an open redirect vulnerability.
A security vulnerability in qs was fixed.
New APIs and options 12
Adds filter bars to the Errors and Logs tabs.
The UI now has a collapsible insights section.
A new EmptyState component was added to telemetry.
A dynamic header was added for the dragbar.
Adds --open / -o to automatically open the Spotlight dashboard in the default browser when starting the sidecar.
Adds a CLI option for configuring additional CORS origins, accepting full origins for strict matching and plain domains for permissive matching.
Adds an API option for configuring additional CORS origins, accepting full origins for strict matching and plain domains for permissive matching.
Docker Compose projects can use the COMPOSE_FILE environment variable.
Added a Spotlight SDK to help others build on top of it.
A dropdown lets users toggle visibility of log columns, and column visibility preferences are persisted to localStorage.
Using port 0 automatically selects a port.
A CLI argument adds a stdio-based MCP server.
Behavior and default changes 14
Spotlight now surfaces gen_ai spans in AI Traces.
Spotlight now displays Sentry User Feedback events.
Envelope ingestion now supports text/plain for all sentry.javascript SDKs.
The TelemetryView layout was updated for better responsiveness.
Error messages are displayed better.
The UI now includes event origin badges.
Shiki uses a theme in light mode.
Opens external links in the default browser.
Reports the github-ci environment to Sentry when running in GitHub Actions CI.
Allows any DNS pointing to localhost in CORS.
When both Docker Compose and package.json are present, the user is prompted to choose between them.
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.
Uses a dynamic port so each run is isolated.
Multiple stdio MCP servers can now run as proxies for the existing main sidecar.
Tooling 7
Options are now shown in command-specific help output.
Cleanup handlers were added for the EventSource connection in cli tail.
Adds per-command detailed help through
spotlight <command> --help.Adds
spotlight help <command>for detailed help about a specific CLI command.Adds a command to run your apps with Spotlight.
CLI runs now emit the Spotlight version.
The CLI command is now available for tailing error logs.
Fixes and other changes 26
Queries and traces now support streamed spans.
Handles ISO 8601 string timestamps from non-JS SDKs.
Fixes path stacking in the sidebar and detail tabs when using React Router v7 splat routes.
Fixes the bin location used by the install script.
Error handling and user experience for EADDRINUSE are improved.
Node.js 24.x is supported.
Null and undefined span descriptions are handled safely.
Comparators handle null values safely.
Validation guards prevent crashes in WebVitalsDetail.
Adds support for AI SDK v2 in AI Mode.
Adds support for continuous profiling (Profiling V2).
Improves trace-view profile visualization with higher-contrast frame colors, a custom dark-theme palette, corrected sunburst sample counts, and improved treemap visibility.
Fixes flamechart tree building by iterating from root to leaf frames, resolving fragmented visualization.
Logs containing ANSI escape sequences are now properly styled in the log viewer instead of showing raw escape characters.
Fixes failures when running the package with npx.
Restores the ability to drag the Electron app.
Recovers semaphore buttons.
When SPOTLIGHT_CAPTURE is enabled, file capture errors are logged instead of crashing.
Next.js SDK categorization uses User-Agent headers to distinguish browser from server events.
SDK column sorting now compares SDK string properties instead of full log objects.
Fixes a hang during shutdown in MCP mode.
Orphan traces now display in the UI when parent transactions are missing, including distributed-tracing transactions without frontend instrumentation.
Image previews for resource.img spans in the Electron app now construct absolute URLs from relative paths.
When SENTRY_SPOTLIGHT points to the same Spotlight instance, Spotlight detects the loop and disables its integration to prevent memory exhaustion.
Fixes shutdown issues where graceful shutdown never worked.
Log messages now go to stderr to avoid clobbering the MCP stdio transport.
@spotlightjs/spotlight 31 changes
Breaking changes 1
Browser console integration was removed in favor of structured logging in Sentry SDKs.
@spotlightjs/spotlight 22 changes
Breaking changes 1
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.
Fixes and other changes 1
Spotlight supports the versioned Sentry carrier object introduced in Sentry SDK 8.6.0+.