Commit graph

298 commits

Author SHA1 Message Date
naskya
fe0bfe31b3
meta: backend/native-utils -> backend-rs 2024-02-12 23:14:23 +09:00
naskya
4356099fec
refactor: remove database migrations in Rust 2024-02-12 22:45:47 +09:00
naskya
5ff1afc4f2
dev: remove Cypress tests
We'll use mocha and ava
2024-02-12 22:25:55 +09:00
naskya
88058287e4
chore: upgrade dependencies (TypeScript)
holding @swc/cli and megalodon
2024-02-11 02:43:22 +09:00
naskya
73802dfc9f
Merge branch 'develop' into language 2023-12-27 05:50:55 +09:00
ThatOneCalculator
73cf3b64e5
refactor: 🔥 remove local twemoji in backend assets, replace with @discordapp/twemoji
They ended up publishing svg in dist
2023-12-06 11:11:42 -08:00
ThatOneCalculator
e958834158
refactor: ♻️ Upgrade Twemoji to Emoji 15.0
Adds a new option to load Twemoji from the JSDelivr CDN (default) or from the server.  For Twemoji stored on the server,  they are grabbed directly from the @twemoji/api Github repo's assets, given they're no longer distributed in the @twemoji/api dist. No longer uses @discordapp/twemoji due to being unmaintained.
2023-12-04 19:50:44 -08:00
Kainoa Kanter
1d870fa78d fix: ⬆️ switch from twemoji-parser to @twemoji/parser 2023-12-04 04:45:42 +00:00
naskya
f8e935b120
Merge branch 'develop' into firefish-language 2023-11-22 22:02:27 +09:00
naskya
24deab1743
chore: remove unused dependencies 2023-11-18 19:21:23 +09:00
naskya
2dcc46a9e3
chore: remove language detection from backend 2023-11-17 17:50:20 +09:00
naskya
97bb495636
chore: upgrade dependencies (except for @swc/core and megalodon) 2023-11-17 05:15:02 +09:00
naskya
845f08893f
fix: upgrade AiScript!
There are braking changes in the AiScript syntax, so existing plugins must alse be upgraded
Also, I didn't include the function that can call remote servers' API (which is present in the latest Misskey)

Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
Co-authored-by: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com>
2023-11-17 05:04:05 +09:00
naskya
7323f4f8a1 Merge branch 're2-update' into 'develop'
Fix build on node 21

Co-authored-by: Jegler <jegler@heckin.how>

