Skip to content

Commit a96752f

Browse files
authored
v0.14.2 - see CHANGELOG for details (#46)
1 parent f3ba033 commit a96752f

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [0.14.2] - 2025-03-03
2+
3+
### Fixed
4+
5+
- posix style is enforced when assigning paths in `@Controller` (so it still
6+
works when running on Windows platform)
7+
18
## [0.14.1] - 2025-02-23
29

310
### Changed

deno.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dklab/oak-routing-ctrl",
3-
"version": "0.14.1",
3+
"version": "0.14.2",
44
"exports": {
55
".": "./mod.ts",
66
"./mod": "./mod.ts"

src/Controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { join } from "@std/path";
1+
import { join } from "@std/path/posix";
22
import { debug } from "./utils/logger.ts";
33
import { store } from "./Store.ts";
44
import { patchOasPath } from "./oasStore.ts";
@@ -38,7 +38,7 @@ export const Controller =
3838
if (!pair) continue;
3939
const patchedPair = new Map();
4040
pair.forEach((verb, path) => {
41-
const fullPath = join(pathPrefix, path);
41+
const fullPath = join(pathPrefix, path); // @NOTE **must** be posix style
4242
patchedPair.set(fullPath, verb);
4343
debug(
4444
`[${ctrlClassName}] @Controller: patched [${verb}] ${path} to ${fullPath}`,

0 commit comments

Comments
 (0)