Commit graph

39 commits

Author SHA1 Message Date
a07b6673dc
chore: bumped @antfu/eslint-config + reformat 2024-12-03 09:55:37 +03:00
fefc8d38a7
fix(html-parser)!: keep whitespaces in interpolated strings
might be breaking as someone could be relying on this despite being a bug. to fix existing code wrap the string in `html(...)`
2024-10-07 00:57:23 +03:00
a0ed9c2426
chore: migrate to antfu eslint config (+ reformat) 2024-08-18 07:18:13 +03:00
3cc193a8fa
feat(html-parser): support collapsible blockquotes 2024-06-01 16:12:33 +03:00
9ff8f9d33f
feat(html-parser): allow passing Longs to interpolate 2024-05-29 23:37:17 +03:00
7a6d984977
fix(html-parser): interpolating inside attribs 2024-05-29 23:33:37 +03:00
869d5987c7
fix(html): keep whitespaces in raw text 2024-04-05 18:14:11 +03:00
6768b15514
fix: tests 2024-02-03 11:57:40 +03:00
4e78b643df
fix: fixed build for other packages 2024-02-02 04:12:02 +03:00
96a443f8d3
test: moved to vitest from mocha/chai
damn vitest is so good
2023-11-09 00:20:43 +03:00
23a0e69942
refactor: no more parse modes! 2023-11-01 20:24:00 +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
75021648eb
refactor: improved typings for MessageEntity 2023-10-06 04:53:19 +03:00
befbceaf8a
chore: changed prettier width to 120 2023-09-24 01:32:22 +03:00
85d2c5f305
fix: test fixes 2023-09-21 02:53:08 +03:00
53b008f8bc
fix: support <tg-emoji> and tg-spoiler in html parser 2023-09-18 03:40:20 +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
34f783aa66 feat(html-parser): added support for custom emojis 2022-08-25 20:17:25 +03:00
teidesu
e68c9f4bb5 refactor: prettier-ed code, rearranged imports, fixed tests 2022-06-30 16:32:56 +03:00
teidesu
cd88a3a74a feat(parser): automatically escape attributes in template strings 2022-06-05 23:53:59 +03:00
teidesu
1cce5c79a2 feat(parser): support conditionals in template strings 2022-06-05 23:23:26 +03:00
teidesu
1ef1c0669d feat(parse-mode): support spoiler entity 2022-05-06 00:40:47 +03:00
teidesu
05be58f903 fix(html): fixed un-parsing 2022-05-06 00:36:54 +03:00
teidesu
d8111ea525 feat(parse-mode): compile-time formatted string compatibility check 2022-05-06 00:11:28 +03:00
teidesu
28baf50958 feat(html): big rework, process html similar to browsers 2022-05-06 00:05:21 +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
2f1c8548a0 build: renamed to mtqt 2021-07-25 21:03:40 +03:00
teidesu
abe6cef377 fix(html): added htm alias for prettier users 2021-07-23 23:03:03 +03:00
teidesu
d611f91f19 feat: parse mode template literals override default/passed parse mode 2021-07-09 16:39:45 +03:00
teidesu
9ed51fd996 fix: made .mention() work with tagged templates 2021-07-02 21:28:30 +03:00
teidesu
733a1ab84f feat: html and markdown tagged template helpers 2021-07-02 20:20:29 +03:00
teidesu
645bd46e9d fix(markup): support link starting with // 2021-06-18 18:06:39 +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
9be7b0d6c9 refactor: prefer switches to else-if chains 2021-05-12 17:58:45 +03:00
teidesu
d8cd13fd60 refactor(client): use ReadonlyArray for getter return types 2021-05-11 22:02:00 +03:00
teidesu
dea02c9c39 fix(parse-modes): negative access hashes for permanent mentions 2021-04-25 13:34:06 +03:00
teidesu
cd8ec8309f Initial commit 2021-04-08 12:19:38 +03:00