Skip to content

Commit a5cb39d

Browse files
committed
chore(release): bump version to 0.12.2
- Add 0.12.2 changelog entry for the route import primitive - Bump deno.json version from 0.12.1 to 0.12.2 - Update compare links with 0.12.2 reference
1 parent 9f8781d commit a5cb39d

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,23 @@ Format inspired by [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66

77
---
88

9+
## [0.12.2] - 2026-06-09
10+
11+
### Added
12+
13+
- A single runtime import primitive (`API.importRouteModule`) now loads a route module from an absolute file path, turning the path into a `file://` URL, optionally appending a cache-busting query for hot reload, and returning the loaded module, so every route load flows through one primitive that stays easy to reason about
14+
15+
### Changed
16+
17+
- The native dynamic `import()` now resolves through a runtime indirection, so the specifier is handed over only at runtime and stays opaque to publish-time static analysis. The route module still resolves by its real `file://` URL with no import map, so the published package leaves the path untouched while the runtime behaviour stays the same
18+
- Route discovery and hot-reload no longer build the `file://` URL inline or pull in `node:url` directly. Each call now goes through the shared primitive, with the reload path opting into cache busting, so the duplicated URL building is gone while the behaviour stays the same
19+
20+
### Fixed
21+
22+
- Loading a consumer's route files used to leave the publisher trying to analyze an import path that only exists on the installing machine, which risked the published specifier being rewritten into something that cannot resolve. Every route import now flows through the runtime primitive, so the path resolves the same way at runtime and the publisher leaves it untouched
23+
24+
---
25+
926
## [0.12.1] - 2026-06-09
1027

1128
### Fixed
@@ -562,7 +579,8 @@ Format inspired by [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
562579

563580
---
564581

565-
[Unreleased]: https://github.com/NeaByteLab/Deserve/compare/v0.12.1...HEAD
582+
[Unreleased]: https://github.com/NeaByteLab/Deserve/compare/v0.12.2...HEAD
583+
[0.12.2]: https://github.com/NeaByteLab/Deserve/compare/v0.12.1...v0.12.2
566584
[0.12.1]: https://github.com/NeaByteLab/Deserve/compare/v0.12.0...v0.12.1
567585
[0.12.0]: https://github.com/NeaByteLab/Deserve/compare/v0.11.0...v0.12.0
568586
[0.11.0]: https://github.com/NeaByteLab/Deserve/compare/v0.10.0...v0.11.0

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@neabyte/deserve",
33
"description": "HTTP server with file-based routing library for Deno",
4-
"version": "0.12.1",
4+
"version": "0.12.2",
55
"type": "module",
66
"license": "MIT",
77
"exports": "./src/index.ts",

0 commit comments

Comments
 (0)