Commit graph

144 commits

Author SHA1 Message Date
8b4f4984a1
test: fixed tests 2024-09-29 04:13:51 +03:00
cb04b111a5
chore!: moved away from global platform 2024-09-29 04:13:50 +03:00
2ac7cbd35b
test: fixed some tests 2024-09-29 04:13:50 +03:00
eebf95c6ec
chore!: moved to @fuman/utils for common stuff
breaking: some utils were removed from @mtcute/core/utils.js, use them from @fuman/utils instead
2024-09-29 04:13:50 +03:00
66786064e3
chore: use hex/base64/utf from @fuman/utils 2024-09-29 04:13:50 +03:00
baef78403e
chore!: migrated proxies to fuman
breaking: http-proxy, socks-proxy and mtproxy packages are deprecated, proxified implementations are available in runtime-specific packages
2024-09-29 04:13:50 +03:00
d512da6831
chore: initial migration to fuman networking 2024-09-29 04:13:48 +03:00
f621b0e81a
fix: import EventEmitter from events, not node:events
thanks sindresorhus for not making an option to disable this lint for a specific package lol
2024-09-29 02:54:00 +03:00
8f0a4ec4aa
build: added jsr building 2024-08-27 22:17:01 +03:00
6166e27808
build: build with vite (initial) 2024-08-24 22:55:25 +03:00
d5c96ca6fe
feat: updated to layer 186 2024-08-19 09:24:59 +03:00
8e12103514
fix(core): flood-waiter errorneously retrying everything lol 2024-08-19 08:50:03 +03:00
b76463ccc0
chore: enabled isolatedDeclarations 2024-08-18 09:44:26 +03:00
a0ed9c2426
chore: migrate to antfu eslint config (+ reformat) 2024-08-18 07:18:13 +03:00
bb7baf263b
refactor(core)!: extracted some of the default behaviour into middlewares
breaking: global `floodSleepThreshold` and `maxRetryCount` are now configured via middlewares:
```ts
const tg = new TelegramClient({
  network: {
    middlewares: networkMiddlewares.basic({
      floodWaiter: { maxWait: 5000, maxRetries: 5 },
      internalErrors: { maxRetries: 5 }
    })
  }
})
```
2024-07-16 23:30:05 +03:00
c5438a2f29
feat(core): outgoing request middlewares 2024-07-16 23:00:02 +03:00
d4d3f1becc
chore(core): improved error logging 2024-07-12 17:54:52 +03:00
a110ad2ce7
fix(core): fixed chains logging 2024-07-08 13:55:44 +03:00
520bcadbf8
fix(core): do not retry all errors 2024-07-07 21:02:10 +03:00
c667399b4d
refactor(core): monadic internal handling of rpc errors 2024-07-06 22:10:05 +03:00
c536086310
chore(core): added logs for key-change failure 2024-06-28 14:11:22 +03:00
66d5862bdb
feat(core): allow overriding number of main connections 2024-06-26 11:19:33 +03:00
34643ffe89
fix(core): correctly handle rpc_error for methods returning vectors of primitives 2024-06-26 00:39:06 +03:00
a7c7a636cd
chore(core): improved logging 2024-06-25 00:09:00 +03:00
85f6610e09
fix(core): fixed some dangling timers 2024-06-25 00:01:49 +03:00
93c44412e6
chore(core): improved flood_wait log message 2024-06-24 23:33:20 +03:00
34016f849b
fix(core): silently fail on AUTH_KEY_UNREGISTERED in updates.getState 2024-06-24 17:49:49 +03:00
81f8ea9fd2
fix(core): even more graceful close 2024-06-14 00:45:40 +03:00
ea70246348
chore(core): added method name to the flood wait log line 2024-06-06 18:50:21 +03:00
86405fae18
fix(core): onError not working
i might be fucking retarded actually
2024-05-30 00:35:52 +03:00
d828d497db
fix(core): correctly cancel on timeout
im dumb lol
2024-05-30 00:21:44 +03:00
7194132557
fix(core): correctly handle disableUpdates for highlevel client 2024-05-25 14:59:38 +03:00
e3fc079f05
fix(core): emit error on -404 2024-05-19 20:05:32 +03:00
dc99a9103b
fix(core): onError doesn't register 2024-05-19 20:05:31 +03:00
2a399532a3
feat: support business connections 2024-05-06 03:12:33 +03:00
b418577bfa
refactor(test): refactored and improved deno/bun vitest polyfills a bit 2024-04-27 12:19:07 +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
fb72d3194d
fix: properly handle file uploads + downloading as node stream 2024-03-07 05:35:36 +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
6c36cf2a72
chore: initial bun support 2024-02-20 00:55:41 +03:00
a17604b623
fix(core): websocket reconnection
lol. lmao, even
2024-02-08 04:14:43 +03:00