GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(hapi): Widen type definitions by s1gr1d · Pull Request #12710 · getsentry/sentry-javascript

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Jul 1, 2024

Copy link
Copy Markdown
Member

fixes #12703

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@s1gr1d
fix(hapi): Widen type definitions
2174b28
@s1gr1d
s1gr1d requested review from mydea and onurtemizkan July 1, 2024 10:12
mydea
mydea reviewed Jul 1, 2024
View reviewed changes
Comment thread packages/node/src/integrations/tracing/hapi/types.ts Outdated
ext(event: any, method: Lifecycle.Method, options?: Record<string, any>): void;
initialize(): Promise<void>;
register(plugins: Plugin<any> | Array<Plugin<any>>, options?: Record<string, any>): Promise<void>;
register(plugins: Plugin<any>, options?: Record<string, any>): Promise<void>;

@mydea mydea Jul 1, 2024

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

hmm, is this not tightening the types? used to accept a plugin or an array of plugins, not we only accept a single plugin?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@s1gr1d s1gr1d Jul 1, 2024

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I just saw we cannot do this anyway as hapi has 5 different method overwrites and no union type. I am going to change this to any as well!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@s1gr1d
change register type to any
42e8401
@s1gr1d
s1gr1d requested a review from mydea July 1, 2024 11:00
@s1gr1d
Merge branch 'develop' into sig/fix-hapi-types
6db0829
mydea
mydea approved these changes Jul 1, 2024
View reviewed changes
s1gr1d and others added 2 commits July 1, 2024 13:15
@s1gr1d
Merge branch 'develop' into sig/fix-hapi-types
9928dac
@s1gr1d
delete unused types
8787755
@s1gr1d s1gr1d self-assigned this Jul 1, 2024
s1gr1d and others added 2 commits July 1, 2024 13:41
@s1gr1d
add types to function
4d6f799
@s1gr1d
Merge branch 'develop' into sig/fix-hapi-types
c58c50a
onurtemizkan
onurtemizkan approved these changes Jul 1, 2024
View reviewed changes
@s1gr1d
s1gr1d merged commit 3d4a3e0 into develop Jul 1, 2024
@s1gr1d
s1gr1d deleted the sig/fix-hapi-types branch July 1, 2024 12:28
@TheSlimvReal TheSlimvReal mentioned this pull request Jul 25, 2024
[Snyk] Upgrade @sentry/browser from 8.13.0 to 8.14.0 Aam-Digital/ndb-core#2477
Merged
This was referenced Jul 26, 2024
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.14.0 https-quantumblockchainai-atlassian-net/ossinsight#781
Open
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.15.0 https-quantumblockchainai-atlassian-net/ossinsight#783
Open
@amykapernick amykapernick mentioned this pull request Jul 27, 2024
[Snyk] Upgrade @sentry/nextjs from 8.14.0 to 8.15.0 amykapernick/wedding#11
Open
@aam-digital-ci aam-digital-ci mentioned this pull request Jul 27, 2024
[Snyk] Upgrade @sentry/browser from 8.13.0 to 8.15.0 Aam-Digital/ndb-core#2482
Closed
This was referenced Jul 30, 2024
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.16.0 https-quantumblockchainai-atlassian-net/ossinsight#787
Open
[Snyk] Upgrade @sentry/react from 7.16.0 to 8.17.0 https-quantumblockchainai-atlassian-net/ossinsight#791
Open
@amykapernick amykapernick mentioned this pull request Aug 1, 2024
[Snyk] Upgrade @sentry/nextjs from 8.14.0 to 8.17.0 amykapernick/wedding#12
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mydea mydea mydea approved these changes
+1 more reviewer
@onurtemizkan onurtemizkan onurtemizkan approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@s1gr1d s1gr1d

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Hapi Server type does not match Sentry's equivalent type

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@s1gr1d @mydea @onurtemizkan
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.