Comments (9)
That'd be interesting. We're currently using got, but not by much, so it might be easy to switch to http2 with possible http fallback.
If there's a package that already handles this, lemme know (I don't know of any!). PR's are also welcome.
from pnpm.
Unfortunately there is no package that wraps this.
I've created an Issue for GOT here:
sindresorhus/got#167
Otherwise, we would have to use is-http2
along with node-http2
.
https://github.com/stefanjudis/is-http2
Or create a new package.
from pnpm.
Ok seems that its gonna be easier to fix on the GOT side.
However we might add here the spdy
module as a dependency in pnpm
to have HTTP2 support enabled by default.
from pnpm.
@gunta we now use the same package that npm uses to make http requests (https://github.com/npm/npm-registry-client). Do you think this issue is still relevant?
from pnpm.
@zkochan Still relevant. They use request
which doesn't support http2
neither.
Since it doesn't looks too difficult, we could hack something like this in the meantime: http://stackoverflow.com/questions/37653110/is-there-a-request-like-package-using-http2
from pnpm.
I see. We can try to make a pull request to npm-registry-client. If they won't accept it, we can fork it and use the fork.
from pnpm.
Is this still relevant? Node 10 (and probably earlier releases) supports http2 internally (at least "experimental").
https://nodejs.org/api/http2.html#http2_http_2
from pnpm.
@zkochan Do you still want to consider this? Since node-fetch doesn't seem to support http2, it would mean switching to something like fetch-h2.
from pnpm.
sure, would be nice to see if we get a performance boost with that library.
from pnpm.
Related Issues (20)
- `--update-interactive` output does not support light theme in terminal HOT 4
- Cannot delete an optional dependency by using .pnpmfile.cjs - becomes a dependency instead? HOT 9
- packages versions no same between `pnpm install` and `pnpm view versions` HOT 4
- Inconsistent lockfile changes on repeat installs HOT 14
- Your lockfile versions are mismatched, i confirmed that this is a bug on your end. HOT 5
- Unable to upgrade pnpm HOT 2
- The inferred type of X cannot be named without a reference to Y" (TS2742) occurs when multiple modules with the same package ID are resolved HOT 5
- pnpm install fails to add in-project bin scripts to node_modules/.bin HOT 1
- `file:` protocol from workspace package can't install workspace dependencies HOT 1
- Issue installing dependencies via Node.js child process HOT 4
- After pnpm is installed, the module type cannot be obtained HOT 1
- [Docs] using the file: protocol can not reflect the changes until Run pnpm install everytime HOT 2
- `pnpm upgrade --latest` doesn't consider `alpha` & `beta` as latest but `pnpm outdated` doesn't show latest either HOT 4
- ERR_PNPM_LINKING_FAILED when running pnpm i HOT 2
- The `pnpm cat-file` command adds an option to limit the maximum character content printed HOT 6
- Optional `peerDependencies`/`devDependencies` mistakenly recorded as a `dependencies` and unexpectedly getting installed HOT 2
- Lockfile is not respected when a newer version of the dependency exists in the tree HOT 10
- pnpm doesn't run postinstall scripts of dependencies on Windows HOT 4
- Support subfolder when installing from Git HOT 5
- `pnpm link` ignoring registry overrides in npmrc HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pnpm.