2728166727
refactor(client)!: extracted inline callback query into a separate update
...
breaking: `CallbackQuery` -> `CallbackQuery` and `InlineCallbackQuery`
also removed some redundant fields
2023-12-14 00:34:51 +03:00
51e67a5113
fix(dispatcher): proper lifetime management for state storage
2023-11-27 14:58:48 +03:00
9791f8faae
docs: updated typedoc, added ci, fixed some docs
2023-10-27 14:25:21 +03:00
022481966b
refactor(dispatcher): improved surface api
2023-10-26 22:22:40 +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
c7d82d41f0
feat: message groups
2023-10-06 01:47:45 +03:00
7abcc6188a
feat: stories and boosts
...
closes MTQ-51
2023-10-04 19:26:21 +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
81ce550604
chore: improved eslint config
...
closes MTQ-54
2023-09-03 02:37:51 +03:00
d88bc0ea60
chore: code quality improvements
...
improved eslint config, fixed linter issues, added husky
2023-06-05 00:30:48 +00:00
teidesu
70b09903f1
feat(client): support pre-checkout queries
2022-10-30 20:51:50 +03:00
teidesu
e68c9f4bb5
refactor: prettier-ed code, rearranged imports, fixed tests
2022-06-30 16:32:56 +03:00
teidesu
f2eb033e91
fix(dispatcher): fix not dispatching to children
...
i dont fucking know why that code didn't work, i hate js
2022-06-30 16:24:13 +03:00
teidesu
0633d0a817
fix(dispatcher): handlers without filters
2022-05-14 21:38:41 +03:00
teidesu
63d0ea2ddf
feat(client): support join requests
2022-05-09 17:25:38 +03:00
teidesu
2289cc690d
build: migrated to pnpm, updated and cleaned up deps
2022-04-28 16:58:09 +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
a8d3543e64
build: preparing for publish, moved to strict typescript, fixed some stuff
2021-07-30 17:40:50 +03:00
teidesu
2f1c8548a0
build: renamed to mtqt
2021-07-25 21:03:40 +03:00
teidesu
199e0a2a7d
fix(dispatcher): adding raw handlers
...
removed from codegen and forgot to add in code, i'm dumb 🤷
2021-07-17 19:08:13 +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
5b9ddc1f7b
refactor(dispatcher): UpdateInfo<...> to ParsedUpdate
2021-07-14 22:34:03 +03:00
teidesu
77d597e4db
feat(dispatcher): history read update
...
also fixed imports/exports
2021-07-09 19:41:02 +03:00
teidesu
c33646943c
fix(dispatcher): middleware and event emitter related fixes
2021-07-09 01:49:53 +03:00
teidesu
231b10d8cd
feat(dispatcher): made Dispatcher an EventEmitter
...
this adds a second option for updates dispatching which is not governed by any propagation or stuff.
useful for advanced use-cases.
2021-07-07 23:36:57 +03:00
teidesu
82db8453fc
feat(dispatcher): basic middleware functionality
2021-07-03 16:42:41 +03:00
teidesu
2220371efd
feat(dispatcher): conditional error propagation to client
2021-06-27 23:59:04 +03:00
teidesu
0ea953732b
fix(dispatcher): removed @internal from non-filtered on* methods
...
i probably am in fact stupid
2021-06-26 23:34:08 +03:00
teidesu
481f0db129
fix(dispatcher): provide state type information to filters
2021-06-20 02:52:19 +03:00
teidesu
257f5392ea
refactor(dispatcher): use enum instead of symbols for propagation
2021-06-14 18:58:07 +03:00
teidesu
7a0de134ba
feat(dispatcher): local error handling
2021-06-07 23:59:17 +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
ecca291eba
fix(dispatcher): handle custom key in getState
2021-05-31 23:29:26 +03:00
teidesu
9da72daac7
fix(dispatcher): do not propagate state and scene to children
2021-05-31 23:20:20 +03:00
teidesu
a0294b9a64
feat(dispatcher): fsm and scenes
2021-05-27 01:02:31 +03:00
teidesu
98fe7e3d31
refactor(dispatcher): avoid parsing unhandled updates
2021-05-23 15:38:03 +03:00
teidesu
b926178b9d
refactor(dispatcher): store and lookup handlers by their type
...
avoids redundant loops over all registered handlers
2021-05-23 14:43:40 +03:00
teidesu
2d335af78e
fix(dispatcher): reuse parsed updates in child dispatchers
2021-05-23 14:16:01 +03:00
teidesu
8e81ce21f2
fix(dispatcher): scheduled flag for new scheduled messages
2021-05-23 14:04:28 +03:00
teidesu
803daecdf3
feat(dispatcher): deleted messages update
2021-05-16 13:06:26 +03:00
teidesu
0f1edcfcf7
refactor: use UsersIndex and ChatsIndex types instead of bare record types
2021-05-11 21:46:59 +03:00
teidesu
002d949a13
feat: user status and typing related methods and updates
2021-05-08 16:35:25 +03:00
teidesu
d36c1781bd
feat(dispatcher): support poll related updates
...
also fixed a few type and export issues, and changed poll option generation to match tdlib and others
2021-05-07 15:37:17 +03:00
teidesu
1fb7057866
feat: support callback queries
2021-05-05 01:50:04 +03:00