WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API
https://baileys.whiskeysockets.io/
MIT License
4.1k stars 1.38k forks source link

New protobuffer compiler #1040

Closed jlucaso1 closed 2 months ago

jlucaso1 commented 2 months ago

This change reduce the bundle build size: Before:

npm notice name: baileys
npm notice version: 6.7.7
npm notice filename: baileys-6.7.7.tgz
npm notice package size: 969.6 kB
npm notice unpacked size: 10.1 MB
npm notice shasum: b119c106e56255451d703702db4fbd1f296fa71e
npm notice integrity: sha512-Uvbewh3/ewUtS[...]F8C3v5YpnhgAQ==
npm notice total files: 324

After:

npm notice name: baileys
npm notice version: 6.7.7
npm notice filename: baileys-6.7.7.tgz
npm notice package size: 399.9 kB
npm notice unpacked size: 2.5 MB
npm notice shasum: 8b5356ac17c85da754ff739b926661f20260fd97
npm notice integrity: sha512-P4MSyKLr8Ef5N[...]/Yi2dU3JU2vZA==
npm notice total files: 173
whiskeysockets-bot commented 2 months ago

Thanks for your contribution.

The next step is to wait for review and approval to merge it to main repository

The community can help reacting with a thumb up (:thumbsup:) for approval and rocket (:rocket:) for who has tested it.

To test this PR you can run the following command below:

# NPM
npm install @whiskeysockets/baileys@jlucaso1/Baileys#feat-new-protobuffer-compiler
# YARN v2
yarn add @whiskeysockets/baileys@jlucaso1/Baileys#feat-new-protobuffer-compiler
PurpShell commented 2 months ago

good work but this is not getting merged here at all

we are reworking protobuf to work on 2.3000x