Commit graph

1234 commits

Author SHA1 Message Date
dependabot[bot]
f625eabf70
chore(deps): bump rate-limiter-flexible from 2.3.7 to 5.0.3 (#5806)
Bumps [rate-limiter-flexible](https://github.com/animir/node-rate-limiter-flexible) from 2.3.7 to 5.0.3.
- [Release notes](https://github.com/animir/node-rate-limiter-flexible/releases)
- [Commits](https://github.com/animir/node-rate-limiter-flexible/commits/v5.0.3)

---
updated-dependencies:
- dependency-name: rate-limiter-flexible
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Christian Fehmer <fehmer@users.noreply.github.com>
2024-08-20 17:02:31 +02:00
Christian Fehmer
b48854bc9d
chore: make sure MongoDbMock is using the same configuration (@fehmer) (#5792) 2024-08-20 14:56:18 +02:00
Christian Fehmer
4466acd6bc
impr: optimize permissions middleware (@fehmer) (#5801) 2024-08-20 14:52:30 +02:00
Miodec
4f9ddd1a47 chore: bump swagger-stats to 0.99.7 2024-08-15 11:09:44 +02:00
dependabot[bot]
dca7a84c84
chore(deps): bump prom-client from 14.0.1 to 15.1.3 (#5785)
Bumps [prom-client](https://github.com/siimon/prom-client) from 14.0.1 to 15.1.3.
- [Release notes](https://github.com/siimon/prom-client/releases)
- [Changelog](https://github.com/siimon/prom-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/siimon/prom-client/compare/v14.0.1...v15.1.3)

---
updated-dependencies:
- dependency-name: prom-client
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-15 10:44:45 +02:00
dependabot[bot]
8af766efba
chore(deps): bump dotenv from 10.0.0 to 16.4.5 (#5784)
Bumps [dotenv](https://github.com/motdotla/dotenv) from 10.0.0 to 16.4.5.
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v10.0.0...v16.4.5)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Christian Fehmer <fehmer@users.noreply.github.com>
2024-08-15 10:44:06 +02:00
dependabot[bot]
704679931f
chore(deps-dev): bump @types/string-similarity from 4.0.0 to 4.0.2 (#5772)
Bumps [@types/string-similarity](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/string-similarity) from 4.0.0 to 4.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/string-similarity)

---
updated-dependencies:
- dependency-name: "@types/string-similarity"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jack <jack@monkeytype.com>
2024-08-14 13:39:39 +02:00
Christian Fehmer
6fdfb5849b
ci: fix backend vitest.config (@fehmer) (#5780) 2024-08-14 13:07:00 +02:00
dependabot[bot]
52e17d3b50
chore(deps): bump nodemailer and @types/nodemailer (@dependabot) (#5773)
Bumps [nodemailer](https://github.com/nodemailer/nodemailer) and [@types/nodemailer](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/nodemailer). These dependencies needed to be updated together.

Updates `nodemailer` from 6.9.9 to 6.9.14
- [Release notes](https://github.com/nodemailer/nodemailer/releases)
- [Changelog](https://github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodemailer/nodemailer/compare/v6.9.9...v6.9.14)

Updates `@types/nodemailer` from 6.4.7 to 6.4.15
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/nodemailer)

---
updated-dependencies:
- dependency-name: nodemailer
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: "@types/nodemailer"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jack <jack@monkeytype.com>
2024-08-14 12:19:46 +02:00
Christian Fehmer
6458b248d7
impr(server): log unknown validation errors (@fehmer) (#5777)
!nuf
2024-08-14 12:05:44 +02:00
Miodec
19cef8b4af impr: add req.method to dev slowdown log
!nuf
2024-08-12 22:22:53 +02:00
Christian Fehmer
1c9dbccfa3
chore: update vitest to 2.0.5 (@fehmer) (#5770) 2024-08-12 20:18:22 +02:00
Jack
55e183e7bb
impr: add local storage with schema class to improve type safety (@miodec) (#5763)
!nuf
2024-08-12 17:04:01 +02:00
Christian Fehmer
c6e8f413fc
impr: use tsrest for leaderboard endpoints (@fehmer) (#5717)
!nuf
2024-08-12 14:08:17 +02:00
Christian Fehmer
ef8dfe2272
chore: add test case for apekey permission bug (@fehmer) (#5762) 2024-08-11 12:07:42 +02:00
Miodec
77c9cc423f fix(server): incorrect apekeys permission check 2024-08-10 23:59:59 +02:00
Miodec
4995f042ac chore: fix eslint in dev script 2024-08-09 22:03:01 +02:00
Christian Fehmer
02505750ad
refactor: implement recordClientVersion as middleware (@fehmer) (#5750)
* refactor: implement recordClientVersion as middleware (@fehmer)

* move csp for docs into docs route

* fix

* review comments
2024-08-09 14:20:16 +02:00
Christian Fehmer
c50535cd0f
impr: use tsrest for public endpoints (@fehmer) (#5716)
!nuf
2024-08-09 12:39:27 +02:00
Miodec
690dee1257 chore: remove word from profanities list 2024-08-08 21:43:55 +02:00
Christian Fehmer
45d27b5e00
chore: add test for recordClientVersion (@fehmer) (#5746) 2024-08-08 18:27:00 +02:00
Miodec
316bbd33a6 impr: notify user that captcha api failed to respond instead of throwing a server error 2024-08-08 17:07:13 +02:00
Jack
1eebf748ba
refactor: move release code to a package (@miodec) (#5743) 2024-08-08 16:16:01 +02:00
Christian Fehmer
f6ec006507
impr: use tsrest for psa endpoints (@fehmer) (#5712)
!nuf
2024-08-08 15:10:26 +02:00
Miodec
27e66f7f8a chore: run anticheat for banned accounts 2024-08-08 13:02:37 +02:00
dependabot[bot]
dfdf3fc6cd
chore(deps-dev): bump typescript from 5.3.3 to 5.5.4 (@dependabot) (#5734) 2024-08-08 12:44:22 +02:00
Christian Fehmer
460f803bca
impr: use tsrest for admin endpoint (@fehmer) (#5713)
!nuf
2024-08-08 12:41:07 +02:00
Christian Fehmer
9f9663682d
chore: fix tests using machine timezone (@fehmer) (#5740) 2024-08-08 12:10:11 +02:00
dependabot[bot]
c413cbd364
chore(deps): bump nodemon from 3.0.1 to 3.1.4 (@dependabot) (#5733)
Bumps [nodemon](https://github.com/remy/nodemon) from 3.0.1 to 3.1.4.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v3.0.1...v3.1.4)

---
updated-dependencies:
- dependency-name: nodemon
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jack <jack@monkeytype.com>
2024-08-06 12:28:03 +02:00
dependabot[bot]
35379383a0
chore(deps): bump uuid and @types/uuid (@dependabot) (#5735)
Bumps [uuid](https://github.com/uuidjs/uuid) and [@types/uuid](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/uuid). These dependencies needed to be updated together.

Updates `uuid` from 9.0.1 to 10.0.0
- [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v9.0.1...v10.0.0)

Updates `@types/uuid` from 8.3.4 to 10.0.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/uuid)

---
updated-dependencies:
- dependency-name: uuid
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: "@types/uuid"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-06 12:24:15 +02:00
Adam Sasine
b26cb887e4
feat(funbox): add hexadecimal (@asasine) (#5724)
* feat(funbox): added hexadecimal

* missing list definition

* lower max to 4

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-08-05 10:53:03 +02:00
Christian Fehmer
4a55db5284
fix: csp preventing new documentation unable to display logo (@fehmer) (#5719)
!nuf
2024-08-05 10:38:06 +02:00
Miodec
fb45f05c3f chore: missing min string length causing firebase to throw errors 2024-08-05 10:34:13 +02:00
Miodec
98108dead8 chore: fix lint warnings 2024-08-02 21:56:54 +02:00
Christian Fehmer
8a09acd8d5
impr: use tsrest for ape-keys endpoint (@fehmer) (#5706)
!nuf
2024-08-01 13:29:25 +02:00
Christian Fehmer
a6912d20af
impr(server): store some logs forever (@miodec) (#5708)
!nuf
2024-08-01 12:48:36 +02:00
Nad Alaba
8bc47960ef
build(backend): activate inspector to allow attaching debugger (@NadAlaba) (#5704) 2024-08-01 12:47:07 +02:00
Jack
2720c07664
chore: switch from npm to pnpm (#5690)
* pnpm

* v4, pnpm lock

* checkout, node setup

* cache dir

* path, name

* store path

* name

* setup pnpm, get store then check cache

* unnecessary if

* missing dependencies

* fix docker

* lock file name

* remove prop

* wip

* fix

* reduce image sizes

* save exact

* correct command

* lock

---------

Co-authored-by: Christian Fehmer <cfe@sexy-developer.com>
2024-07-30 22:36:19 +02:00
Miodec
47438fa8d1 chore(lint): enable no unsafe return 2024-07-30 22:10:30 +02:00
Jack
1110248f7b
chore: upgrade node to 20.16.0 (#5688)
* nooOoOoOOoOoode

* ci

* nvm

* env is back baby, cache

* cache name, restore keys

* remove restore keys

* package lock

* conditional node setup

* unnecessary assertion

* update rule

* lock
2024-07-30 18:44:35 +02:00
Jack
fe7a67d0fb
chore: add more eslint rules (#5687)
* duplicate

* no meaningless void

* no-unnecessary-boolean-literal-compare

* prefer includes

* fixes

* type cast

* ignore rule

* backend

* duplicate

* interface > type

* no-confusing-void-expression

* no-unnecessary-type-assertion

* extend plugin

* fix

* ignore
2024-07-30 18:17:58 +02:00
Christian Fehmer
6b9f4a0f18
chore: remove config from shared-types (@fehmer) (#5681)
* chore: remove config from shared-types (@fehmer)

* fix

* remove shared-types/user

* build before test

* fix

* add madge to contracts
2024-07-30 17:37:38 +02:00
Christian Fehmer
6c6e1529a2
impr: use tsrest for presets endpoints (@fehmer) (#5675)
!nuf
2024-07-30 12:58:22 +02:00
dependabot[bot]
ccc483226d
chore(deps-dev): bump @types/bcrypt from 5.0.0 to 5.0.2 (#5677)
Bumps [@types/bcrypt](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/bcrypt) from 5.0.0 to 5.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/bcrypt)

---
updated-dependencies:
- dependency-name: "@types/bcrypt"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-30 12:33:10 +02:00
Miodec
471e844c6b chore: remove hard npm version requirement 2024-07-29 11:49:28 +02:00
Christian Fehmer
7f9f704dcd
impr: use tsrest/zod for config endpoints (@fehmer) (#5649)
!nuf
2024-07-29 11:31:14 +02:00
Miodec
642a2b22a1 chore: update backend out dir 2024-07-25 19:59:05 +02:00
dependabot[bot]
d717ae0058
chore(deps): bump express from 4.17.3 to 4.19.2 in /backend (#5650)
* chore(deps): bump express from 4.17.3 to 4.19.2 in /backend

Bumps [express](https://github.com/expressjs/express) from 4.17.3 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.17.3...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* lock update

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Miodec <jack@monkeytype.com>
2024-07-25 11:16:48 +02:00
Christian Fehmer
40514cd248
chore: start application in dev mode using docker (@fehmer) (#5647)
* chore: start application in dev mode using docker (@fehmer)

* expose port env variable

* regen lock

* regen lock

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-07-24 19:48:01 +02:00
Miodec
8de977a45f chore: bump ua-parser 2024-07-22 16:56:50 +02:00