Commit graph

4195 commits

Author SHA1 Message Date
renovate[bot]
0e8e173737 fix(deps): update dependency mysql2 to v3.4.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-25 14:40:20 +02:00
renovate[bot]
6e3dbd4cdd fix(deps): update dependency aws-sdk to v2.1404.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-25 14:38:23 +02:00
renovate[bot]
08446aa143 fix(deps): update dependency mariadb to v3.2.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-25 14:38:11 +02:00
renovate[bot]
b11e8362fc chore(deps): update dependency eslint-plugin-n to v16.0.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-25 12:33:52 +00:00
renovate[bot]
3e6a273b47 chore(deps): update dependency mkdocs-material to v9.1.17
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-23 21:38:34 +00:00
renovate[bot]
239573ebe9 chore(deps): lock file maintenance
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-19 03:29:22 +00:00
renovate[bot]
d39be71423 chore(deps): update dependency eslint to v8.43.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-17 16:25:29 +02:00
renovate[bot]
c1ab066615 chore(deps): update dependency mkdocs-material to v9.1.16
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-15 19:47:36 +00:00
renovate[bot]
f12c109a4e fix(deps): update dependency mysql2 to v3.3.5
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-13 03:38:41 +00:00
renovate[bot]
1ae458a4aa chore(deps): lock file maintenance
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-12 04:09:18 +00:00
renovate[bot]
007b21344b fix(deps): update dependency mysql2 to v3.3.4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-11 11:15:38 +00:00
renovate[bot]
9a99807c3a fix(deps): update dependency aws-sdk to v2.1395.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-09 21:30:21 +02:00
renovate[bot]
74625fc1e0 chore(deps): update actions/checkout action to v3.5.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-09 17:16:44 +02:00
Dennis Gaida
e371d6dcfa Update dockerSecret.js
Adding OAUTH2 secrets so they can be set using docker secrets.

Signed-off-by: Dennis Gaida <2392217+DennisGaida@users.noreply.github.com>
2023-06-09 17:03:17 +02:00
renovate[bot]
aebac6173c fix(deps): update dependency aws-sdk to v2.1391.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-05 22:16:01 +02:00
David Mehren
c2854957a2 Update AUTHORS file
Signed-off-by: David Mehren <git@herrmehren.de>
2023-06-04 21:35:20 +02:00
David Mehren
b2a3596770 Update yarn.lock
Signed-off-by: David Mehren <git@herrmehren.de>
2023-06-04 21:35:20 +02:00
David Mehren
57c2865224 Bump version to 1.9.8
Signed-off-by: David Mehren <git@herrmehren.de>
2023-06-04 21:35:20 +02:00
David Mehren
689ca2018d Import translations from POEditor
Signed-off-by: David Mehren <git@herrmehren.de>
2023-06-04 21:35:20 +02:00
Erik Michelson
143864b8d9 enhancement(metrics): allow disabling via config option
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-06-04 21:03:46 +02:00
Tilman Vatteroth
a349ddde56 doc: add note about arm64 to the release notes
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2023-06-04 20:51:34 +02:00
David Mehren
bbee1aa278 fix: macOS compatibility for bin/setup
After carefully studying the man pages of GNU sort and BSD sort,
we concluded that the version_lt function should also work on macOS.

Testing seemed to confirm that.

Signed-off-by: David Mehren <git@herrmehren.de>
2023-06-04 20:38:57 +02:00
David Mehren
acf24a1dd2 fix(esbuild): exclude reveal.js marked plugin
https://github.com/hedgedoc/hedgedoc/pull/4114
did not properly fix the missing speaker notes.

It turns out that by just excluding
reveal.js/plugin/markdown/marked.js
from esbuild processing, we can stop invalid JS from being generated.

Signed-off-by: David Mehren <git@herrmehren.de>
2023-06-04 20:31:21 +02:00
renovate[bot]
36cc55ae8e fix(deps): pin dependency socket.io to 2.5.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-04 17:24:59 +02:00
renovate[bot]
11b856f3b6 fix(deps): pin dependencies
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-04 17:21:06 +02:00
renovate[bot]
2f70d66d7d fix(deps): update dependency file-type to v18.5.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-04 10:37:20 +02:00
renovate[bot]
29b75ce78b chore(deps): update dependency eslint to v8.42.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-03 12:17:33 +02:00
renovate[bot]
75311149bc chore(deps): update yarn to v3.6.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-03 12:14:34 +02:00
David Mehren
5df8a45413 Fix jsonlint script
Yarn 2 has its own script interpreter, which does not support loops.

