@mtproto/core
268 subscribers
20 photos
14 links
Changelog, memes and polls ๐Ÿ™ƒ

Docs: https://mtproto-core.js.org/docs/
Author channel: @alik0211_en
Download Telegram
Fix browser localStorage in version 3.0.1

Install: yarn add -E @mtproto/core
Add localStorage for nodejs (you don't need to log in every time) in version 3.1.0. Also:
1. Save defaulDcId in storage
2. Refactor WebSocket message handler
3. Handle error when copy auth to DC

Install: yarn add -E @mtproto/core
Fix the "hang" error (incorrectly processed TCP parts) in version 3.1.1. Also refactor obfuscation key generation

Install: yarn add -E @mtproto/core
You can specify your localStorage to save authorization in version 3.2.0. Changes:
- Update layer to 113
- Observe security guidelines
- Fix the deserialization of the vector
- Handle bad_server_salt and bad_msg_notification
- Use only nodejs version 12 and higher
- Refactor utils
- Refactor verifyDhParams
- Refactor transport

Install: yarn add -E @mtproto/core
Add support async custom storage in version 3.3.0. Also fix deserialize double

Install: https://github.com/alik0211/mtproto-core#install
Rewrite authentication guide and add handling common errors guide in version 3.4.0. Also don't load default storage if you have custom storage and fix types file.

Read guides: https://github.com/alik0211/mtproto-core#guides
Rewritten serialization and deserialization in version 4.0.0:
1. If the method needs the flags parameter, flags is calculated automatically ๐Ÿ™ƒ
2. Removed the pFlags object from the responses
3. Added a types file. Thanks, sh-a-v
4. Add updateInitConnectionParams method
Fix gzip handling in version 4.0.1
Fix deserialization errors in version 5.0.0. Thank you very much, softforseeker! Also:
1. Add logger (documentation will be available later)
2. Import only inflate from pako
3. Fix the serialization of boolean flags

This is a major update, because the logic of serialization and deserialization was rewritten. There are no breaking changes
In version 5.1.0:

Add counter
Now the exact number of bytes is allocated before serialization, thanks to the counter. It fix error RangeError: Source is too large

Update authentication guide
Added a stage for getting a user. It will help you check whether the user is logged in. I also rewrote the example using a async/await - https://github.com/alik0211/mtproto-core/blob/master/docs/authentication.md
In version 5.2.0:

Problems with reconnecting and hanging fixed
To do this, I started storing the socket state in the transport module and add acknowledgment logic for outgoing messages

Handle FLOOD_WAIT_X
In the guide "Handling common errors" added information about how to handle the FLOOD_WAIT_X error - https://github.com/alik0211/mtproto-core/blob/master/docs/handling-common-errors.md

Unit testing and playground
Removed karma. Use jest instead jasmine. Moved the playground to a separate repository
In version 5.3.0:

Layer has been updated to 121
Most interesting: methods for statistics and comments

Updated pako
Just keeping the dependencies up-to-date
Forwarded from Gasymov's Channel (Ali Gasymov)
Screw It, I'll rewrite the @mtproto_core before the summer
In what environment do you use (or want to use) the library?
Anonymous Poll
82%
Node JS
15%
Browser
5%
Electron
4%
React Native
5%
Other
In version 6.0.0:

The documentation is written from scratch and posted on https://mtproto-core.js.org/ website

Updated the IP for the second DC (thanks, sg-4xxi)
Rethought storage and custom storage
Rethought the choice of environment
Improved logs in debug mode
Removed the types for the typescript
In version 6.0.1 fixed the import path and added the debug module to the dependencies. Thanks, alexpts!
In version 6.1.0, the layer was updated to 133 (this fixes the UPDATE_APP_TO_LOGIN error). Thanks, Pogudin Segrey!
In version 6.2.0, the layer was updated to 139!
In version 6.3.0, the layer was updated to 158!