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
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
deno 2.9.3
deno 2.9.5
7 changes: 4 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ Follow the order below to publish a new `oak-routing-ctrl` library version:
- the release version must match the most recent value found in `CHANGELOG.md`
- if unsure which release version to use, you must ask the user
- if the release branch is not yet created, create & switch to it
- Ensure that `CHANGELOG.md` mentions the latest changes (as per git diff)
- Commit current code & create a release PR on GitHub
- the release commit always has this format:
`vx.x.x - see CHANGELOG for details`
- Once the PR is approved & merged to `master`, switch to `master`
- Once the PR is approved & merged to `main`, switch to `main`
- Run `deno publish --dry-run` to ensure everything is appropriate, e.g. the
value of the field `version` in `deno.jsonc` and the git tag, and the
corresponding release note in CHANGELOG.md, all must be consistent with one
another
- Create a new git tag on `master` branch following the format `vx.x.x`. This
will trigger the library publishing GitHub workflow
- Create a new git tag on `main` branch following the format `vx.x.x`. This will
trigger the library publishing GitHub workflow
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## [1.1.1] - 2026-08-08

### Changed

- upgraded dependencies: `npm:@asteasolutions/zod-to-openapi@^9.1.0`,
`jsr:@std/path@^1.1.6`, `jsr:@std/testing@^1.0.20`
- upgraded runtime from Deno v2.9.3 to v2.9.5

## [1.1.0] - 2026-07-01

### Added
Expand Down
8 changes: 4 additions & 4 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dklab/oak-routing-ctrl",
"version": "1.1.0",
"version": "1.1.1",
"exports": {
".": "./mod.ts",
"./mod": "./mod.ts"
Expand All @@ -22,12 +22,12 @@
"e2e-test": "cd e2e_tests && deno test --allow-import --allow-env=DEBUG --allow-net=0.0.0.0,127.0.0.1"
},
"imports": {
"@asteasolutions/zod-to-openapi": "npm:@asteasolutions/zod-to-openapi@^8.5.0",
"@asteasolutions/zod-to-openapi": "npm:@asteasolutions/zod-to-openapi@^9.1.0",
"@oak/oak": "jsr:@oak/oak@^17.2.0",
"@std/assert": "jsr:@std/assert@^1.0.19",
"@std/io": "jsr:@std/io@^0.225.3",
"@std/path": "jsr:@std/path@^1.1.5",
"@std/testing": "jsr:@std/testing@^1.0.19",
"@std/path": "jsr:@std/path@^1.1.6",
"@std/testing": "jsr:@std/testing@^1.0.20",
"zod": "npm:zod@^4.4.3",
"superoak": "https://deno.land/x/superoak@5.0.0/mod.ts"
},
Expand Down
59 changes: 30 additions & 29 deletions deno.lock

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

10 changes: 7 additions & 3 deletions src/oasStore_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { z } from "./utils/schema_utils.ts";
import { assertEquals, assertInstanceOf } from "@std/assert";
import { ZodObject } from "zod";
import type { ZodMediaTypeObject } from "@asteasolutions/zod-to-openapi";
import { oasStore, patchOasPath, updateOas } from "./oasStore.ts";
import { _internal } from "./oasStore.ts";

Expand Down Expand Up @@ -41,11 +42,13 @@ Deno.test("store entry creation & update", () => {
},
});

const record = oasStore.get(getRouteId("FILLED_LATER", fnName, method, path));
const entryPath = getRouteId("FILLED_LATER", fnName, method, path);
const record = oasStore.get(entryPath);
assertEquals(record?.method, method);
assertEquals(record?.path, getOasCompatPath(path));
assertInstanceOf(
record?.request?.body?.content?.["application/json"]?.schema,
(record?.request?.body?.content?.["application/json"] as ZodMediaTypeObject)
?.schema,
ZodObject,
);

Expand All @@ -56,7 +59,8 @@ Deno.test("store entry creation & update", () => {
assertEquals(patchedRecord?.method, method);
assertEquals(patchedRecord?.path, getOasCompatPath(patchedPath));
assertInstanceOf(
record?.request?.body?.content?.["application/json"]?.schema,
(patchedRecord?.request?.body?.content
?.["application/json"] as ZodMediaTypeObject)?.schema,
ZodObject,
);
});
Loading