Signed-off-by: David Mehren <git@herrmehren.de>
2023-06-03 12:09:40 +02:00
David Mehren
50b60e30f1 Adjust setup-node action for Yarn 3
Signed-off-by: David Mehren <git@herrmehren.de>
2023-06-03 12:09:40 +02:00
David Mehren
3542a0304c Update setup docs and setup script for Yarn 3
Signed-off-by: David Mehren <git@herrmehren.de>
2023-06-03 12:09:40 +02:00
David Mehren
3d9607e83a Add release notes for Yarn 3
Signed-off-by: David Mehren <git@herrmehren.de>
2023-06-03 12:09:40 +02:00
David Mehren
eddec26683 Add workspace-tools yarn plugin
Signed-off-by: David Mehren <git@herrmehren.de>
2023-06-03 12:09:40 +02:00
David Mehren
e918621167 Add interactive-tools yarn plugin
Signed-off-by: David Mehren <git@herrmehren.de>
2023-06-03 12:09:40 +02:00
David Mehren
adc03d5c8b Update yarn.lock with Berry
Signed-off-by: David Mehren <git@herrmehren.de>
2023-06-03 12:09:40 +02:00
David Mehren
555d92ca8d Switch to Yarn Berry
Signed-off-by: David Mehren <git@herrmehren.de>
2023-06-03 12:09:40 +02:00
renovate[bot]
a5c15a3645 fix(deps): update dependency aws-sdk to v2.1389.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-02 08:38:29 +02:00
renovate[bot]
553a784402 fix(deps): update dependency pdfobject to v2.2.12
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-02 03:49:07 +00:00
renovate[bot]
672c50c7f4 chore(deps): update dependency eslint-config-standard to v17.1.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-31 16:42:52 +02:00
renovate[bot]
60daf7a7f9 chore(deps): update dependency mkdocs-material to v9.1.15
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-29 18:41:42 +00:00
David Mehren
1a9cea0ec1 Update release notes for more supported node versions
Signed-off-by: David Mehren <git@herrmehren.de>
2023-05-29 11:23:21 +02:00
David Mehren
8a9f5b5c3a Run CI for Node 18 & 20
Signed-off-by: David Mehren <git@herrmehren.de>
2023-05-29 11:23:21 +02:00
David Mehren
f6a28fb69b Fix bin/setup checking outdated node requirements
Signed-off-by: David Mehren <git@herrmehren.de>
2023-05-29 11:23:21 +02:00
David Mehren
7b3b6ad7ac Update supported node versions in docs
Signed-off-by: David Mehren <git@herrmehren.de>
2023-05-29 11:23:21 +02:00
David Mehren
6a916d060a Make our Webpack config compatible with Node 18+
Node 18 and newer switched to OpenSSL 3, which does not support the MD4
hash algorithm.

Unfortunately, Webpack 4 hardcodes the use of MD4 at various places.
This leaves us no other option than to monkey-patch node to transform
calls to the MD4 hash to use SHA256.

References:
https://github.com/webpack/webpack/issues/14532
https://stackoverflow.com/questions/69394632/webpack-build-failing-with-err-ossl-evp-unsupported/69691525#69691525
Signed-off-by: David Mehren <git@herrmehren.de>
2023-05-29 11:23:21 +02:00
David Mehren
b1928b77b4 fix(webpack): give reveal.js's marked.js a 'exports' variable
I really don't know why this breaks only in a production build, but this
 evil
 hack makes the script work again.

 Closes https://github.com/hedgedoc/hedgedoc/issues/3862

Signed-off-by: David Mehren <git@herrmehren.de>
2023-05-28 19:16:32 +02:00
renovate[bot]
18fad4a6fa fix(deps): update dependency aws-sdk to v2.1386.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-28 16:11:59 +02:00
renovate[bot]
cca73a6eda fix(deps): update dependency winston to v3.9.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-28 16:11:47 +02:00
Julian Rother
2eb4c8e05f Fix premature note cleanup on error
Connection forbidden errors cause cleanup of note state without first
checking if other clients are still connected to the note. This leads
to inconsistent pad content and changes not being saved properly.

This change reverts parts of 725e982 (Fix realtime on forbidden not clean
up properly ...). The call to `interruptConnection()` on permission errors
is redundant, since `failConnection()` and `disconnect()` already perform
all required cleanup in this case. The other call to `interruptConnection()`
only happens when a client (the first client for a note) disconnects while
the note is being loaded from the database. It is refactored for clarity.

Fixes #3894

Co-authored-by: David Mehren <git@herrmehren.de>
Signed-off-by: Julian Rother <julian@jrother.eu>
2023-05-28 16:10:51 +02:00
renovate[bot]
317f1f87f9 fix(deps): update dependency mysql2 to v3.3.3
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-05-27 19:15:00 +00:00