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

Use the native http2 module in Node 9 #1485

Closed
wants to merge 2 commits into from

Conversation

cristianl
Copy link

node-http2 is officially deprecated. The author recommends using the native http2 module that ships with Node 9.

Despite the ExperimentalWarning: The http2 module is an experimental API warning in the native module, it seems more stable than node-http2. I constantly ran into an unhandled error, which crashes Browsersync.

@coveralls
Copy link

coveralls commented Jan 6, 2018

Coverage Status

Coverage decreased (-0.006%) to 79.572% when pulling 8300c66 on cristianl:native-http2-node9 into a5b5603 on BrowserSync:master.

Should have run prettier
@coveralls
Copy link

coveralls commented Jan 6, 2018

Coverage Status

Coverage decreased (-0.006%) to 79.572% when pulling e56e881 on cristianl:native-http2-node9 into a5b5603 on BrowserSync:master.

@shakyShane
Copy link
Contributor

@cristianl until node 10 is LTS, we wouldn't do this - Browsersync still technically supports back to 4 (although that should really be 6 now)

@shakyShane
Copy link
Contributor

@cristianl I've closed this for now since the httpModule option is intended to allow users to choose any module they have installed.

I guess the only thing we'd change in terms of servers, is when we can get all of Browsersync's features working with the native http2 module we could switch to it happily.

So if someone would like to open that as a separate PR :)

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.

None yet

3 participants