5e26949560
chore!: use maps/sets from fuman
2024-09-29 04:13:51 +03:00
19ab208be0
chore!: use deque from fuman
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
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
26d1175b26
build: don't use stc when building
2024-08-24 21:52:31 +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
cf9739fa8a
build: bumped deps
2024-08-12 05:55:56 +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
aa604e4d98
chore(core): lowered default log level to warning
2024-07-08 13:55:39 +03:00
c667399b4d
refactor(core): monadic internal handling of rpc errors
2024-07-06 22:10:05 +03:00
28b2efbb08
fix(core): round value in randomBigIntInRange
2024-06-27 23:44:32 +03:00
85f6610e09
fix(core): fixed some dangling timers
2024-06-25 00:01:49 +03:00
0b57a7be51
feat(core): initial chatlist support
2024-06-02 18:27:48 +03:00
c5d115f088
chore: use target=es2022 with useDefineForClassFields=true
2024-04-14 22:18:53 +03:00
42f1482d7f
build(core): improved tree-shakeability
2024-03-07 05:35:37 +03:00
fbf5c8f4bc
chore!: removed @mtcute/wasm
dependency from core
...
breaking: `WasmCryptoProvider` no longer exists
2024-03-07 05:35:37 +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
852bc10629
fix(core): session import/export
...
closes #17
2024-02-22 15:22:22 +03:00
6c36cf2a72
chore: initial bun support
2024-02-20 00:55:41 +03:00
54c904d3fa
fix(core): avoid imports from tty
2024-02-20 00:28:12 +03:00
809e794816
test: added factorization tests
2024-02-08 04:10:09 +03:00
27e14472ff
feat: app config manager
2024-02-05 01:44:51 +03:00
ac3b5df9a0
refactor!: renamed MaybeAsync -> MaybePromise
2024-02-03 21:56:44 +03:00
6768b15514
fix: tests
2024-02-03 11:57:40 +03:00
c8e026dc03
refactor!: merged client into core + fixed dispatcher for new storage
2024-01-31 19:30:57 +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
02a6a0e133
fix(core): proper exit cleanup in json file
2023-12-19 02:24:19 +03:00
712c1e8348
fix(client): added true
assertions to methods returning Bool
2023-12-16 19:00:13 +03:00
d1e4a15f81
feat(core): requests chaining
2023-12-11 00:07:41 +03:00
a36cdf1d20
test: run tests in browser
2023-11-30 00:20:37 +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
13be8482e0
refactor: moved test utils to @mtcute/test
2023-11-13 20:14:32 +03:00
08d3afadd8
test(core): more transport tests
2023-11-13 10:43:56 +03:00
f525c12f83
fix: auth storage fixes
...
- .reset() no longer resets auth keys by default
- auth keys are stored immediately in sqlite
- update loop fixes for logout
- tests for sqlite storage
likely closes #13 (?)
2023-11-12 07:51:30 +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
e31ecbd3d1
test(core): improved test coverage
2023-11-11 18:38:57 +03:00
96a443f8d3
test: moved to vitest from mocha/chai
...
damn vitest is so good
2023-11-09 00:20:43 +03:00
1abf35e30c
feat: basic test utils
2023-11-08 17:28:45 +03:00
18178b438d
feat(wasm): added sha1/256 to wasm, removed most of async in crypto
2023-11-08 00:53:15 +03:00
70f4e40ef5
chore: embraced native bigints
2023-11-06 02:28:35 +03:00