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: remove zlib-sync #9279

Closed
wants to merge 2 commits into from

Conversation

didinele
Copy link
Member

Please describe the changes this PR makes and why it should be merged:
draft because vlad wants us to keep zlib-sync & the new pure-native node:zlib impl together for a few dev releases

Status and versioning classification:

@vercel
Copy link

vercel bot commented Mar 26, 2023

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

Name Status Preview Comments Updated
discord-js-guide ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 26, 2023 at 0:19AM (UTC)

@vercel
Copy link

vercel bot commented Mar 26, 2023

@didinele is attempting to deploy a commit to the discordjs Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

github-actions bot commented Mar 26, 2023

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 71
🟢 Accessibility 100
🟢 Best practices 92
🟢 SEO 100
🟠 PWA 70

Lighthouse ran on https://discord-js-guide-git-fork-didinele-refactor-na-c3e2f9-discordjs.vercel.app/

Copy link
Member

@kyranet kyranet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a tiny thing:

packages/ws/src/ws/WebSocketShard.ts Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Mar 26, 2023

Codecov Report

Merging #9279 (37e7135) into main (ba93bc8) will decrease coverage by 0.02%.
The diff coverage is 31.03%.

@@            Coverage Diff             @@
##             main    #9279      +/-   ##
==========================================
- Coverage   83.54%   83.53%   -0.02%     
==========================================
  Files         100      100              
  Lines        9574     9578       +4     
  Branches     1103     1103              
==========================================
+ Hits         7999     8001       +2     
- Misses       1535     1537       +2     
  Partials       40       40              
Flag Coverage Δ
ws 57.60% <31.03%> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
packages/ws/src/ws/WebSocketShard.ts 21.14% <9.09%> (-0.61%) ⬇️
packages/ws/src/utils/constants.ts 86.30% <100.00%> (+0.19%) ⬆️
packages/ws/src/ws/WebSocketManager.ts 96.27% <100.00%> (+0.07%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -482,7 +479,7 @@ export class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> {
this.debug([
'Received a message we were unable to decompress',
`isBinary: ${isBinary.toString()}`,
`useIdentifyCompress: ${this.useIdentifyCompress.toString()}`,
`useIdentifyCompress: ${this.useIdentifyCompression.toString()}`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`useIdentifyCompress: ${this.useIdentifyCompression.toString()}`,
`useIdentifyCompression: ${this.useIdentifyCompression.toString()}`,

@JMTK
Copy link
Contributor

JMTK commented Oct 24, 2023

Just a small followup to this issue:
I created a PR for zlib-sync that addresses it not compiling on NodeJS 21 abalabahaha/zlib-sync#11

@didinele
Copy link
Member Author

didinele commented May 3, 2024

closing in favor of a new PR since this has the branch on my fork and it's just a whole mess to work with.

@didinele didinele closed this May 3, 2024
@didinele didinele deleted the refactor/native-zlib branch May 4, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Denied
Development

Successfully merging this pull request may close these issues.

None yet

5 participants