Skip to content

convert plugin node uncaught eexception from js to ts#2758

Merged
SB-gulshans merged 3 commits into
integration/v9from
gs/plat-16464-pluginNUE-JS-to-TS
Jun 18, 2026
Merged

convert plugin node uncaught eexception from js to ts#2758
SB-gulshans merged 3 commits into
integration/v9from
gs/plat-16464-pluginNUE-JS-to-TS

Conversation

@SB-gulshans

Copy link
Copy Markdown
Contributor

Goal

convert plugin node uncaught eexception from js to ts

Changeset

convert plugin node uncaught eexception from js to ts

Testing

Unit test case and few e2e test cases

@SB-gulshans SB-gulshans requested a review from SB-jigneshR June 8, 2026 09:23
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 48.45 kB 14.68 kB
After 48.45 kB 14.68 kB
± No change No change

code coverage diff

Ok File Lines Branches Functions Statements
/home/runner/work/bugsnag-js/bugsnag-js/packages/plugin-node-uncaught-exception/src/uncaught-exception.ts 100%
(+100%)
76.92%
(+76.92%)
100%
(+100%)
95.65%
(+95.65%)

Total:

Lines Branches Functions Statements
77.49%(+0.14%) 69.4%(+0.07%) 75.16%(+0.2%) 76.49%(+0.14%)

Generated by 🚫 dangerJS against 45f6afb

SB-jigneshR
SB-jigneshR previously approved these changes Jun 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Converts @bugsnag/plugin-node-uncaught-exception from a single JS entrypoint to a TypeScript source module, adding standard Rollup-based ESM/CJS builds and updating tests to target the TS implementation.

Changes:

  • Replaced the JS implementation with src/uncaught-exception.ts (TypeScript) while keeping the same runtime behavior.
  • Added package-level build tooling (rollup.config.mjs, tsconfig.json) and updated package.json to publish dist/esm + dist/cjs with modern exports.
  • Updated unit tests to import the TS source module.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/plugin-node-uncaught-exception/uncaught-exception.js Removed legacy JS implementation (replaced by TS build output).
packages/plugin-node-uncaught-exception/src/uncaught-exception.ts New TypeScript implementation of the uncaught exception process handler plugin.
packages/plugin-node-uncaught-exception/test/uncaught-exception.test.ts Updated tests to import the TS source and avoid calling optional destroy unsafely.
packages/plugin-node-uncaught-exception/package.json Switched to dist outputs with exports map and added build/typecheck scripts.
packages/plugin-node-uncaught-exception/rollup.config.mjs Added Rollup build config using the repo shared Rollup factory.
packages/plugin-node-uncaught-exception/tsconfig.json Added TS project config for the package.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/plugin-node-uncaught-exception/src/uncaught-exception.ts
Comment thread packages/plugin-node-uncaught-exception/src/uncaught-exception.ts
Comment thread packages/plugin-node-uncaught-exception/package.json
@SB-gulshans SB-gulshans merged commit 239a038 into integration/v9 Jun 18, 2026
34 checks passed
@SB-gulshans SB-gulshans deleted the gs/plat-16464-pluginNUE-JS-to-TS branch June 18, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants