Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

chore(server): updated hono related deps (#669)

Corentin Thomasset364b58b74d02
diff --git a/apps/papra-server/package.json b/apps/papra-server/package.json
index 2e154f95..652069b8 100644
--- a/apps/papra-server/package.json
+++ b/apps/papra-server/package.json
@@ -49,7 +49,7 @@
"@corentinth/friendly-ids": "^0.0.1",
"@crowlog/async-context-plugin": "^2.1.0",
"@crowlog/logger": "^2.1.0",
- "@hono/node-server": "^1.14.4",
+ "@hono/node-server": "^1.19.6",
"@libsql/client": "^0.14.0",
"@owlrelay/api-sdk": "^0.0.2",
"@owlrelay/webhook": "^0.0.3",
@@ -65,7 +65,7 @@
"drizzle-kit": "^0.30.6",
"drizzle-orm": "^0.38.4",
"figue": "^3.1.1",
- "hono": "^4.8.2",
+ "hono": "^4.10.7",
"lodash-es": "^4.17.21",
"mime-types": "^3.0.1",
"nanoid": "^5.1.5",
diff --git a/apps/papra-server/src/modules/app/static-assets/static-assets.routes.ts b/apps/papra-server/src/modules/app/static-assets/static-assets.routes.ts
index dee03036..d617a23d 100644
--- a/apps/papra-server/src/modules/app/static-assets/static-assets.routes.ts
+++ b/apps/papra-server/src/modules/app/static-assets/static-assets.routes.ts
@@ -1,3 +1,4 @@
+import type { Context } from 'hono';
import type { Config } from '../../config/config.types';
import type { ServerInstance } from '../server.types';
import { readFile } from 'node:fs/promises';
@@ -26,7 +27,7 @@ export function registerStaticAssetsRoutes({ app, config }: { app: ServerInstanc
index: `unexisting-file-${Math.random().toString(36).substring(2)}`,
});
- return staticMiddleware(context, next);
+ return staticMiddleware(context as Context<any, string>, next);
},
)
.use(
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 28adc499..36193bca 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -417,8 +417,8 @@ importers:
specifier: ^2.1.0
version: 2.1.0
'@hono/node-server':
- specifier: ^1.14.4
- version: 1.14.4([email protected])
+ specifier: ^1.19.6
+ version: 1.19.6([email protected])
'@libsql/client':
specifier: ^0.14.0
version: 0.14.0
@@ -465,8 +465,8 @@ importers:
specifier: ^3.1.1
version: 3.1.1
hono:
- specifier: ^4.8.2
- version: 4.8.2
+ specifier: ^4.10.7
+ version: 4.10.7
lodash-es:
specifier: ^4.17.21
version: 4.17.21
@@ -3055,8 +3055,8 @@ packages:
'@hexagon/[email protected]':
resolution: {integrity: sha512-lhqDEAvWixy3bZ+UOYbPwUbBkwBq5C1LAJ/xPC8Oi+lL54oyakv/npbA0aU2hgCsx/1NUd4IBvV03+aUBWxerw==}
- resolution: {integrity: sha512-DnxpshhYewr2q9ZN8ez/M5mmc3sucr8CT1sIgIy1bkeUXut9XWDkqHoFHRhWIQgkYnKpVRxunyhK7WzpJeJ6qQ==}
+ resolution: {integrity: sha512-Shz/KjlIeAhfiuE93NDKVdZ7HdBVLQAfdbaXEaoAVO3ic9ibRSLGIQGkcBbFyuLr+7/1D5ZCINM8B+6IvXeMtw==}
engines: {node: '>=18.14.1'}
peerDependencies:
hono: ^4
@@ -8039,8 +8039,8 @@ packages:
resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==}
- resolution: {integrity: sha512-hM+1RIn9PK1I6SiTNS6/y7O1mvg88awYLFEuEtoiMtRyT3SD2iu9pSFgbBXT3b1Ua4IwzvSTLvwO0SEhDxCi4w==}
+ resolution: {integrity: sha512-icXIITfw/07Q88nLSkB9aiUrd8rYzSweK681Kjo/TSggaGbOX4RRyxxm71v+3PC8C/j+4rlxGeoTRxQDkaJkUw==}
engines: {node: '>=16.9.0'}
@@ -15154,9 +15154,9 @@ snapshots:
'@hexagon/[email protected]': {}
dependencies:
- hono: 4.8.2
+ hono: 4.10.7
'@humanfs/[email protected]': {}
@@ -20034,7 +20034,7 @@ snapshots:
'@typescript-eslint/parser': 8.46.2([email protected]([email protected]))([email protected])
eslint: 9.39.1([email protected])
+ eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))
eslint-plugin-react: 7.37.5([email protected]([email protected]))
@@ -20063,7 +20063,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@nolyfill/is-core-module': 1.0.39
debug: 4.4.3([email protected])
@@ -20088,14 +20088,14 @@ snapshots:
dependencies:
eslint: 9.39.1([email protected])
dependencies:
debug: 3.2.7
optionalDependencies:
'@typescript-eslint/parser': 8.46.2([email protected]([email protected]))([email protected])
eslint: 9.39.1([email protected])
eslint-import-resolver-node: 0.3.9
+ eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))
transitivePeerDependencies:
- supports-color
@@ -20158,7 +20158,7 @@ snapshots:
doctrine: 2.1.0
eslint: 9.39.1([email protected])
eslint-import-resolver-node: 0.3.9
hasown: 2.0.2
is-core-module: 2.16.1
is-glob: 4.0.3
@@ -21406,7 +21406,7 @@ snapshots:
dependencies:
react-is: 16.13.1