Commit graph

4138 commits

Author SHA1 Message Date
David Mehren
1fe0c4fed3
Disable new no-unsafe-argument ESLint rule for tests
Signed-off-by: David Mehren <git@herrmehren.de>
2021-10-13 19:54:38 +02:00
Renovate Bot
dc7a681b89
chore(deps): update linters
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-13 17:43:43 +00:00
David Mehren
00b210e191
Merge pull request #1688 from hedgedoc/renovate/develop-nestjs-packages 2021-10-13 19:39:18 +02:00
Renovate Bot
5e075098f3
fix(deps): update nestjs packages
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-13 17:25:30 +00:00
David Mehren
606dafa645
Merge pull request #1728 from hedgedoc/renovate/develop-ts-node-10.x 2021-10-13 19:19:27 +02:00
David Mehren
1249cb8b70
Merge pull request #1716 from hedgedoc/renovate/develop-rxjs-7.x 2021-10-13 19:18:23 +02:00
Renovate Bot
34f47c153e
chore(deps): update dependency ts-node to v10.3.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-11 19:39:18 +00:00
Renovate Bot
4eadbd7ee3
fix(deps): update dependency rxjs to v7.4.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-10-11 16:27:50 +00:00
renovate[bot]
f8d38124ed
chore(deps): update dependency mkdocs-material to v7.3.3 (#1727)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-11 16:25:36 +00:00
renovate[bot]
485a673ce6
chore(deps): lock file maintenance (#1725)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-11 02:51:43 +00:00
renovate[bot]
d70fb5fde7
chore(deps): update dependency jest to v27.2.5 (#1720)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-08 16:01:31 +00:00
David Mehren
9d785100e8
Merge pull request #1671 from hedgedoc/enhancement/validation_logs 2021-10-07 20:38:38 +02:00
renovate[bot]
6f0a09f55a
chore(deps): update dependency mkdocs-material to v7.3.2 (#1714)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-06 21:08:14 +00:00
renovate[bot]
0f9832f9e5
fix(deps): update nestjs packages to v8.0.11 (#1712)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-06 12:42:15 +00:00
renovate[bot]
a43f4d0354
chore(deps): update dependency @types/node to v14.17.21 (#1711)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-05 23:39:57 +00:00
renovate[bot]
b202128d8e
fix(deps): update nestjs packages to v8.0.10 (#1709)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-05 10:07:47 +00:00
renovate[bot]
6a2c89f684
fix(deps): update dependency @nestjs/config to v1.0.2 (#1708)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-04 12:36:36 +00:00
renovate[bot]
bb5659d72e
chore(deps): lock file maintenance (#1707)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-04 03:56:32 +00:00
renovate[bot]
0d716c7ec6
fix(deps): update dependency typeorm to v0.2.38 (#1704)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-03 00:48:26 +00:00
renovate[bot]
531c9dd860
chore(deps): update dependency mkdocs-material to v7.3.1 (#1703)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-02 13:32:52 +00:00
renovate[bot]
4d5e58dc0e
fix(deps): update dependency rxjs to v7.3.1 (#1701)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-01 23:51:43 +00:00
renovate[bot]
2c86f90618
fix(deps): update nestjs packages to v8.0.9 (#1698)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-30 14:22:31 +00:00
renovate[bot]
bc3207b202
chore(deps): update dependency jest to v27.2.4 (#1695)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-29 19:03:40 +00:00
renovate[bot]
b2b885f308
chore(deps): update dependency @types/node to v14.17.20 (#1694)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-29 17:19:30 +00:00
renovate[bot]
e687eba4f1
chore(deps): update dependency @nestjs/cli to v8.1.2 (#1691)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-29 10:20:08 +00:00
renovate[bot]
0166b3b468
chore(deps): update dependency eslint-plugin-jest to v24.4.3 (#1690)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-28 21:49:34 +00:00
renovate[bot]
8720bb97b3
chore(deps): update dependency jest to v27.2.3 (#1687)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-28 11:54:41 +00:00
renovate[bot]
6ba3476329
fix(deps): update nestjs packages to v8.0.8 (#1686)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-28 10:53:42 +00:00
renovate[bot]
660a1a0784
chore(deps): lock file maintenance (#1684)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-27 04:20:53 +00:00
renovate[bot]
ad8f82f0cf
chore(deps): update dependency jest to v27.2.2 (#1682)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-25 16:48:51 +00:00
renovate[bot]
1c4fa7d408
chore(deps): update dependency @types/node to v14.17.19 (#1681)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-25 14:16:20 +00:00
renovate[bot]
206777859a
fix(deps): update nestjs packages to v8.0.7 (#1678)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-24 12:09:44 +00:00
renovate[bot]
76f6f505f1
chore(deps): pin dependency source-map-support to 0.5.20 (#1675)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-23 23:38:23 +00:00
renovate[bot]
c68da76362
chore(deps): pin dependency @types/source-map-support to 0.5.4 (#1674)
Signed-off-by: Renovate Bot <bot@renovateapp.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-23 23:08:25 +00:00
Yannick Bungers
96025e6dce
Merge pull request #1616 from hedgedoc/yarn2 2021-09-23 22:47:34 +02:00
David Mehren
9bf75614e2
Log errors in ValidationPipe
Previously, when an error was encountered while validating
the request, only an HTTP 400 status code was returned to the client.
This adds logging of the error message,
so invalid requests can be debugged.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-09-23 22:10:19 +02:00
David Mehren
e6ca6f3e23
Combine build & prebuild scripts
Yarn 2 does not support pre-scripts anymore

Signed-off-by: David Mehren <git@herrmehren.de>
2021-09-23 16:16:24 +02:00
David Mehren
50bed199d7
Remove ts-loader
Nest uses Webpack only for monorepo projects.
As we have a standalone Nest application, we can remove
the webpack-only dependency to ts-loader.

See https://docs.nestjs.com/cli/overview#project-structure

Signed-off-by: David Mehren <git@herrmehren.de>
2021-09-23 16:16:21 +02:00
David Mehren
0668081194
Move eslint plugins to devDependencies
Signed-off-by: David Mehren <git@herrmehren.de>
2021-09-23 16:16:02 +02:00
David Mehren
ba8a17071e
Add missing implicit dependencies
Yarn PnP does not allow modules to
access implicit dependencies.
This adds the missing dependencies to express and source-map-support.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-09-23 16:14:41 +02:00
David Mehren
2e333c6dc4
Setup Prettier plugins explicitly
Prettier can't autodetect the plugins with Yarn PnP,
as there is no node_modules folder.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-09-23 16:13:25 +02:00
David Mehren
4a1e9c36c6
Remove typeRoots from tsconfig
As we got rid of the express types in
`./types`, we can also remove the
`typeRoots` setting.
This also allows ts-jest to find the Jest typings
when run with Yarn PnP.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-09-23 16:13:25 +02:00
David Mehren
8c238530a7
Explicitly import URL
With Yarn PnP, URL is seems to not automatically be
part of the global scope.

Signed-off-by: David Mehren <git@herrmehren.de>
2021-09-23 16:13:25 +02:00
David Mehren
370c8e38cb
Add REUSE license info for Yarn 2
Signed-off-by: David Mehren <git@herrmehren.de>
2021-09-23 16:13:25 +02:00
David Mehren
50de342cda
CI: Use immutable flag and built-in caching
Signed-off-by: David Mehren <git@herrmehren.de>
2021-09-23 16:13:25 +02:00
David Mehren
7f26a7b78b
Add yarn typescript plugin
Signed-off-by: David Mehren <git@herrmehren.de>
2021-09-23 16:13:25 +02:00
David Mehren
7ab9a36b05
Add yarn interactive-tools plugin
Signed-off-by: David Mehren <git@herrmehren.de>
2021-09-23 16:13:25 +02:00
David Mehren
d81a18837d
Setup .gitignore for Yarn 2
Signed-off-by: David Mehren <git@herrmehren.de>
2021-09-23 16:13:05 +02:00
David Mehren
ab20c6a893
Install & configure Yarn 2
Signed-off-by: David Mehren <git@herrmehren.de>
2021-09-23 16:12:58 +02:00
David Mehren
b2ae4a85c3
Merge pull request #1668 from hedgedoc/renovate/develop-mkdocs-material-7.x 2021-09-23 15:53:43 +02:00