Skip to content

Conversation

AnastasiiaSvietlova
Copy link
Contributor

@AnastasiiaSvietlova AnastasiiaSvietlova commented Jul 30, 2025

Goal

Convert packages to TypeScript using rollup to bundle both ES modules and Common JS modules for maximum compatibility

Design

Changeset

Refactor @bugsnag packages:

  • plugin-node-device
  • plugin-node-in-project
  • plugin-node-uncaught-exception
  • plugin-node-unhandled-rejection
  • plugin-node-surrounding-code
  • plugin-strip-project-root
  • plugin-server-session
  • plugin-intercept
  • plugin-contextualize
  • plugin-stackframe-path-normaliser
  • delivery-node
  • plugin-express
  • plugin-restify
  • plugin-koa

Testing

Covered by existing end to end and unit tests

Copy link

github-actions bot commented Jul 30, 2025

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 55.08 kB 16.54 kB
After 55.08 kB 16.54 kB
± No change No change

code coverage diff

<temporarily disabled>

Generated by 🚫 dangerJS against 171c16f

AnastasiiaSvietlova and others added 8 commits September 5, 2025 12:44
* convert plugin-node-device

* fix type errors and update test

* fix export

* made value optional

* fix test

* add os to rollup
* convert plugin-node-in-project

* fix types and rollup config

* update rollup

* update package json
* convert uncaught-exception to typescript

* update types

* update package json

* update build
* convert unhandled-rejection to typescript

* update package json

* update package-lock
* convert node-surrounding-code

* update rollup config

* update types and test

* delete commented line

* update package json

* update package-lock

* update package-lock
* convert plugin strip project root to TypeScript

* update import
* convert server session to typescript

* update package-lock

* add type declaration file for backo

* update types

* update types

* update types and tests

