Commit Graph
5 Commits
Author SHA1 Message Date
Fleny 27c261fee2 formatter: Use semicolons (#4686)
I prefer semicolors, they also help avoiding certain pitfalls in JavaScript/TypeScript, such as the following code sample:
```js
const xyz = "test"
(something.else as string) = "another"
```
This results in a TypeError: "test" is not a function, this is because js thinks we are trying to call the string "test" as a function.
To fix this it requires a `;` somewhere before the `(`, such as `;(something ... ` which in my opinion is ugly and less clean overall.
2026-01-17 21:54:15 +01:00
Louis JohnsonandFleny 288904fef9 feat(user)!: add more getters for user transformer (#4661)
* feat: enhance user tag getter

* feat(user): add `0000` condition and better jsdoc for tag

* chore(user): use this keyword instead of destructuring assignment

* fix(user): correct isLegacy logic

* feat(images): add ImageOptions

* refactor(images)!: split avatarUrl into more specific functions and add displayAvatarUrl

* feat(user)!: add more useful getters for user

* fix: update tests for images

* chore: using n suffix for bigint instead of converting to bigint

Co-authored-by: Fleny <Fleny113@outlook.com>

* fix: update dependencies for avatarUrl

Co-authored-by: Fleny <Fleny113@outlook.com>

* fix(user): correct the avatarUrl second parameter to avatar hash

Co-authored-by: Fleny <Fleny113@outlook.com>

* chore: undo unnecessary // from auto comment hotkey

Co-authored-by: Fleny <Fleny113@outlook.com>

---------

Co-authored-by: Fleny <Fleny113@outlook.com>
2025-12-31 17:46:11 +01:00
Fleny 90f0507af0 feat(utils): animated webp emojis (#4199) 2025-06-01 08:28:27 +02:00
Awesome Stickz 8eeda31769 refactor: set default format to webp instead of jpg in formatImageUrl() (#4193)
* refactor: set default format to webp instead of jpg in formatImageUrl

* fix: tests
2025-05-12 21:43:50 +05:30
Jonathan Ho 918cee2514 test(utils): increase coverage (part 1) (#2795)
* close test(utils): more test for Collection.ts #2793

* fix: after each not defined

* close test(utils): more test for base64.ts #2796

* close test(utils): more test for casing.ts #2797

* test(utils): remove dev code

* close #2799

* fix #2800

* close #2823

* test(utils): fix site move

* close #2826

* refactor(utils): remove redundant if

* close #2827

* close #2828
2023-03-06 16:48:16 -06:00