diff --git a/CHANGELOG.md b/CHANGELOG.md index cc9c466..64a976f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [0.14.1] - 2025-02-23 + +### Changed + +- upgraded dependencies: `npm:zod@^3.24.2` + ## [0.14.0] - 2025-02-04 ## Changed diff --git a/README.md b/README.md index 15932bf..2f8ac7e 100644 --- a/README.md +++ b/README.md @@ -486,3 +486,10 @@ deno coverage cov_profile ``` [![test coverage](https://codecov.io/gh/Thesephi/oak-routing-ctrl/graphs/tree.svg?token=BA3M9P6410)](https://codecov.io/github/Thesephi/oak-routing-ctrl) + +## FAQs + +Q: can this library support fullstack web development? + +A: yes, in fact there's a fullstack web framework on top of this library: +[FullSoak](https://jsr.io/@fullsoak/fullsoak) diff --git a/deno.jsonc b/deno.jsonc index 7acd2c7..ad7a014 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,6 +1,6 @@ { "name": "@dklab/oak-routing-ctrl", - "version": "0.14.0", + "version": "0.14.1", "exports": { ".": "./mod.ts", "./mod": "./mod.ts" @@ -26,7 +26,7 @@ "@std/io": "jsr:@std/io@^0.225.2", "@std/path": "jsr:@std/path@^1.0.8", "@std/testing": "jsr:@std/testing@^1.0.9", - "zod": "npm:zod@^3.24.1", + "zod": "npm:zod@^3.24.2", "superoak": "https://deno.land/x/superoak@4.8.1/mod.ts" }, "fmt": { diff --git a/deno.lock b/deno.lock index e08fb65..0ad0038 100644 --- a/deno.lock +++ b/deno.lock @@ -19,10 +19,10 @@ "jsr:@std/path@1": "1.0.8", "jsr:@std/path@^1.0.8": "1.0.8", "jsr:@std/testing@^1.0.9": "1.0.9", - "npm:@asteasolutions/zod-to-openapi@^7.3.0": "7.3.0_zod@3.24.1", + "npm:@asteasolutions/zod-to-openapi@^7.3.0": "7.3.0_zod@3.24.2", "npm:@types/node@*": "22.5.4", "npm:path-to-regexp@^6.3.0": "6.3.0", - "npm:zod@^3.24.1": "3.24.1" + "npm:zod@^3.24.2": "3.24.2" }, "jsr": { "@oak/commons@1.0.0": { @@ -101,7 +101,7 @@ } }, "npm": { - "@asteasolutions/zod-to-openapi@7.3.0_zod@3.24.1": { + "@asteasolutions/zod-to-openapi@7.3.0_zod@3.24.2": { "integrity": "sha512-7tE/r1gXwMIvGnXVUdIqUhCU1RevEFC4Jk6Bussa0fk1ecbnnINkZzj1EOAJyE/M3AI25DnHT/zKQL1/FPFi8Q==", "dependencies": [ "openapi3-ts", @@ -129,8 +129,8 @@ "yaml@2.7.0": { "integrity": "sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==" }, - "zod@3.24.1": { - "integrity": "sha512-muH7gBL9sI1nciMZV67X5fTKKBLtwpZ5VBp1vsOQzj1MhrBZ4wlVCm3gedKZWLp0Oyel8sIGfeiz54Su+OVT+A==" + "zod@3.24.2": { + "integrity": "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==" } }, "remote": { @@ -237,7 +237,7 @@ "jsr:@std/path@^1.0.8", "jsr:@std/testing@^1.0.9", "npm:@asteasolutions/zod-to-openapi@^7.3.0", - "npm:zod@^3.24.1" + "npm:zod@^3.24.2" ] } } diff --git a/src/useOakServer.ts b/src/useOakServer.ts index 4606abb..99e4381 100644 --- a/src/useOakServer.ts +++ b/src/useOakServer.ts @@ -48,7 +48,7 @@ export const useOakServer = ( ctx.response.body = ctx.response.body ?? handlerRetVal; } catch (e) { if (e instanceof z.ZodError) { - return ctx.throw(Status.BadRequest, e.toString()); + return ctx.throw(Status.BadRequest, (e as Error).toString()); } throw e; }