Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(node): Move stack parser to utils so it can be used from Electron #5286

Merged
merged 2 commits into from
Jun 21, 2022

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Jun 20, 2022

This PR moves the node stack parser to utils so it can be used from the Electron SDK in the renderer without upsetting bundlers.

It already has it's node-specific functionality (getting the module name) refactored out into a separately supplied function. The stack parser remains exported from @sentry/node so the public api does not change.

@timfish timfish changed the title ref(node) Move stack parser to utils so it can be used from Electron ref(node): Move stack parser to utils so it can be used from Electron Jun 20, 2022
}

/** Node.js stack line parser */
export function nodeStackLineParser(getModule?: GetModuleFn): StackLineParser {
Copy link
Member

Choose a reason for hiding this comment

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

Can we leave a comment why we are exporting this from utils instead of the node package?

Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

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

We’ll cut another release soon!

@AbhiPrasad AbhiPrasad merged commit a1c79cd into getsentry:master Jun 21, 2022
@timfish timfish deleted the move-node-stack-parser branch October 5, 2022 09:55
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