96a443f8d3
test: moved to vitest from mocha/chai
...
damn vitest is so good
2023-11-09 00:20:43 +03:00
e0f4b0d7b5
build(deps): removed @types/node and file-type
2023-11-02 19:40:14 +03:00
f31d93c365
fix: dont use regex to extract filename
...
closes #12
2023-10-30 21:40:51 +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
1ba366a12b
chore: extracted getters memoization into util
2023-10-12 04:43:50 +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
ec55cb37f7
chore: export Long from core
2023-10-05 01:47:14 +03:00
e7dc8f0ec7
feat: setEmojiStatus
2023-10-04 21:05:07 +03:00
95032d3b9a
feat: added ArrayPaginated
2023-09-29 21:45:11 +03:00
82994408a2
feat: refactor some iterable methods to have non-iterable counterpart
2023-09-29 17:02:36 +03:00
59ac74f300
refactor: moved makeInspectable to utils, also fixed ArrayWithTotal
2023-09-25 14:48:32 +03:00
6279126439
chore: remove some casts from filter
2023-09-24 04:26:28 +03:00
7ff433ed0a
refactor: import tl from core/client, not tl
2023-09-24 03:37:34 +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
81ce550604
chore: improved eslint config
...
closes MTQ-54
2023-09-03 02:37:51 +03:00
4a0d6fbc88
fix: fixed upload and download for new networking
2023-08-23 22:11:42 +03:00
01d476d19a
feat: support for dc switches, session import/export, rpc sending
2023-08-11 23:59:24 +03:00
6221a8716f
fix: handle vectors of primitives in rpc_result
2023-07-20 22:07:07 +03:00
d88bc0ea60
chore: code quality improvements
...
improved eslint config, fixed linter issues, added husky
2023-06-05 00:30:48 +00:00
teidesu
f5986e694a
refactor(client): moved parse-update.ts to types/updates
2022-10-30 20:36:17 +03:00
teidesu
ea299cacca
docs: improve documentation
2022-08-29 16:22:57 +03:00
teidesu
e7219ed2de
refactor: normalizeToInput* now throws an error by itself, never returning null
2022-08-29 16:15:37 +03:00
teidesu
e68c9f4bb5
refactor: prettier-ed code, rearranged imports, fixed tests
2022-06-30 16:32:56 +03:00
teidesu
63d0ea2ddf
feat(client): support join requests
2022-05-09 17:25:38 +03:00
teidesu
be27e33d61
feat(client): support new invite links (t.me/+)
2022-05-09 00:20:32 +03:00
teidesu
9543f64558
feat(client): sticker choosing typing event
...
also prettier fucked everything up, fixed that
2022-05-06 17:53:44 +03:00
teidesu
a7e866f3eb
refactor: assertNever util, use it in most places
...
haven't used it in some just yet because not everything is implemented (particularly, newer attachment types, typings, admin events, etc.)
2022-05-06 13:50:30 +03:00
teidesu
9493759572
build: updated to layer 139
...
didn't add any new layers' features, only bumped layer
2022-04-01 22:17:10 +03:00
teidesu
ec736f8590
some changes
...
i've been wanting to name a commit like this for my entire life, lol. seriously though, a lot has changed:
- extracted TL-related stuff to `@mtcute/tl-utils` and `@mtcute/tl-runtime`, rewrote codegen in TS
- updated to layer 134, moved to int64 identifiers
- rewritten networking (mtproto), rewritten updates handling
- *lots* of refactoring
still a very early version though, there are a lot of improvements to be made, but at least it runs, lol
also tl-reference will not be updated anytime soon because i want to rewrite it
2021-11-23 00:03:59 +03:00
teidesu
4b22ee5b25
rename back to mtcute
...
idk lol
2021-08-05 20:38:24 +03:00
teidesu
6be71c3572
feat(client): support updateBotStopped
2021-08-04 13:23:39 +03:00
teidesu
37398d1080
fix(client): file: prefix in fileName attribute
2021-08-02 14:46:12 +03:00
teidesu
2f1c8548a0
build: renamed to mtqt
2021-07-25 21:03:40 +03:00
teidesu
4c717ffc63
fix(voice): proper handling of waveforms
2021-07-22 01:46:31 +03:00
teidesu
627fdbed2f
refactor(dispatcher): big refactor, moved updates parsing to client, separated raw updates from parsed, moved Conversation to client package
2021-07-17 17:26:31 +03:00
teidesu
079d65b38d
build: preparing for publish, day 6
...
i am slowly descending to madness
bugs fixed, stuff exported, and maybe something else
2021-06-10 02:31:48 +03:00
teidesu
280c9f51aa
build: preparing to publish (part 2)
...
fixed imports, package.json files, improved package generation for certain packages, and more (i'm too lazy to describe all the magic that i've done)
2021-06-06 19:23:43 +03:00
teidesu
ae2dbcf03f
build: fixed scripts, eslintignore, fixed linter warnings and re-formatted with prettier
2021-06-06 15:20:41 +03:00
teidesu
d50a25eab9
feat(client): support comments and reply threads
2021-05-27 15:57:05 +03:00
teidesu
76f078d931
fix(client): fixed imports in inline-utils.ts
2021-05-23 21:16:08 +03:00
teidesu
82fb3d7e44
refactor: moved async lock to core and exported it
2021-05-16 23:05:53 +03:00
teidesu
e6e28399b0
refactor: prefer switches over ifs when possible
2021-05-16 14:32:36 +03:00
teidesu
f19fdf76b8
refactor(client): improve resolvePeer normalization
2021-05-11 23:21:35 +03:00
teidesu
0f1edcfcf7
refactor: use UsersIndex and ChatsIndex types instead of bare record types
2021-05-11 21:46:59 +03:00
teidesu
f3e4a34eab
feat(client): deleteUserHistory method, also properly handle messages.affectedHistory
...
i suppose? this is an incredibly bad hack but i guess it works so who cares?
2021-05-10 14:27:57 +03:00