25
0
Fork 0
mirror of https://github.com/hedgedoc/hedgedoc.git synced 2026-04-30 01:32:18 +02:00
HedgeDoc/lib/models
Erik Michelson 9a45d1e2a9 chore(deps): upgrade dependencies, remove some unnecessary ones
This commit upgrades dependencies that are more or less trivial
to update, e.g. because they didn't have major version bumps or
simply didn't break anything. There are some dependencies which
have not been upgraded since this would have required larger
refactorings. This includes especially the markdown-it ecosystem
and the webpack ecosystem.
The largest refactorings in this commit come from the bump of
socket.io v2 to v4 which changed the handling of the connected
socket list for instance.

This commit further removes some outdated and/or unnecessary
dependencies. This includes the String.js library which is
unmaintained for 9 years and has some CVEs. We mainly used
this library for their escapeHTML and unescapeHTML methods.
This can be done using native DOM APIs nowadays, which is also
considered more safe since it is the same logic that the
browser itself uses.
Since we target Node 18 and above, we can also rely on the
built-in fetch function instead of the node-fetch package.
The current version of Chance.js includes a method for
generating a random color now too, so we don't need the
package randomcolor anymore.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2025-11-24 14:32:24 +01:00
..
author.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
index.js style(migrations): fix formatting errors 2022-11-06 22:24:48 +01:00
note.js chore(deps): upgrade dependencies, remove some unnecessary ones 2025-11-24 14:32:24 +01:00
revision.js fix: use nanoid instead of shortid 2025-11-22 01:05:50 +01:00
temp.js fix: use nanoid instead of shortid 2025-11-22 01:05:50 +01:00
user.js Convert history attribute in user table to longtext 2022-09-25 11:09:23 +02:00