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

Support for zstd #48412

Closed
JamieMagee opened this issue Jun 11, 2023 · 12 comments
Closed

Support for zstd #48412

JamieMagee opened this issue Jun 11, 2023 · 12 comments
Labels
feature request Issues that request new features to be added to Node.js. never-stale Mark issue so that it is never considered stale

Comments

@JamieMagee
Copy link

What is the problem this feature will solve?

zstd and the application/zstd media type were standardized in 2018 in RFC8478 (and refined in RFC8878). In the context of the web, support is becoming more widespread:

Browsers

Web servers

Tools

What is the feature you are proposing to solve the problem?

Add support for zstd compression in Node's zlib module.

What alternatives have you considered?

No response

@JamieMagee JamieMagee added the feature request Issues that request new features to be added to Node.js. label Jun 11, 2023
Copy link
Contributor

github-actions bot commented Dec 8, 2023

There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.

For more information on how the project manages feature requests, please consult the feature request management document.

@github-actions github-actions bot added the stale label Dec 8, 2023
@JamieMagee
Copy link
Author

I think this is still relevant as the 22 👍 reactions (and counting) shows.

@github-actions github-actions bot removed the stale label Dec 9, 2023
@bricss
Copy link

bricss commented Feb 17, 2024

Zstd Content-Encoding will start shipping 🚢 soon in modern web browsers, and its support in Node could be very handy, imo 🙄

@yyfearth
Copy link

available in in Chrome 121 now. Accept-Encoding: gzip, deflate, br, zstd

@JamieMagee
Copy link
Author

Support is also being tracked on caniuse: https://caniuse.com/zstd

jkrems added a commit to jkrems/node that referenced this issue Mar 17, 2024
jkrems added a commit to jkrems/node that referenced this issue Mar 17, 2024
jkrems added a commit to jkrems/node that referenced this issue Mar 17, 2024
jkrems added a commit to jkrems/node that referenced this issue Mar 17, 2024
jkrems added a commit to jkrems/node that referenced this issue Mar 17, 2024
jkrems added a commit to jkrems/node that referenced this issue Mar 17, 2024
jkrems added a commit to jkrems/node that referenced this issue Mar 17, 2024
jkrems added a commit to jkrems/node that referenced this issue Mar 17, 2024
jkrems added a commit to jkrems/node that referenced this issue Apr 13, 2024
@jkrems
Copy link
Contributor

jkrems commented Apr 13, 2024

Potential PR for basic support (no custom dictionaries): #52100

jkrems added a commit to jkrems/node that referenced this issue Sep 10, 2024
jkrems added a commit to jkrems/node that referenced this issue Sep 10, 2024
jkrems added a commit to jkrems/node that referenced this issue Sep 10, 2024
jkrems added a commit to jkrems/node that referenced this issue Sep 10, 2024
jkrems added a commit to jkrems/node that referenced this issue Sep 10, 2024
Copy link
Contributor

There has been no activity on this feature request for 5 months. To help maintain relevant open issues, please add the never-stale Mark issue so that it is never considered stale label or close this issue if it should be closed. If not, the issue will be automatically closed 6 months after the last non-automated comment.
For more information on how the project manages feature requests, please consult the feature request management document.

@github-actions github-actions bot added the stale label Oct 11, 2024
@skhaz
Copy link

skhaz commented Oct 11, 2024

Keep

@KhafraDev KhafraDev added never-stale Mark issue so that it is never considered stale and removed stale labels Oct 11, 2024
@vejo2
Copy link

vejo2 commented Oct 26, 2024

Having made comparisons between compression methods for internal communication between serverless functions
zstd has proven to have one huge advantage over deflate and gzip:
client side decompression for large blocks is MUCH faster then inflate or gunzip.
Similar to br for a blob written once and read many times for this usecase there is an overall gain using zstd.
Please keep this feature request for basic support.

@255kb
Copy link

255kb commented Nov 8, 2024

Not only clients like Chrome added support for zstd, but also CDNs like Cloudflare. They recently activated it automatically when "zstd" is present in the Accept-encoding header.
It could be really useful to have it as part of zlib.

@bjohansebas
Copy link

In which versions of Node.js will this feature be available?

@JamieMagee
Copy link
Author

JamieMagee commented Feb 8, 2025

Likely v24, which is scheduled to be released in April 2025.

EDIT: looks like it's also going to be included in v23.8.0.

targos pushed a commit that referenced this issue Feb 10, 2025
Fixes: #48412
PR-URL: #52100
Reviewed-By: Yagiz Nizipli <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to Node.js. never-stale Mark issue so that it is never considered stale
Projects
Archived in project
Development

No branches or pull requests

9 participants