a07b6673dc
chore: bumped @antfu/eslint-config + reformat
2024-12-03 09:55:37 +03:00
9e3e379c25
chore: moved build to @fuman/build
2024-11-16 16:26:23 +03:00
0cff4113f3
chore!: migrate to fuman Emitter
...
breaking: all events now use Emitter interface (`.on(event, ...) => `.onEvent.add(...)`)
2024-10-01 04:03:18 +03:00
a0ed9c2426
chore: migrate to antfu eslint config (+ reformat)
2024-08-18 07:18:13 +03:00
ecad89b70d
feat(core): support business callback queries
2024-06-25 01:19:29 +03:00
9ed647d075
feat(dispatcher): onAnyCallbackQuery + inline related fixes
2024-06-15 18:13:22 +03:00
3968a35654
feat(dispatcher): scene transition hooks + ToScene when exiting
2024-06-02 17:03:00 +03:00
8e04c13b60
fix(dispatcher): fetch scene for business updates
2024-06-02 00:37:17 +03:00
35800b9c04
fix(dispatcher): require storage
when state type is set in root dispatcher
2024-06-02 00:37:15 +03:00
2a399532a3
feat: support business connections
2024-05-06 03:12:33 +03:00
0b97e79c47
feat(dispatcher): allow injecting multiple deps at once
2024-05-01 23:02:16 +03:00
8baacc701c
feat(dispatcher): dependency injection
2024-05-01 22:33:46 +03:00
a2739b678c
chore!: started extracting platform-specific stuff into separate packages
2024-03-07 05:35:36 +03:00
ac3b5df9a0
refactor!: renamed MaybeAsync -> MaybePromise
2024-02-03 21:56:44 +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
0474ab918a
feat(client): reactions for bots
2023-12-29 15:04:18 +03:00
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