See merge request firefish/firefish!10635
2023-11-07 14:02:26 +00:00
Jegler
fbfa4cd41f Fix build on node 21 2023-11-07 14:02:25 +00:00
naskya
adee17b85a
chore: organize backend imports
* remove unused/duplicate imports
* replace paths like "../../../define.js" to be more readable
* add missing @types packages
2023-10-30 18:06:08 +09:00
PrivateGER
64b83ddb9f
Fix use of wrong library for CBOR authentication object 2023-10-22 21:23:52 +02:00
naskya
e81ed199ae
Revert "chore: upgrade biome + lint & format"
This reverts commit a1cd9f73a1.
2023-10-22 17:33:40 +09:00
ThatOneCalculator
a1cd9f73a1
chore: upgrade biome + lint & format 2023-10-19 17:10:30 -07:00
naskya
d1bb6e02e9
hotfix: don't use upstream megalodon for now 2023-10-19 04:59:38 +09:00
naskya
cdf839bcc8 Remove integrations 2023-10-16 17:05:32 +00:00
Kainoa Kanter
a9167c0265 refactor: ♻️ use upstream megalodon 2023-10-03 07:54:13 +00:00
ThatOneCalculator
70ad42c49c
fix: 🚑 downgrade swc to 1.3.78
Closes #10751
2023-09-20 10:17:00 -07:00
ThatOneCalculator
71ea5c4f93
rm langdetect 2023-09-19 17:18:00 -07:00
ThatOneCalculator
5964a10571
cld -> tinyld 2023-09-19 17:11:37 -07:00
cg sama
90f01edddc Adding language filter feature
Co-authored-by: CGsama <CGsama@outlook.com>
2023-09-20 00:07:41 +00:00
ThatOneCalculator
bf6b480f49
pin swc 2023-09-19 16:14:53 -07:00
Kainoa Kanter
4565867b8b perf: Replace JSDOM with Happy DOM 2023-09-08 03:24:01 +00:00
ThatOneCalculator
1deeb78878
build: ♻️ Rome -> Biome
Rome is now discontinued, and Biome has taken its place
2023-09-01 21:16:14 -07:00
ThatOneCalculator
2fb65cdd86
chore: ⬆️ up deps (properly) 2023-09-01 19:11:27 -07:00
ThatOneCalculator
a75a19cd17
chore: 🚨 lint megalodon 2023-09-01 16:36:33 -07:00
ThatOneCalculator
34e2f7ada6
chore: 🔧 linting config 2023-09-01 16:32:41 -07:00
naskya
82e5114576
feat: post translation in Traditional Chinese 2023-08-30 19:39:14 +09:00
Essem
32fdddb20a
fix: 🐛 caching wrong DNS entry when federating with an instance that cannot properly handle inbound IPv6 requests 2023-08-26 16:33:21 -07:00
ThatOneCalculator
f309d17667
Revert "fix: 🐛 fix DNS lookup issue"
This reverts commit bd61468f2f.
2023-08-23 22:31:50 -07:00
ThatOneCalculator
bd61468f2f
fix: 🐛 fix DNS lookup issue
https://github.com/szmarczak/cacheable-lookup/pull/62
2023-08-23 22:21:44 -07:00
ThatOneCalculator
06fcef60a1
chore: ⬆️ up deps 2023-08-08 17:38:03 -07:00
Namekuji
32fac53e8d
feat: backend debug in vscode 2023-07-30 16:27:13 -04:00
ThatOneCalculator
8422807031
Merge branch 'rebrand' into develop 2023-07-19 08:55:26 -07:00
CGsama
f5adccecb8 Merge commit '97a0127dbf0b96203902fb075b1d51659a921bfc'
Conflicts:
	pnpm-lock.yaml
