diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-05-18 16:58:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-18 16:58:08 +0100 |
| commit | 3505cb7d6416d101a4fcb1be27fc22e0171bacd2 (patch) | |
| tree | ef9f55504b8a5b20add8c0ebe916972ab4ab0178 /pnpm-lock.yaml | |
| parent | 74e74fa6425f072107de3a9bc9dd8f91c5ac9a7d (diff) | |
| download | karakeep-3505cb7d6416d101a4fcb1be27fc22e0171bacd2.tar.zst | |
refactor: Migrate from NextJs's API routes to Hono based routes for the API (#1432)
* Setup Hono and migrate the highlights API there
* Implement the tags and lists endpoint
* Implement the bookmarks and users endpoints
* Add the trpc error code adapter
* Remove the old nextjs handlers
* fix api key not found handling
* Fix trpc error handling
* Fix 204 handling
* Fix search ordering
* Implement the singlefile endpoint
* Implement the asset serving endpoints
* Implement webauth
* Add hono as a catch all route under api
* fix tests
Diffstat (limited to 'pnpm-lock.yaml')
| -rw-r--r-- | pnpm-lock.yaml | 71 |
1 files changed, 68 insertions, 3 deletions
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 36cc420a..f5e92b9c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -515,6 +515,9 @@ importers: '@hookform/resolvers': specifier: ^3.3.4 version: 3.3.4(react-hook-form@7.50.1(react@18.3.1)) + '@karakeep/api': + specifier: workspace:^0.1.0 + version: link:../../packages/api '@karakeep/db': specifier: workspace:^0.1.0 version: link:../../packages/db @@ -960,6 +963,49 @@ importers: specifier: ^5.7.3 version: 5.7.3 + packages/api: + dependencies: + '@hono/zod-validator': + specifier: ^0.5.0 + version: 0.5.0(hono@4.7.10)(zod@3.24.2) + '@karakeep/db': + specifier: workspace:* + version: link:../db + '@karakeep/shared': + specifier: workspace:* + version: link:../shared + '@karakeep/trpc': + specifier: workspace:* + version: link:../trpc + hono: + specifier: ^4.7.10 + version: 4.7.10 + zod: + specifier: ^3.24.2 + version: 3.24.2 + devDependencies: + '@karakeep/eslint-config': + specifier: workspace:^0.2.0 + version: link:../../tooling/eslint + '@karakeep/prettier-config': + specifier: workspace:^0.1.0 + version: link:../../tooling/prettier + '@karakeep/tsconfig': + specifier: workspace:^0.1.0 + version: link:../../tooling/typescript + '@types/bcryptjs': + specifier: ^2.4.6 + version: 2.4.6 + '@types/deep-equal': + specifier: ^1.0.4 + version: 1.0.4 + vite-tsconfig-paths: + specifier: ^4.3.1 + version: 4.3.1(typescript@5.7.3) + vitest: + specifier: ^1.6.1 + version: 1.6.1(@types/node@22.13.0) + packages/db: dependencies: '@auth/core': @@ -3555,6 +3601,12 @@ packages: '@hapi/topo@5.1.0': resolution: {integrity: sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==} + '@hono/zod-validator@0.5.0': + resolution: {integrity: sha512-ds5bW6DCgAnNHP33E3ieSbaZFd5dkV52ZjyaXtGoR06APFrCtzAsKZxTHwOrJNBdXsi0e5wNwo5L4nVEVnJUdg==} + peerDependencies: + hono: '>=3.9.0' + zod: ^3.19.1 + '@hookform/error-message@2.0.1': resolution: {integrity: sha512-U410sAr92xgxT1idlu9WWOVjndxLdgPUHEB8Schr27C9eh7/xUnITWpCMF93s+lGiG++D4JnbSnrb5A21AdSNg==} peerDependencies: @@ -9366,6 +9418,10 @@ packages: hoist-non-react-statics@3.3.2: resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==} + hono@4.7.10: + resolution: {integrity: sha512-QkACju9MiN59CKSY5JsGZCYmPZkA6sIW6OFCUp7qDjZu6S6KHtJHhAc9Uy9mV9F8PJ1/HQ3ybZF2yjCa/73fvQ==} + engines: {node: '>=16.9.0'} + hosted-git-info@7.0.2: resolution: {integrity: sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==} engines: {node: ^16.14.0 || >=18.0.0} @@ -18692,7 +18748,7 @@ snapshots: '@eslint/eslintrc@2.1.4': dependencies: ajv: 6.12.6 - debug: 4.3.7 + debug: 4.4.0(supports-color@9.4.0) espree: 9.6.1 globals: 13.24.0 ignore: 5.3.1 @@ -19085,6 +19141,12 @@ snapshots: dependencies: '@hapi/hoek': 9.3.0 + '@hono/zod-validator@0.5.0(hono@4.7.10)(zod@3.24.2)': + dependencies: + hono: 4.7.10 + zod: 3.24.2 + dev: false + '@hookform/error-message@2.0.1(react-dom@18.3.1(react@18.3.1))(react-hook-form@7.50.1(react@18.3.1))(react@18.3.1)': dependencies: react: 18.3.1 @@ -19100,7 +19162,7 @@ snapshots: '@humanwhocodes/config-array@0.11.14': dependencies: '@humanwhocodes/object-schema': 2.0.2 - debug: 4.3.7 + debug: 4.4.0(supports-color@9.4.0) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -21852,7 +21914,7 @@ snapshots: '@types/request-ip@0.0.41': dependencies: - '@types/node': 20.11.20 + '@types/node': 22.13.0 dev: true '@types/resolve@1.17.1': @@ -26748,6 +26810,9 @@ snapshots: react-is: 16.13.1 dev: false + hono@4.7.10: + dev: false + hosted-git-info@7.0.2: dependencies: lru-cache: 10.4.3 |
