Jack
7e703028bd
refactor: enable no-unsafe-member-access (@miodec) ( #5887 )
...
### Description
<!-- Please describe the change(s) made in your PR -->
### Checks
- [ ] Adding quotes?
- [ ] Make sure to include translations for the quotes in the
description (or another comment) so we can verify their content.
- [ ] Adding a language or a theme?
- [ ] If is a language, did you edit `_list.json`, `_groups.json` and
add `languages.json`?
- [ ] If is a theme, did you add the theme.css?
- Also please add a screenshot of the theme, it would be extra awesome
if you do so!
- [ ] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [ ] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [ ] Make sure to include your GitHub username prefixed with @ inside
parentheses at the end of the PR title.
<!-- label(optional scope): pull request title (@your_github_username)
-->
<!-- I know I know they seem boring but please do them, they help us and
you will find out it also helps you.-->
Closes #
<!-- the issue(s) your PR resolves if any (delete if that is not the
case) -->
<!-- please also reference any issues and or PRs related to your pull
request -->
<!-- Also remove it if you are not following any issues. -->
<!-- pro tip: you can mention an issue, PR, or discussion on GitHub by
referencing its hash number e.g:
[#1234 ](https://github.com/monkeytypegame/monkeytype/pull/1234 ) -->
<!-- pro tip: you can press . (dot or period) in the code tab of any
GitHub repo to get access to GitHub's VS Code web editor Enjoy! :) -->
2024-09-18 12:56:52 +02:00
Jack
ceedf8ace2
refactor: enable no-unsafe-call rule (@miodec) ( #5883 )
...
### Description
<!-- Please describe the change(s) made in your PR -->
### Checks
- [ ] Adding quotes?
- [ ] Make sure to include translations for the quotes in the
description (or another comment) so we can verify their content.
- [ ] Adding a language or a theme?
- [ ] If is a language, did you edit `_list.json`, `_groups.json` and
add `languages.json`?
- [ ] If is a theme, did you add the theme.css?
- Also please add a screenshot of the theme, it would be extra awesome
if you do so!
- [ ] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [ ] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [ ] Make sure to include your GitHub username prefixed with @ inside
parentheses at the end of the PR title.
<!-- label(optional scope): pull request title (@your_github_username)
-->
<!-- I know I know they seem boring but please do them, they help us and
you will find out it also helps you.-->
Closes #
<!-- the issue(s) your PR resolves if any (delete if that is not the
case) -->
<!-- please also reference any issues and or PRs related to your pull
request -->
<!-- Also remove it if you are not following any issues. -->
<!-- pro tip: you can mention an issue, PR, or discussion on GitHub by
referencing its hash number e.g:
[#1234 ](https://github.com/monkeytypegame/monkeytype/pull/1234 ) -->
<!-- pro tip: you can press . (dot or period) in the code tab of any
GitHub repo to get access to GitHub's VS Code web editor Enjoy! :) -->
2024-09-13 15:18:00 +02:00
Jack
955eeae2a7
refactor: enable no-unsafe-assignment rule (@miodec) ( #5874 )
...
Co-authored-by: Nad Alaba <37968805+NadAlaba@users.noreply.github.com>
Co-authored-by: Christian Fehmer <fehmer@users.noreply.github.com>
Co-authored-by: Igor Bedesqui <igorbedesqui@gmail.com>
Co-authored-by: amarnathsama <63007641+amarnathsama@users.noreply.github.com>
2024-09-13 13:18:06 +02:00
Christian Fehmer
e19b3e3e8b
refactor: remove leftover code from ts-rest migration (@fehmer) ( #5875 )
2024-09-13 12:27:35 +02:00
amarnathsama
8a6c81669e
feat(settings): allow partial presets (@amarnathsama, @miodec, @fehmer) ( #5813 )
2024-09-12 21:42:29 +02:00
Jack
93d6fff895
refactor: enable no-unsafe-argument rule (@miodec) ( #5872 )
2024-09-11 14:23:00 +02:00
Christian Fehmer
4f75a00cb3
impr: use ts-rest for webhook endpoints (@fehmer, @miodec) ( #5871 )
...
!nuf
2024-09-11 14:16:34 +02:00
Christian Fehmer
b315836dee
impr: move configuration checks to contracts (@fehmer) ( #5851 )
...
!nuf
2024-09-11 11:26:12 +02:00
dependabot[bot]
c6daef0e9d
chore(deps): bump express from 4.19.2 to 4.20.0 in /backend ( #5867 )
...
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 <cfe@sexy-developer.com>
2024-09-11 11:17:02 +02:00
Miodec
3478c21aa9
fix: lower accuracy requirement for accounts that have opted out of the leaderboards
...
actually closes #5858
2024-09-10 23:11:29 +02:00
Christian Fehmer
c7b3e2c916
impr: move permission checks to contracts (@fehmer, @miodec) ( #5848 )
...
!nuf
2024-09-10 11:35:57 +02:00
Christian Fehmer
b06b9f73e5
refactor: rework rate limiting (@fehmer) ( #5845 )
...
!nuf
2024-09-09 10:39:08 +02:00
Christian Fehmer
9c083f2397
fix: unable to update profile with missing values (@fehmer) ( #5859 )
2024-09-07 13:05:44 +02:00
Miodec
d5fb24fb12
fix(server): get personal bests request mode2 should be optional
...
!nuf
2024-09-06 15:10:45 +02:00
Christian Fehmer
77c1e8e298
feat(funbox): add instant messaging (@fehmer) ( #5850 )
...
Thanks
2024-09-05 17:36:10 +02:00
Christian Fehmer
259894ab9f
impr: use tsrest for user endpoints (@fehmer) ( #5815 )
...
!nuf
2024-09-05 17:28:19 +02:00
Christian Fehmer
1804ebcd8a
impr: use tsrest for quotes endpoints (@fehmer) ( #5802 )
...
!nuf
2024-08-29 15:42:42 +02:00
Miodec
6e43e1c4dc
fix(sever): wrong rate limiter being used for result post
...
also lowers limit slightly to 300 and updates the generic message to be more clear
2024-08-27 22:50:20 +02:00
Christian Fehmer
30d440a70e
impr: use tsrest for dev endpoints (@fehmer) ( #5800 )
...
!nuf
2024-08-23 20:03:13 +02:00
Christian Fehmer
e2d574444a
impr: use tsrest for configurations endpoint (@fehmer) ( #5796 )
...
!nuf
2024-08-23 19:06:41 +02:00
Miodec
73f379ae8a
fix: server not logging exceptions
...
!nuf
2024-08-23 18:21:11 +02:00
Christian Fehmer
e03a25fb92
impr: use ts-rest for results endpoint (@fehmer) ( #5758 )
...
!nuf
2024-08-23 12:13:50 +02:00
Miodec
38e0d50885
chore(server): warn if object hash check is disabled
2024-08-22 14:23:20 +02:00
dependabot[bot]
7cd44812ea
chore(deps-dev): bump @types/object-hash from 2.2.1 to 3.0.6 ( #5805 )
...
Bumps [@types/object-hash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/object-hash ) from 2.2.1 to 3.0.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/object-hash )
---
updated-dependencies:
- dependency-name: "@types/object-hash"
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-20 17:03:17 +02:00
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