* update types
@gingerbenw gingerbenw force-pushed the integration/typescript-node branch from e949b87 to 9027b52 Compare September 5, 2025 12:02
gingerbenw and others added 10 commits September 5, 2025 14:57
* Convert @bugsnag/plugin-node-device to TypeScript  (#2505)

* convert plugin-node-device

* fix type errors and update test

* fix export

* made value optional

* fix test

* add os to rollup

* Convert @bugsnag/plugin-node-in-project to TypeScript  (#2506)

* convert plugin-node-in-project

* fix types and rollup config

* update rollup

* update package json

* Convert @bugsnag/plugin-node-uncaught-exception to TypeScript (#2509)

* convert uncaught-exception to typescript

* update types

* update package json

* update build

* Convert @bugsnag/plugin-node-unhandled-rejection to TypeScript (#2511)

* convert unhandled-rejection to typescript

* update package json

* update package-lock

* Convert @bugsnag/plugin-node-surrounding-code to TypeScript (#2507)

* convert node-surrounding-code

* update rollup config

* update types and test

* delete commented line

* update package json

* update package-lock

* update package-lock

* convert intercept to TS

* fix types

* update import

* update package-lock
* Convert @bugsnag/plugin-node-device to TypeScript  (#2505)

* convert plugin-node-device

* fix type errors and update test

* fix export

* made value optional

* fix test

* add os to rollup

* Convert @bugsnag/plugin-node-in-project to TypeScript  (#2506)

* convert plugin-node-in-project

* fix types and rollup config

* update rollup

* update package json

* Convert @bugsnag/plugin-node-uncaught-exception to TypeScript (#2509)

* convert uncaught-exception to typescript

* update types

* update package json

* update build

* Convert @bugsnag/plugin-node-unhandled-rejection to TypeScript (#2511)

* convert unhandled-rejection to typescript

* update package json

* update package-lock

* Convert @bugsnag/plugin-node-surrounding-code to TypeScript (#2507)

* convert node-surrounding-code

* update rollup config

* update types and test

* delete commented line

* update package json

* update package-lock

* update package-lock

* Convert @bugsnag/plugin-strip-project-root to TypeScript (#2520)

* convert plugin strip project root to TypeScript

* update import

* Convert @bugsnag/plugin-server-session to TypeScript (#2514)

* convert server session to typescript

* update package-lock

* add type declaration file for backo

* update types

* update types

* update types and tests

* update types

* convert contextualize to TS

* update rollup config

* add  space
)

* Convert @bugsnag/plugin-node-device to TypeScript  (#2505)

* convert plugin-node-device

* fix type errors and update test

* fix export

* made value optional

* fix test

* add os to rollup

* Convert @bugsnag/plugin-node-in-project to TypeScript  (#2506)

* convert plugin-node-in-project

* fix types and rollup config

* update rollup

* update package json

* Convert @bugsnag/plugin-node-uncaught-exception to TypeScript (#2509)

* convert uncaught-exception to typescript

* update types

* update package json

* update build

* Convert @bugsnag/plugin-node-unhandled-rejection to TypeScript (#2511)

* convert unhandled-rejection to typescript

* update package json

* update package-lock

* Convert @bugsnag/plugin-node-surrounding-code to TypeScript (#2507)

* convert node-surrounding-code

* update rollup config

* update types and test

* delete commented line

* update package json

* update package-lock

* update package-lock

* Convert @bugsnag/plugin-strip-project-root to TypeScript (#2520)

* convert plugin strip project root to TypeScript

* update import

* Convert @bugsnag/plugin-server-session to TypeScript (#2514)

* convert server session to typescript

* update package-lock

* add type declaration file for backo

* update types

* update types

* update types and tests

* update types

* convert stackframe-path-normaliser to TS
* Convert @bugsnag/plugin-node-device to TypeScript  (#2505)

* convert plugin-node-device

* fix type errors and update test

* fix export

* made value optional

* fix test

* add os to rollup

* Convert @bugsnag/plugin-node-in-project to TypeScript  (#2506)

* convert plugin-node-in-project

* fix types and rollup config

* update rollup

* update package json

* Convert @bugsnag/plugin-node-uncaught-exception to TypeScript (#2509)

* convert uncaught-exception to typescript

* update types

* update package json

* update build

* Convert @bugsnag/plugin-node-unhandled-rejection to TypeScript (#2511)

* convert unhandled-rejection to typescript

* update package json

* update package-lock

* Convert @bugsnag/plugin-node-surrounding-code to TypeScript (#2507)

* convert node-surrounding-code

* update rollup config

* update types and test

* delete commented line

* update package json

* update package-lock

* update package-lock

* Convert @bugsnag/plugin-strip-project-root to TypeScript (#2520)

* convert plugin strip project root to TypeScript

* update import

* Convert @bugsnag/plugin-server-session to TypeScript (#2514)

* convert server session to typescript

* update package-lock

* add type declaration file for backo

* update types

* update types

* update types and tests

* update types

* convert delivery-node to TS

* convert delivery and request

* update types for delivery

* fix build

* fix rollup.config

* fix tsconfig
* add tsconfig

* convert plugin express to ts

* update rollup config

* delete old version

* update export to pass tests

* update types consistency

* update export

* refactor types of request

* refactor import BugsnagPluginExpress

* update export express plugin

* delete type casting
* convert plugin-restify to ts

* update types

* refactor: 🏷️ base custom types off existing restify request types

* refactor headers type of request

* delete unnecessary export

* add unit and end-to-end tests

* update package-lock

* update event severity property

* restore event as any type casting

* test: ✅ remove unnecessary tests

* delete added previously lines to tests

---------

Co-authored-by: Ben Wilson <[email protected]>
* convert plugin koa to ts

* change connection to socket

* update rollup config

* update tests

* remove unnecessary exports

* update rollup configuration to retain generator function

* fix some types

* change type casting to ts-expect error

---------

Co-authored-by: Ben Wilson <[email protected]>
@AnastasiiaSvietlova AnastasiiaSvietlova marked this pull request as ready for review September 22, 2025 06:27
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.

2 participants