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
David Mehren
a031de4522
Merge pull request #1359 from hedgedoc/feat/aliases
...
add list of aliases to note entity
2021-09-23 15:52:06 +02:00
Renovate Bot
26449adef7
chore(deps): update dependency mkdocs-material to v7.3.0
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2021-09-23 09:07:52 +00:00
Philip Molares
49c1c8de34
docs: add primary aliases to the dev doc about notes
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-09-22 20:43:45 +02:00
Philip Molares
7bb70649a0
fix: the seed command handles the new aliases
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-09-22 20:43:45 +02:00
Philip Molares
9f38b9036c
test: fix e2e tests to handle the new aliases
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-09-22 20:43:45 +02:00
Philip Molares
b95a6f56b6
test: fix service tests to handle the new aliases
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-09-22 20:43:45 +02:00
Philip Molares
e9d4a81922
feat: add alias controller to private and public api
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-09-22 20:43:45 +02:00
Philip Molares
3b7a06913b
feat: add aliases to service files
...
This commit makes it possible to identifier notes via any alias in the note and history service.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-09-22 20:43:44 +02:00
Philip Molares
794be4a5dc
chore: create getIdentifier utility function
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-09-22 20:43:44 +02:00
Philip Molares
10ed40f9f1
chore: create getPrimaryAlias utility function
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-09-22 20:43:44 +02:00
Philip Molares
0db7a41d1a
feat: add alias service
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-09-22 20:43:44 +02:00
renovate[bot]
ba903d8c7e
fix(deps): update dependency node-fetch to v2.6.5 ( #1666 )
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-22 16:14:38 +00:00
David Mehren
e4fb29b0f2
Merge pull request #1664 from hedgedoc/security-file
2021-09-22 16:02:01 +02:00
renovate[bot]
4ae8051d50
chore(deps): update dependency @types/node to v14.17.18 ( #1665 )
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-21 21:54:36 +00:00
renovate[bot]
54d1439dc5
fix(deps): update dependency node-fetch to v2.6.4 ( #1662 )
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-21 15:25:35 +00:00
Erik Michelson
c383206afd
Update security.md to match state in master branch
...
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2021-09-21 15:20:40 +02:00
Philip Molares
aaef0f72ba
feat: add list of aliases to note entity
...
One of the aliases can be primary for each note, but all can be used to get information from the apis.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-09-21 15:14:00 +02:00
Philip Molares
7dd4f97d64
chore: add PrimaryAliasDeletionForbiddenError
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-09-21 15:14:00 +02:00
Philip Molares
dd2667b523
chore: add alias dtos
...
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-09-21 15:14:00 +02:00
David Mehren
990665745a
Merge pull request #1663 from hedgedoc/fix/issue_template_titles
...
Add missing title property to issue templates
2021-09-21 15:10:07 +02:00
David Mehren
acc17abb7c
Add missing title property to issue templates
...
Signed-off-by: David Mehren <git@herrmehren.de>
2021-09-21 15:04:21 +02:00
David Mehren
90b74a3cf2
Merge pull request #1645 from hedgedoc/new-issue-templates
...
Use GitHub issue forms
2021-09-21 14:57:39 +02:00
renovate[bot]
df3ad63645
chore(deps): update dependency @types/jest to v27.0.2 ( #1661 )
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-21 04:04:44 +00:00
renovate[bot]
6a8e34a3ff
fix(deps): update dependency node-fetch to v2.6.3 ( #1660 )
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-20 23:33:07 +00:00
renovate[bot]
50c7f4a6e5
chore(deps): update dependency ts-loader to v9.2.6 ( #1659 )
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-20 21:58:44 +00:00
renovate[bot]
4081def3db
chore(deps): update linters to v4.31.2 ( #1658 )
...
Signed-off-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-20 19:16:34 +00:00