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

feat: allow defining symbol error extensions #3730

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

n1ru4l
Copy link
Contributor

@n1ru4l n1ru4l commented Sep 12, 2022

Using symbol keys is a useful approach when composing error handlers as symbol keys are omitted when the error is finally stringified.

It allows middlewares to read extensions without having to assign them to undefined afterwards or using the delete keyword.

@github-actions
Copy link

Hi @n1ru4l, I'm @github-actions bot happy to help you with this PR 👋

Supported commands

Please post this commands in separate comments and only one per comment:

  • @github-actions run-benchmark - Run benchmark comparing base and merge commits for this PR
  • @github-actions publish-pr-on-npm - Build package from this PR and publish it on NPM

Copy link
Member

@benjie benjie left a comment

Choose a reason for hiding this comment

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

Seems like a reasonable feature.

@benjie benjie merged commit 29c1bff into graphql:16.x.x Jun 21, 2024
@benjie
Copy link
Member

benjie commented Jun 21, 2024

Argh; we can't have it because typescript 4.3 doesn't support symbols so it fails to pass CI. I think I must not have checked that CI had passed. Rolling back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants