Skip to content

Build your personal knowledge base with Trilium Notes

chore(server/session): get rid of file-session dependency

Elian Doranc6434729bc54
diff --git a/apps/server/package.json b/apps/server/package.json
index f1f515fec6..66cc22b530 100644
--- a/apps/server/package.json
+++ b/apps/server/package.json
@@ -104,7 +104,6 @@
"sanitize-html": "2.17.0",
"sax": "1.4.1",
"serve-favicon": "2.5.0",
- "session-file-store": "1.5.0",
"stream-throttle": "0.1.3",
"strip-bom": "5.0.0",
"striptags": "3.2.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index afc2a604b4..8b6fd8da85 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -308,7 +308,7 @@ importers:
version: 19.1.5(@types/[email protected])
copy-webpack-plugin:
specifier: 13.0.0
happy-dom:
specifier: 17.4.7
version: 17.4.7
@@ -394,7 +394,7 @@ importers:
version: 1.0.2
copy-webpack-plugin:
specifier: 13.0.0
electron:
specifier: 36.2.1
version: 36.2.1
@@ -447,7 +447,7 @@ importers:
version: 11.0.4
copy-webpack-plugin:
specifier: 13.0.0
electron:
specifier: 36.2.1
version: 36.2.1
@@ -619,7 +619,7 @@ importers:
version: 1.4.7
copy-webpack-plugin:
specifier: 13.0.0
csrf-csrf:
specifier: 3.2.2
version: 3.2.2
@@ -755,9 +755,6 @@ importers:
serve-favicon:
specifier: 2.5.0
version: 2.5.0
- session-file-store:
- specifier: 1.5.0
- version: 1.5.0
stream-throttle:
specifier: 0.1.3
version: 0.1.3
@@ -790,7 +787,7 @@ importers:
version: 1.0.1
webpack:
specifier: 5.99.8
ws:
specifier: 8.18.2
@@ -842,7 +839,7 @@ importers:
version: 4.1.0
'@ckeditor/ckeditor5-package-tools':
specifier: ^3.0.1
'@typescript-eslint/eslint-plugin':
specifier: ~8.32.0
@@ -902,7 +899,7 @@ importers:
version: 4.1.0
'@ckeditor/ckeditor5-package-tools':
specifier: ^3.0.1
'@typescript-eslint/eslint-plugin':
specifier: ~8.32.0
@@ -962,7 +959,7 @@ importers:
version: 4.1.0
'@ckeditor/ckeditor5-package-tools':
specifier: ^3.0.1
'@typescript-eslint/eslint-plugin':
specifier: ~8.32.0
@@ -1023,13 +1020,13 @@ importers:
'@ckeditor/ckeditor5-dev-utils':
specifier: 43.0.1
'@ckeditor/ckeditor5-inspector':
specifier: '>=4.1.0'
version: 4.1.0
'@ckeditor/ckeditor5-package-tools':
specifier: ^3.0.1
'@typescript-eslint/eslint-plugin':
specifier: ~8.32.0
@@ -1096,7 +1093,7 @@ importers:
version: 4.1.0
'@ckeditor/ckeditor5-package-tools':
specifier: ^3.0.1
'@typescript-eslint/eslint-plugin':
specifier: ~8.32.0
@@ -6091,9 +6088,6 @@ packages:
resolution: {integrity: sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==}
- resolution: {integrity: sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==}
-
resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}
engines: {node: '>=12'}
@@ -6223,9 +6217,6 @@ packages:
peerDependencies:
'@babel/core': ^7.0.0
- resolution: {integrity: sha512-42sAlmPDKes1nLm/aly+0VdaopSU9br+jkRELedhQxI5uXHgtk47I83Mpmf4zoNTRMASdLFtUkimlu/Z9zQ8+g==}
-
resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
@@ -6322,9 +6313,6 @@ packages:
resolution: {integrity: sha512-cTEHk2jLrPyi+12M3dhpEbnnPOsaZuq7C45ylbbQIiWgDFZq4UVYPEY5mlqjvsj/6gJv9qX5sa+ebDzLXT28Vw==}
- resolution: {integrity: sha512-k8TVBiPkPJT9uHLdOKfFpqcfprwBFOAAXXozRubr7R7PfIuKvQlzcI4M0pALeqXN09vdaMbUdUj+pass+uULAg==}
-
resolution: {integrity: sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==}
engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16}
@@ -9338,9 +9326,6 @@ packages:
resolution: {integrity: sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==}
-
resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==}
engines: {node: '>=10'}
@@ -9749,10 +9734,6 @@ packages:
resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==}
- resolution: {integrity: sha512-BTwprBPTzkFT9oTugxKd3WnWrX630MqUDsnmBuoa98eQs12oD4n4TeI0GbpdGcYn/73Xueg2rfnw+oK4dovnJg==}
- engines: {node: '>6'}
-
resolution: {integrity: sha512-QJv/h939gDpvT+9SiLVlY7tZC3xB2qK57v0J04Sh9wpMb6MP1q8gB21L3WIo8T5P1MSMg3Ep14L7KkDCFG3y4w==}
engines: {node: '>=16.0.0'}
@@ -12505,10 +12486,6 @@ packages:
resolution: {integrity: sha512-61g9pCh0Vnh7IutZjtLGGpTA355+OPn2TyDv/6ivP2h/AdAVX9azsoxmg2/M6nZeQZNYBEwIcsne1mJd9oQItQ==}
engines: {node: '>= 18'}
- resolution: {integrity: sha512-60IZaJNzyu2tIeHutkYE8RiXVx3KRvacOxfLr2Mj92SIsRIroDsH0IlUUR6fJAjoTW4RQISbaOApa2IZpIwFdQ==}
- engines: {node: '>= 6'}
-
resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==}
@@ -13452,9 +13429,6 @@ packages:
resolution: {integrity: sha512-KNNZtayBCtmnNmbo5mG47p1XsCyrx6iVqomjcZnec/1Y5GGARaxPs6r49RnSPeUP3YjNYiU9sQHAtY4BBvnZwg==}
- resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==}
-
resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==}
@@ -14150,9 +14124,6 @@ packages:
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
- resolution: {integrity: sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==}
-
resolution: {integrity: sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
@@ -15410,11 +15381,11 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@babel/parser': 7.27.0
'@babel/traverse': 7.27.0
chalk: 5.4.1
fs-extra: 11.3.0
glob: 10.4.5
@@ -15432,58 +15403,58 @@ snapshots:
- uglify-js
- webpack
dependencies:
'@ckeditor/ckeditor5-dev-translations': 43.0.1
chalk: 3.0.0
cli-cursor: 3.1.0
cli-spinners: 2.9.2
cssnano: 6.1.2([email protected])
del: 5.1.0
fs-extra: 11.3.0
is-interactive: 1.0.0
javascript-stringify: 1.6.0
mocha: 7.2.0
postcss: 8.5.3
postcss-import: 14.1.0([email protected])
postcss-mixins: 9.0.4([email protected])
postcss-nesting: 13.0.1([email protected])
shelljs: 0.8.5
through2: 3.0.2
transitivePeerDependencies:
- bluebird
- supports-color
- webpack
dependencies:
chalk: 5.4.1
cli-cursor: 5.0.0
cli-spinners: 3.2.0
cssnano: 7.0.6([email protected])
fs-extra: 11.3.0
is-interactive: 2.0.0
mocha: 10.8.2
postcss: 8.5.3
postcss-import: 16.1.0([email protected])
postcss-mixins: 11.0.3([email protected])
postcss-nesting: 13.0.1([email protected])
shelljs: 0.8.5
through2: 4.0.2
transitivePeerDependencies:
- '@rspack/core'
@@ -15764,29 +15735,29 @@ snapshots:
'@ckeditor/ckeditor5-utils': 45.1.0
ckeditor5: 45.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)
dependencies:
buffer: 6.0.3
chalk: 5.4.1
fs-extra: 11.3.0
glob: 7.2.3
minimist: 1.2.8
postcss: 8.5.3
process: 0.11.10
stylelint: 16.19.1([email protected])
stylelint-config-ckeditor5: 2.0.1([email protected]([email protected]))
typescript: 5.0.4
transitivePeerDependencies:
- '@rspack/core'
- '@swc/core'
@@ -16403,7 +16374,7 @@ snapshots:
make-fetch-happen: 10.2.1
nopt: 6.0.0
proc-log: 2.0.1
- semver: 7.7.1
+ semver: 7.7.2
tar: 6.2.1
which: 2.0.2
transitivePeerDependencies:
@@ -17916,7 +17887,7 @@ snapshots:
'@npmcli/[email protected]':
dependencies:
'@gar/promisify': 1.1.3
- semver: 7.7.1
+ semver: 7.7.2
'@npmcli/[email protected]':
dependencies:
@@ -20815,13 +20786,6 @@ snapshots:
- dependencies:
- bn.js: 4.12.1
- inherits: 2.0.4
- minimalistic-assert: 1.0.1
- safer-buffer: 2.1.2
-
@@ -20989,8 +20953,6 @@ snapshots:
babel-plugin-jest-hoist: 29.6.3
babel-preset-current-node-syntax: 1.1.0(@babel/[email protected])
-
@@ -21077,8 +21039,6 @@ snapshots:
-
dependencies:
bytes: 3.1.2
@@ -21784,14 +21744,14 @@ snapshots:
serialize-javascript: 6.0.2
dependencies:
glob-parent: 6.0.2
normalize-path: 3.0.0
schema-utils: 4.3.2
serialize-javascript: 6.0.2
tinyglobby: 0.2.13
dependencies:
@@ -21904,7 +21864,7 @@ snapshots:
dependencies:
icss-utils: 5.1.0([email protected])
loader-utils: 2.0.4
@@ -21916,7 +21876,7 @@ snapshots:
postcss-value-parser: 4.2.0
schema-utils: 3.3.0
semver: 7.7.1
dependencies:
@@ -21931,7 +21891,7 @@ snapshots:
optionalDependencies:
dependencies:
icss-utils: 5.1.0([email protected])
postcss: 8.5.3
@@ -21942,7 +21902,7 @@ snapshots:
postcss-value-parser: 4.2.0
semver: 7.7.2
optionalDependencies:
dependencies:
@@ -22984,20 +22944,20 @@ snapshots:
dependencies:
esbuild: 0.17.19
get-tsconfig: 4.10.0
loader-utils: 2.0.4
webpack-sources: 1.4.3
dependencies:
esbuild: 0.25.3
get-tsconfig: 4.10.0
loader-utils: 2.0.4
webpack-sources: 1.4.3
@@ -24742,8 +24702,6 @@ snapshots:
dependencies:
which-typed-array: 1.1.19
-
@@ -25380,10 +25338,6 @@ snapshots:
- dependencies:
- asn1.js: 5.4.1
-
dependencies:
chevrotain: 11.0.3
@@ -26021,10 +25975,10 @@ snapshots:
schema-utils: 4.3.2
dependencies:
schema-utils: 4.3.2
@@ -27127,7 +27081,7 @@ snapshots:
camelcase-css: 2.0.1
postcss: 8.5.3
dependencies:
cosmiconfig: 7.1.0
klona: 2.0.6
@@ -27135,7 +27089,7 @@ snapshots:
postcss: 8.5.3
schema-utils: 3.3.0
semver: 7.7.1
dependencies:
@@ -27145,14 +27099,14 @@ snapshots:
semver: 7.7.1
dependencies:
cosmiconfig: 9.0.0([email protected])
jiti: 1.21.7
postcss: 8.5.3
semver: 7.7.2
optionalDependencies:
transitivePeerDependencies:
- typescript
@@ -27733,11 +27687,11 @@ snapshots:
dependencies:
loader-utils: 2.0.4
schema-utils: 3.3.0
dependencies:
@@ -28491,15 +28445,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- bagpipe: 0.3.5
- fs-extra: 8.1.0
- kruptein: 2.2.3
- object-assign: 4.1.1
- retry: 0.12.0
- write-file-atomic: 3.0.3
-
@@ -28953,19 +28898,19 @@ snapshots:
'@tokenizer/token': 0.3.0
peek-readable: 5.4.2
dependencies:
loader-utils: 2.0.4
schema-utils: 3.3.0
dependencies:
dependencies:
@@ -29326,7 +29271,7 @@ snapshots:
rimraf: 2.6.3
optional: true
dependencies:
cacache: 15.3.0
find-cache-dir: 3.3.2
@@ -29336,7 +29281,7 @@ snapshots:
serialize-javascript: 5.0.1
source-map: 0.6.1
terser: 5.39.0
webpack-sources: 1.4.3
transitivePeerDependencies:
- bluebird
@@ -29353,14 +29298,14 @@ snapshots:
'@swc/core': 1.11.24(@swc/[email protected])
esbuild: 0.25.4
dependencies:
'@jridgewell/trace-mapping': 0.3.25
jest-worker: 27.5.1
schema-utils: 4.3.2
serialize-javascript: 6.0.2
terser: 5.39.0
optionalDependencies:
'@swc/core': 1.11.24(@swc/[email protected])
esbuild: 0.25.4
@@ -29518,7 +29463,7 @@ snapshots:
dependencies:
chalk: 4.1.2
enhanced-resolve: 5.18.1
@@ -29526,7 +29471,7 @@ snapshots:
semver: 7.7.1
source-map: 0.7.4
typescript: 5.0.4
dependencies:
@@ -29710,10 +29655,6 @@ snapshots:
- dependencies:
- is-typedarray: 1.0.0
-
@@ -30230,7 +30171,7 @@ snapshots:
optionalDependencies:
dependencies:
colorette: 2.0.20
memfs: 4.17.0
@@ -30239,9 +30180,9 @@ snapshots:
range-parser: 1.2.1
schema-utils: 4.3.2
optionalDependencies:
dependencies:
'@types/bonjour': 3.5.13
'@types/connect-history-api-fallback': 1.5.4
@@ -30269,10 +30210,10 @@ snapshots:
serve-index: 1.9.1
sockjs: 0.3.24
spdy: 4.0.2
+ webpack-dev-middleware: 7.4.2([email protected])
optionalDependencies:
webpack-cli: 6.0.1([email protected])
transitivePeerDependencies:
- bufferutil
@@ -30280,7 +30221,7 @@ snapshots:
- supports-color
- utf-8-validate
dependencies:
'@types/bonjour': 3.5.13
'@types/connect-history-api-fallback': 1.5.4
@@ -30308,10 +30249,10 @@ snapshots:
serve-index: 1.9.1
sockjs: 0.3.24
spdy: 4.0.2
- webpack-dev-middleware: 7.4.2([email protected])
optionalDependencies:
webpack-cli: 6.0.1([email protected])
transitivePeerDependencies:
- bufferutil
@@ -30376,7 +30317,7 @@ snapshots:
- esbuild
- uglify-js
dependencies:
'@types/eslint-scope': 3.7.7
'@types/estree': 1.0.7
@@ -30399,7 +30340,7 @@ snapshots:
neo-async: 2.6.2
schema-utils: 4.3.2
tapable: 2.2.1
watchpack: 2.4.2
webpack-sources: 3.2.3
optionalDependencies:
@@ -30565,13 +30506,6 @@ snapshots:
- dependencies:
- imurmurhash: 0.1.4
- is-typedarray: 1.0.0
- signal-exit: 3.0.7
- typedarray-to-buffer: 3.1.5
-
dependencies:
imurmurhash: 0.1.4