Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [0.16.0] - 2025-11-27

- upgraded dependencies: `npm:@asteasolutions/zod-to-openapi@^8.1.0`,
`jsr:@oak/oak@^17.2.0`, `jsr:@std/assert@^1.0.16`, `jsr:@std/io@^0.225.2`,
`jsr:@std/path@^1.1.3`, `jsr:@std/testing@^1.0.16`, `npm:zod@^4.1.13`

## [0.15.2] - 2025-06-29

- upgraded dependencies: `npm:@asteasolutions/zod-to-openapi@^7.3.4`,
Expand Down
14 changes: 7 additions & 7 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dklab/oak-routing-ctrl",
"version": "0.15.2",
"version": "0.16.0",
"exports": {
".": "./mod.ts",
"./mod": "./mod.ts"
Expand All @@ -20,13 +20,13 @@
"doc": "deno doc --html mod.ts"
},
"imports": {
"@asteasolutions/zod-to-openapi": "npm:@asteasolutions/zod-to-openapi@^7.3.4",
"@oak/oak": "jsr:@oak/oak@^17.1.4",
"@std/assert": "jsr:@std/assert@^1.0.13",
"@asteasolutions/zod-to-openapi": "npm:@asteasolutions/zod-to-openapi@^8.1.0",
"@oak/oak": "jsr:@oak/oak@^17.2.0",
"@std/assert": "jsr:@std/assert@^1.0.16",
"@std/io": "jsr:@std/io@^0.225.2",
"@std/path": "jsr:@std/path@^1.1.0",
"@std/testing": "jsr:@std/testing@^1.0.14",
"zod": "npm:zod@^3.25.67",
"@std/path": "jsr:@std/path@^1.1.3",
"@std/testing": "jsr:@std/testing@^1.0.16",
"zod": "npm:zod@^4.1.13",
"superoak": "https://deno.land/x/superoak@4.8.1/mod.ts"
},
"fmt": {
Expand Down
121 changes: 51 additions & 70 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions src/useOakServer_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,13 @@ Deno.test({
expectedCtxThrow: true,
expectedError: `[
{
"received": "camela",
"code": "invalid_enum_value",
"options": [
"code": "invalid_value",
"values": [
"alice",
"bob"
],
"path": [],
"message": "Invalid enum value. Expected 'alice' | 'bob', received 'camela'"
"message": "Invalid option: expected one of \\"alice\\"|\\"bob\\""
}
]`,
expectedResponse: undefined,
Expand Down
18 changes: 0 additions & 18 deletions src/utils/schema_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,45 +50,27 @@ type SubsetOfZ = Pick<
| "undefined"
| "null"
| "enum"
| "addIssueToContext"
| "any"
| "bigint"
| "coerce"
| "custom"
| "date"
| "datetimeRegex"
| "defaultErrorMap"
| "discriminatedUnion"
| "effect"
| "function"
| "getErrorMap"
| "getParsedType"
| "instanceof"
| "intersection"
| "isAborted"
| "isAsync"
| "isDirty"
| "isValid"
| "late"
| "lazy"
| "literal"
| "makeIssue"
| "map"
| "objectUtil"
| "oboolean"
| "onumber"
| "optional"
| "ostring"
| "pipeline"
| "preprocess"
| "promise"
| "quotelessJson"
| "record"
| "set"
| "setErrorMap"
| "strictObject"
| "symbol"
| "transformer"
| "tuple"
| "union"
| "unknown"
Expand Down