Commit graph

62 commits

Author SHA1 Message Date
34643ffe89
fix(core): correctly handle rpc_error for methods returning vectors of primitives 2024-06-26 00:39:06 +03:00
85f6610e09
fix(core): fixed some dangling timers 2024-06-25 00:01:49 +03:00
34016f849b
fix(core): silently fail on AUTH_KEY_UNREGISTERED in updates.getState 2024-06-24 17:49:49 +03:00
d828d497db
fix(core): correctly cancel on timeout
im dumb lol
2024-05-30 00:21:44 +03:00
e3fc079f05
fix(core): emit error on -404 2024-05-19 20:05:32 +03:00
641df422cc
test(unit): running unit tests under deno 2024-04-27 12:19:05 +03:00
78457fb158
fix(web): wait for the websocket to close 2024-04-22 19:16:47 +03:00
c5d115f088
chore: use target=es2022 with useDefineForClassFields=true 2024-04-14 22:18:53 +03:00
9091a10537
fix(core): hopefully fix duplicating msg_id leading to bad_msg_container 64 2024-03-30 16:27:59 +03:00
5ab251cafe
fix(core): improved state_req handling 2024-03-29 09:34:39 +03:00
d577f0ed9b
fix(core): improved state_req handling 2024-03-28 18:12:32 +03:00
c9a4558e5c
fix: download threads never connecting 2024-03-15 03:20:59 +03:00
ab2425a26e
feat: support for "updating" states + improved catch up a bit 2024-03-15 00:02:04 +03:00
83746aa460
feat: initial support for connection states 2024-03-12 13:15:27 +03:00
a2739b678c
chore!: started extracting platform-specific stuff into separate packages 2024-03-07 05:35:36 +03:00
be899afca2
fix(core): infinite bad_msg_notification 17 when system time is wrong 2024-02-28 13:18:36 +03:00
7036fe1e97
fix: fixed handling of -404 2024-02-03 22:08:19 +03:00
eca99a7535
refactor!: large refactor of storage implementation
breaking: pretty much the entire storage thing has been overhauled.
migrations from older versions **are not** available, please do them manually through string sessions
2024-01-04 00:22:26 +03:00
ca1916c5cb
fix(core): do not close connection by inactivity when there are pending queries 2023-12-23 21:58:36 +03:00
38358622e7
feat(core): allow passing rpc call options by proxy 2023-12-13 18:30:28 +03:00
56c2085190
feat(core)!: future salts storage
breaking: `ITelegramStorage` interface changed
2023-12-12 00:23:34 +03:00
987de6571a
feat(core): handle future salts 2023-12-11 06:15:31 +03:00
ce2d1b0a9a
fix(core): getState requests not scheduling properly 2023-12-11 01:03:19 +03:00
d1e4a15f81
feat(core): requests chaining 2023-12-11 00:07:41 +03:00
b6fac0785c
fix(core): cleanly close connection on inactivity timeout 2023-12-08 06:31:17 +03:00
b25f9dddfa
feat!: support min updates
breaking: changed `ITelegramStorage` interface, changed tl schema a bit
2023-11-27 06:33:32 +03:00
48411323af
fix(core): fixes for highload bots 2023-11-25 18:15:34 +03:00
0d3c18b885
fix(core): some dumb null checks 2023-11-17 18:09:35 +03:00
964f47497c
chore(core): moved random to crypto provider, added tests for functions relying on rng 2023-11-12 00:36:00 +03:00
18178b438d
feat(wasm): added sha1/256 to wasm, removed most of async in crypto 2023-11-08 00:53:15 +03:00
eec142f0e5
feat: wasm! 🚀 2023-11-04 06:44:18 +03:00
c061581abb
chore: various surface api improvements & fixes 2023-10-24 11:49:17 +03:00
Alina Tumanova
f5976a2d74
ESM + end-to-end tests (#11)
* feat: moved tl-runtime to esm and native ArrayBuffers

* feat: migration to esm

* fix(core): web-related fixes

* test: finally, some good fucking e2e

* chore: fixed linters etc

* ci: added e2e to ci

* build(tl): fixed gen-code on node 20

* fix: codegen Uint8Array, not Buffer

never `git reset --hard` kids

* build: only do type-aware linting for `packages/*`

* build: ignore no-unresolved in ci for e2e

* fix: node 16 doesn't have subtle crypto apparently?

* fix(tests): use Uint8Array

for gods sake please can i just merge this already

* ci: don't parallel tasks in ci

because machines are utter garbage and it may just randomly break

* ci: pass secrets to e2e tests

* ci: separate cli command for ci

apparently im retarded

* fix: run codegen in e2e

im actually retarded

* ci: more fixes for e2e

* ci: debugging stuff

* ci: still debugging

* ci: hopefully fix ci???
2023-10-16 19:23:53 +03:00
a6726ccb40 build(deps): bumped prettier to 3.0.3 2023-10-11 08:42:37 +03:00
85ca3b4603
feat: abort signals 2023-10-05 18:10:15 +03:00
544e5a68dc
feat: opt-in error reporting 2023-10-03 02:49:53 +03:00
befbceaf8a
chore: changed prettier width to 120 2023-09-24 01:32:22 +03:00
976c25141c
refactor: move errors to core 2023-09-22 15:32:28 +03:00
7bf63b2507
fix: dont export everything on first connection 2023-09-18 03:16:29 +03:00
4b7d7d2e35
refactor: reworked errors codegen 2023-09-06 23:54:51 +03:00
81ce550604
chore: improved eslint config
closes MTQ-54
2023-09-03 02:37:51 +03:00
a679f364fd
fix: fixed upload and download for new networking 2023-08-23 23:49:47 +03:00
4a0d6fbc88
fix: fixed upload and download for new networking 2023-08-23 22:11:42 +03:00
85c43d804d
fix: client and updates fixes 2023-08-12 22:40:37 +03:00
2b1bac053e
feat: support for tmp_sessions 2023-08-12 18:26:46 +03:00
01d476d19a
feat: support for dc switches, session import/export, rpc sending 2023-08-11 23:59:24 +03:00
eb585fc3f1
build: fixes after rebase 2023-07-24 00:14:37 +03:00
teidesu
0b4edbf70e
feat(core): update connection count and pfs usage on the go
holy shit i actually made it 🫣
2023-07-24 00:14:37 +03:00
teidesu
f68d83da06
feat(core): sync keys between connections, exclusive lock for auth
in other words, only one main connection does authorization, others wait
2023-07-24 00:14:37 +03:00
teidesu
bd5130c77b
fix(core): use existing auth_key from storage 2023-07-24 00:14:37 +03:00