Node v8.8.0
nodejs.org
nodejs.org
* crypto:
- expose ECDH class
* http2:
- http2 is now exposed by default without the need for a flag
- a new environment varible NODE_NO_HTTP2 has been added to allow userland http2 to be required
- support has been added for generic Duplex streams
* module:
- resolve and instantiate loader pipeline hooks have been added to the ESM lifecycle
* zlib:
- CVE-2017-14919 - In zlib v1.2.9, a change was made that causes an error to be raised when a raw deflate stream is initialized with windowBits set to 8. On some versions this crashes Node and you cannot recover from it, while on some versions it throws an exception. Node.js will now gracefully set windowBits to 9 replicating the legacy behavior to avoid a DOS vector.
https://github.com/Microsoft/napajs/wiki/Why-Napa.js a bit edited:
1) quick iteration
2) multiple cores
3) share memory with structures
4) fine granularity parallelism, minimizing communication cost
Discussion: https://news.ycombinator.com/item?id=15498219 (Oct 2017, 201 comments)
To test if your version is affected:
zlib.createDeflateRaw({windowBits: 8})It wouldn't be appropriate for the http2 core module to do this implicitly, but I wouldn't be surprised if higher level server abstractions, such as Express, did implement such a feature (though imo it'd still be better to not use the Link header).
It's also likely to work a lot better for a caching proxy to perform this action rather than the source server - since it can cache the contents of the resources being pushed.
If you actually mean server-push then that would basically be long-polling and not very efficient, also it's meant to send along assets that the server already knows will be needed for a request (like CSS with the HTML). There's not much client-side API to actually deal with server-push because it's just like another network http request/response.
Now the server, having this connection open can later push more data into this /api/todos stream. Boom, you have websockets. Without needing a separate port and connection.
Even if you just send push-promises and push-responses while keeping the original response stalled (and the browser accepts the response), the client-side JS still has no idea what those requests were or what was loaded.
SSE is the evolution of long-polling so that browsers already include the logic to keep a connection open with streaming updates so that you can avoid all this in the first place.
I'm ignoring the fact that SSE are not replacement for WebSocket because with SSE we can't send data from client to server.
There is no good internal password storage, and bitcoin operations require bringing in most libs
Fire up 8.8.0 and you'll find crypto.scrypt is undefined.
nodejs will have to get the OpenSSL 1.1 upgrade in as the support period for nodejs 8.x exceeds the support period for OpenSSL 1.0.x
First attempt was made here[0]
Sure, I opened the issue.
I provided the link so you can follow it.
It would be great to have scrypt in Node, as well as argon2 and DJB's chacha20+poly1305.
Seems like they got stuck on discussing codes of conducts and genders and forgot to do actual work.