Skip to content

Javascript package decomposition#153

Open
Reversean wants to merge 6 commits intorefactor/catcher-loggerfrom
refactor/javascript-package-decomposition
Open

Javascript package decomposition#153
Reversean wants to merge 6 commits intorefactor/catcher-loggerfrom
refactor/javascript-package-decomposition

Conversation

@Reversean
Copy link
Member

@Reversean Reversean commented Feb 2, 2026

Moved common utilities and types to @hawk.so/core:

  • Sanitizer
  • StackParser
  • Transport
  • EventRejectedError
  • fetch-timer.ts
  • event.ts
  • selector.ts
  • validation.ts

Some types are now re-export of types from @hawk.so/types:

  • CatcherMessage
  • HawkJavaScriptEvent

@Reversean Reversean self-assigned this Feb 2, 2026
@Reversean Reversean force-pushed the chore/yarn-4.12.0 branch 3 times, most recently from ce72cfd to 5220d8c Compare February 2, 2026 23:10
@Reversean Reversean force-pushed the refactor/javascript-package-decomposition branch from b1e27b1 to e943476 Compare February 2, 2026 23:18
@Reversean Reversean changed the title Refactor/javascript package decomposition Javascript package decomposition Feb 2, 2026
@Reversean Reversean force-pushed the refactor/javascript-package-decomposition branch from e943476 to 2b74325 Compare February 2, 2026 23:19
@Reversean Reversean changed the title Javascript package decomposition Draft: Javascript package decomposition Feb 2, 2026
@Reversean Reversean marked this pull request as draft February 2, 2026 23:22
Copy link
Member

Choose a reason for hiding this comment

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

Unexpected change.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

Copy link
Member

Choose a reason for hiding this comment

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

I think this file is bloated and a significant part of it can be reusable as a core module.

  • we can create an abstract class definining base structure of any catcher. type (protected), context, user, getIntegrationId, getRelease, getType, getRawData, etc can be moved there.
  • setUser, setContext - reusable
  • maybe some other utilities. StackParser, etc

Copy link
Member Author

Choose a reason for hiding this comment

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

I think I'll move catcher core in separate PR. This PR takes only common env-agnostic utilities and modules.

But this comment noticed.

Base automatically changed from chore/yarn-4.12.0 to master February 4, 2026 17:58
@Reversean Reversean force-pushed the refactor/javascript-package-decomposition branch from 2b74325 to e8010d5 Compare February 4, 2026 20:17
@Reversean Reversean force-pushed the refactor/javascript-package-decomposition branch from e8010d5 to 20726ad Compare March 4, 2026 09:05
@Reversean Reversean changed the base branch from master to refactor/catcher-logger March 4, 2026 09:05
@Reversean Reversean force-pushed the refactor/catcher-logger branch from 70d214e to fc05da3 Compare March 4, 2026 18:12
@Reversean Reversean marked this pull request as ready for review March 4, 2026 18:15
@Reversean Reversean changed the title Draft: Javascript package decomposition Javascript package decomposition Mar 4, 2026
@Reversean Reversean force-pushed the refactor/javascript-package-decomposition branch from 20726ad to b4018fb Compare March 4, 2026 18:18
@Reversean Reversean force-pushed the refactor/catcher-logger branch from fc05da3 to 8ad3d96 Compare March 5, 2026 09:04
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