Skip to content

@types/node: http2: Add protocol option to http2.connect#41931

Merged
weswigham merged 1 commit intoDefinitelyTyped:masterfrom
murgatroid99:node_http2_protocol_option
Jan 29, 2020
Merged

@types/node: http2: Add protocol option to http2.connect#41931
weswigham merged 1 commit intoDefinitelyTyped:masterfrom
murgatroid99:node_http2_protocol_option

Conversation

@murgatroid99
Copy link
Copy Markdown
Contributor

Please fill in this template.

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Test the change in your own code. (Compile and run.)
  • Add or edit tests to reflect the change. (Run with npm test.)
  • Follow the advice from the readme.
  • Avoid common mistakes.
  • Run npm run lint package-name (or tsc if no tslint.json is present).

Select one of these and delete the others:

If changing an existing definition:

I am unsure about restricting the option so strongly. On one hand, in the code path that checks the value, any value other than those two results in an error being thrown. On the other hand, there is a code path that does not check the value at all, so technically in that case any value is allowed.

@typescript-bot typescript-bot added Popular package This PR affects a popular package (as counted by NPM download counts). Awaiting reviewer feedback labels Jan 29, 2020
@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Jan 29, 2020

@murgatroid99 Thank you for submitting this PR!

🔔 @microsoft @DefinitelyTyped @jkomyno @a-tarasyuk @alvis @r3nya @btoueg @BrunoScheufler @smac89 @tellnes @Touffy @DeividasBakanas @eyqs @Flarna @Hannes-Magnusson-CK @KSXGitHub @hoo29 @kjin @ajafff @islishude @mwiktorczyk @mohsen1 @n-e @octo-sniffle @galkin @parambirs @eps1lon @SimonSchick @ThomasdenH @WilcoBakker @wwwy3y3 @ZaneHannanAU @samuela @kuehlein @j-oliveras @bhongy @chyzwar @trivikr @nguymin4 @yoursunny @qwelias - please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead.

@typescript-bot
Copy link
Copy Markdown
Contributor

👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings.

Let’s review the numbers, shall we?

Comparison details 📊
master #41931 diff
Batch compilation
Memory usage (MiB) 124.6 127.5 +2.3%
Type count 21955 21959 0%
Assignability cache size 39541 39541 0%
Language service
Samples taken 1344 1344 0%
Identifiers in tests 11946 11947 0%
getCompletionsAtPosition
    Mean duration (ms) 642.3 648.2 +0.9%
    Mean CV 7.8% 7.4%
    Worst duration (ms) 813.5 900.8 +10.7%
    Worst identifier session concat
getQuickInfoAtPosition
    Mean duration (ms) 637.1 643.2 +1.0%
    Mean CV 7.6% 7.4% -3.5%
    Worst duration (ms) 816.7 834.5 +2.2%
    Worst identifier DataView utf8Buffer

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

@typescript-bot typescript-bot added the Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. label Jan 29, 2020
Copy link
Copy Markdown
Contributor

@Flarna Flarna left a comment

Choose a reason for hiding this comment

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

You could consider to a additionally a PR for node docs.

@typescript-bot typescript-bot added Owner Approved A listed owner of this package signed off on the pull request. Merge:Express and removed Awaiting reviewer feedback labels Jan 29, 2020
@typescript-bot
Copy link
Copy Markdown
Contributor

A definition owner has approved this PR ⭐️. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait. Thank you for your contribution to DefinitelyTyped!

@murgatroid99
Copy link
Copy Markdown
Contributor Author

murgatroid99 commented Jan 29, 2020

The corresponding Node docs PR is at nodejs/node#31560.

@weswigham weswigham merged commit 5884738 into DefinitelyTyped:master Jan 29, 2020
@typescript-bot
Copy link
Copy Markdown
Contributor

I just published @types/node@13.5.2 to npm.

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

Labels

Owner Approved A listed owner of this package signed off on the pull request. Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. Popular package This PR affects a popular package (as counted by NPM download counts).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants