Commit graph

43 commits

Author SHA1 Message Date
220b564d52
chore: set version to 0.1.0 2023-10-30 14:59:34 +03:00
9791f8faae
docs: updated typedoc, added ci, fixed some docs 2023-10-27 14:25:21 +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
b5c7a6b90d
chore: change license to MIT 2023-10-12 07:26:26 +03:00
0841cbb031
fix: errors codegen 2023-10-12 05:24:16 +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
62815d26d7
fix(tl): support multiple usages of the same flag 2023-10-04 02:45:11 +03:00
544e5a68dc
feat: opt-in error reporting 2023-10-03 02:49:53 +03:00
dbcd3f0911
feat(tl): updated to 164 layer 2023-09-24 20:22:09 +03:00
befbceaf8a
chore: changed prettier width to 120 2023-09-24 01:32:22 +03:00
a3ebd3fc66
fix(tl): ctors with primitive vectors are incorrectly marked as static-size 2023-09-21 14:46:44 +03:00
85d2c5f305
fix: test fixes 2023-09-21 02:53:08 +03:00
b8f63b0634
feat(tl): static object size computation
closes MTQ-21
2023-09-20 18:37:26 +03:00
55edbde3e7
fix: fixed new error codegen 2023-09-07 22:26:52 +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
6221a8716f
fix: handle vectors of primitives in rpc_result 2023-07-20 22:07:07 +03:00
99e83b40aa
feat(codegen): support bare types and vectors
closes MTQ-48
2023-07-20 20:22:57 +03:00
d88bc0ea60
chore: code quality improvements
improved eslint config, fixed linter issues, added husky
2023-06-05 00:30:48 +00:00
teidesu
d0ea4ed5ca refactor: changed stylizing of the name (MTCute -> mtcute) 2022-09-14 16:18:56 +03:00
teidesu
1cc3594f09 docs(tl-utils): documented everything 2022-08-29 14:33:11 +03:00
teidesu
7b7fdc7092 docs: removed typedoc-plugin-coverage
it works like shit
2022-08-28 17:56:56 +03:00
teidesu
390b65f796 build(docs): api reference generation improvements
- added readme in each package
- updated typedoc, fixed related issues
- use @link instead of @see
- moved configs to typedoc.js, improved exclusion of unneeded stuff
- custom plugin for typedoc for cross-package references
- preparing to move documentation to separate repository
2022-08-24 23:37:26 +03:00
teidesu
26b96c3151 refactor(tl-utils): export everything in index.ts 2022-08-12 20:11:27 +03:00
teidesu
16fdd5ded1 fix(tl): better {@link} generation from documentation 2022-08-12 17:46:04 +03:00
teidesu
9b027425dd fix(tl-utils): handle <br> 2022-08-12 17:22:40 +03:00
teidesu
be343b561e fix(tl-utils): do not break <a href 2022-08-12 17:13:24 +03:00
teidesu
ff58e3ee0d fix(tl-utils): do not make @link tags for primitives 2022-08-12 17:11:19 +03:00
teidesu
e3dbe3b7d1 fix(tl-utils): do not break @link tags 2022-08-12 17:00:02 +03:00
teidesu
2a97616d80 fix(codegen): fixed typings codegen, added a test 2022-07-23 05:03:38 +03:00
teidesu
a3aca20099 build: updated name in package.json files 2022-07-18 23:32:11 +03:00
teidesu
e68c9f4bb5 refactor: prettier-ed code, rearranged imports, fixed tests 2022-06-30 16:32:56 +03:00
teidesu
a2dbccada6 fix(tl-utils): optimize readers code size by merging pre-return vars 2022-06-28 19:26:11 +03:00
teidesu
dd4cc471f6 fix(tl-utils): fixed reader codegen impl for non-zero-size fields between flags 2022-06-28 19:23:32 +03:00
teidesu
6978e159d7 feat(tl-utils): support flag for exposing raw flags in codegen 2022-06-28 18:57:22 +03:00
teidesu
02462dac16 fix(tl): correctly process vector<bytes>
fml why am i even doing this
2022-06-05 21:36:12 +03:00
teidesu
ffafb3e5db build: improved publish script, fixed imports/exports, added note about private repo 2022-05-06 13:23:29 +03:00
teidesu
d031388ea2 fix(build): fixed imports, bumped typescript 2022-05-05 20:08:38 +03:00
teidesu
44e6ffd368 fix(tl): insert true flags after flags field, support multiple flags fields, updated tests 2022-04-29 16:36:41 +03:00
teidesu
916c41e70c build(codegen): refactored reader codegen (removed the need in additional object), added tests for multiple flags fields
i honestly don't know why i did what i did, it's such an over-complication, lol.
2022-04-29 16:13:07 +03:00
teidesu
2289cc690d build: migrated to pnpm, updated and cleaned up deps 2022-04-28 16:58:09 +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