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

refactor: native zlib support #10316

Merged
merged 2 commits into from
Jun 2, 2024

Conversation

sdanialraza
Copy link
Contributor

@sdanialraza sdanialraza commented Jun 2, 2024

This reverts #10314 which was a revert of #10243

@sdanialraza sdanialraza requested a review from a team as a code owner June 2, 2024 21:26
Copy link

vercel bot commented Jun 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
discord-js ⬜️ Ignored (Inspect) Visit Preview Jun 2, 2024 10:44pm
discord-js-guide ⬜️ Ignored (Inspect) Visit Preview Jun 2, 2024 10:44pm

@vladfrangu vladfrangu added this to the ws 2.0.0 milestone Jun 2, 2024
Copy link

codecov bot commented Jun 2, 2024

Codecov Report

Attention: Patch coverage is 27.27273% with 112 lines in your changes are missing coverage. Please review.

Project coverage is 19.13%. Comparing base (17d4c78) to head (663bd00).

Files Patch % Lines
packages/ws/src/ws/WebSocketShard.ts 18.84% 112 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main   #10316       +/-   ##
===========================================
- Coverage   47.49%   19.13%   -28.37%     
===========================================
  Files          75       31       -44     
  Lines        9790     6250     -3540     
  Branches      222      111      -111     
===========================================
- Hits         4650     1196     -3454     
+ Misses       5140     5054       -86     
Flag Coverage Δ
brokers 19.13% <27.27%> (-28.37%) ⬇️
builders 19.13% <27.27%> (-28.37%) ⬇️
collection 19.13% <27.27%> (-28.37%) ⬇️
discord.js 19.13% <27.27%> (-28.37%) ⬇️
formatters 19.13% <27.27%> (-28.37%) ⬇️
guide 19.13% <27.27%> (-28.37%) ⬇️
next 19.13% <27.27%> (-28.37%) ⬇️
proxy 19.13% <27.27%> (-28.37%) ⬇️
rest 19.13% <27.27%> (-28.37%) ⬇️
util 19.13% <27.27%> (-28.37%) ⬇️
utilities 19.13% <27.27%> (-28.37%) ⬇️
voice 19.13% <27.27%> (-28.37%) ⬇️
website 19.13% <27.27%> (-28.37%) ⬇️
ws 19.13% <27.27%> (-28.37%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sdanialraza sdanialraza changed the title revert: revert: refactor: native zlib support refactor: native zlib support Jun 2, 2024
@Jiralite Jiralite removed the blocked label Jun 2, 2024
@kodiakhq kodiakhq bot merged commit 94cc02a into discordjs:main Jun 2, 2024
23 checks passed
@sdanialraza sdanialraza deleted the revert-10314-revert/10243 branch June 2, 2024 22:52
@dzlandis
Copy link

dzlandis commented Jul 1, 2024

How are users of the regular discord.js package supposed to enable native zlib support?
Previously it was auto enabled (at least tmk) when the user had the zlib-sync package installed. But how does one enable it with the native package?

@Qjuh
Copy link
Contributor

Qjuh commented Jul 1, 2024

This will be in a new major version of @discordjs/ws because of breaking changes. And because of that won’t be in mainlib discord.js before the next major version either. And by then the @discordjs/ws would be used directly in mainlib, not Frankensteined in like I did for the non-breaking change in v14. So then you‘d just set it with the ws options on ClientOptions

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

Successfully merging this pull request may close these issues.

None yet

6 participants