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:
- 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
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
Read guides: https://github.com/alik0211/mtproto-core#guides
Rewritten serialization and deserialization in version 4.0.0:
1. If the method needs the
2. Removed the
3. Added a types file. Thanks, sh-a-v
4. Add updateInitConnectionParams method
1. If the method needs the
flags
parameter, flags
is calculated automatically ๐2. Removed the
pFlags
object from the responses3. Added a types file. Thanks, sh-a-v
4. Add updateInitConnectionParams method
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
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
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
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
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
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!
GitHub
Update layer to 133 by pogudin-sergey ยท Pull Request #219 ยท alik0211/mtproto-core
Fix UDPATE_APP_TO_LOGIN & up layer to133
In version 6.1.1, the pako dependency import has been fixed. Thanks, RuslanAsadov!
Some dependencies have also been updated.
Some dependencies have also been updated.
GitHub
Fix "pako" import by RuslanAsadov ยท Pull Request #207 ยท alik0211/mtproto-core
The package doesn't work. If you replace this import, then everything will work again.
I was getting this error:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/inflat...
I was getting this error:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/inflat...