2023-07-16 20:39:26 -04:00
CGsama
4bb6d7105a support new zip file by mastodon 2023-07-16 06:24:37 -04:00
Mizunashi Mana
1f441507f7 feat: Move json5 to prod dependencies 2023-07-16 19:00:51 +09:00
CGsama
809d418018 use gunzip-maybe tar-stream to replace exec 2023-07-16 01:41:57 -04:00
ThatOneCalculator
bb22a671b0
Merge branch 'develop' into rebrand 2023-07-15 14:15:01 -07:00
ThatOneCalculator
133c9f775c
Revert "refactor: use blurhash-as for encoding and decoding"
This reverts commit ae059881fb.
2023-07-13 19:06:57 -07:00
ThatOneCalculator
ae059881fb
refactor: use blurhash-as for encoding and decoding 2023-07-13 19:00:26 -07:00
ThatOneCalculator
cd5c4ff191
refactor: ♻️ no autobind 2023-07-13 17:52:19 -07:00
ThatOneCalculator
36ef3600c3
build: ⬆️ up backend deps 2023-07-10 21:29:01 -07:00
Namekuji
f5edaaf130
perf: use msgpackr to encode and decode 2023-07-06 17:22:15 -04:00
Laura Hausmann
a8f58fa912 [mastodon-client] general code cleanup, rename megalodon package 2023-07-06 02:16:51 +00:00
Laura Hausmann
ab18c22fa9 [mastodon-client] Move megalodon to main repo 2023-07-06 02:16:51 +00:00
Namekuji
947163fde2
store cache values to redis 2023-07-02 20:37:46 -04:00
ThatOneCalculator
6da5a5b89b
find and replace 2023-07-02 15:18:30 -07:00
ThatOneCalculator
63c193f9fc
Revert "Merge pull request '[PR]: fix: use redis-based mutex to prevent memory leak' (#10389) from nmkj/calckey:fix-cache-leak into develop"
This reverts commit 224b1d585b, reversing
changes made to b5907fb86d.
2023-07-02 10:10:25 -07:00
Namekuji
ac2b057f85
fix: use redis-semaphore for global mutex and memory leak prevention 2023-07-02 01:47:11 -04:00
Namekuji
38d4d34713
refactor: use redis-semaphore for mutex across workers 2023-07-01 03:49:43 -04:00
Namekuji
3780be57c0
clean unnecessary artifacts 2023-06-22 16:00:28 -04:00
Lily Cohen
48f58feae6
precompile rust components 2023-06-22 16:00:28 -04:00
ThatOneCalculator
35445f8591
Revert "refactor: 🦺 replace js-yaml with yaml"
This reverts commit 837a45bd98.
2023-06-16 14:09:42 -07:00
ThatOneCalculator
837a45bd98
refactor: 🦺 replace js-yaml with yaml
Technically mitigates CVE-2023-2251, but users never input YAML to Calckey. Still, this does no harm, and it's a good idea to keep dependencies like these up-to-date, as js-yaml was last updated 2 years ago.
2023-06-16 00:13:41 -07:00
ThatOneCalculator
46af585cf7
feat: 🔒 Improve 2FA/keypass experience
Co-authored-by: Tamania <tamaina@hotmail.co.jp>
Co-authored-by: Syuilo <syuilotan@yahoo.co.jp>
2023-06-15 16:12:32 -07:00
ThatOneCalculator
5769bdcc69
chore: formatting 2023-06-08 11:01:00 -07:00
ThatOneCalculator
ed674f2dac
chore: format 2023-06-05 17:27:40 -07:00
Freeplay
96b6c433c8 Merge branch 'develop' of https://codeberg.org/calckey/calckey into upstream/develop 2023-06-05 20:15:21 -04:00
ThatOneCalculator
36283b9a35
chore: formatting 2023-06-05 16:40:48 -07:00
ThatOneCalculator
c664d7da08
fix 2023-06-05 15:08:35 -07:00
ThatOneCalculator
a018bfca9a
dep: down typeorm 2023-06-05 15:02:59 -07:00
ThatOneCalculator
4f16bdea78
chore: ⬆️ up deps 2023-06-05 14:54:43 -07:00
Namekuji
9a9c3d4c62
add rust to the runtime container for migrations 2023-06-04 16:29:24 -04:00
ThatOneCalculator
02658fee0b
chore: ⬆️ up various deps 2023-06-03 00:41:30 -07:00
Namekuji
d7f80edbea
call seaorm migrations after typeorm 2023-06-03 00:27:00 -04:00
Namekuji
10072d6e4d
remove node cuid2 2023-06-02 23:48:26 -04:00
Namekuji
e932d6effa
use schema in native-utils 2023-06-02 23:48:24 -04:00
ThatOneCalculator
0291579e2f
chore: ⬆️ up bull 2023-05-31 12:06:26 -07:00
ThatOneCalculator
15d311c513
fix 2023-05-29 19:34:32 -07:00
ThatOneCalculator
2c42707551
up redis deps 2023-05-29 19:32:33 -07:00
ThatOneCalculator
da8ed09932
chore: up bull-board deps 2023-05-29 19:30:20 -07:00
Kainoa Kanter
fca3c6f85e Merge pull request 'fix: deprecate AID and enforce Cuid2' (#10216) from nmkj/calckey:deprecate-aid into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/10216
2023-05-29 04:12:15 +00:00
Namekuji
98f9e3e5c4
use cuid2 with timestamp 2023-05-28 22:16:42 -04:00
PrivateGER
7e1e42bc47 Pin meilisearch library 2023-05-28 00:27:16 +00:00
PrivateGER
340be8e35a Implement Meilisearch Indexing 2023-05-28 00:27:16 +00:00
ThatOneCalculator
892414f303
chore: up mfm-js in backend 2023-05-21 21:39:20 -07:00
Namekuji
3ddcffd169
enhance: emoji width and height 2023-05-19 22:26:13 -04:00
Essem
947e8932f2
Switch to adm-zip for emoji pack handling
Unzipper seems to corrupt files in certain cases on Node 18/19.
See https://github.com/ZJONSSON/node-unzipper/issues/271
2023-05-09 19:19:15 -05:00
ThatOneCalculator
11b93d2d9a
chore: upgrade megalodon 2023-04-29 13:28:24 -07:00
Kainoa Kanter
1865a9c204 Revert "[Fix] Properly replace koa-fix-trailing-slashes with inhouse script (#9870)"
This reverts commit 2cdaad588c.
2023-04-27 16:32:37 -07:00
Kainoa Kanter
431a08d06e Revert "Merge pull request '[feat] Replace Koa-FavICO with a smaller router' (#9853) from daikei/calckey:modularize-favico into develop"
This reverts commit 4f6cae7643, reversing
changes made to 64a737d001.
2023-04-27 16:25:13 -07:00
ThatOneCalculator
fca37cd86e
Revert "chore: update summaly"
This reverts commit b60a3b509e.
2023-04-26 14:19:55 -07:00
ThatOneCalculator
64a1c24686
chore: up pakcages 2023-04-23 15:34:50 -07:00
ThatOneCalculator
b60a3b509e
chore: update summaly 2023-04-19 21:28:43 -07:00
daikei
2cdaad588c [Fix] Properly replace koa-fix-trailing-slashes with inhouse script (#9870)
This follows up #9869, with an awaited ``next()``, fixing the script.

> I'm looking to remove another 5kb package, replacing it with an in-house script. The commit i'm proposing translates the entire job of koa-remove-trailing-slashes into a 206 byte script that gets the job done well.

(just to show the code does work)
![](https://s3.kitsunes.club/storage/41c7854d-d01e-4f4c-94dd-8b651e2d7367.gif)

Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9870
Co-authored-by: daikei <daikei@noreply.codeberg.org>
Co-committed-by: daikei <daikei@noreply.codeberg.org>
2023-04-17 22:36:22 +00:00
ThatOneCalculator
c0fe351bed
Revert "[Fix] remove-trailing-slashes with inhouse script (#9869)"
This reverts commit 07db141fc0.
2023-04-17 01:22:31 -07:00
daikei
07db141fc0 [Fix] remove-trailing-slashes with inhouse script (#9869)
I'm looking to remove another 5kb package, replacing it with an in-house script. The commit i'm proposing translates the entire job of `koa-remove-trailing-slashes` into a 206 byte script that gets the job done well.

Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9869
Co-authored-by: daikei <daikei@noreply.codeberg.org>
Co-committed-by: daikei <daikei@noreply.codeberg.org>
2023-04-17 08:02:29 +00:00
daikei
c959d4185c remove koa-favicon 2023-04-14 16:20:27 +00:00
ThatOneCalculator
4694e30573
chore: up swc 2023-04-13 09:43:13 -07:00
Kainoa Kanter
621be91cdb Revert "Revert "Incorporate calckey-js into calckey repository (#9820)""
This reverts commit 8033492c7c.
2023-04-07 17:44:27 -07:00
Kainoa Kanter
8033492c7c Revert "Incorporate calckey-js into calckey repository (#9820)"
This reverts commit 37c0423da6.
2023-04-07 17:35:10 -07:00
Kaity A
37c0423da6 Incorporate calckey-js into calckey repository (#9820)
Closes #9712.

Co-authored-by: Kaity A <kaity@theallans.com.au>
Co-authored-by: Ken Allan <ken@norganna.com>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9820
Co-authored-by: Kaity A <supakaity@noreply.codeberg.org>
Co-committed-by: Kaity A <supakaity@noreply.codeberg.org>
2023-04-07 14:25:22 +00:00
ThatOneCalculator
7b2a34a364
add argon 2023-03-30 19:19:09 -07:00
s1idewhist1e
c58ce6c53b Refactor: use rust for native mastodon id conversion (#9786)
This uses [napi-rs](https://napi.rs/) to allow for automatic generation of node bindings for the native code.

I also changed the `isolatedModules` TS flag to false to allow for `static enum` to be shared across modules. It doesn't seem to be necessary for the build system that CK uses.

Currently this method does not work with ID generators with longer IDs. Likely the best solution is to add another key in the database.

Some benchmarks for 1 million conversions:

```
	node, x1_000_000: 2.847s
	rust, x1_000_000: 1.265s
```

There are still optimizations that can be made, but I think this is a good starting point and a good way to bring rust into the CK stack.

Co-authored-by: s1idewhist1e <trombonedude05@gmail.com>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9786
Co-authored-by: s1idewhist1e <s1idewhist1e@noreply.codeberg.org>
Co-committed-by: s1idewhist1e <s1idewhist1e@noreply.codeberg.org>
2023-03-31 01:58:28 +00:00