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
484149eae9
test(core): more tests!
2023-11-14 04:37:00 +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
8204dc86a4
chore: removed dispatcher dep from core (again), improved build script
2023-11-12 01:17:20 +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
eec142f0e5
feat: wasm! 🚀
2023-11-04 06:44:18 +03:00
73cd1e7dc9
docs: use @default
jsdoc tag
2023-10-29 20:25:06 +03:00
9791f8faae
docs: updated typedoc, added ci, fixed some docs
2023-10-27 14:25:21 +03:00
c061581abb
chore: various surface api improvements & fixes
2023-10-24 11:49:17 +03:00
21d7488788
fix(core): allow empty startgroup parameter
2023-10-23 19:17:04 +03:00
0054491665
feat(core): helpers for deeplinks
2023-10-22 23:42:10 +03:00
15c855df84
fix: more fixes for web
2023-10-21 01:42:27 +03:00
dafe631435
fix: migrated to web streams
2023-10-20 00:41:47 +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
337418a34c
feat: contexts
2023-10-11 08:42:37 +03:00
a03d73503a
refactor: initial support for esm
...
also fixed all circular imports and added checking for them via dpdm
2023-10-11 08:42:37 +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
ec55cb37f7
chore: export Long from core
2023-10-05 01:47:14 +03:00
544e5a68dc
feat: opt-in error reporting
2023-10-03 02:49:53 +03:00
82994408a2
feat: refactor some iterable methods to have non-iterable counterpart
2023-09-29 17:02:36 +03:00
e771e592fd
feat: assertTypeIsNot
...
closes MTQ-64
2023-09-24 02:40:41 +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
7a6a30ea5c
chore: export core utils from @mtcute/core/utils
2023-09-21 13:18:09 +03:00
5a3b101c9f
chore: avoid using {}, use Maps instead
2023-09-19 01:33:47 +03:00
80d4c59c69
fix: lru map doesn't update links
...
closes #8
2023-09-18 19:40:09 +03:00
7bf63b2507
fix: dont export everything on first connection
2023-09-18 03:16:29 +03:00
aa863c6a2f
chore: added no-console rule
2023-09-07 22:25:50 +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
743058a020
fix: rebase fixes
2023-07-24 00:14:37 +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